/* ═══════════════════════════════════════════════════════
   Decotehran — Premium Design System
   Palette: #1B4D3E primary · #C89241 accent · #F8F6F1 cream
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --c-primary:       #1B4D3E;
  --c-primary-dk:    #163e31;
  --c-primary-lt:    #256650;
  --c-accent:        #C89241;
  --c-accent-lt:     #d9a85a;
  --c-accent-dk:     #a87630;
  --c-cream:         #F8F6F1;
  --c-cream-dk:      #EDE9DF;
  --c-charcoal:      #2D2D2D;
  --c-mid:           #6B7280;
  --c-light:         #9CA3AF;
  --c-border:        #DDD8CE;
  --c-white:         #FFFFFF;

  --shadow-xs:  0 1px 4px rgba(27,77,62,.07);
  --shadow-sm:  0 2px 10px rgba(27,77,62,.09);
  --shadow-md:  0 4px 24px rgba(27,77,62,.12);
  --shadow-lg:  0 8px 40px rgba(27,77,62,.16);
  --shadow-xl:  0 16px 64px rgba(27,77,62,.20);

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --nav-h:      72px;
  --container:  1200px;
  --gap:        clamp(1rem, 3vw, 2rem);
}

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

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-charcoal);
  background: var(--c-cream);
  direction: rtl;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--c-primary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  direction: rtl;
}

/* ── Container ──────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}
.container-wide {
  width: min(1400px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.625rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p  { margin-block: .5em; }

.text-primary  { color: var(--c-primary); }
.text-accent   { color: var(--c-accent); }
.text-mid      { color: var(--c-mid); }
.text-white    { color: var(--c-white); }
.text-center   { text-align: center; }
.fw-bold       { font-weight: 700; }
.fw-extra      { font-weight: 800; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7em 1.75em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  transition: all .22s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-dk);
  border-color: var(--c-primary-dk);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: var(--c-accent);
}
.btn-accent:hover {
  background: var(--c-accent-dk);
  border-color: var(--c-accent-dk);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200,146,65,.35);
}
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--c-white);
  color: var(--c-white);
}
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-ghost:hover {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-sm { padding: .45em 1.1em; font-size: .875rem; }
.btn-lg { padding: .85em 2.25em; font-size: 1.05rem; }

/* ── Stars ───────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.star--on  { color: var(--c-accent); }
.star--off { color: var(--c-border); }

/* ── Section Anatomy ─────────────────────────────────── */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-bg-cream  { background: var(--c-cream); }
.section-bg-white  { background: var(--c-white); }
.section-bg-primary{ background: var(--c-primary); color: var(--c-white); }
.section-bg-dark   { background: #1a1a1a; color: var(--c-white); }

.section-head { text-align: center; margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow {
  display: inline-block;
  color: var(--c-accent);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-block-end: .5rem;
}
.section-head h2 { color: var(--c-charcoal); }
.section-head p  { color: var(--c-mid); max-width: 52ch; margin-inline: auto; margin-block-start: .5rem; }
.section-bg-primary .section-head h2 { color: var(--c-white); }
.section-bg-primary .section-head p  { color: rgba(255,255,255,.75); }

/* ── Divider ─────────────────────────────────────────── */
.divider {
  width: 48px; height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  margin: .75rem auto 0;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-primary);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: .01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .125rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: var(--radius-xs);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--c-white);
  background: rgba(255,255,255,.1);
}
.nav-link.active {
  color: var(--c-accent);
}

/* Phone */
.nav-phone {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: var(--c-accent);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: .4rem .75rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(200,146,65,.4);
  transition: background .2s, border-color .2s;
  text-decoration: none;
}
.nav-phone:hover {
  background: rgba(200,146,65,.12);
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.nav-phone span { direction: ltr; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: var(--radius-xs);
  margin-inline-start: auto;
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: clamp(480px, 75vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10,30,22,.82) 0%,
    rgba(10,30,22,.60) 55%,
    rgba(10,30,22,.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--c-accent);
  font-weight: 700;
  font-size: .875rem;
  margin-block-end: 1rem;
  letter-spacing: .05em;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(1.625rem, 4.5vw, 2.625rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.3;
  margin-block-end: 1rem;
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  max-width: 52ch;
  margin-block-end: 2rem;
  line-height: 1.9;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-badge {
  position: absolute;
  inset-block-end: 2.5rem;
  inset-inline-start: 2rem;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
}
.hero-stat {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  padding: .75rem 1.25rem;
  text-align: center;
}
.hero-stat strong {
  display: block;
  color: var(--c-accent);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
}
.hero-stat span {
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  margin-block-start: .25rem;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   CATEGORY STRIP
   ═══════════════════════════════════════════════════════ */
.category-strip { background: var(--c-white); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-border);
  background: var(--c-cream);
  text-align: center;
  transition: all .25s ease;
  text-decoration: none;
  color: var(--c-charcoal);
}
.cat-card:hover {
  border-color: var(--c-primary);
  background: var(--c-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--c-primary);
}
.cat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(27,77,62,.08);
  color: var(--c-primary);
  transition: background .25s, color .25s;
  flex-shrink: 0;
}
.cat-card:hover .cat-icon {
  background: var(--c-primary);
  color: var(--c-white);
}
.cat-label {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  border-top: 3px solid transparent;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--c-primary);
}
.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: .75rem;
  font-weight: 700;
  padding: .2em .65em;
  border-radius: 20px;
}
.product-card-body {
  padding: 1.25rem;
}
.product-cat {
  font-size: .78rem;
  color: var(--c-primary);
  font-weight: 700;
  margin-block-end: .3rem;
}
.product-name {
  font-size: .975rem;
  font-weight: 700;
  color: var(--c-charcoal);
  line-height: 1.4;
  margin-block-end: .75rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-block-start: .75rem;
  padding-block-start: .75rem;
  border-block-start: 1px solid var(--c-cream-dk);
}
.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-primary);
  direction: rtl;
}
.product-price small {
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-mid);
  display: block;
  line-height: 1;
  margin-block-start: .1rem;
}

/* ═══════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,77,62,.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
  color: var(--c-white);
  font-weight: 700;
  font-size: .95rem;
}

/* ═══════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════ */
.trust-bar { background: var(--c-primary); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-inline-end: 1px solid rgba(255,255,255,.1);
  transition: background .25s;
}
.trust-item:last-child { border-inline-end: none; }
.trust-item:hover { background: rgba(255,255,255,.04); }
.trust-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(200,146,65,.15);
  color: var(--c-accent);
  flex-shrink: 0;
}
.trust-item h4 {
  color: var(--c-white);
  font-size: 1rem;
  font-weight: 700;
  margin-block-end: .25rem;
}
.trust-item p {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: box-shadow .25s, transform .25s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testi-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1rem;
}
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-lt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.testi-name {
  font-weight: 700;
  font-size: .975rem;
  color: var(--c-charcoal);
  margin-block-end: .2rem;
}
.testi-text {
  color: var(--c-mid);
  font-size: .9rem;
  line-height: 1.85;
  margin: 0;
}
.testi-quote {
  color: var(--c-accent);
  font-size: 2.5rem;
  line-height: .8;
  font-family: serif;
  margin-block-end: .5rem;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SNIPPET
   ═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge-float {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-float strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge-float span { font-size: .78rem; font-weight: 600; }

.about-content .eyebrow {
  color: var(--c-accent);
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-block-end: .5rem;
}
.about-content h2 { margin-block-end: 1rem; }
.about-content p   { color: var(--c-mid); margin-block-end: .75rem; }
.about-points {
  margin-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.about-point {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--c-charcoal);
  font-size: .9rem;
  font-weight: 600;
}
.about-point svg { color: var(--c-primary); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary-dk) 0%, var(--c-primary) 60%, var(--c-primary-lt) 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--c-white); margin-block-end: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.75); margin-block-end: 2rem; max-width: 52ch; margin-inline: auto; }
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--c-primary-dk);
  color: rgba(255,255,255,.8);
  padding-block-start: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block-end: clamp(2rem, 4vw, 3rem);
  border-block-end: 1px solid rgba(255,255,255,.1);
}
.footer-brand .nav-logo { margin-block-end: 1rem; }
.footer-brand p {
  font-size: .875rem;
  line-height: 1.85;
  color: rgba(255,255,255,.65);
  max-width: 34ch;
  margin-block-end: 1.5rem;
}
.footer-socials {
  display: flex;
  gap: .625rem;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.footer-social-link:hover {
  background: var(--c-accent);
  color: var(--c-white);
}
.footer-col h4 {
  color: var(--c-white);
  font-size: 1rem;
  font-weight: 700;
  margin-block-end: 1.25rem;
  padding-block-end: .625rem;
  border-block-end: 2px solid var(--c-accent);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-link {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  transition: color .2s, padding-inline-end .2s;
  display: flex;
  align-items: center;
  gap: .375rem;
  text-decoration: none;
}
.footer-link::before {
  content: '›';
  color: var(--c-accent);
  font-size: 1.1em;
}
.footer-link:hover { color: var(--c-white); padding-inline-end: .25rem; }

.footer-contact { display: flex; flex-direction: column; gap: .875rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}
.footer-contact-item svg { color: var(--c-accent); margin-block-start: .15rem; flex-shrink: 0; }
.footer-contact-item a { color: inherit; text-decoration: none; transition: color .2s; direction: ltr; display: inline-block; }
.footer-contact-item a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--c-accent); text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   PAGES — STUB / INNER
   ═══════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary-dk) 0%, var(--c-primary) 100%);
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
  color: var(--c-white);
}
.page-hero h1 { color: var(--c-white); margin-block-end: .5rem; }
.page-hero p  { color: rgba(255,255,255,.7); }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-block-end: 1rem;
}
.breadcrumb a { color: var(--c-accent); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* Coming soon stub */
.stub-notice {
  text-align: center;
  padding-block: 5rem;
  color: var(--c-mid);
}
.stub-notice h3 { color: var(--c-charcoal); margin-block: 1rem; }

/* ═══════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════ */
.form-group { margin-block-end: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-block-end: .4rem;
  color: var(--c-charcoal);
}
.form-control {
  width: 100%;
  padding: .65em 1em;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-charcoal);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(27,77,62,.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* Alert */
.alert {
  padding: .875rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-block-end: 1rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ═══════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════ */
.mt-1 { margin-block-start: .5rem; }
.mt-2 { margin-block-start: 1rem; }
.mt-3 { margin-block-start: 1.5rem; }
.mt-4 { margin-block-start: 2rem; }
.mb-1 { margin-block-end: .5rem; }
.mb-2 { margin-block-end: 1rem; }
.mb-3 { margin-block-end: 1.5rem; }
.mb-4 { margin-block-end: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .products-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: span 2; }
}

@media (max-width: 900px) {
  .cat-grid             { grid-template-columns: repeat(3, 1fr); }
  .trust-grid           { grid-template-columns: repeat(2, 1fr); }
  .trust-item           { border-inline-end: none; border-block-end: 1px solid rgba(255,255,255,.1); }
  .trust-item:nth-child(2n) { border-inline-end: none; }
  .testimonial-grid     { grid-template-columns: 1fr 1fr; }
  .gallery-grid         { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .about-grid           { grid-template-columns: 1fr; }
  .about-img-wrap       { max-height: 360px; }
  .products-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --nav-h: 60px; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-phone  { display: none; }
  .nav-links {
    position: fixed;
    inset-block-start: var(--nav-h);
    inset-inline: 0;
    background: var(--c-primary-dk);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 999;
  }
  .nav-links.is-open {
    transform: translateY(0);
  }
  .nav-link {
    padding: .75rem 1rem;
    border-radius: var(--radius-xs);
    font-size: 1rem;
    text-align: center;
  }

  .hero { min-height: clamp(380px, 65vh, 500px); }
  .hero-badge { display: none; }
  .hero-ctas { gap: .75rem; }
  .hero-ctas .btn { padding: .6em 1.25em; font-size: .9rem; }

  .cat-grid             { grid-template-columns: repeat(3, 1fr); gap: .625rem; }
  .cat-card             { padding: 1rem .625rem; }
  .cat-icon             { width: 40px; height: 40px; }
  .cat-label            { font-size: .78rem; }

  .products-grid        { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .gallery-grid         { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }

  .trust-grid           { grid-template-columns: 1fr 1fr; }
  .trust-item           { padding: 1.5rem 1rem; }

  .testimonial-grid     { grid-template-columns: 1fr; }

  .footer-grid          { grid-template-columns: 1fr; }
  .footer-brand         { grid-column: span 1; }
  .footer-bottom        { flex-direction: column; text-align: center; }
}

@media (max-width: 390px) {
  .cat-grid             { grid-template-columns: repeat(2, 1fr); }
  .products-grid        { grid-template-columns: 1fr; }
  .hero h1              { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════
   NAV ACTIONS (cart + account icons)
   ═══════════════════════════════════════════════════════ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-shrink: 0;
}
.nav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,.8);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.nav-icon-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--c-white);
}
.nav-cart { }
.cart-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: .6rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 3px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DETAIL
   ═══════════════════════════════════════════════════════ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.product-gallery-main { position: sticky; top: calc(var(--nav-h) + 1rem); }
.product-gallery-zoom {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
  background: var(--c-cream);
}
.product-gallery-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-gallery-zoom:hover img { transform: scale(1.04); }
.product-gallery-zoom:hover .gallery-overlay { opacity: 1; }
.product-detail-info { padding-block-start: .5rem; }

/* ═══════════════════════════════════════════════════════
   SIZE OPTIONS
   ═══════════════════════════════════════════════════════ */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: .5rem;
}
.size-option-wrap { position: relative; }
.size-option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.size-option-label {
  display: inline-flex;
  align-items: center;
  padding: .4em 1em;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-charcoal);
  background: var(--c-white);
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}
.size-option-label:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.size-option-input:checked + .size-option-label {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: var(--c-white);
}

/* ═══════════════════════════════════════════════════════
   QTY CONTROL
   ═══════════════════════════════════════════════════════ */
.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-white);
}
.qty-btn {
  padding: .5rem .875rem;
  background: var(--c-cream);
  color: var(--c-charcoal);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--c-cream-dk); }
.qty-input {
  width: 56px;
  text-align: center;
  border: none;
  border-inline: 1.5px solid var(--c-border);
  font-weight: 700;
  font-size: 1rem;
  padding: .5rem .25rem;
  background: var(--c-white);
  color: var(--c-charcoal);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ═══════════════════════════════════════════════════════
   CART TABLE
   ═══════════════════════════════════════════════════════ */
.cart-table {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-block: 2rem;
}
.cart-table table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th,
.cart-table td {
  padding: 1rem 1.25rem;
  text-align: right;
  border-bottom: 1px solid var(--c-border);
}
.cart-table th {
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-mid);
  background: var(--c-cream);
  white-space: nowrap;
}
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table tfoot tr { background: var(--c-cream); }
.cart-table tfoot td {
  font-size: 1.05rem;
  border-top: 2px solid var(--c-border);
  border-bottom: none;
}

.cart-empty {
  text-align: center;
  padding-block: 5rem;
  color: var(--c-mid);
}
.cart-empty svg { margin-inline: auto; opacity: .35; }

/* ═══════════════════════════════════════════════════════
   AUTH CARD
   ═══════════════════════════════════════════════════════ */
.auth-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-inline: auto;
}
.auth-header { margin-block-end: 1.5rem; }
.auth-header svg { margin-inline: auto; }

/* ═══════════════════════════════════════════════════════
   ACCOUNT LAYOUT
   ═══════════════════════════════════════════════════════ */
.account-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-block-start: 2rem;
}
.account-sidebar {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.account-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-border);
  margin-block-start: .5rem;
}
.account-nav-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-charcoal);
  border-bottom: 1px solid var(--c-border);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.account-nav-link:last-child { border-bottom: none; }
.account-nav-link:hover {
  background: var(--c-cream);
  color: var(--c-primary);
}
.account-nav-link.active {
  background: rgba(27,77,62,.06);
  color: var(--c-primary);
  font-weight: 700;
}
.account-nav-link svg { color: var(--c-primary); flex-shrink: 0; }
.account-main { display: flex; flex-direction: column; gap: 1.5rem; }

/* ═══════════════════════════════════════════════════════
   ORDER LIST
   ═══════════════════════════════════════════════════════ */
.order-list { display: flex; flex-direction: column; gap: 0; }
.order-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
  font-size: .9rem;
}
.order-row:last-child { border-bottom: none; }
.order-row-head {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-mid);
  padding-block-end: .625rem;
  border-bottom: 2px solid var(--c-border);
}
.order-status {
  display: inline-block;
  padding: .2em .75em;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.order-status--pending {
  background: #fef3c7;
  color: #92400e;
}
.order-status--done {
  background: #d1fae5;
  color: #065f46;
}

/* ═══════════════════════════════════════════════════════
   STAGE-2 RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery-main { position: static; }
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}

@media (max-width: 680px) {
  .nav-actions .nav-phone { display: none; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
  .order-row { grid-template-columns: 1fr 1fr; }
  .order-row > span:nth-child(2) { display: none; }
}

/* ═══════════════════════════════════════════════════════
   STAGE-3  ADMIN PANEL
   ═══════════════════════════════════════════════════════ */

/* Login ─────────────────────────────────────────────── */
.adm-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B4D3E 0%, #256650 100%);
}
.adm-login-box {
  width: min(420px, 100% - 2rem);
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-xl);
}
.adm-login-logo {
  text-align: center;
  margin-block-end: 2rem;
}
.adm-login-logo svg { margin-inline: auto; margin-block-end: .75rem; }
.adm-login-logo h1 { font-size: 1.25rem; margin-block: .25rem 0; }
.adm-login-logo p  { color: var(--c-mid); font-size: .875rem; }
.adm-login-submit  { width: 100%; justify-content: center; margin-block-start: .5rem; }
.adm-login-back    { display: block; text-align: center; margin-block-start: 1.25rem; font-size: .875rem; color: var(--c-mid); }
.adm-login-back:hover { color: var(--c-primary); }

/* Flash / alerts ────────────────────────────────────── */
.adm-alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-xs);
  font-size: .9rem;
  font-weight: 600;
  margin-block-end: 1.25rem;
}
.adm-alert--ok  { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.adm-alert--err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Layout ────────────────────────────────────────────── */
.adm-body { background: #f1f5f4; }
.adm-layout { display: flex; min-height: 100vh; }

/* Sidebar ───────────────────────────────────────────── */
.adm-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--c-primary);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.adm-sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1.25rem 1rem;
  border-block-end: 1px solid rgba(255,255,255,.12);
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.05rem;
}
.adm-nav { padding: .75rem .625rem; flex: 1; }
.adm-nav-section {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  padding: .9rem .625rem .3rem;
  text-transform: uppercase;
}
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .875rem;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: all .18s;
  margin-block: 2px;
}
.adm-nav-item:hover { background: rgba(255,255,255,.1); color: var(--c-white); }
.adm-nav-item.is-active { background: var(--c-accent); color: var(--c-white); font-weight: 700; }
.adm-nav-item.is-active:hover { background: var(--c-accent-dk); }
.adm-sidebar-footer {
  padding: 1rem 1.25rem;
  border-block-start: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* Main ──────────────────────────────────────────────── */
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: var(--c-white);
  border-block-end: 1px solid var(--c-border);
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-xs);
}
.adm-topbar-title { font-size: 1.1rem; color: var(--c-charcoal); font-weight: 700; }
.adm-topbar-actions { display: flex; align-items: center; gap: .75rem; }
.adm-topbar-user { font-size: .85rem; color: var(--c-mid); font-weight: 600; }
.adm-content { padding: 1.75rem; flex: 1; }

/* Stat cards ────────────────────────────────────────── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-block-end: 2rem;
}
.adm-stat {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-inline-start: 4px solid var(--c-accent);
}
.adm-stat-label { font-size: .8rem; color: var(--c-mid); font-weight: 600; }
.adm-stat-value { font-size: 2rem; font-weight: 800; color: var(--c-primary); line-height: 1; }
.adm-stat-icon { color: var(--c-accent); margin-block-end: .25rem; }

/* Section card ──────────────────────────────────────── */
.adm-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-block-end: 1.5rem;
}
.adm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-block-end: 1px solid var(--c-border);
  gap: 1rem;
  flex-wrap: wrap;
}
.adm-card-head h3 { font-size: 1rem; font-weight: 700; }
.adm-card-body { padding: 1.5rem; }

/* Admin table ───────────────────────────────────────── */
.adm-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.adm-table th {
  text-align: right;
  padding: .625rem .875rem;
  background: #f9fafb;
  border-block-end: 2px solid var(--c-border);
  font-weight: 700;
  color: var(--c-mid);
  font-size: .78rem;
  white-space: nowrap;
}
.adm-table td {
  padding: .75rem .875rem;
  border-block-end: 1px solid var(--c-border);
  vertical-align: middle;
}
.adm-table tr:last-child td { border-block-end: none; }
.adm-table tr:hover td { background: #f9fdfb; }
.adm-table-wrap { overflow-x: auto; }
.adm-thumb {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}
.adm-thumb-placeholder {
  width: 56px;
  height: 44px;
  background: var(--c-cream-dk);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-light);
}

/* Row actions ───────────────────────────────────────── */
.adm-actions { display: flex; align-items: center; gap: .375rem; flex-wrap: nowrap; }
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3em .7em;
  border-radius: var(--radius-xs);
  font-size: .78rem;
  font-weight: 700;
  transition: all .15s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.adm-btn-edit  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.adm-btn-edit:hover { background: #dbeafe; }
.adm-btn-del   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.adm-btn-del:hover { background: #fee2e2; }
.adm-btn-view  { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.adm-btn-view:hover { background: #dcfce7; }
.adm-btn-save  { background: var(--c-primary); color: var(--c-white); padding: .45em 1.25em; font-size: .875rem; }
.adm-btn-save:hover { background: var(--c-primary-dk); }

/* Status badges ─────────────────────────────────────── */
.adm-badge {
  display: inline-block;
  padding: .2em .7em;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.adm-badge--yes    { background: #d1fae5; color: #065f46; }
.adm-badge--no     { background: #f3f4f6; color: var(--c-mid); }
.adm-badge--pend   { background: #fef3c7; color: #92400e; }
.adm-badge--conf   { background: #dbeafe; color: #1e40af; }
.adm-badge--ship   { background: #ede9fe; color: #5b21b6; }
.adm-badge--done   { background: #d1fae5; color: #065f46; }
.adm-badge--cancel { background: #fee2e2; color: #991b1b; }

/* Admin form ────────────────────────────────────────── */
.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.adm-form-grid .span-2 { grid-column: 1 / -1; }
.adm-form-group { display: flex; flex-direction: column; gap: .375rem; }
.adm-form-label { font-size: .85rem; font-weight: 600; color: var(--c-charcoal); }
.adm-form-hint  { font-size: .75rem; color: var(--c-mid); }
.adm-form-ctrl {
  width: 100%;
  padding: .6rem .875rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-xs);
  background: var(--c-white);
  color: var(--c-charcoal);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
  direction: rtl;
}
.adm-form-ctrl:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(27,77,62,.12);
}
.adm-form-ctrl[dir="ltr"] { direction: ltr; text-align: left; }
textarea.adm-form-ctrl { resize: vertical; min-height: 100px; }
.adm-form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; font-weight: 500; }
.adm-form-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--c-primary); cursor: pointer; }

/* Image upload ──────────────────────────────────────── */
.adm-img-wrap { display: flex; flex-direction: column; gap: .625rem; }
.adm-img-current {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 2px solid var(--c-border);
}
.adm-file-input {
  padding: .5rem .875rem;
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-xs);
  background: var(--c-cream);
  cursor: pointer;
  font-size: .85rem;
  color: var(--c-mid);
  transition: border-color .18s;
}
.adm-file-input:hover { border-color: var(--c-primary); }

/* Form actions ──────────────────────────────────────── */
.adm-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--c-border);
  margin-block-start: 1.25rem;
}

/* Detail view ───────────────────────────────────────── */
.adm-detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: .5rem 1rem;
  font-size: .9rem;
}
.adm-detail-label { font-weight: 700; color: var(--c-mid); }
.adm-detail-val { color: var(--c-charcoal); }

/* Dashboard recent sections ─────────────────────────── */
.adm-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Pagination / breadcrumb ───────────────────────────── */
.adm-back { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; color: var(--c-primary); font-weight: 600; margin-block-end: 1.25rem; }
.adm-back:hover { color: var(--c-primary-dk); }

/* Order items sub-table ─────────────────────────────── */
.adm-items-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.adm-items-table th { background: #f9fafb; padding: .5rem .75rem; font-weight: 700; color: var(--c-mid); border-block-end: 1px solid var(--c-border); text-align: right; }
.adm-items-table td { padding: .5rem .75rem; border-block-end: 1px solid var(--c-border); }

/* Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .adm-sidebar { width: 200px; }
  .adm-form-grid { grid-template-columns: 1fr; }
  .adm-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .adm-layout { flex-direction: column; }
  .adm-sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; }
  .adm-nav { display: flex; flex-direction: row; padding: .375rem; }
  .adm-nav-section { display: none; }
  .adm-sidebar-logo { padding: .875rem 1rem; border-block-end: none; border-inline-end: 1px solid rgba(255,255,255,.12); }
  .adm-sidebar-footer { display: none; }
  .adm-content { padding: 1rem; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-table th:nth-child(n+4), .adm-table td:nth-child(n+4) { display: none; }
}

/* QA cart card layout — zero horizontal overflow, no hidden data */
@media (max-width: 768px) {
  .cart-table table, .cart-table thead, .cart-table tbody, .cart-table tfoot, .cart-table tr, .cart-table td { display: block; }
  .cart-table thead { display: none !important; }
  .cart-table tbody tr { border: 1px solid rgba(128,128,128,.28); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
  .cart-table tbody td { display: flex !important; border: 0; padding: 6px 0; text-align: right !important; align-items: center; justify-content: space-between; gap: 12px; width: 100% !important; white-space: normal !important; }
  .cart-table tbody td:first-child { display: block !important; }
  .cart-table tbody td:nth-child(2)::before { content: "تعداد"; font-weight:700;color:#888;font-size:.82rem;flex:none; }
  .cart-table tbody td:nth-child(3)::before { content: "قیمت واحد"; font-weight:700;color:#888;font-size:.82rem;flex:none; }
  .cart-table tbody td:nth-child(4)::before { content: "جمع"; font-weight:700;color:#888;font-size:.82rem;flex:none; }
  .cart-table tfoot tr { display: flex !important; justify-content: space-between; align-items: center; padding: 10px 4px; border-top: 2px solid rgba(128,128,128,.3); font-weight: 700; }
  .cart-table tfoot td { display: inline-block !important; border: 0; padding: 0; }
  .cart-table tfoot td:last-child { display: none !important; }
}
