/* ═══════════════════════════════════════════════════════
   Yalda Gold Gallery — Premium Design System
   RTL · Vazirmatn · Olive-Green × Gold
   ═══════════════════════════════════════════════════════ */

/* ── Font Face ──────────────────────────────────────── */
@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;
}

/* ── Custom Properties ──────────────────────────────── */
:root {
  --green:      #3a7d44;
  --green-dark: #2d6235;
  --green-light:#4e9a5a;
  --green-bg:   #eef5ef;
  --gold:       #c9a227;
  --gold-dark:  #a8881e;
  --champagne:  #f0d472;
  --white:      #ffffff;
  --cream:      #faf7f2;
  --cream-dark: #f2ece4;
  --text:       #1c1c1c;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --border:     #e8e4dd;
  --footer-bg:  #1a1a1a;
  --footer-text:#b0b0b0;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.14);
  --shadow-card:0 4px 20px rgba(0,0,0,.07);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-pill:999px;

  --transition: .25s ease;
  --font:       'Vazirmatn', Tahoma, 'Arial', sans-serif;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: 0 2px 10px rgba(58,125,68,.35);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .brand-fa {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}
.logo-text .brand-lat {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .5px;
  direction: ltr;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--green-bg);
  color: var(--green);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-actions .icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.header-actions .icon-btn:hover { background: var(--green-bg); color: var(--green); }
.header-actions .icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge.pulse { animation: badge-pulse .6s ease; }
@keyframes badge-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

/* Mobile menu button */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
}
.menu-btn:hover { background: var(--green-bg); color: var(--green); }
.menu-btn svg { width: 22px; height: 22px; }

/* Search bar (overlay) */
.search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.search-bar.open { display: block; }
.search-bar form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
  direction: rtl;
}
.search-bar input:focus { border-color: var(--green); }
.search-bar button[type=submit] {
  padding: 10px 22px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
}
.search-bar button[type=submit]:hover { background: var(--green-dark); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 998;
  overflow-y: auto;
  padding: 24px 0;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu a {
  display: block;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--cream);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu a:hover { background: var(--green-bg); color: var(--green); }

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 80vh;
  min-height: 460px;
  max-height: 840px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: scale(1.03);
  transition: transform 6s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to left,
    rgba(30,65,35,.88) 0%,
    rgba(30,65,35,.82) 40%,
    rgba(30,65,35,.45) 65%,
    rgba(0,0,0,.05) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-text {
  max-width: 580px;
  text-align: right;
  padding-right: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,.18);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--champagne);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  letter-spacing: .3px;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--champagne);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease infinite;
}
.hero-title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -.3px;
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--green);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(58,125,68,.4);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58,125,68,.5);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--champagne);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  border: 2px solid rgba(240,212,114,.6);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: rgba(240,212,114,.12);
  border-color: var(--champagne);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════
   GOLD PRICE TICKER
   ══════════════════════════════════════════════════════ */
.price-ticker {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}
.ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 90px;
}
.ticker-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border-left: 1px solid var(--cream-dark);
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
}
.ticker-countdown .live-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}
#price-countdown {
  display: inline-block;
  min-width: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  direction: ltr;
  text-align: center;
}
.ticker-prices {
  display: flex;
  flex: 1;
  align-items: stretch;
}
.price-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-left: 1px solid var(--cream-dark);
  text-align: center;
  gap: 4px;
  transition: background var(--transition);
}
.price-card:last-child { border-left: none; }
.price-card:hover { background: rgba(201,162,39,.06); }
.price-label {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}
.price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  direction: rtl;
}
.price-unit {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   CATEGORY ICON ROW
   ══════════════════════════════════════════════════════ */
.cat-section {
  padding: 52px 0;
  background: var(--white);
}
.cat-section-title {
  text-align: right;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green-bg);
  position: relative;
}
.cat-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.cat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 80px;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition);
}
.cat-tile:hover { transform: translateY(-5px); }
.cat-icon-wrap {
  width: 68px;
  height: 68px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: background var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.cat-icon-wrap svg { width: 28px; height: 28px; }
.cat-tile:hover .cat-icon-wrap {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(58,125,68,.3);
}
.cat-tile:focus-visible .cat-icon-wrap {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.cat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.cat-tile:hover .cat-label { color: var(--green); }

/* ══════════════════════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════════════════════ */
.products-section {
  padding: 52px 0 64px;
  background: var(--cream);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition), opacity var(--transition);
}
.section-link:hover { gap: 9px; opacity: .8; }
.section-link svg { width: 16px; height: 16px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.product-img-wrap {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
  background: var(--cream);
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-cat {
  font-size: 12px;
  color: var(--text-light);
  background: var(--cream);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}
.product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  direction: rtl;
}
.product-price span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-cart:hover { background: var(--green-dark); transform: scale(1.04); }
.btn-cart svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════
   ABOUT STRIP
   ══════════════════════════════════════════════════════ */
.about-strip {
  background: var(--green);
  padding: 80px 0;
  overflow: hidden;
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-image-wrap {
  flex-shrink: 0;
  width: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.about-strip:hover .about-image-wrap img { transform: scale(1.03); }
.about-text {
  flex: 1;
  color: var(--white);
  text-align: right;
}
.about-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--champagne);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.about-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--white);
}
.about-desc {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  line-height: 1.9;
  margin-bottom: 28px;
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════
   TRUST ROW
   ══════════════════════════════════════════════════════ */
.trust-section {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.trust-icon {
  width: 68px;
  height: 68px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.trust-icon svg { width: 30px; height: 30px; }
.trust-item:hover .trust-icon { border-color: var(--green); color: var(--green); }
.trust-caption { font-size: 13px; font-weight: 500; }
.trust-sub { font-size: 11px; color: var(--text-light); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-mark { background: rgba(255,255,255,.1); color: var(--champagne); }
.footer-brand .brand-fa  { color: var(--white); }
.footer-brand .brand-lat { color: var(--gold); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--footer-text);
  margin-top: 14px;
}
.footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--champagne);
  font-size: 15px;
  font-weight: 600;
  direction: ltr;
}
.footer-brand .footer-phone svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col ul li + li { margin-top: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--footer-text);
  transition: color var(--transition), padding-right var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .6;
}
.footer-col ul a:hover { color: var(--champagne); padding-right: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--footer-text);
  margin-bottom: 12px;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.footer-contact-item a { color: var(--champagne); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.social-link:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.social-link svg { width: 18px; height: 18px; }

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--champagne); }

/* ══════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
   ══════════════════════════════════════════════════════ */
.page-header {
  background: var(--green);
  padding: 48px 0;
  color: var(--white);
}
.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--champagne); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ══════════════════════════════════════════════════════
   GENERAL SECTIONS
   ══════════════════════════════════════════════════════ */
.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 40px 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Flash messages */
.flash-msg {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 15px;
  font-weight: 500;
}
.flash-msg.success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.flash-msg.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-msg.info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Toast */
#site-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--footer-bg);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  white-space: nowrap;
}
#site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(58,125,68,.12); }
.form-control::placeholder { color: var(--text-light); }

/* Buttons (general) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(58,125,68,.35); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-bg); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: .4; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* Quantity input */
.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--green-bg); color: var(--green); }
.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  padding: 0;
  height: 36px;
  outline: none;
  direction: ltr;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination a:hover { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); color: var(--white); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-image-wrap { width: 320px; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .menu-btn { display: flex; }
  .hero { height: 70vh; min-height: 360px; }
  .hero-title { font-size: 30px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about-inner { flex-direction: column; gap: 32px; }
  .about-image-wrap { width: 100%; }
  .about-image-wrap img { height: 220px; }
  .ticker-inner { flex-wrap: wrap; min-height: auto; }
  .ticker-countdown { padding: 10px 16px; border-left: none; border-bottom: 1px solid var(--cream-dark); width: 100%; }
  .ticker-prices { flex-wrap: wrap; }
  .price-card { flex: 1; min-width: 80px; padding: 12px 8px; }
  .price-value { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .trust-row { gap: 32px; }
  .cat-row { gap: 8px; }
  .cat-icon-wrap { width: 56px; height: 56px; }
  .cat-icon-wrap svg { width: 24px; height: 24px; }
  .cat-label { font-size: 12px; }
}

@media (max-width: 390px) {
  .container { padding: 0 16px; }
  .hero { height: 85vh; }
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 15px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 14px; }
  .btn-cart { padding: 8px 12px; font-size: 12px; }
  .cat-row { gap: 4px; }
  .cat-tile { min-width: 64px; }
  .cat-icon-wrap { width: 50px; height: 50px; }
  .trust-row { flex-direction: column; gap: 24px; }
}

/* ══════════════════════════════════════════════════════
   FLASH BAR
   ══════════════════════════════════════════════════════ */
.flash-bar {
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.flash-success { background: #166534; color: #fff; }
.flash-error   { background: #991b1b; color: #fff; }

/* ══════════════════════════════════════════════════════
   PRODUCT DETAIL
   ══════════════════════════════════════════════════════ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 88px; }
.gallery-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream);
  aspect-ratio: 1;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease;
}
.gallery-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumb {
  flex: 1;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--cream);
  transition: border-color var(--transition);
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--green); }

/* Product info */
.product-cat-lg {
  display: inline-block;
  margin-bottom: 10px;
}
.product-info-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}
.product-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.badge-gold {
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}
.badge-trust {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}
.product-info-price {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 28px;
  direction: rtl;
}
.product-info-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Option groups */
.product-option-group { margin-bottom: 22px; }
.option-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Size pills */
.size-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-pill { position: relative; }
.size-pill input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.size-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.size-pill input:checked + span {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}
.size-pill span:hover { border-color: var(--green-light); }

/* Qty control */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 44px;
}
.qty-control .qty-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.qty-control .qty-btn:hover { background: var(--green-bg); color: var(--green); }
.qty-display {
  min-width: 52px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
}

/* Actions */
.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Features list */
.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ══════════════════════════════════════════════════════
   AUTH TABS & CARD
   ══════════════════════════════════════════════════════ */
.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 5px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.auth-tab.active {
  background: var(--white);
  color: var(--green);
  box-shadow: var(--shadow-sm);
}
.auth-tab:not(.active):hover { color: var(--text); }
.auth-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.auth-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════
   CHECKOUT GRID
   ══════════════════════════════════════════════════════ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — NEW COMPONENTS
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .product-info-title { font-size: 22px; }
  .product-info-price { font-size: 24px; }
}


/* #247 top rate bar */
.top-rate-bar{background:linear-gradient(90deg,#D4AF37,#b8860b);color:#1a1a1a;text-align:center;padding:7px 12px;font-size:.9rem;font-weight:700;letter-spacing:.01em}
.top-rate-bar strong{color:#000}

/* out-of-stock (CR#784) */
.btn-soldout{background:#e6e6e6!important;color:#8a8a8a!important;border-color:#dcdcdc!important;cursor:not-allowed!important;pointer-events:none;opacity:.9;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center}
