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

/* ── Tokens ────────────────────────────────────────────────────────────────── */
:root {
  --navy:      #0B1F3A;
  --navy-mid:  #0f2a4e;
  --navy-light:#122848;
  --gold:      #C9A227;
  --gold-dark: #b08d1e;
  --gold-light:#dab840;
  --white:     #FFFFFF;
  --gray-bg:   #F5F5F5;
  --gray-text: #6B7280;
  --text:      #1a2540;
  --border:    rgba(201,162,39,.25);
  --shadow:    0 4px 24px rgba(11,31,58,.12);
  --shadow-lg: 0 8px 40px rgba(11,31,58,.18);
  --r:         12px;
  --r-sm:      8px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  direction: rtl;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input,textarea,select { font-family: inherit; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(28px,4vw,44px); font-weight: 700; line-height: 1.35; }
h2 { font-size: clamp(22px,3vw,32px); font-weight: 600; line-height: 1.4; }
h3 { font-size: clamp(18px,2.2vw,22px); font-weight: 600; line-height: 1.45; }
h4 { font-size: 18px; font-weight: 600; }
p  { line-height: 1.9; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 15px;
  font-weight: 600; transition: all .22s ease; white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,162,39,.35);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(201,162,39,.45); }
.btn-outline-gold {
  border: 2px solid var(--gold); color: var(--gold); background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-sm { padding: 8px 20px; font-size: 14px; }

/* ── Top bar ───────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-mid); color: var(--gold);
  font-size: 13px; padding: 8px 0;
  border-bottom: 1px solid rgba(201,162,39,.15);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar a { color: var(--gold); transition: opacity .2s; }
.topbar a:hover { opacity: .75; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-tel { direction: ltr; display: inline-block; font-weight: 500; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy); position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  transition: box-shadow .22s ease, background-color .22s ease;
}
.site-header.is-scrolled { background: rgba(11,31,58,.97); box-shadow: 0 8px 32px rgba(11,31,58,.26), 0 1px 0 rgba(201,162,39,.24); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 0;
}
.logo {
  font-size: 24px; font-weight: 700; color: var(--gold);
  white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 36px; height: 36px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.main-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.main-nav a {
  color: rgba(255,255,255,.82); padding: 8px 14px; border-radius: 6px;
  font-size: 15px; font-weight: 500; transition: all .2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: rgba(201,162,39,.1); }
.header-cta { margin-right: auto; }

/* ── Mobile menu btn ───────────────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none; color: var(--white); padding: 6px;
}
.mobile-nav {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%;
  background: var(--navy); padding: 24px 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-panel a {
  display: block; color: rgba(255,255,255,.85); padding: 12px 16px;
  border-radius: 8px; font-size: 15px; font-weight: 500; transition: all .2s;
}
.mobile-nav-panel a:hover, .mobile-nav-panel a.active { color: var(--gold); background: rgba(201,162,39,.1); }
.mobile-nav-close {
  align-self: flex-start; color: rgba(255,255,255,.6); margin-bottom: 16px; padding: 4px;
}
.mobile-nav-close:hover { color: var(--gold); }
.mobile-logo { color: var(--gold); font-size: 20px; font-weight: 700; margin-bottom: 20px; }

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

/* ── Section common ────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-title { margin-bottom: 48px; }
.section-title h2 { color: var(--navy); margin-bottom: 12px; }
.section-title .sub { color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.section-title .line {
  width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 12px;
}
.section-dark .section-title h2 { color: var(--white); }
.section-dark .section-title p { color: rgba(255,255,255,.7); }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: url('/assets/img/hero.webp');
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(11,31,58,.92) 40%, rgba(11,31,58,.65) 75%, rgba(11,31,58,.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; padding: 120px 0 100px;
}
.hero-tag {
  display: inline-block; background: rgba(201,162,39,.2); color: var(--gold);
  border: 1px solid rgba(201,162,39,.4); border-radius: 50px;
  padding: 6px 18px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero-sub { color: var(--gold); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.hero-desc { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 36px; max-width: 560px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Stats bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201,162,39,.2);
  border-bottom: 1px solid rgba(201,162,39,.2);
  padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; text-align: center;
}
.stat-item {
  padding: 20px 16px;
  border-left: 1px solid rgba(201,162,39,.15);
}
.stat-item:last-child { border-left: none; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-plus { font-size: 22px; }
.stat-label { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 6px; font-weight: 500; }

/* ── Products section ──────────────────────────────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(0,0,0,.06);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img {
  width: 100%; height: 200px; object-fit: cover;
}
.product-card-body { padding: 18px; }
.product-cat {
  font-size: 12px; color: var(--gold); font-weight: 600;
  letter-spacing: 0; margin-bottom: 6px;
}
.product-card-body h3 { font-size: 16px; margin-bottom: 10px; color: var(--navy); }
.product-price { font-size: 13px; color: var(--gray-text); margin-bottom: 14px; }
.product-price strong { color: var(--navy); font-size: 15px; }

/* ── Services section ──────────────────────────────────────────────────────── */
.section-dark { background: var(--navy); }
.services-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.service-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(201,162,39,.2);
  border-radius: var(--r); padding: 32px 24px; text-align: center;
  transition: background .25s, transform .25s;
}
.service-card:hover { background: rgba(201,162,39,.1); transform: translateY(-4px); }
.service-icon {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(201,162,39,.4); background: rgba(201,162,39,.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--gold);
}
.service-card h3 { color: var(--white); font-size: 17px; margin-bottom: 12px; }
.service-card p { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.7; }

/* ── Blog section ──────────────────────────────────────────────────────────── */
.section-gray { background: var(--gray-bg); }
.blog-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.blog-card {
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-cat {
  display: inline-block; background: var(--gold); color: var(--navy);
  border-radius: 50px; padding: 3px 14px; font-size: 12px;
  font-weight: 700; margin-bottom: 12px;
}
.blog-card-body h3 { font-size: 16px; margin-bottom: 10px; color: var(--navy); line-height: 1.5; }
.blog-excerpt { color: var(--gray-text); font-size: 14px; line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; align-items: center; gap: 12px; color: var(--gray-text); font-size: 12px; }
.blog-more { margin-top: 40px; text-align: center; }

/* ── Why us ────────────────────────────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px;
}
.why-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.why-item:last-child, .why-item:nth-last-child(2) { border-bottom: none; }
.why-check {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; margin-top: 4px;
}
.why-item h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.why-item p { color: var(--gray-text); font-size: 14px; line-height: 1.65; }
.why-image { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.why-image img { width: 100%; height: 100%; object-fit: cover; }
.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ── Contact CTA banner ────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy); padding: 70px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/img/warehouse.webp') center/cover;
  opacity: .08;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 17px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy); padding: 64px 0 0;
  border-top: 1px solid rgba(201,162,39,.3);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
}
.footer-brand { margin-bottom: 20px; }
.footer-logo { font-size: 22px; font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.footer-desc { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 10px;
}
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; }
.footer h4 { color: var(--gold); font-size: 15px; font-weight: 600; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(201,162,39,.2); }
.footer-nav a {
  display: block; color: rgba(255,255,255,.7); font-size: 14px;
  padding: 5px 0; transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-socials { display: flex; gap: 12px; margin-bottom: 24px; }
.footer-social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,.3); background: rgba(201,162,39,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: all .2s;
}
.footer-social-btn:hover { background: var(--gold); color: var(--navy); }
.footer-divider { border: none; border-top: 1px solid rgba(201,162,39,.15); margin: 40px 0 0; }
.footer-bottom {
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.4); font-size: 13px; }
.footer-badges { display: flex; gap: 12px; align-items: center; }
.footer-badge { color: rgba(255,255,255,.35); font-size: 12px; }

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease, background-color .25s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ── Gold divider ──────────────────────────────────────────────────────────── */
.gold-divider { height: 2px; background: linear-gradient(to left,transparent,var(--gold),transparent); opacity: .4; border: none; margin: 0; }

/* ── Page hero (inner pages) ───────────────────────────────────────────────── */
.page-hero {
  background: var(--navy); padding: 60px 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/img/warehouse.webp') center/cover; opacity: .1;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(22px,3vw,32px); }
.page-hero p { color: rgba(255,255,255,.7); margin-top: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb a, .breadcrumb span { color: rgba(255,255,255,.55); font-size: 13px; }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: var(--gold); }

/* ── Products page ─────────────────────────────────────────────────────────── */
.products-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 500;
  border: 1.5px solid rgba(0,0,0,.1); color: var(--gray-text);
  background: var(--white); transition: all .2s; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--gold); color: var(--navy); background: rgba(201,162,39,.1); }

/* ── Product detail ────────────────────────────────────────────────────────── */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail-img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.product-detail-img img { width: 100%; }
.product-detail-title { font-size: 28px; color: var(--navy); margin-bottom: 12px; }
.product-detail-cat { color: var(--gold); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.product-detail-price { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.product-detail-desc { color: var(--gray-text); line-height: 1.8; margin-bottom: 28px; }

/* ── Inquiry form ──────────────────────────────────────────────────────────── */
.inquiry-box {
  background: var(--white); border-radius: var(--r); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.inquiry-box h3 { color: var(--navy); margin-bottom: 20px; font-size: 20px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--r-sm); font-family: inherit; font-size: 15px;
  transition: border-color .2s; background: var(--white);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--gold);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; }
.form-error  { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; }

/* ── Gallery ───────────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gallery-item { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s; display: block; }
.gallery-item:hover img { transform: scale(1.04); }

/* ── About ─────────────────────────────────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; }
.about-text h2 { color: var(--navy); margin-bottom: 20px; }
.about-text p { color: var(--gray-text); margin-bottom: 16px; }

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.contact-info-card {
  background: var(--navy); border-radius: var(--r); padding: 36px;
  border: 1px solid rgba(201,162,39,.2);
}
.contact-info-card h3 { color: var(--gold); margin-bottom: 24px; font-size: 20px; }
.contact-detail {
  display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.3);
  display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0;
}
.contact-detail-text { color: rgba(255,255,255,.8); font-size: 15px; }
.contact-detail-label { color: rgba(255,255,255,.45); font-size: 12px; margin-bottom: 2px; }

/* ── Blog post ─────────────────────────────────────────────────────────────── */
.post-header { margin-bottom: 32px; }
.post-cover { border-radius: var(--r); overflow: hidden; margin-bottom: 32px; }
.post-cover img { width: 100%; max-height: 450px; object-fit: cover; }
.post-body { color: var(--gray-text); line-height: 2; font-size: 16px; }
.post-body p { margin-bottom: 20px; }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--navy); padding: 24px 0; flex-shrink: 0;
  border-left: 1px solid rgba(201,162,39,.15);
}
.admin-sidebar-logo {
  color: var(--gold); font-size: 18px; font-weight: 700;
  padding: 0 20px 24px; border-bottom: 1px solid rgba(201,162,39,.15);
  margin-bottom: 16px;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7); padding: 11px 20px; font-size: 14px;
  transition: all .2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  color: var(--gold); background: rgba(201,162,39,.1);
}
.admin-main { flex: 1; padding: 32px; background: var(--gray-bg); overflow-x: auto; }
.admin-main h1 { font-size: 22px; color: var(--navy); margin-bottom: 24px; font-weight: 600; }
.admin-card {
  background: var(--white); border-radius: var(--r); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat {
  background: var(--white); border-radius: var(--r); padding: 20px;
  box-shadow: var(--shadow); border-right: 4px solid var(--gold);
}
.admin-stat .num { font-size: 28px; font-weight: 700; color: var(--navy); }
.admin-stat .lbl { color: var(--gray-text); font-size: 13px; margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--gray-bg); padding: 12px 16px; text-align: right;
  font-size: 13px; font-weight: 600; color: var(--navy);
  border-bottom: 2px solid rgba(0,0,0,.08);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; }
.data-table tr:hover td { background: rgba(201,162,39,.04); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray  { background: #f3f4f6; color: #374151; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-count { font-size: 14px; color: var(--gray-text); }
.admin-thumb { width: 58px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.btn-danger-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
  background: #fee2e2; color: #991b1b; transition: background .2s;
}
.btn-danger-sm:hover { background: #fca5a5; }
.admin-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-top: 16px;
}
.admin-gallery-item {
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid rgba(0,0,0,.08); background: var(--gray-bg);
}
.admin-gallery-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.admin-gallery-caption {
  padding: 8px 12px; font-size: 13px; color: var(--gray-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-gallery-actions { padding: 0 12px 10px; }

/* ── Login page ────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy); padding: 24px;
}
.login-box {
  background: var(--white); border-radius: var(--r); padding: 40px;
  width: 100%; max-width: 400px; box-shadow: var(--shadow-lg);
}
.login-box h1 { font-size: 22px; color: var(--navy); margin-bottom: 28px; text-align: center; }
.login-logo { text-align: center; font-size: 26px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .cart-page-layout { grid-template-columns: 1fr; }
  .checkout-layout  { grid-template-columns: 1fr; }
  .account-layout   { grid-template-columns: 1fr; }
  .checkout-order-summary { position: static; }
  .cart-summary-card { position: static; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .cart-page-layout { grid-template-columns: 1fr; }
  .checkout-layout  { grid-template-columns: 1fr; }
  .account-layout   { grid-template-columns: 1fr; }
  .account-stat-grid { grid-template-columns: repeat(2,1fr); }
  .cart-table { font-size: 13px; }
  .cart-table th, .cart-table td { padding: 10px 10px; }
}

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-num { font-size: 26px; }
  .hero { min-height: 90vh; }
  .hero-content { padding: 88px 0 72px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; gap: 8px; }
  .topbar-left { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .footer-badges { justify-content: center; flex-wrap: wrap; }
  .contact-info-card, .inquiry-box, .login-box, .auth-box { padding: 24px; }
  .cart-table-wrap { overflow-x: auto; }
  .admin-stats { grid-template-columns: 1fr; }
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--gray-text); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.block { display: block; }

/* ── Product gallery ───────────────────────────────────────────────────────── */
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main-wrap { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.gallery-main-wrap img { width: 100%; height: 400px; object-fit: cover; }
.gallery-thumbs-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.gallery-thumb-item { border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.gallery-thumb-item.active { border-color: var(--gold); }
.gallery-thumb-item img { width: 100%; height: 66px; object-fit: cover; display: block; }
.product-order-form { margin-bottom: 0; }
.spec-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.spec-label { font-size: 14px; font-weight: 600; color: var(--navy); min-width: 100px; flex-shrink: 0; }
.size-select { flex: 1; min-width: 160px; }
.qty-wrap { display: flex; align-items: center; gap: 10px; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid rgba(0,0,0,.12); border-radius: 6px; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; background: var(--gray-bg); font-size: 20px; line-height: 1; cursor: pointer; color: var(--navy); transition: background .15s; border: none; padding: 0; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.qty-btn:hover { background: rgba(201,162,39,.15); }
.qty-input { width: 48px; height: 32px; border: none; border-right: 1.5px solid rgba(0,0,0,.1); border-left: 1.5px solid rgba(0,0,0,.1); text-align: center; font-size: 15px; font-family: inherit; background: var(--white); }
.unit-label { font-size: 13px; color: var(--gray-text); }

/* ── Cart ──────────────────────────────────────────────────────────────────── */
.cart-page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.cart-table-wrap { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--navy); color: var(--gold); padding: 13px 16px; text-align: right; font-size: 13px; font-weight: 600; }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table tr:hover td { background: rgba(201,162,39,.04); }
.cart-thumb { width: 68px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.cart-item-name { font-weight: 600; color: var(--navy); font-size: 14px; }
.cart-item-size { color: var(--gray-text); font-size: 12px; margin-top: 3px; }
.cart-summary-card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--border); position: sticky; top: 100px; }
.cart-summary-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.08); }
.cart-summary-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; font-size: 13px; color: var(--gray-text); gap: 8px; }
.cart-summary-row.total { font-weight: 700; font-size: 15px; color: var(--navy); padding-top: 12px; border-top: 1.5px solid rgba(0,0,0,.1); margin-top: 4px; }
.cart-empty { text-align: center; padding: 80px 24px; }

/* ── Checkout ──────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.checkout-order-summary { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--border); position: sticky; top: 100px; }
.checkout-order-summary h3 { color: var(--navy); font-size: 17px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 50px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.order-success { text-align: center; padding: 64px 24px; }
.order-success-icon { width: 80px; height: 80px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: #166534; }

/* ── Auth pages ────────────────────────────────────────────────────────────── */
.auth-container { display: flex; justify-content: center; padding: 40px 24px; }
.auth-box { background: var(--white); border-radius: var(--r); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth-box h1 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.auth-sub { color: var(--gray-text); font-size: 14px; margin-bottom: 28px; }
.auth-divider { text-align: center; color: var(--gray-text); font-size: 13px; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: rgba(0,0,0,.09); }
.auth-divider span { position: relative; background: var(--white); padding: 0 12px; }

/* ── Account dashboard ─────────────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.account-sidebar { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.account-profile { padding: 18px 16px; border-bottom: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; gap: 12px; }
.account-profile-icon { width: 42px; height: 42px; background: rgba(201,162,39,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; border: 1px solid rgba(201,162,39,.3); }
.account-profile strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.4; }
.account-profile span { font-size: 12px; color: var(--gray-text); direction: ltr; display: block; }
.account-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; color: var(--gray-text); border-bottom: 1px solid rgba(0,0,0,.05); transition: all .2s; }
.account-sidebar a:last-child { border-bottom: none; }
.account-sidebar a:hover, .account-sidebar a.active { color: var(--gold); background: rgba(201,162,39,.06); }
.account-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 24px; }
.order-card { background: var(--white); border-radius: var(--r); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.06); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.06); }
.order-status { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.status-pending  { background: #fef9c3; color: #854d0e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-shipped  { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ── Focus ring ────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }
