/* ── Fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ── Reset / Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:      #F5F0E8;
  --ivory-mid:  #EDE7DA;
  --latte:      #B8865A;
  --latte-dark: #9A6E45;
  --latte-light:#D4A97C;
  --navy:       #1B2A4A;
  --navy-mid:   #2C3E66;
  --white:      #FFFFFF;
  --gray-50:    #FAFAFA;
  --gray-100:   #F0EDE8;
  --gray-300:   #C8BFB4;
  --gray-500:   #8A7E74;
  --gray-700:   #4A3F36;
  --shadow-sm:  0 1px 4px rgba(27,42,74,.06);
  --shadow-md:  0 4px 16px rgba(27,42,74,.10);
  --shadow-lg:  0 8px 32px rgba(27,42,74,.14);
  --shadow-xl:  0 16px 48px rgba(27,42,74,.16);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:999px;
  --transition: .22s ease;
  --font:       'Vazirmatn', Tahoma, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ivory);
  color: var(--navy);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select {
  font-family: var(--font);
  font-size: inherit;
  direction: rtl;
}
ul, ol { list-style: none; }

/* ── Typography scale ────────────────────────────────────────────────────── */
.t-hero    { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.3; }
.t-h1      { font-size: clamp(1.5rem, 2.8vw, 2rem);   font-weight: 700; line-height: 1.35; }
.t-h2      { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.4; }
.t-h3      { font-size: clamp(1.05rem, 1.8vw, 1.25rem);font-weight: 500; line-height: 1.5; }
.t-body    { font-size: .975rem; line-height: 1.75; }
.t-sm      { font-size: .85rem;  line-height: 1.6; }
.t-xs      { font-size: .75rem;  line-height: 1.5; }
.t-latte   { color: var(--latte); }
.t-navy    { color: var(--navy); }
.t-muted   { color: var(--gray-500); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--latte);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--latte-dark);
  box-shadow: 0 4px 20px rgba(184,134,90,.35);
  transform: translateY(-1px);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--latte);
  border: 1.5px solid var(--latte);
}
.btn-outline:hover {
  background: var(--latte);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  box-shadow: 0 4px 20px rgba(27,42,74,.25);
  transform: translateY(-1px);
  color: var(--white);
}
.btn-view-collection {
  background: var(--navy);
  border-color: var(--navy);
}
.btn-view-collection:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  box-shadow: 0 4px 20px rgba(27,42,74,.25);
}
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-mid);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo span { color: var(--latte); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--navy);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--latte); background: rgba(184,134,90,.08); }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}
.header-btn:hover { background: var(--ivory-mid); color: var(--latte); }

.cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--latte);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.category-toggle[aria-expanded="true"] { background: var(--ivory-mid); color: var(--latte); }

.category-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 95;
  padding: 14px 0;
  background: rgba(245,240,232,.96);
  border-bottom: 1px solid var(--ivory-mid);
  box-shadow: var(--shadow-lg);
}
.category-menu.open { display: block; }
.category-menu-panel {
  max-width: 760px;
  margin-right: auto;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--ivory-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
}
.category-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ivory-mid);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}
.category-menu-head a {
  font-size: .78rem;
  font-weight: 500;
  color: var(--latte);
}
.category-tree {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.category-tree li { min-width: 0; }
.category-tree a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: .88rem;
}
.category-tree a:hover,
.category-tree a:focus-visible {
  background: rgba(184,134,90,.08);
  color: var(--latte);
  outline: none;
}
.category-tree ul {
  margin: 2px 14px 8px 0;
  padding-right: 10px;
  border-right: 1px solid var(--ivory-mid);
}
.category-tree ul a {
  min-height: 32px;
  padding: 6px 8px;
  color: var(--gray-700);
  font-size: .82rem;
}
.category-menu-empty {
  padding: 18px;
  color: var(--gray-500);
  font-size: .88rem;
}

.menu-toggle { display: none; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 200;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--ivory-mid);
}
.mobile-nav a:hover { color: var(--latte); background: rgba(184,134,90,.05); }

/* Search bar */
.search-bar {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--white);
  border-bottom: 1px solid var(--ivory-mid);
  box-shadow: var(--shadow-md);
  padding: 16px 24px;
  z-index: 90;
}
.search-bar.open { display: block; }
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--ivory-mid);
  border-radius: var(--radius-full);
  background: var(--ivory);
  outline: none;
  font-size: .95rem;
}
.search-input:focus { border-color: var(--latte); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.hero-content {
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px 64px 32px;
  gap: 20px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--latte);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--latte);
}
.hero-title { color: var(--navy); }
.hero-sub   { color: var(--gray-500); font-size: 1rem; max-width: 380px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,240,232,.15) 0%, transparent 60%);
}

/* ── Section label ───────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--latte);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 { color: var(--navy); }
.section-header p  { color: var(--gray-500); margin-top: 10px; font-size: .95rem; max-width: 500px; margin-inline: auto; }

/* ── Category cards ─────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  display: block;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--navy);
}
.cat-card-img {
  aspect-ratio: 1;
  overflow: hidden;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-label {
  padding: 12px 8px 14px;
  font-size: .88rem;
  font-weight: 500;
}

/* ── Products grid ───────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--latte);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
}
.product-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card-name {
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}
.product-card-price {
  font-size: .92rem;
  font-weight: 700;
  color: var(--latte);
  margin-top: auto;
}
.product-card-actions {
  padding: 0 18px 18px;
}
.product-card-actions .btn { width: 100%; }

/* ── Features strip ──────────────────────────────────────────────────────── */
.features-bg {
  background: var(--ivory-mid);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 20px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--latte);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.feature-title { font-size: .95rem; font-weight: 700; color: var(--navy); }
.feature-desc  { font-size: .82rem; color: var(--gray-500); line-height: 1.5; }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials-bg { background: var(--white); }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 3px; color: var(--latte); }
.stars svg { fill: var(--latte); }
.testimonial-body {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.7;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--ivory-mid);
  padding-top: 14px;
  margin-top: 4px;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--latte);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-size: .88rem; font-weight: 500; color: var(--navy); }

/* ── Instagram / Gallery mosaic ──────────────────────────────────────────── */
.gallery-bg { background: var(--ivory); }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.insta-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition);
}
.insta-item:hover img { transform: scale(1.08); }
.insta-item:hover .insta-overlay { background: rgba(27,42,74,.30); }
.insta-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* ── About teaser ────────────────────────────────────────────────────────── */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-teaser.reverse { direction: ltr; }
.about-teaser.reverse > * { direction: rtl; }
.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text h2 { color: var(--navy); }
.about-text p  { color: var(--gray-500); font-size: .95rem; line-height: 1.8; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  display: block;
}
.footer-logo span { color: var(--latte); }
.footer-desc {
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(255,255,255,.60);
  margin-bottom: 20px;
}
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.70);
}
.footer-contact-item svg { color: var(--latte); flex-shrink: 0; }
.footer-col h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .86rem;
  color: rgba(255,255,255,.60);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--latte); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-credit { font-size: .78rem; color: var(--latte); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--latte); }
.breadcrumb-sep { color: var(--gray-300); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label { font-size: .88rem; font-weight: 500; color: var(--navy); }
.form-control {
  padding: 11px 14px;
  border: 1.5px solid var(--ivory-mid);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: .95rem;
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-control:focus {
  border-color: var(--latte);
  box-shadow: 0 0 0 3px rgba(184,134,90,.12);
}
.form-control::placeholder { color: var(--gray-300); }

/* ── Alert ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 600;
}
.badge-latte { background: rgba(184,134,90,.12); color: var(--latte); }
.badge-navy  { background: rgba(27,42,74,.10); color: var(--navy); }
.badge-green { background: #f0fdf4; color: #166534; }

/* ── Page banner ─────────────────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
}
.page-banner h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; color: var(--white); }
.page-banner .breadcrumb { justify-content: center; color: rgba(255,255,255,.6); }
.page-banner .breadcrumb a { color: rgba(255,255,255,.6); }
.page-banner .breadcrumb a:hover { color: var(--latte); }

/* ── Cart / Checkout ──────────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--ivory-mid);
  font-size: .92rem;
}
.cart-table th { font-weight: 600; color: var(--navy); background: var(--ivory); }
.cart-table td { color: var(--gray-700); }
.cart-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ── Qty controls ────────────────────────────────────────────────────────── */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--ivory-mid);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  border: none;
  cursor: pointer;
  color: var(--navy);
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--ivory-mid); }
.qty-val {
  width: 36px;
  text-align: center;
  border: none;
  background: var(--white);
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
  outline: none;
}

/* ── Order summary box ───────────────────────────────────────────────────── */
.order-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.order-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; color: var(--navy); }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ivory-mid);
  color: var(--gray-700);
}
.summary-row.total {
  border-bottom: none;
  padding-top: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-top: 1.5px solid var(--ivory-mid);
  margin-top: 6px;
}
.summary-total-price { color: var(--latte); }

/* ── Account ─────────────────────────────────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.account-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: .9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--ivory-mid);
  transition: all var(--transition);
}
.account-nav a:hover, .account-nav a.active {
  color: var(--latte);
  background: rgba(184,134,90,.05);
}
.account-nav a:last-child { border-bottom: none; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--ivory-mid);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
  gap: 16px;
  user-select: none;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--ivory-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--latte);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--latte); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--gray-500);
  font-size: .9rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 18px; }

/* ── Blog cards ──────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card-meta { font-size: .78rem; color: var(--gray-500); }
.blog-card-title { font-size: .95rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.blog-card-excerpt { font-size: .85rem; color: var(--gray-500); line-height: 1.65; flex: 1; }
.blog-card-link { font-size: .85rem; color: var(--latte); font-weight: 500; margin-top: auto; }

/* ── Gallery page ────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ── Track order ─────────────────────────────────────────────────────────── */
.track-box {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.track-steps { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.track-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
}
.track-step::after {
  content: '';
  position: absolute;
  right: 17px;
  top: 34px;
  width: 2px;
  height: calc(100% - 34px);
  background: var(--ivory-mid);
}
.track-step:last-child::after { display: none; }
.track-step-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--ivory-mid);
  border: 2px solid var(--ivory-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  flex-shrink: 0;
}
.track-step.done .track-step-dot {
  background: var(--latte);
  border-color: var(--latte);
  color: var(--white);
}
.track-step.active .track-step-dot {
  background: var(--white);
  border-color: var(--latte);
  color: var(--latte);
}
.track-step-info h5 { font-size: .92rem; font-weight: 600; color: var(--navy); }
.track-step-info p  { font-size: .82rem; color: var(--gray-500); margin-top: 2px; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(184,134,90,.1);
  color: var(--latte);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-text h5 { font-size: .92rem; font-weight: 600; color: var(--navy); }
.contact-info-text p  { font-size: .88rem; color: var(--gray-500); margin-top: 2px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 280px; }
  .hero-content { padding: 48px 32px; }
  .about-teaser { grid-template-columns: 1fr; gap: 36px; }
  .testimonials-track { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .category-menu { padding: 10px 0; }
  .category-menu-panel { max-width: none; max-height: calc(100vh - 92px); overflow: auto; padding: 14px; }
  .category-tree { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 40px 20px; }
  .hero-title { font-size: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-item.large { grid-column: span 1; grid-row: span 1; }
  .track-box { padding: 24px 16px; }
}

@media (max-width: 390px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-latte  { color: var(--latte); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--gray-500); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.w-full { width: 100%; }
.rounded-full { border-radius: 9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.divider { border: none; border-top: 1px solid var(--ivory-mid); margin: 24px 0; }
.sticky-top { position: sticky; top: 90px; }

/* ── Product detail layout ───────────────────────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 24px;
}
.product-info { display: flex; flex-direction: column; gap: 20px; }
.product-name { font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--latte); }
.product-desc { font-size: .9rem; color: var(--gray-500); line-height: 1.8; }

/* ── Product gallery ─────────────────────────────────────────────────────── */
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--latte); }
.gallery-thumb:hover  { border-color: var(--latte-light); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Size selector ───────────────────────────────────────────────────────── */
.size-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--ivory-mid);
  font-size: .85rem;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
  transition: all var(--transition);
  font-family: var(--font);
}
.size-chip:hover  { border-color: var(--latte); color: var(--latte); }
.size-chip.active { border-color: var(--latte); background: var(--latte); color: var(--white); }

/* ── Auth card ───────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 440px;
  margin: 0 auto;
}
.auth-card-title    { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.auth-card-subtitle { font-size: .88rem; color: var(--gray-500); margin-bottom: 28px; }

/* ── Account dashboard ───────────────────────────────────────────────────── */
.account-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.account-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ivory-mid);
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--latte);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.account-welcome-name  { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.account-welcome-email { font-size: .85rem; color: var(--gray-500); margin-top: 2px; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--ivory-mid);
  font-size: .88rem;
}
.orders-table th { font-weight: 600; color: var(--navy); background: var(--ivory); }
.orders-table td { color: var(--gray-700); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 80px 0; }
.not-found-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--ivory-mid);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}
.not-found h2   { font-size: 1.4rem; color: var(--navy); margin-bottom: 12px; }
.not-found p    { color: var(--gray-500); margin-bottom: 32px; font-size: .95rem; }
.not-found-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Cart toast (CR #876) ─────────────────────────────────────────────────── */
.cart-toast{
  position:fixed;
  inset-block-start:88px;
  inset-inline-end:20px;
  z-index:1200;
  display:flex;
  align-items:center;
  gap:10px;
  max-width:min(92vw,380px);
  padding:13px 16px;
  border-radius:var(--radius-md);
  background:var(--navy);
  color:var(--white);
  box-shadow:var(--shadow-lg);
  font-family:var(--font);
  font-size:.92rem;
  font-weight:600;
  line-height:1.7;
  animation:cart-toast-in .26s ease-out both;
}
.cart-toast svg{width:22px;height:22px;flex:none;color:var(--latte-light)}
.cart-toast span{flex:1;min-width:0}
.cart-toast--info{background:var(--navy-mid)}
.cart-toast__close{
  flex:none;width:26px;height:26px;
  display:grid;place-items:center;
  border:0;border-radius:var(--radius-full);
  background:rgba(255,255,255,.14);
  color:var(--white);
  font-size:17px;line-height:1;cursor:pointer;
  transition:background var(--transition);
}
.cart-toast__close:hover{background:rgba(255,255,255,.28)}
.cart-toast.is-leaving{animation:cart-toast-out .25s ease-in both}
@keyframes cart-toast-in{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
@keyframes cart-toast-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-12px)}}
@media(max-width:600px){
  .cart-toast{inset-block-start:auto;inset-block-end:16px;inset-inline:16px;max-width:none}
  @keyframes cart-toast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  @keyframes cart-toast-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(12px)}}
}
@media(prefers-reduced-motion:reduce){.cart-toast,.cart-toast.is-leaving{animation:none}}
