/* ============================================================
   هوشیا — Premium Design System
   RTL · Vazirmatn · Gold/Wine/Cream Palette
   ============================================================ */

/* ── @font-face ────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --white:      #FFFFFF;
  --cream:      #FAF7F2;
  --cream-deep: #F3EDE3;
  --gold:       #C9A84C;
  --gold-light: #E8CC78;
  --gold-dark:  #A88630;
  --wine:       #7B1D2B;
  --wine-dark:  #5E1521;
  --charcoal:   #1A1A1A;
  --body-text:  #2D2D2D;
  --muted:      #6B6560;
  --border:     #E8D9B8;

  --font-fa: 'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;

  /* Type scale — capped */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  2.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(26,26,26,.06);
  --shadow-md:  0 4px 16px rgba(26,26,26,.08);
  --shadow-lg:  0 8px 32px rgba(26,26,26,.12);
  --shadow-gold:0 4px 24px rgba(201,168,76,.18);
  --shadow-card:0 2px 12px rgba(201,168,76,.12), 0 1px 3px rgba(26,26,26,.06);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Transitions */
  --ease: 0.22s cubic-bezier(.4,0,.2,1);

  /* Header height */
  --header-h: 68px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-fa);
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--body-text);
  background: var(--white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

input, textarea, button, select {
  font-family: var(--font-fa);
  font-size: var(--text-base);
}

button { cursor: pointer; border: none; background: none; }

main { min-height: 60vh; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ── Typography helpers ─────────────────────────────────────── */
.gold-text { color: var(--gold); }
.wine-text { color: var(--wine); }
.muted     { color: var(--muted); font-size: var(--text-sm); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7em 1.7em;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  transition: background var(--ease), color var(--ease),
              transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
}
.btn-primary:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123,29,43,.25);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}
.btn-outline:hover {
  background: var(--wine);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-sm   { padding: 0.45em 1.1em; font-size: var(--text-sm); }
.btn-lg   { padding: 0.85em 2em; font-size: var(--text-md); }
.btn-full { width: 100%; justify-content: center; }

/* Add to cart button */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wine);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.45em 1em;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--ease), transform var(--ease);
}
.btn-add-cart:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
}
.btn-add-cart svg { flex-shrink: 0; }

/* Remove button */
.btn-remove {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color var(--ease);
}
.btn-remove:hover { color: var(--wine); }

/* ── Form elements ─────────────────────────────────────────── */
.input-field {
  width: 100%;
  padding: 0.65em 1em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--body-text);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
textarea.input-field { resize: vertical; min-height: 120px; }
.qty-input { width: 72px; text-align: center; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
}
.req { color: var(--wine); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 1em 1.2em;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-5);
  border-right: 4px solid;
}
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-color: #22c55e;
}
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: var(--wine);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--muted);
  padding: var(--sp-4) 0 var(--sp-6);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--charcoal); font-weight: 500; }

/* ── Section base ───────────────────────────────────────────── */
.section {
  padding-block: var(--sp-20);
}
.bg-cream { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
  position: relative;
}
.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: var(--sp-3);
}
.section-sub {
  font-size: var(--text-md);
  color: var(--muted);
  font-weight: 300;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--wine);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: var(--sp-3);
  transition: gap var(--ease);
}
.section-link:hover { gap: var(--sp-3); }

/* ── Page mini hero ─────────────────────────────────────────── */
.page-hero-mini {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-10) 0 var(--sp-8);
  margin-top: var(--header-h);
  text-align: center;
}
.page-hero-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-2);
}
.page-hero-sub {
  color: var(--muted);
  font-size: var(--text-md);
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26,26,26,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--wine);
  letter-spacing: .01em;
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Main nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.main-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  inset-inline: var(--sp-4);
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--ease);
  transform-origin: left;
}
[dir="rtl"] .main-nav a::after { transform-origin: right; }
.main-nav a:hover,
.main-nav a.active { color: var(--wine); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--charcoal);
  transition: background var(--ease), color var(--ease);
}
.action-btn:hover {
  background: var(--cream);
  color: var(--wine);
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--wine);
  color: var(--white);
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Hamburger */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--charcoal);
  transition: background var(--ease);
}
.hamburger:hover { background: var(--cream); }

/* ── Mobile nav ─────────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,.5);
  z-index: 199;
  opacity: 0;
  transition: opacity var(--ease);
}
.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  z-index: 200;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  box-shadow: -4px 0 30px rgba(26,26,26,.15);
  transition: right var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }

.mobile-close {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--cream);
}
.mobile-logo .logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--wine);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.mobile-nav a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  border-right: 3px solid transparent;
  transition: all var(--ease);
}
.mobile-nav a:hover {
  background: var(--cream);
  color: var(--wine);
  border-right-color: var(--gold);
}
.mobile-phone {
  margin-top: auto;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.mobile-phone a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--charcoal);
  font-size: var(--text-sm);
  direction: rtl;
}
.mobile-phone a span { direction: ltr; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(26,26,26,.72) 0%,
    rgba(26,26,26,.45) 50%,
    rgba(26,26,26,.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: var(--sp-16);
}

.hero-text { color: var(--white); }

.hero-tagline {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .1em;
  margin-bottom: var(--sp-4);
  padding: 0.3em 1em;
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 999px;
  background: rgba(201,168,76,.08);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--sp-5);
  color: var(--white);
}

.hero-desc {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-8);
}

.hero-cta-wrap {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Hero product card */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-card {
  position: relative;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(26,26,26,.25), 0 0 0 1px rgba(201,168,76,.3);
  max-width: 340px;
  width: 100%;
  border: 2px solid rgba(201,168,76,.3);
}
.hero-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.hero-product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
}
.hero-product-info span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
}
.hero-product-info strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wine);
}

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  display: block;
}

/* ── Brand strip ─────────────────────────────────────────────── */
.brand-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-8);
}
.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  text-align: center;
}
.brand-strip-text {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: .02em;
}
.brand-ornament svg { display: block; }

/* ── Gold divider ───────────────────────────────────────────── */
.gold-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--sp-6) auto;
}

/* ── Categories grid ────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  background: var(--white);
}
.cat-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.cat-card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-card-img-wrap img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.4) 0%, transparent 50%);
}

.cat-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  background: var(--white);
}
.cat-arrow { color: var(--gold); transition: transform var(--ease); }
.cat-card:hover .cat-arrow { transform: translateX(-4px); }

/* ── Products grid ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-gold), 0 2px 8px rgba(26,26,26,.06);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.product-card-img-link { display: block; }
.product-card-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }

.product-card-body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.product-cat {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-name {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.4;
}
.product-name a { color: var(--charcoal); }
.product-name a:hover { color: var(--wine); }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wine);
}

/* ── Saffron section ────────────────────────────────────────── */
.section-saffron {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.saffron-bg {
  position: absolute;
  inset: 0;
}
.saffron-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.saffron-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.65);
}
.saffron-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-block: var(--sp-16);
}
.saffron-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.saffron-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--sp-5);
}
.saffron-desc {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-8);
  max-width: 600px;
  margin-inline: auto;
}

/* ── Trust strip ─────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.trust-item {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.trust-item:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--cream-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  color: var(--gold);
  border: 1px solid var(--border);
}
.trust-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-2);
}
.trust-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}

/* ── About flex ─────────────────────────────────────────────── */
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.about-img-badge {
  position: absolute;
  bottom: var(--sp-5);
  right: var(--sp-5);
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.about-img-badge .logo-text { font-size: var(--text-lg); color: var(--wine); }
.about-img-badge small { font-size: var(--text-xs); color: var(--muted); }

.about-text { display: flex; flex-direction: column; gap: var(--sp-4); }
.about-text p { font-size: var(--text-md); font-weight: 300; line-height: 1.9; color: var(--body-text); }

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.gallery-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(123,29,43,.0);
  transition: background var(--ease);
}
.gallery-cell:hover img { transform: scale(1.08); }
.gallery-cell:hover .gallery-overlay { background: rgba(123,29,43,.2); }

.gallery-handle {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: .06em;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.8);
  padding-top: var(--sp-12);
}
.footer-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--wine), var(--gold), var(--wine));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-10);
  padding-block: var(--sp-12);
}

.footer-logo { margin-bottom: var(--sp-4); }
.footer-logo .logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gold);
}
.footer-logo .logo-sub { color: rgba(255,255,255,.4); }
.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.85;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--sp-5);
}

.footer-socials {
  display: flex;
  gap: var(--sp-3);
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
  transition: background var(--ease), color var(--ease);
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.footer-links h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--sp-5);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--ease), padding-right var(--ease);
}
.footer-links a:hover { color: var(--gold); padding-right: var(--sp-2); }

.footer-contact h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--sp-5);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  margin-bottom: var(--sp-3);
}
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--gold); }
.footer-address {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}
.footer-trust-badges {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.footer-trust-badges span {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--gold-light);
  padding: 0.25em 0.75em;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 999px;
  background: rgba(201,168,76,.06);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-inner {
  padding-block: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
}

/* ── Shop layout ─────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-10);
  align-items: start;
}

.shop-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  letter-spacing: .04em;
}
.sidebar-cats { display: flex; flex-direction: column; gap: var(--sp-1); }
.sidebar-cats a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  color: var(--body-text);
  border-radius: var(--radius-sm);
  border-right: 3px solid transparent;
  transition: all var(--ease);
}
.sidebar-cats a:hover {
  background: var(--cream);
  color: var(--wine);
  border-right-color: var(--gold);
}
.sidebar-cats a.active {
  background: rgba(123,29,43,.06);
  color: var(--wine);
  font-weight: 600;
  border-right-color: var(--wine);
}

.sidebar-search { display: flex; flex-direction: column; gap: var(--sp-3); }

.empty-state {
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
  color: var(--muted);
}
.empty-state p { font-size: var(--text-lg); margin-bottom: var(--sp-6); }

/* ── Product detail ──────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
  padding-block: var(--sp-10);
}
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.product-detail-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-detail-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--charcoal);
  margin: var(--sp-3) 0 var(--sp-4);
}
.product-desc {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.9;
  color: var(--body-text);
  margin-bottom: var(--sp-6);
}
.product-detail-price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--wine);
  margin-bottom: var(--sp-6);
}
.product-add-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.qty-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.qty-wrap label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
}
.product-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.product-meta li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ── Cart ────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-10);
  align-items: start;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.cart-table th {
  text-align: right;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}
.cart-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-product {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.cart-product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-product a {
  font-weight: 500;
  color: var(--charcoal);
}
.cart-product a:hover { color: var(--wine); }

.cart-summary { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}
.summary-card h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-3);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.summary-row strong { font-weight: 700; font-size: var(--text-md); }
.summary-row.small { font-size: var(--text-xs); color: var(--muted); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.contact-list li svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.contact-list strong { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.contact-list a { font-size: var(--text-sm); color: var(--muted); }
.contact-list a:hover { color: var(--wine); }
.contact-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.contact-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.contact-form { display: flex; flex-direction: column; }

/* ── Account ─────────────────────────────────────────────────── */
.account-layout {
  display: flex;
  justify-content: center;
  padding-block: var(--sp-10);
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-6);
  text-align: center;
}
.auth-form { display: flex; flex-direction: column; }
.auth-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--sp-5);
  line-height: 1.7;
}

/* ── Checkout layout ─────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-10);
  align-items: start;
}
.checkout-section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.checkout-form { display: flex; flex-direction: column; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }

.checkout-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.checkout-item-img img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.checkout-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.checkout-item-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-item-qty { font-size: var(--text-xs); color: var(--muted); }
.checkout-item-price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wine);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Order success ────────────────────────────────────────────── */
.order-success {
  max-width: 520px;
  margin: var(--sp-8) auto;
  text-align: center;
  padding: var(--sp-12) var(--sp-10);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-gold);
}
.order-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  box-shadow: var(--shadow-gold);
}
.order-success-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
}
.order-success-msg {
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: var(--sp-8);
}
.order-success-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Account dashboard ────────────────────────────────────────── */
.account-dashboard { max-width: 560px; }
.account-welcome { margin-bottom: var(--sp-2); }
.account-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}

.orders-heading {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  flex-wrap: wrap;
}
.order-id { font-weight: 700; color: var(--charcoal); display: block; }
.order-date {
  font-size: var(--text-xs);
  color: var(--muted);
  display: block;
  margin-top: 2px;
  direction: ltr;
}
.order-total { font-weight: 700; }
.order-status {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: rgba(201,168,76,.1);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,.25);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid   { grid-template-columns: repeat(3, 1fr); }
  .trust-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .gallery-grid    { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  :root { --text-4xl: 2.25rem; --text-3xl: 1.875rem; }

  .hero-content  { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrap { display: none; }
  .hero-cta-wrap { justify-content: center; }

  .about-flex { grid-template-columns: 1fr; }
  .about-img-wrap { order: -1; }

  .product-detail  { grid-template-columns: 1fr; }
  .cart-layout     { grid-template-columns: 1fr; }
  .contact-layout  { grid-template-columns: 1fr; }
  .shop-layout     { grid-template-columns: 1fr; }
  .shop-sidebar    { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }

  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.375rem;
    --sp-20: 3.5rem;
    --sp-16: 3rem;
    --sp-12: 2.5rem;
  }

  .container { padding-inline: var(--sp-4); }

  .main-nav   { display: none; }
  .hamburger  { display: flex; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .trust-grid      { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer-grid     { grid-template-columns: 1fr; gap: var(--sp-6); }
  .gallery-grid    { grid-template-columns: repeat(3, 1fr); }
  .hero-cta-wrap   { flex-direction: column; }

  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) { display: none; }
  /* CR#795: keep the «تعداد» (quantity) column visible & clear on mobile */
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: table-cell; text-align: center; font-weight: 700; }

  .auth-card { padding: var(--sp-6); }
  .section   { padding-block: var(--sp-12); }
}

@media (max-width: 390px) {
  :root { --text-3xl: 1.375rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .brand-strip-inner { flex-direction: column; gap: var(--sp-4); }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */

.adm-body { background: #f0ede8; min-height: 100vh; }

.adm-layout {
  display: flex;
  flex-direction: row-reverse;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────── */
.adm-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--wine);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.adm-sidebar__brand {
  padding: 1.4rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.adm-brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
}

.adm-brand-fa {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

.adm-brand-tag {
  font-size: 0.68rem;
  opacity: .6;
  margin-top: .15rem;
  letter-spacing: .03em;
}

.adm-nav {
  padding: .6rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.adm-nav__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .85rem;
  border-right: 3px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.adm-nav__item svg { flex-shrink: 0; opacity: .65; }

.adm-nav__item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.adm-nav__item--active {
  background: rgba(201,168,76,.18);
  color: var(--gold);
  border-right-color: var(--gold);
  font-weight: 600;
}

.adm-nav__item--active svg { opacity: 1; }

.adm-sidebar__footer {
  padding: .9rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.adm-sidebar-link {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: .3rem 0;
  transition: color var(--ease);
}

.adm-sidebar-link:hover { color: #fff; }
.adm-sidebar-link--danger:hover { color: #f87171; }

/* ── Main area ───────────────────────────────────────── */
.adm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.adm-topbar {
  background: #fff;
  border-bottom: 1px solid #e8e2d9;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.adm-topbar__title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.adm-topbar__user {
  font-size: .78rem;
  color: var(--text-muted);
}

.adm-content { padding: 1.4rem; flex: 1; }

/* ── Stat cards ──────────────────────────────────────── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.adm-stat {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  border: 1px solid #e8e2d9;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.adm-stat__label { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.adm-stat__value { font-size: 1.7rem; font-weight: 700; color: var(--charcoal); line-height: 1; }
.adm-stat__sub   { font-size: .72rem; color: var(--text-muted); }

.adm-stat--gold .adm-stat__value { color: var(--gold); }
.adm-stat--wine .adm-stat__value { color: var(--wine); }

/* ── Cards ───────────────────────────────────────────── */
.adm-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e8e2d9;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.adm-card__head {
  padding: .85rem 1.25rem;
  border-bottom: 1px solid #f0ede8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adm-card__title { font-size: .875rem; font-weight: 600; color: var(--charcoal); }
.adm-card__body  { padding: 1.25rem; }

/* ── Tables ──────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.adm-table th {
  background: #faf7f2;
  padding: .6rem 1rem;
  text-align: right;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid #e8e2d9;
  white-space: nowrap;
}

.adm-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid #f5f1ec;
  vertical-align: middle;
}

.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: #fdfaf7; }

.adm-table__img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.adm-table__img--placeholder {
  width: 46px;
  height: 46px;
  background: #f0ede8;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--text-muted);
}

/* ── Badges ──────────────────────────────────────────── */
.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .6rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
}

.adm-badge--green  { background: #dcfce7; color: #166534; }
.adm-badge--yellow { background: #fef9c3; color: #854d0e; }
.adm-badge--red    { background: #fee2e2; color: #991b1b; }
.adm-badge--blue   { background: #dbeafe; color: #1e40af; }
.adm-badge--gray   { background: #f1f5f9; color: #475569; }

/* ── Buttons ─────────────────────────────────────────── */
.adm-actions { display: flex; align-items: center; gap: .35rem; }

.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .32rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .76rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: opacity var(--ease), transform var(--ease);
  white-space: nowrap;
}

.adm-btn:hover { opacity: .82; }
.adm-btn:active { transform: scale(.97); }

.adm-btn--primary { background: var(--wine); color: #fff; }
.adm-btn--gold    { background: var(--gold); color: #fff; }
.adm-btn--ghost   { background: #f0ede8; color: var(--charcoal); }
.adm-btn--danger  { background: #fee2e2; color: #991b1b; }
.adm-btn--sm      { padding: .24rem .55rem; font-size: .72rem; }
.adm-btn--lg      { padding: .6rem 1.5rem; font-size: .9rem; }

/* ── Forms ───────────────────────────────────────────── */
.adm-form { display: flex; flex-direction: column; gap: 1rem; }

.adm-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.adm-field { display: flex; flex-direction: column; gap: .3rem; }
.adm-field--full { grid-column: 1 / -1; }

.adm-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--charcoal);
}

.adm-input,
.adm-select,
.adm-textarea {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid #d8d2c8;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-family: inherit;
  background: #fff;
  color: var(--charcoal);
  transition: border-color var(--ease);
  direction: rtl;
  box-sizing: border-box;
}

.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.adm-textarea { resize: vertical; min-height: 110px; }

.adm-img-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid #e8e2d9;
  display: block;
  margin-bottom: .5rem;
}

.adm-field-hint {
  font-size: .72rem;
  color: var(--text-muted);
}

/* ── Toggle switch ───────────────────────────────────── */
.adm-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.adm-toggle input { display: none; }

.adm-toggle__track {
  width: 38px;
  height: 22px;
  background: #d8d2c8;
  border-radius: 999px;
  position: relative;
  transition: background var(--ease);
}

.adm-toggle__track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  right: 3px;
  transition: right var(--ease);
}

.adm-toggle input:checked + .adm-toggle__track {
  background: var(--gold);
}

.adm-toggle input:checked + .adm-toggle__track::after {
  right: calc(100% - 19px);
}

/* ── Alert ───────────────────────────────────────────── */
.adm-alert {
  padding: .7rem 1rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  margin-bottom: 1rem;
}

.adm-alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.adm-alert--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.adm-alert--info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ── Login ───────────────────────────────────────────── */
.adm-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wine) 0%, #5a1520 100%);
  padding: 2rem;
}

.adm-login__box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.adm-login__brand {
  text-align: center;
  margin-bottom: 2rem;
}

.adm-login__brand-fa {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--wine);
  display: block;
  letter-spacing: -.01em;
}

.adm-login__brand-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

.adm-login__divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: .8rem auto 0;
  border-radius: 2px;
}

/* ── Empty state ─────────────────────────────────────── */
.adm-empty {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .adm-sidebar { width: 190px; }
}

@media (max-width: 700px) {
  .adm-layout { flex-direction: column-reverse; }
  .adm-sidebar { width: 100%; height: auto; position: static; }
  .adm-nav     { flex-direction: row; flex-wrap: wrap; padding: .4rem; gap: 2px; }
  .adm-nav__item { border-right: none; border-bottom: 2px solid transparent; padding: .45rem .75rem; }
  .adm-nav__item--active { border-right-color: transparent; border-bottom-color: var(--gold); }
  .adm-form__row { grid-template-columns: 1fr; }
  .adm-content { padding: 1rem; }
}


/* ═══ CR#584 baklava dedicated section + mobile images (2026-08-08) ═══ */
.section-baklava { background: linear-gradient(180deg,#eef8ec 0%,#fdf3e3 100%); border-top:2px solid #2e7d32; border-bottom:2px solid #2e7d32; }
.section-baklava .section-title { color:#1b5e20; }
.section-baklava .section-sub { color:#b26a00; }
.section-baklava .section-link { color:#c0392b; }
.section-baklava .product-card { border:1px solid rgba(192,57,43,.35); box-shadow:0 2px 10px rgba(46,125,50,.08); }
.section-baklava .product-card:hover { border-color:#c0392b; }
.section-baklava .product-price { color:#1b5e20; font-weight:800; }
.product-desc { font-size:.8rem; color:var(--muted); line-height:1.6; margin:.15rem 0 .35rem; }
/* customer: product images must not fill the whole small screen — keep 2 per row on phones */
@media (max-width:390px){ .products-grid { grid-template-columns: repeat(2,1fr) !important; gap:10px !important; } }
@media (max-width:640px){ .section-baklava .product-card-img-wrap, .product-card-img-wrap { aspect-ratio: 1/1; } }

/* ═══ CR: cart icon attention bump when adding to cart (2026-08-23) ═══ */
@keyframes cart-bump {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.4) rotate(-9deg); }
  45%  { transform: scale(0.88) rotate(7deg); }
  70%  { transform: scale(1.18) rotate(-4deg); }
  100% { transform: scale(1); }
}
.cart-btn.cart-bump { animation: cart-bump .55s ease, cart-glow .65s ease; color: var(--wine); }
@media (prefers-reduced-motion: reduce) { .cart-btn.cart-bump { animation: none; } }

/* CR#781: cart-add attention — glow + tooltip (burgundy/gold, no layout shift) */
@keyframes cart-glow {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  40%  { box-shadow: 0 0 16px 5px rgba(201,168,76,.65); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
.cart-btn { position: relative; }
.cart-tip {
  position: absolute; top: 100%; right: 50%; transform: translateX(50%) translateY(4px);
  margin-top: 8px; white-space: nowrap; background: var(--wine); color: var(--gold-light);
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 9px;
  pointer-events: none; opacity: 0; z-index: 80; box-shadow: 0 6px 18px rgba(94,21,33,.28);
  transition: opacity .3s ease, transform .3s ease;
}
.cart-tip.show { opacity: 1; transform: translateX(50%) translateY(0); }
.cart-tip::before {
  content: ''; position: absolute; bottom: 100%; right: 50%; transform: translateX(50%);
  border: 5px solid transparent; border-bottom-color: var(--wine);
}
@media (prefers-reduced-motion: reduce) { .cart-tip { transition: opacity .3s ease; } }

/* CR809: baklava standalone entry banner */
.baklava-banner{position:relative;border-radius:16px;overflow:hidden;margin-top:.6rem;box-shadow:0 8px 30px rgba(0,0,0,.12)}
.baklava-banner-link{display:block;position:relative}
.baklava-banner img{display:block;width:100%;height:clamp(180px,32vw,340px);object-fit:cover}
.baklava-banner::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.4),transparent 58%);pointer-events:none;z-index:1}
.baklava-banner-cta{position:absolute;inset-inline-end:1.2rem;inset-block-end:1.2rem;z-index:2;display:inline-flex;align-items:center;gap:.45rem;background:rgba(27,94,32,.94);color:#fff;font-weight:800;font-size:1.05rem;padding:.7rem 1.4rem;border-radius:12px;box-shadow:0 4px 14px rgba(0,0,0,.28)}
@media(max-width:480px){.baklava-banner-cta{font-size:.92rem;padding:.55rem 1rem;inset-inline-end:.7rem;inset-block-end:.7rem}}
