/*
Theme Name: Masterkatoni
Theme URI: https://example.com/masterkatoni
Author: Codex
Description: Custom theme for Masterkatoni.
Version: 1.6
Text Domain: masterkatoni
*/

@font-face {
  font-family: "KalamehWebFaNum";
  src: url("assets/fonts/KalamehWebFaNum-Regular.woff2") format("woff2"),
    url("assets/fonts/KalamehWebFaNum-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KalamehWebFaNum";
  src: url("assets/fonts/KalamehWebFaNum-Medium.woff2") format("woff2"),
    url("assets/fonts/KalamehWebFaNum-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KalamehWebFaNum";
  src: url("assets/fonts/KalamehWebFaNum-Bold.woff2") format("woff2"),
    url("assets/fonts/KalamehWebFaNum-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KalamehWebFaNum";
  src: url("assets/fonts/KalamehWebFaNum-Black.woff2") format("woff2"),
    url("assets/fonts/KalamehWebFaNum-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #ee2b2b;
  --brand-dark: #b3151a;
  --brand-soft: #ffd2d2;
  --ink: #1b1b22;
  --ink-subtle: #494952;
  --bg: #fff5f4;
  --surface: #ffffff;
  --surface-muted: #fff0f0;
  --accent: #ffb454;
  --stroke: rgba(27, 27, 34, 0.08);
  --shadow: 0 22px 60px rgba(27, 27, 34, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "KalamehWebFaNum", "Tahoma", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 10%, #fffaf6 0%, #fff5f4 45%, #ffeaea 100%);
  min-height: 100vh;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
}

body::before {
  background: #ffb3b3;
  top: -120px;
  right: -140px;
}

body::after {
  background: #ffd18a;
  bottom: -180px;
  left: -120px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 0 32px;
  position: relative;
  z-index: 30;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 400;
  font-size: 1.1rem;
  height: 56px;
}

.logo-img {
  height: 100%;
  width: auto;
}

.header-search {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0;
  flex: 1;
}

.header-search input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  text-align: right;
}

.header-search button {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ink-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.site-header .btn,
.header-nav .nav-link,
.nav-dropdown a,
.cart-pill {
  font-weight: 400;
}

.site-header .hgi-stroke {
  font-weight: 300;
}

.account-btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.account-btn i {
  font-size: 1.1rem;
}

.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #e6f6fb;
  border: 1px solid rgba(27, 27, 34, 0.08);
  position: relative;
  z-index: 20;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link i {
  font-size: 1.05rem;
  color: var(--ink-subtle);
}

.nav-link:hover {
  background: #fff;
  color: var(--brand-dark);
}

.nav-link:hover i {
  color: var(--brand-dark);
}

.nav-item {
  position: relative;
}

.nav-item.has-dropdown .nav-link {
  padding-left: 10px;
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 40px rgba(27, 27, 34, 0.12);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-subtle);
  font-weight: 400;
  font-size: 0.92rem;
}

.nav-dropdown a:hover {
  background: var(--surface-muted);
  color: var(--brand-dark);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--stroke);
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

.cart-pill i {
  font-size: 1.2rem;
  color: var(--brand-dark);
  font-weight: 200;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  padding: 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 35px rgba(238, 43, 43, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--brand-soft);
  color: var(--brand-dark);
}

.banner-section {
  padding: 32px 0 70px;
}

.banner-main {
  position: relative;
  display: block;
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
}

.banner-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.banner-card {
  position: relative;
  display: block;
  padding: 0;
  border-radius: var(--radius-md);
  color: inherit;
  background: transparent;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 30px rgba(27, 27, 34, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-image {
  display: block;
  width: 100%;
  height: auto;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(27, 27, 34, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0 70px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2.6rem, 3.4vw, 4rem);
  margin: 18px 0 12px;
  font-weight: 900;
}

.hero-text {
  color: var(--ink-subtle);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 0.9rem;
  color: var(--ink-subtle);
}

.hero-card {
  background: linear-gradient(160deg, #ffffff 0%, #fff1f1 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(238, 43, 43, 0.15);
}

.hero-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.hero-card p {
  margin: 0;
  color: var(--ink-subtle);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--stroke);
}

.metric span {
  display: block;
  font-weight: 700;
}

.section {
  padding: 70px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  margin: 0;
  font-weight: 800;
}

.section-desc {
  color: var(--ink-subtle);
  max-width: 420px;
}

.stories-section {
  padding-top: 0;
  padding-bottom: 30px;
}

.stories-wrap {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 30px rgba(27, 27, 34, 0.06);
}

#stories {
  direction: rtl;
}

.section-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.products-wrap {
  margin-top: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 30px rgba(27, 27, 34, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 27, 34, 0.12);
}

.card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--ink-subtle);
}

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.showcase-item {
  border-radius: var(--radius-md);
  padding: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #fff0f0 100%);
  border: 1px solid rgba(238, 43, 43, 0.16);
}

.showcase-item span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 600;
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.process-step {
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--stroke);
}

.process-step h5 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  color: var(--ink-subtle);
}

.woocommerce .woocommerce-result-count {
  display: none;
}

.woocommerce .woocommerce-ordering {
  float: none;
  margin: 0 0 18px;
}

.woocommerce .woocommerce-ordering .orderby {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(27, 27, 34, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 12px;
  cursor: pointer;
}

.woocommerce .woocommerce-ordering .orderby:focus {
  outline: none;
  border-color: rgba(238, 43, 43, 0.35);
  box-shadow: 0 12px 28px rgba(238, 43, 43, 0.2);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  text-align: right;
  box-shadow: 0 10px 25px rgba(27, 27, 34, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 27, 34, 0.12);
}

.woocommerce ul.products li.product a img {
  border-radius: var(--radius-sm);
  margin: 0 0 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  margin: 0 0 8px;
}

.woocommerce ul.products li.product .price {
  color: var(--brand-dark);
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  margin-top: 12px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  border: none;
  font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--brand-dark);
}

.woocommerce span.onsale {
  background: var(--brand);
  border-radius: 999px;
  padding: 4px 12px;
}

.callout {
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(135deg, #ee2b2b 0%, #ff6b6b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(238, 43, 43, 0.35);
}

.callout .btn {
  align-self: flex-start;
  background: #fff;
  color: var(--brand-dark);
}

footer {
  padding: 40px 0 10px;
  color: var(--ink-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
  }

  .header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-brand {
    flex-direction: column;
    align-items: stretch;
  }

  .logo-link {
    justify-content: center;
  }

  .header-search {
    max-width: 100%;
  }

  .account-btn {
    width: 100%;
    justify-content: center;
  }

  .header-bottom {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
  }

  .header-nav {
    justify-content: center;
  }

  .cart-pill {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page {
    padding: 22px 18px 60px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .woocommerce ul.products li.product {
    padding: 12px;
  }

  .woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
  }

  .header-nav {
    justify-content: space-between;
    gap: 6px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .banner-main .banner-image,
  .banner-card .banner-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-visible {
    transition: none;
    transform: none;
  }
}
.site-header .btn {
  box-shadow: none;
}

.site-header .btn-primary {
  box-shadow: none;
}

.site-header .btn:hover {
  transform: none;
}

.site-header .hgi-stroke {
  font-weight: 200;
}
/* Added by assistant: constrain logo size */
.logo-img{ max-height:80px; height:auto; width:auto; display:block; }
