/* ── Vazirmatn Font ──────────────────────────────────────────────────────────── */
@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-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
  --brand:       #3A6B50;
  --brand-dark:  #1B3A2D;
  --brand-light: #EBF2EE;
  --gold:        #C9A93E;
  --gold-light:  #F5EDD3;
  --ivory:       #F8F5EF;
  --white:       #FFFFFF;
  --charcoal:    #1A1A1A;
  --muted:       #6B7280;
  --border:      #D9E8DF;
  --shadow-sm:   0 1px 4px rgba(58,107,80,.07);
  --shadow-md:   0 4px 20px rgba(58,107,80,.10);
  --shadow-lg:   0 8px 40px rgba(58,107,80,.12);
  --r-sm:        6px;
  --r-md:        12px;
  --r-lg:        20px;
  --transition:  0.3s ease;
  --section-pad: 80px;
}

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

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

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  font-weight: 700;
}
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 34px); }
h3 { font-size: clamp(16px, 2vw, 20px); }
h4 { font-size: 17px; }

.text-muted   { color: var(--muted); }
.text-brand   { color: var(--brand); }
.text-gold    { color: var(--gold); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.fw-500       { font-weight: 500; }
.fw-700       { font-weight: 700; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section-ivory { background: var(--ivory); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-header h2 { color: var(--charcoal); }
.section-header .see-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
  transition: gap var(--transition);
}
.section-header .see-all:hover { gap: 8px; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  transition: box-shadow var(--transition), background-color var(--transition);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 var(--border), 0 10px 32px rgba(27,58,45,.12);
  backdrop-filter: blur(12px);
}

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

/* Brand — right side (RTL start) */
.header-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.header-brand .brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}
.header-brand .brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* Nav — center */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--r-sm);
  transition: all var(--transition);
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 14px;
  left: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.header-nav a:hover,
.header-nav a.active { color: var(--brand); }
.header-nav a:hover::after,
.header-nav a.active::after { transform: scaleX(1); }

/* Actions — left side */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: var(--charcoal);
  background: transparent;
  border: none;
  transition: all var(--transition);
}
.header-btn:hover { background: var(--brand-light); color: var(--brand); }

.cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--brand);
  color: var(--white);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: var(--charcoal);
  background: transparent;
  border: none;
  transition: all var(--transition);
}
.menu-toggle:hover { background: var(--brand-light); color: var(--brand); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.mobile-nav.open { display: block; }
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-header .brand-name { font-size: 16px; font-weight: 700; color: var(--brand); }
.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--brand-light); color: var(--brand); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(58,107,80,.88) 0%,
    rgba(58,107,80,.72) 30%,
    rgba(58,107,80,.1) 60%,
    transparent 100%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-text {
  margin-right: auto;
  max-width: 420px;
  padding: 0 60px 0 0;
  color: var(--white);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Rates Strip ─────────────────────────────────────────────────────────────── */
.rates-strip {
  background: var(--ivory);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.rate-card:hover { box-shadow: var(--shadow-md); }
.rate-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.rate-body { flex: 1; min-width: 0; }
.rate-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.rate-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  direction: ltr;
  text-align: right;
}
.rate-trend {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.rate-trend.up   { color: #16a34a; }
.rate-trend.down { color: #dc2626; }
.rate-trend.flat { color: var(--muted); }

/* ── Product Cards ───────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-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(-2px);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ivory);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-cat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}
.product-meta {
  font-size: 12px;
  color: var(--muted);
}
.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  margin-top: auto;
  padding-top: 8px;
}
.product-footer {
  padding: 0 16px 16px;
}
.product-footer .btn {
  width: 100%;
}

/* ── Gallery ─────────────────────────────────────────────────────────────────── */
.gallery-section { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,58,45,.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-footer {
  text-align: center;
  margin-top: 32px;
}

/* ── Trust Section ───────────────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.trust-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.trust-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin: 0 auto 20px;
}
.trust-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.trust-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.85);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.footer-contact-item svg { flex-shrink: 0; opacity: .7; }
.footer-contact-item a { color: inherit; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }
.footer-contact-item .ltr { direction: ltr; unicode-bidi: isolate; }

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  transition: color var(--transition), padding-right var(--transition);
  display: inline-block;
}
.footer-links a:hover { color: var(--white); padding-right: 4px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer-social-pill {
  min-height: 38px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255,255,255,.75);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
}
.footer-social-pill:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.badge-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-text {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.footer-bottom-text a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-bottom-text a:hover { color: var(--white); }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .65s ease var(--reveal-delay, 0ms),
    transform .65s ease var(--reveal-delay, 0ms),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Page Sections (stubs) ───────────────────────────────────────────────────── */
.page-hero {
  background: var(--ivory);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(20px, 3vw, 30px); color: var(--brand); margin-bottom: 8px; }
.page-hero p  { font-size: 15px; color: var(--muted); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--brand); }
.breadcrumb span { color: var(--muted); }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58,107,80,.1);
}
.form-control::placeholder { color: var(--muted); }

/* ── Auth pages ──────────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--ivory);
}
.auth-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.auth-card h1 {
  font-size: 22px;
  color: var(--brand);
  margin-bottom: 8px;
}
.auth-card p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-info    { background: var(--brand-light); color: var(--brand); border: 1px solid var(--border); }

/* ── Cart ────────────────────────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th,
.cart-table td {
  padding: 14px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cart-table th { font-weight: 600; color: var(--muted); background: var(--ivory); }

/* ── Search overlay ──────────────────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}
.search-overlay.open { display: block; }
.search-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.search-box {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--charcoal);
  direction: rtl;
}

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.d-none { display: none !important; }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.gap-2 { gap: 8px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ── Shop Filters ────────────────────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: var(--section-pad) 0;
}
.filters-sidebar {
  flex-shrink: 0;
}
.filter-group { margin-bottom: 28px; }
.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--charcoal);
  cursor: pointer;
  transition: color var(--transition);
}
.filter-item:hover { color: var(--brand); }
.filter-item input { accent-color: var(--brand); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shop-layout   { grid-template-columns: 200px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 48px; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    height: 64px;
    gap: 8px;
  }
  .header-brand {
    grid-column: 1;
    min-width: 0;
    max-width: 100%;
  }
  .header-brand > div:last-child {
    min-width: 0;
  }
  .header-brand .brand-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.35;
  }
  .header-brand .brand-sub { display: none; }
  .header-nav  { display: none; }
  .header-actions {
    grid-column: 2;
    flex-shrink: 0;
    gap: 2px;
  }
  .header-btn,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .header-actions .btn-sm {
    padding: 7px 12px;
  }
  .menu-toggle { display: flex; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rates-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-grid  { grid-template-rows: 200px 200px; gap: 10px; }
  .trust-grid    { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid  { grid-template-columns: 1fr !important; gap: 36px !important; }
  .shop-layout   { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }

  .hero { height: 460px; }
  .hero-text { max-width: 100%; padding: 0 24px; }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(58,107,80,.2) 0%,
      rgba(58,107,80,.75) 60%,
      rgba(58,107,80,.88) 100%
    );
  }
  .hero-content { align-items: flex-end; padding-bottom: 40px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 36px; }
  .container { padding: 0 16px; }
  .hero { height: 420px; }
  .hero-title { font-size: 22px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rates-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rate-card { padding: 12px 14px; gap: 10px; }
  .rate-value { font-size: 13px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 200px); }
  .trust-card { padding: 24px 16px; }
  .auth-card { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .about-grid-inner,
  .product-detail-grid { grid-template-columns: 1fr !important; }
  .about-grid-inner img { height: 260px !important; }
}

@media (max-width: 390px) {
  .header-brand { gap: 8px; }
  .header-brand .brand-icon {
    width: 34px;
    height: 34px;
  }
  .header-brand .brand-name { font-size: 14px; }
  .header-btn,
  .menu-toggle {
    width: 34px;
    height: 34px;
  }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 12px; }
  .product-footer { padding: 0 12px 12px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 14px; }
  .product-footer .btn { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 6px; }
  .header-brand { gap: 6px; }
  .header-brand .brand-icon {
    width: 30px;
    height: 30px;
  }
  .header-brand .brand-name { font-size: 13px; }
  .header-btn,
  .menu-toggle {
    width: 32px;
    height: 32px;
  }
  .header-actions .btn-sm {
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* ── Mobile filter tabs (shop) ───────────────────────────────────────────────── */
.filter-tabs-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  display: none;
}
.filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-tab:hover  { border-color: var(--brand); color: var(--brand); }
.filter-tab.active { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--border);
  transition: all var(--transition);
  padding: 0 8px;
}
.page-btn:hover  { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.page-btn.active { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* ── Product detail layout ───────────────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

/* ── Product gallery ─────────────────────────────────────────────────────────── */
.product-gallery {
  position: sticky;
  top: 84px;
}
.product-main-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ivory);
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.35s ease;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.thumb-btn {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--ivory);
  aspect-ratio: 1;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn:hover { border-color: var(--brand); }
.thumb-btn.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* ── Product info column ─────────────────────────────────────────────────────── */
.product-cat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}
.product-detail-title {
  font-size: clamp(18px, 2.5vw, 26px);
  margin-bottom: 10px;
  color: var(--charcoal);
}
.product-detail-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.product-detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 20px;
}
.product-detail-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

/* ── Size selector ───────────────────────────────────────────────────────────── */
.size-selector-wrap { margin-bottom: 24px; }
.size-selector-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-option {
  position: relative;
  cursor: pointer;
}
.size-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.size-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.size-option:hover span { border-color: var(--brand); color: var(--brand); }
.size-option input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  font-weight: 700;
}

/* ── Quantity stepper + add-to-cart row ──────────────────────────────────────── */
.qty-add-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 40px;
  height: 44px;
  border: none;
  background: var(--ivory);
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.qty-btn:hover { background: var(--brand-light); color: var(--brand); }
.qty-input {
  width: 56px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: 0;
  padding: 0;
}
.qty-input:focus { box-shadow: none; border-color: var(--border); }

/* ── Product trust badges ────────────────────────────────────────────────────── */
.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.product-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Checkout layout ─────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.order-summary-box {
  background: var(--ivory);
  border-radius: var(--r-md);
  padding: 24px;
  position: sticky;
  top: 84px;
}
.order-summary-box h3 {
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.order-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}
.order-total-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
}

/* ── Responsive additions ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .filter-tabs-wrap  { display: block; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery   { position: static; }
  .checkout-layout   { grid-template-columns: 1fr; }
  .order-summary-box { position: static; }
}
@media (max-width: 480px) {
  .qty-add-row   { flex-direction: column; align-items: stretch; }
  .qty-wrap      { justify-content: center; }
  .size-grid .size-option span { width: 44px; height: 38px; font-size: 12px; }
}
