/* ========================================================
   HANNI COLLECTION — Premium RTL Design System
   Palette: cream #F5F0EB · espresso #3B2A1A · taupe #C4AE96 · gold #C9A96E
   ======================================================== */

/* --- Vazirmatn self-hosted --- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --cream:       #F5F0EB;
  --cream-dark:  #EDE6DC;
  --espresso:    #3B2A1A;
  --espresso-90: rgba(59,42,26,.9);
  --espresso-60: rgba(59,42,26,.6);
  --espresso-20: rgba(59,42,26,.12);
  --taupe:       #C4AE96;
  --taupe-light: #E6DDD3;
  --gold:        #C9A96E;
  --gold-dark:   #B8924F;
  --white:       #FFFFFF;
  --text:        #3B2A1A;
  --text-muted:  #7A6555;
  --border:      rgba(59,42,26,.1);

  --shadow-xs:   0 1px 3px rgba(59,42,26,.06);
  --shadow-sm:   0 2px 8px rgba(59,42,26,.08), 0 0 0 1px rgba(59,42,26,.04);
  --shadow-md:   0 4px 20px rgba(59,42,26,.10), 0 0 0 1px rgba(59,42,26,.04);
  --shadow-lg:   0 8px 40px rgba(59,42,26,.14);
  --shadow-gold: 0 4px 16px rgba(201,169,110,.30);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 999px;

  --transition:  .22s ease;
  --transition-slow: .38s ease;

  --header-h:    68px;
  --max-w:       1260px;
  --gutter:      clamp(16px, 4vw, 48px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* --- Layout utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 8vw, 100px); }
.section--sm { padding-block: clamp(32px, 5vw, 64px); }

/* --- Typography scale --- */
.t-display {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .01em;
}
.t-hero {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 300;
  line-height: 1.35;
}
.t-h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.4; }
.t-h2 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; line-height: 1.4; }
.t-h3 { font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; line-height: 1.5; }
.t-body { font-size: 15px; line-height: 1.7; }
.t-sm   { font-size: 13px; }
.t-xs   { font-size: 11px; letter-spacing: .04em; }
.t-muted { color: var(--text-muted); }
.t-gold  { color: var(--gold); }
.t-center { text-align: center; }

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--espresso);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 24px rgba(201,169,110,.40);
}

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--espresso);
}
.btn-outline:hover {
  background: var(--espresso);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  padding: 10px 20px;
}
.btn-ghost:hover { background: var(--espresso-20); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* --- SVG icons --- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg { width: 20px; height: 20px; }
.icon-sm svg { width: 16px; height: 16px; }
.icon-lg svg { width: 24px; height: 24px; }

/* ======================================================
   HEADER
   ====================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245,240,235,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Nav — right side (RTL: start) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
}
.header-nav a {
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active { color: var(--espresso); }
.header-nav a.active { font-weight: 600; }

/* Logo — center */
.header-logo {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: .03em;
  white-space: nowrap;
}
.header-logo span.logo-lat {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-top: -2px;
}

/* Actions — left side (RTL: end) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--espresso);
  transition: background var(--transition), color var(--transition);
}
.header-icon-btn:hover { background: var(--espresso-20); }
.header-icon-btn svg { width: 19px; height: 19px; }

.cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--espresso);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

/* Mobile hamburger */
.header-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.header-hamburger:hover { background: var(--espresso-20); }
.header-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.mobile-nav.open { display: block; }
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59,42,26,.45);
  backdrop-filter: blur(4px);
}
.mobile-nav__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--cream);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight var(--transition-slow) both;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-nav__close {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 8px;
  color: var(--espresso);
  border-radius: var(--radius-sm);
}
.mobile-nav__close:hover { background: var(--espresso-20); }
.mobile-nav__drawer a {
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color var(--transition);
}
.mobile-nav__drawer a:hover { color: var(--gold-dark); }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: clamp(420px, 60vh, 680px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(245,240,235,.88) 0%,
    rgba(245,240,235,.65) 45%,
    rgba(245,240,235,.12) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding-block: 60px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--espresso);
  margin-bottom: 10px;
}
.hero__subtitle {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ======================================================
   CATEGORY TEASER — 2-column split
   ====================================================== */
.categories-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.cat-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(59,42,26,.60) 0%,
    rgba(59,42,26,.10) 55%,
    transparent 100%
  );
  transition: background var(--transition);
}
.cat-card:hover .cat-card__overlay {
  background: linear-gradient(
    to top,
    rgba(245,240,235,.55) 0%,
    rgba(245,240,235,.12) 60%,
    transparent 100%
  );
}
.cat-card__body {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 32px 28px;
  color: var(--white);
  transition: color var(--transition);
}
.cat-card:hover .cat-card__body { color: var(--espresso); }
.cat-card__label {
  display: block;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  margin-bottom: 8px;
}
.cat-card__sub {
  font-size: 13px;
  font-weight: 400;
  opacity: .8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-card__sub svg { width: 14px; height: 14px; }

/* ======================================================
   SECTION HEADER
   ====================================================== */
.section-header {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 52px);
}
.section-header__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 10px;
}
.section-header__title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 12px;
}
.section-header__desc {
  max-width: 480px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ======================================================
   PRODUCT CARDS GRID
   ====================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.06); }

.product-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--espresso);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
}
.product-card__wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: rgba(245,240,235,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover { background: var(--white); color: var(--gold-dark); }
.product-card__wishlist svg { width: 15px; height: 15px; }

.product-card__body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card__cat {
  font-size: 11px;
  font-weight: 500;
  color: var(--taupe);
  letter-spacing: .06em;
}
.product-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.5;
}
.product-card__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
}

/* Size chips */
.size-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.size-chip:hover,
.size-chip.selected {
  border-color: var(--espresso);
  background: var(--espresso);
  color: var(--white);
}

.product-card__footer {
  margin-top: auto;
  padding-top: 4px;
}
.btn-add-cart {
  width: 100%;
  padding: 10px;
  background: var(--gold);
  color: var(--espresso);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-add-cart:hover {
  background: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}
.btn-add-cart svg { width: 15px; height: 15px; }

/* ======================================================
   BRAND VALUES STRIP
   ====================================================== */
.values-strip {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4vw, 48px) 24px;
  gap: 14px;
  position: relative;
}
.value-item + .value-item::before {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-item:hover .value-icon {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.value-icon svg { width: 22px; height: 22px; }
.value-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
}
.value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================================================
   LIFESTYLE MOSAIC
   ====================================================== */
.mosaic { /* QAT#314: masonry columns — keep each photo's natural aspect ratio, no crop */
  column-count: 3;
  column-gap: 12px;
}
.mosaic__item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #f0ebe3;
  border-radius: 12px;
}
.mosaic__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,42,26,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.mosaic__item:hover .mosaic__overlay { background: rgba(59,42,26,.22); }
.mosaic__icon {
  color: var(--white);
  opacity: 0;
  transform: scale(.8);
  transition: opacity var(--transition), transform var(--transition);
}
.mosaic__item:hover .mosaic__icon {
  opacity: 1;
  transform: scale(1);
}
.mosaic__icon svg { width: 28px; height: 28px; }

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
  background: var(--espresso);
  color: rgba(245,240,235,.85);
  padding-top: clamp(48px, 7vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid rgba(245,240,235,.12);
}
.footer-brand {}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.footer-logo span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 1px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(245,240,235,.55);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 220px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245,240,235,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,235,.65);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .06em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13.5px;
  color: rgba(245,240,235,.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--cream); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: rgba(245,240,235,.65);
}
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--taupe); }
.footer-contact-item a { color: inherit; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--cream); }
.footer-phone { direction: ltr; display: inline-block; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  font-size: 12px;
  color: rgba(245,240,235,.4);
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: rgba(245,240,235,.55);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-ivos {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ======================================================
   PAGE — STUB / GENERIC
   ====================================================== */
.page-stub {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
}
.page-stub h1 { font-size: 24px; font-weight: 600; color: var(--espresso); }

/* ======================================================
   FLASH MESSAGES
   ====================================================== */
.flash {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.flash--success { background: #d1f0e8; color: #1a5c3e; border: 1px solid #a6dfc9; }
.flash--error   { background: #fde8e8; color: #7a1a1a; border: 1px solid #f5b7b7; }
.flash--info    { background: #e8edf5; color: #1a2a5c; border: 1px solid #b7c4f5; }

/* ======================================================
   FORM ELEMENTS
   ====================================================== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--taupe-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--espresso);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.form-input::placeholder { color: rgba(59,42,26,.35); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ======================================================
   BREADCRUMB
   ====================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-block: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--espresso); }
.breadcrumb__sep { color: var(--taupe); }

/* ======================================================
   UTILITY
   ====================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-left  { text-align: left; }
.text-right { text-align: right; }
.mt-auto    { margin-top: auto; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex   { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.inline-flex { display: inline-flex; align-items: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ======================================================
   SEARCH BAR
   ====================================================== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(59,42,26,.5);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  padding-top: 100px;
  justify-content: center;
}
.search-overlay.open { display: flex; }
.search-box {
  width: min(580px, 92vw);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 14px;
  gap: 8px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--espresso);
  background: transparent;
  padding: 10px 0;
  direction: rtl;
}
.search-box input::placeholder { color: rgba(59,42,26,.35); }
.search-box button {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition);
}
.search-box button:hover { background: var(--gold-dark); color: var(--espresso); }

/* ======================================================
   RESPONSIVE — 390px mobile
   ====================================================== */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid   { grid-template-columns: 1fr; }
  .value-item + .value-item::before { display: none; }
  .value-item { border-top: 1px solid var(--border); }
  .value-item:first-child { border-top: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .mosaic { column-count: 3; }
  .header-nav  { display: none; }
  .header-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .categories-split { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 3/2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .mosaic { column-count: 2; }
}

@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .hero { min-height: 380px; }
  .hero__content { padding-block: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card__body { padding: 12px 12px 16px; gap: 8px; }
  .size-chips { gap: 4px; }
  .size-chip { min-width: 28px; height: 24px; font-size: 10px; }
}

@media (max-width: 390px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__cta { flex-direction: column; }
  .btn { padding: 11px 22px; font-size: 13px; }
  .search-box input { font-size: 15px; }
}

/* ======================================================
   SCROLL ANIMATIONS (no-JS fallback: just visible)
   ====================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.in-view {
    opacity: 1;
    transform: none;
  }
  .reveal-delay-1 { transition-delay: .1s; }
  .reveal-delay-2 { transition-delay: .2s; }
  .reveal-delay-3 { transition-delay: .3s; }
  .reveal-delay-4 { transition-delay: .4s; }
}

/* restored 6-category directory (QAT#298) */
.category-directory {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-block: 18px;
}
.category-directory__item {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--espresso);
  color: var(--white);
  isolation: isolate;
}
.category-directory__item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(36, 24, 15, .82), transparent 68%);
}
.category-directory__item img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.category-directory__item:hover img { transform: scale(1.05); }
.category-directory__item span {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-end: 14px;
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 500;
  white-space: nowrap;
}
.category-directory__item svg {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-end: 16px;
  width: 16px;
  height: 16px;
}
/* keep all six categories in one horizontal row; swipeable strip on narrow screens (QAT#312) */
@media (max-width: 640px) {
  .category-directory {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 42%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
  }
  .category-directory__item { scroll-snap-align: start; }
}
