/* ── Vazirmatn @font-face ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  --primary:        #00b4d8;
  --primary-dark:   #0096c7;
  --primary-xdark:  #0077a8;
  --primary-light:  #e0f7fc;
  --primary-soft:   #f0fbfe;
  --coral:          #ff6b6b;
  --coral-dark:     #e85555;
  --yellow:         #ffd166;
  --yellow-dark:    #f5c144;
  --white:          #ffffff;
  --bg-soft:        #f5f8fa;
  --bg-mint:        #f0fbfe;
  --text:           #1a1a2e;
  --text-mid:       #3d3d56;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --border-light:   #f0f2f5;

  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-card: 18px;
  --radius-pill: 100px;

  --shadow-xs:   0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 10px rgba(0,0,0,.08);
  --shadow-card: 0 4px 20px rgba(0,180,216,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-hover:0 10px 36px rgba(0,180,216,.20), 0 2px 8px rgba(0,0,0,.08);
  --shadow-btn:  0 3px 12px rgba(0,180,216,.30);
  --shadow-coral:0 3px 12px rgba(255,107,107,.35);

  --transition: 0.22s ease;
  --transition-fast: 0.15s ease;

  --header-h: 68px;
}

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

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

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--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; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.3; color: var(--text); }
h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.35; color: var(--text); }
h3 { font-size: clamp(16px, 2vw, 20px); font-weight: 700; line-height: 1.4; color: var(--text); }
h4 { font-size: 16px; font-weight: 700; color: var(--text); }

p { color: var(--text-mid); }

/* ── Container & layout ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-mint { background: var(--bg-mint); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 10px auto 0;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background var(--transition), transform var(--transition-fast), box-shadow var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 18px rgba(0,150,199,.4); transform: translateY(-1px); }

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-coral);
}
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(232,85,85,.4); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-yellow {
  background: var(--yellow);
  color: var(--text);
}
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-1px); }

.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 15px 38px; font-size: 16px; border-radius: 12px; }
.btn-xl  { padding: 17px 48px; font-size: 17px; border-radius: 13px; }

/* ── Icons ────────────────────────────────────────────────────────────────── */
.icon { flex-shrink: 0; vertical-align: middle; }
.icon-feat { opacity: 1; }
.icon-star { color: var(--yellow-dark); }

/* ── Site Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 1px 0 var(--border), 0 2px 16px rgba(0,0,0,.06);
  transition: box-shadow var(--transition);
}

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

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}
.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.header-phone:hover { color: var(--primary); background: var(--primary-soft); }
.header-phone span { direction: ltr; unicode-bidi: bidi-override; }

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-mid);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.header-icon-btn:hover { color: var(--primary); background: var(--primary-soft); }

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  color: var(--text);
  transition: background var(--transition-fast);
}
.menu-toggle:hover { background: var(--bg-soft); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 190;
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-overlay.active { opacity: 1; }

/* ── Hero section ─────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #e8f7fd 50%, #f5f5ff 100%);
  padding: 80px 0 64px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,180,216,.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content { flex: 1; min-width: 0; }
.hero-visual  { flex: 1; min-width: 0; display: flex; justify-content: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.hero h1 {
  margin-bottom: 18px;
  color: var(--text);
}
.hero-highlight { color: var(--primary); }

.hero-desc {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,180,216,.18), 0 4px 12px rgba(0,0,0,.1);
  transition: transform .4s ease;
}
.hero-img:hover { transform: translateY(-6px) scale(1.01); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span { font-size: 13px; color: var(--text-muted); }

/* ── Category strip ───────────────────────────────────────────────────────── */
.categories-section { padding: 56px 0; }
.categories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text);
  scroll-snap-align: start;
  transition: all var(--transition);
  min-width: 130px;
  box-shadow: var(--shadow-xs);
}
.cat-pill:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.cat-pill-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-xs);
}
.cat-pill-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--border-light);
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

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

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}
.product-card-name a { color: var(--text); }
.product-card-name a:hover { color: var(--primary); }

.product-card-cat {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-dark);
  white-space: nowrap;
}

.add-cart-form { display: flex; }

/* ── View all link ────────────────────────────────────────────────────────── */
.view-all-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ── Features band ────────────────────────────────────────────────────────── */
.features-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-xdark) 100%);
  padding: 64px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.features-band::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.features-band::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.feature-item {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  transition: background var(--transition);
}
.feature-item:hover { background: rgba(255,255,255,.14); }

.feature-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
}

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  flex: 1;
}
.testimonial-text::before { content: '«'; color: var(--primary); font-weight: 700; margin-left: 4px; }
.testimonial-text::after  { content: '»'; color: var(--primary); font-weight: 700; margin-right: 4px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text); }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ── Newsletter ───────────────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--yellow);
  padding: 64px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.newsletter-text { flex: 1; }
.newsletter-text h2 { color: var(--text); margin-bottom: 8px; }
.newsletter-text p { color: var(--text-mid); font-size: 15px; }

.newsletter-form {
  flex: 1;
  display: flex;
  gap: 10px;
  max-width: 440px;
}
.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid rgba(0,0,0,.10);
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-input:focus { border-color: var(--primary); }
.newsletter-input::placeholder { color: var(--text-muted); }

/* ── About banner ─────────────────────────────────────────────────────────── */
.about-banner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-banner img { width: 100%; height: 360px; object-fit: cover; }

/* ── Page hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-soft), var(--bg-soft));
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.page-hero p  { color: var(--text-muted); font-size: 15px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,180,216,.12); }

/* ── Alert ────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: var(--primary-light); color: var(--primary-xdark); border: 1px solid rgba(0,180,216,.3); }

/* ── Card generic ─────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.card-body { padding: 24px; }

/* ── Stub page content ────────────────────────────────────────────────────── */
.stub-content {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 16px;
}
.stub-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 8px;
}

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

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: #0f2f3f; color: rgba(255,255,255,.80); }

.footer-top { padding: 64px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.footer-about {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--primary); }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
}
.footer-contact-list .icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: rgba(255,255,255,.65); transition: color var(--transition); direction: ltr; }
.footer-contact-list a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer-credit a { color: var(--primary); }

/* ── Responsive: Tablet (≤ 960px) ────────────────────────────────────────── */
@media (max-width: 960px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 32px; }
  .newsletter-inner { flex-direction: column; gap: 28px; text-align: center; }
  .newsletter-form { width: 100%; max-width: 100%; }
}

/* ── Responsive: Mobile (≤ 640px) ────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .container { padding: 0 16px; }

  .header-phone { display: none; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 32px rgba(0,0,0,.15);
    z-index: 300;
    transition: right var(--transition);
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .nav-overlay { display: block; }

  .nav-link {
    width: 100%;
    padding: 13px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
  }

  .section { padding: 48px 0; }

  .hero { padding: 48px 0; }
  .hero-inner {
    flex-direction: column-reverse;
    gap: 28px;
  }
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 14px; max-width: 100%; }
  .hero-img { max-width: 100%; border-radius: 16px; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 18px; }

  .categories-section { padding: 36px 0; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card-body { padding: 12px; }
  .product-price { font-size: 13px; }
  .btn-sm { padding: 7px 12px; font-size: 12px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-item { padding: 16px 10px; }
  .feature-title { font-size: 14px; }

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

  .newsletter-inner { text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { padding: 40px 0 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

  .section-header { margin-bottom: 32px; }
}

/* ── Responsive: Very small (≤ 390px) ────────────────────────────────────── */
@media (max-width: 390px) {
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  .logo-text { font-size: 19px; }

  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn-xl { padding: 13px 28px; font-size: 15px; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card-name { font-size: 12px; }
  .product-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .hero-stats { flex-direction: column; gap: 12px; padding-top: 20px; }
}

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

/* ── Product gallery ──────────────────────────────────────────────────────── */
.product-gallery { display: flex; flex-direction: column; gap: 12px; }

.gallery-main-wrap {
  background: var(--bg-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border-light);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-main-wrap:hover .gallery-main-img { transform: scale(1.04); }

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  padding: 0;
  background: var(--bg-soft);
  flex-shrink: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb-btn:hover { border-color: var(--primary-dark); }
.gallery-thumb-btn.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,180,216,.18); }

/* ── Product info panel ───────────────────────────────────────────────────── */
.product-info { display: flex; flex-direction: column; gap: 0; }

.product-info-cat {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-info-cat a { color: var(--primary); font-weight: 600; }

.product-info-name {
  font-size: clamp(20px, 2.5vw, 26px);
  margin-bottom: 12px;
}

.product-info-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}
.rating-count { font-size: 12px; color: var(--text-muted); margin-right: 4px; }

.product-info-price {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.product-add-form { display: flex; flex-direction: column; gap: 20px; }

.product-option-group { display: flex; flex-direction: column; gap: 10px; }
.product-option-label { font-size: 14px; font-weight: 700; color: var(--text); }

/* Size selector pills */
.size-selector { display: flex; flex-wrap: wrap; gap: 8px; }

.size-option {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  user-select: none;
}
.size-option input[type="radio"] { display: none; }
.size-option:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.size-option.checked {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

/* Qty row */
.product-qty-row { display: flex; align-items: center; gap: 12px; }

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 36px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  line-height: 1;
}
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }

.qty-input {
  width: 52px;
  height: 42px;
  border: none;
  border-right: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
  text-align: center;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Product guarantees */
.product-guarantees {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}
.product-guarantees li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
}
.product-guarantees .icon { color: var(--primary); flex-shrink: 0; }

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.checkout-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-mid);
}
.checkout-info-box .icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.checkout-info-box p { margin: 0; }

.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.checkout-item:last-child { border-bottom: none; }

.checkout-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.checkout-item-price { font-size: 13px; font-weight: 700; color: var(--primary-dark); white-space: nowrap; flex-shrink: 0; }

/* Order success icon */
.order-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #d1fae5;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* ── Account page ─────────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.auth-tab:hover { color: var(--primary); }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.account-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.role-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

/* ── Responsive additions ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-dashboard { grid-template-columns: 1fr; }
  .gallery-main-wrap { max-width: 480px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .product-detail-layout { gap: 24px; }
  .gallery-thumbs { gap: 8px; }
  .gallery-thumb-btn { width: 60px; height: 60px; }
  .product-info-price { font-size: 24px; }
  .product-qty-row { flex-direction: column; align-items: stretch; }
  .qty-control { justify-content: center; width: 100%; }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-12 { gap: 12px; }
.fw-700 { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-coral { color: var(--coral); }
.text-muted { color: var(--text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

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

/* ── Base ─────────────────────────────────────────────────────────────────── */
.admin-body {
  background: #f0f2f5;
  margin: 0;
  font-family: Vazirmatn, 'Segoe UI', sans-serif;
  direction: rtl;
  text-align: right;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar — first in source order → right side in RTL flex */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: #1a1a2e;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.admin-brand {
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}
.ab-name {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}
.ab-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
  letter-spacing: .5px;
}

/* ── Sidebar nav ──────────────────────────────────────────────────────────── */
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .18s, color .18s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
}
.admin-nav-item .ani {
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .18s;
  display: flex;
  align-items: center;
}
.admin-nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.admin-nav-item:hover .ani { opacity: 1; }
.admin-nav-item.active {
  background: linear-gradient(135deg, #00b4d8 0%, #0090b0 100%);
  color: #fff;
  font-weight: 700;
}
.admin-nav-item.active .ani { opacity: 1; }
.admin-nav-sep {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 10px 0;
}
.admin-nav-logout {
  color: rgba(255,100,100,.75);
  margin-top: auto;
}
.admin-nav-logout:hover {
  background: rgba(255,100,100,.12);
  color: #ff6b6b;
}

/* ── Content area ─────────────────────────────────────────────────────────── */
.admin-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #fff;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-username {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.admin-back-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-back-link:hover { text-decoration: underline; }

.admin-inner {
  padding: 28px;
  flex: 1;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.admin-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  margin-bottom: 24px;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.admin-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
}
.admin-link-sm {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}
.admin-link-sm:hover { text-decoration: underline; }

/* ── Stat cards ───────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.stat-primary { background: linear-gradient(135deg, #00b4d8, #0090b0); }
.stat-teal    { background: linear-gradient(135deg, #06b6a4, #0e9488); }
.stat-coral   { background: linear-gradient(135deg, #ff6b6b, #e05252); }
.stat-yellow  { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-value {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  font-weight: 500;
  opacity: .88;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-badge {
  background: rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.stat-link {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  margin-top: 8px;
}
.stat-link:hover { color: #fff; }

.admin-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .admin-dash-grid { grid-template-columns: 1fr; } }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: right;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 2px solid #f0f2f5;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}
.admin-table-hover tbody tr:hover { background: #f8fafc; }
.admin-table tfoot td { border-top: 2px solid #f0f2f5; border-bottom: none; }

.admin-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.admin-thumb-empty {
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-thumb-lg {
  border-radius: 10px;
  object-fit: cover;
}

.admin-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 15px;
}
.admin-empty a { color: var(--primary); }

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-msg-cell {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.abadge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warn    { background: #fef3c7; color: #92400e; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: #f0f2f5; color: var(--text-muted); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.admin-btn-primary {
  background: linear-gradient(135deg, #00b4d8, #0090b0);
  color: #fff;
}
.admin-btn-primary:hover { background: linear-gradient(135deg, #0090b0, #007290); transform: translateY(-1px); }
.admin-btn-outline {
  background: #fff;
  color: #1a1a2e;
  border: 1.5px solid #e2e6ea;
}
.admin-btn-outline:hover { border-color: #00b4d8; color: #00b4d8; }
.admin-btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #fecaca;
}
.admin-btn-danger:hover { background: #fecaca; }
.admin-btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.admin-btn-block { width: 100%; justify-content: center; }
.d-inline { display: inline; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.aform { }
.aform-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 8px;
  margin: 24px 0 16px;
}
.aform-section-title:first-child { margin-top: 0; }
.aform-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}
.aform-col-1 { grid-column: span 1; }
.aform-col-2 { grid-column: span 2; }
@media (max-width: 700px) {
  .aform-row { grid-template-columns: 1fr; }
  .aform-col-1, .aform-col-2 { grid-column: span 1; }
}
.aform-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.aform-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.req { color: #ef4444; }
.aform-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid #e2e6ea;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafbfc;
  transition: border .18s, box-shadow .18s;
  direction: rtl;
  text-align: right;
}
.aform-input:focus {
  outline: none;
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
  background: #fff;
}
.aform-textarea { resize: vertical; min-height: 100px; }
.aform-textarea-lg { min-height: 280px; }
.aform-file {
  padding: 8px 12px;
  border: 1.5px dashed #d1d5db;
  border-radius: 10px;
  background: #fafbfc;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.aform-file:hover { border-color: #00b4d8; }
.aform-img-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e6ea;
}
.aform-img-note { font-size: 12px; color: var(--text-muted); }
.aform-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.aform-check input { width: 16px; height: 16px; cursor: pointer; }
.aform-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #f0f2f5;
}

/* ── Flash messages ───────────────────────────────────────────────────────── */
.admin-flash {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.admin-flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.admin-flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Definition list (order detail) ──────────────────────────────────────── */
.admin-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  font-size: 14px;
}
.admin-dl dt { font-weight: 700; color: var(--text-muted); }
.admin-dl dd { margin: 0; }

/* ── Login page ───────────────────────────────────────────────────────────── */
.admin-login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8f4f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}
.admin-login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.al-name {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: #00b4d8;
}
.al-sub {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.admin-login-form { display: flex; flex-direction: column; gap: 0; }
.admin-login-form .aform-group { margin-bottom: 18px; }

/* ── Utility extensions ───────────────────────────────────────────────────── */
.fw-600 { font-weight: 600; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }


/* ══ QA#123 — equal-size, centered category circles ══ */
.categories-scroll{ justify-content:center; flex-wrap:wrap; row-gap:24px; overflow-x:visible; }
.cat-pill{ min-width:0; width:104px; padding:0; background:transparent; border:none; box-shadow:none; gap:12px; }
.cat-pill:hover{ background:transparent; border:none; }
.cat-pill-img{ width:84px; height:84px; padding:6px; background:var(--white); border:1.5px solid var(--border); box-shadow:var(--shadow-sm); transition:border-color var(--transition); }
.cat-pill:hover .cat-pill-img{ border-color:var(--primary); }
.cat-pill-label{ white-space:normal; width:100%; font-size:13px; line-height:1.6; }

/* ══ QA#124 — add-to-cart success toast ══ */
.cart-toast{ position:fixed; bottom:24px; right:24px; left:auto; z-index:9999; background:var(--primary); color:#fff; padding:14px 22px; border-radius:12px; font-size:14px; font-weight:700; box-shadow:0 8px 30px rgba(0,0,0,.18); opacity:0; transform:translateY(16px); pointer-events:none; transition:opacity .25s ease, transform .25s ease; }
.cart-toast.show{ opacity:1; transform:translateY(0); }
@media (max-width:480px){ .cart-toast{ right:12px; left:12px; text-align:center; } }

/* ivos-qa126: nav-overlay must not eat taps while invisible (was display:block+inset:0+opacity:0 on mobile → all buttons dead) */
@media(max-width:960px){ .nav-overlay{ pointer-events:none; } .nav-overlay.active{ pointer-events:auto; } }
/* ivos-qa125: category circles fit as a grid on mobile (no horizontal scroll) */
@media(max-width:640px){ .categories-scroll{ display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:14px !important; overflow-x:hidden !important; scroll-snap-type:none !important; padding-bottom:0 !important; } .categories-scroll .cat-pill{ min-width:0 !important; width:auto !important; flex-shrink:1 !important; } .cat-pill-label{ white-space:normal !important; } }
/* ivos-qa127: about section stacks (text first, image below) on mobile */
@media(max-width:768px){ .about-split{ grid-template-columns:1fr !important; gap:24px !important; } }

/* ivos-qa130: about /about stats stack on mobile -- text full width first, blue boxes below */
@media(max-width:768px){ .about-stats-split{ grid-template-columns:1fr !important; gap:28px !important; } }
/* ivos-qa131: center hero CTA buttons on mobile (row and column modes) */
@media(max-width:768px){ .hero-cta{ justify-content:center !important; align-items:center !important; } }

/* ivos-qa130b: blog cards stack on mobile (were 3 narrow cols) */
@media(max-width:768px){ .blog-posts-grid{ grid-template-columns:1fr !important; } }

/* ivos-qa125c: contact mobile — form full-width on top, info boxes centered below */
@media(max-width:768px){ .contact-grid{ display:flex !important; flex-direction:column-reverse !important; align-items:stretch !important; } .contact-grid > *{ width:100% !important; max-width:100% !important; } .contact-info-col h2{ text-align:center !important; } .contact-info-col > div > div{ justify-content:center !important; } }

/* ivos-qa123b: hero-stat numbers centered over their labels */
.hero-stat{ text-align:center; }

/* ivos-qa125cart: cart summary column stacks on mobile (fixed 340px col was overflowing) */
@media(max-width:768px){ .cart-grid{ grid-template-columns:1fr !important; } }

/* ivos-qa125i: cart cells — VERTICAL dividers + wider product column so name & price columns are clearly separated */
.cart-table th, .cart-table td{ padding:16px 20px !important; vertical-align:middle; }
.cart-table td:not(:first-child), .cart-table th:not(:first-child){ border-inline-start:1px solid rgba(0,0,0,.07) !important; }
.cart-table td:first-child{ min-width:170px; }
.cart-table tbody tr:last-child td{ border-bottom:none; }
/* #B64 mobile-reachability fix 2026-09-03 */
@media (max-width:860px){
  div.admin-inner{min-width:0}
  div.admin-card-head{flex-wrap:wrap;row-gap:8px}
  div.admin-card,div.admin-inner{overflow-x:auto;overflow-y:visible;max-width:100%}
}
