/* ============================================================
   شوک مارکت (Shokmarket) — Premium RTL CSS Design System
   Persian e-commerce store — complete stylesheet
   ============================================================ */

/* ============================================================
   1. FONT FACES — Vazirmatn self-hosted
   ============================================================ */

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

/* ============================================================
   2. BASE RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
  background: #f8f9fa;
  color: #212529;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(255,111,0,0.2); color: #212529; }

/* ============================================================
   3. CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  --primary: #1a237e;
  --primary-dark: #0d1b5e;
  --accent: #ff6f00;
  --accent-dark: #e65100;
  --surface: #ffffff;
  --bg: #f8f9fa;
  --text: #212529;
  --text-muted: #6c757d;
  --border: rgba(26,35,126,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(26,35,126,0.08), 0 8px 24px rgba(26,35,126,0.10), 0 24px 48px rgba(26,35,126,0.06);
  --shadow-hover: 0 4px 12px rgba(26,35,126,0.12), 0 20px 48px rgba(26,35,126,0.18);
  --shadow-nav: 0 2px 24px rgba(26,35,126,0.22);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: clamp(56px, 8vw, 100px) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   5. ICON SIZING
   ============================================================ */

.icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: middle; flex-shrink: 0; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700; font-size: 1rem;
  line-height: 1;
  transition: var(--transition);
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,111,0,0.30);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,111,0,0.40); }
.btn-primary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ============================================================
   7. HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary);
  height: 72px;
  display: flex; align-items: center;
  box-shadow: var(--shadow-nav);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  width: 100%;
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.header-logo .logo-text {
  font-size: 1.4rem; font-weight: 800;
  color: #fff; letter-spacing: 0;
}
.header-logo .logo-accent { color: var(--accent); }
.header-nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.header-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header-nav a:hover, .header-nav a.active {
  background: rgba(255,255,255,0.12); color: #fff;
}
.header-search {
  position: relative; flex-shrink: 0;
}
.header-search input {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 40px;
  padding: 8px 40px 8px 16px;
  color: #fff; width: 220px;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.55); }
.header-search input:focus { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); width: 260px; }
.header-search .search-btn {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.7); display: flex; align-items: center;
}
.header-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.header-actions .action-btn {
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.header-actions .action-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.header-phone {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  direction: ltr;
}
.header-phone span { direction: rtl; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; color: #fff; padding: 6px; border-radius: var(--radius-sm);
}
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: var(--primary);
  flex-direction: column;
  padding: 24px;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem; font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ============================================================
   8. HERO SECTION
   ============================================================ */

.hero {
  background: var(--primary);
  position: relative; overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-orb {
  position: absolute; top: -120px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,111,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 72px 0;
}
.hero-content { order: 1; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,111,0,0.15);
  color: var(--accent);
  font-size: 0.82rem; font-weight: 700;
  padding: 6px 16px; border-radius: 40px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,111,0,0.3);
}
.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 20px;
}
.hero-headline .accent { color: var(--accent); }
.hero-subtext {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem; line-height: 1.9;
  margin-bottom: 36px; max-width: 44ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { order: 2; position: relative; }
.hero-image img {
  width: 100%; max-width: 520px;
  aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* ============================================================
   9. TRUST BADGES BAR
   ============================================================ */

.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26,35,126,0.06);
}
.trust-bar-inner {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px;
  border-inline-start: 1px solid var(--border);
}
.trust-item:last-child { border-inline-start: none; }
.trust-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(255,111,0,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.trust-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.trust-item p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* ============================================================
   10. SECTION HEADINGS
   ============================================================ */

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; color: var(--primary);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted); font-size: 1rem;
  margin-bottom: 40px;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px;
}
.section-header .view-all {
  color: var(--accent); font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.section-header .view-all:hover { color: var(--accent-dark); }
.title-underline {
  display: inline-block;
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px; margin-top: 8px;
}

/* ============================================================
   11. CATEGORY CARDS
   ============================================================ */

.categories-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.cat-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,94,0.90) 0%, rgba(13,27,94,0.4) 50%, transparent 100%);
  display: flex; align-items: flex-end;
  padding: 24px;
}
.cat-card-label {
  color: #fff; font-size: 1.2rem; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cat-card-count {
  color: rgba(255,255,255,0.75); font-size: 0.85rem;
  margin-top: 4px;
}

/* ============================================================
   12. PRODUCT CARDS
   ============================================================ */

.products-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card-img {
  aspect-ratio: 1/1; overflow: hidden; position: relative;
  background: var(--bg);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.product-card-body {
  padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.product-card-name {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-cat {
  font-size: 0.78rem; color: var(--text-muted);
}
.stars {
  display: flex; gap: 2px; color: var(--accent); font-size: 0.85rem;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 1rem; font-weight: 800; color: var(--accent);
  line-height: 1.2;
}
.product-price .unit {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted); margin-right: 2px;
}
.btn-add-cart {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 14px; font-size: 0.82rem; font-weight: 700;
  transition: var(--transition); border: none; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
}
.btn-add-cart:hover { background: var(--accent-dark); transform: scale(1.04); }
.btn-add-cart:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   13. USP / FEATURES BAND
   ============================================================ */

.features-band {
  background: var(--primary);
  position: relative; overflow: hidden;
}
.features-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative;
}
.feature-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 24px;
  border-inline-start: 1px solid rgba(255,255,255,0.10);
}
.feature-item:last-child { border-inline-start: none; }
.feature-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: var(--transition);
}
.feature-item:hover .feature-icon { background: rgba(255,111,0,0.15); transform: scale(1.08); }
.feature-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-sub { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.6; }

/* ============================================================
   14. BLOG CARDS
   ============================================================ */

.blog-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px; }
.blog-date {
  display: inline-block;
  background: rgba(26,35,126,0.07);
  color: var(--primary); font-size: 0.78rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.blog-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.blog-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { color: var(--accent); font-size: 0.88rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.blog-read-more:hover { color: var(--accent-dark); gap: 8px; }

/* ============================================================
   15. FOOTER
   ============================================================ */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: clamp(48px, 7vw, 80px) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-top: 10px; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.social-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-heading {
  font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65); font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.footer-links a::before { content: '›'; color: var(--accent); font-size: 1.1rem; }
.footer-links a:hover { color: #fff; padding-right: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
}
.footer-contact-item .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bar {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bar a { color: rgba(255,255,255,0.6); }

/* ============================================================
   16. UTILITY CLASSES
   ============================================================ */

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-surface { background: var(--surface); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* ============================================================
   17. FLASH MESSAGES
   ============================================================ */

.flash { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.flash-success { background: rgba(40,167,69,0.1); color: #155724; border: 1px solid rgba(40,167,69,0.3); }
.flash-error { background: rgba(220,53,69,0.1); color: #721c24; border: 1px solid rgba(220,53,69,0.3); }
.flash-info { background: rgba(26,35,126,0.08); color: var(--primary); border: 1px solid var(--border); }

/* ============================================================
   18. FORM STYLES
   ============================================================ */

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-family: 'Vazirmatn', sans-serif; font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,126,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ============================================================
   19. PAGE HERO (INNER PAGES)
   ============================================================ */

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.breadcrumb .current { color: rgba(255,255,255,0.9); font-size: 0.88rem; }

/* ============================================================
   20. EMPTY / LOADING STATES
   ============================================================ */

.empty-state { text-align: center; padding: 64px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-load 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-load { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   21. RESPONSIVE — TABLET & MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .header-nav, .header-search { display: none; }
  .menu-toggle { display: flex; align-items: center; }
  .header-inner { gap: 12px; }
  .header-phone { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { order: 1; }
  .hero-image { order: 2; display: none; }
  .hero-headline { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  .trust-bar-inner { grid-template-columns: repeat(2,1fr); }
  .trust-item { border-inline-start: none; border-top: 1px solid var(--border); padding: 14px 16px; }

  .categories-grid { grid-template-columns: 1fr; gap: 16px; }

  .products-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }

  .features-grid { grid-template-columns: repeat(2,1fr); }
  .feature-item { border-inline-start: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 32px 20px; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .hero-headline { font-size: 1.6rem; }
  .hero-subtext { font-size: 0.95rem; }
  .trust-bar-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   22. CART PAGE
   ============================================================ */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--bg); padding: 12px 16px; text-align: right; font-weight: 700; font-size: 0.9rem; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.qty-input { width: 60px; text-align: center; padding: 6px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'Vazirmatn', sans-serif; }
.cart-summary { background: var(--surface); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.cart-summary-row:last-child { border: none; font-weight: 800; font-size: 1.05rem; color: var(--accent); }

/* ============================================================
   23. SCROLL TO TOP
   ============================================================ */

.scroll-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,35,126,0.3);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 500;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ============================================================
   24. CATEGORY FILTER BAR
   ============================================================ */

.cat-filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-filter-btn {
  display: inline-flex; align-items: center;
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 0.9rem; font-weight: 600;
  background: var(--surface); color: var(--text-muted);
  border: 1.5px solid var(--border);
  transition: var(--transition); text-decoration: none;
}
.cat-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-filter-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(255,111,0,.28);
}
.products-count { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }

/* ============================================================
   25. PRODUCT DETAIL PAGE
   ============================================================ */

.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.product-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1/1;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.product-gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-gallery-main:hover img { transform: scale(1.03); }
.product-gallery-thumbs { display: flex; gap: 10px; }
.thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer; transition: var(--transition);
  padding: 0; background: var(--bg);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--accent); }
.thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,111,0,.22);
}
.product-detail-cat { margin-bottom: 8px; }
.product-detail-cat a {
  display: inline-block;
  background: rgba(26,35,126,.07); color: var(--primary);
  font-size: 0.8rem; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
  transition: var(--transition);
}
.product-detail-cat a:hover { background: rgba(26,35,126,.14); }
.product-detail-name {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800; color: var(--text);
  line-height: 1.4; margin-bottom: 12px;
}
.product-detail-price {
  font-size: 1.8rem; font-weight: 800; color: var(--accent);
  margin: 20px 0;
}
.product-detail-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.product-detail-desc {
  color: var(--text-muted); font-size: 0.95rem;
  line-height: 1.9; margin-bottom: 24px;
}
.product-options { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
.product-options .form-group { margin-bottom: 0; }

/* Size selector */
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer; font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted); transition: var(--transition);
  user-select: none;
}
.size-btn input { display: none; }
.size-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-btn-active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(255,111,0,.06);
  box-shadow: 0 0 0 2px rgba(255,111,0,.15);
}

/* Qty spinner */
.qty-spinner { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 36px; height: 36px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input-main { width: 56px; font-size: 1rem; font-weight: 700; text-align: center; }

.product-trust-badges {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.product-trust-badges span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-muted);
}

/* ============================================================
   26. ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-content p { color: var(--text-muted); line-height: 2; margin-bottom: 16px; }
.about-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4/3; object-fit: cover;
}
.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 36px;
}
.about-stat {
  text-align: center; padding: 20px 12px;
  background: var(--bg); border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.about-stat-num {
  font-size: 1.9rem; font-weight: 800; color: var(--accent); margin-bottom: 4px;
}
.about-stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   27. CONTACT PAGE
   ============================================================ */

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(255,111,0,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-info-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 3px; }
.contact-info-value { font-weight: 600; color: var(--text); font-size: 1rem; }

/* ============================================================
   28. CHECKOUT PAGE
   ============================================================ */

.checkout-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 40px; align-items: start;
}
.checkout-section {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.checkout-section-title {
  font-size: 1.15rem; font-weight: 800; color: var(--primary);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.checkout-trust {
  display: flex; gap: 12px; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--border);
  margin-top: 16px;
}
.checkout-trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-muted);
}

/* ============================================================
   29. ACCOUNT PAGE
   ============================================================ */

.account-grid {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 32px; align-items: start;
}
.account-sidebar { position: sticky; top: 90px; }
.account-user-card {
  text-align: center; background: var(--surface);
  border-radius: var(--radius-md); padding: 28px 20px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.account-avatar {
  width: 64px; height: 64px;
  background: rgba(26,35,126,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--primary);
}
.account-user-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.account-user-email { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.account-nav {
  background: var(--surface); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.account-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover { background: var(--bg); color: var(--text); }
.account-nav a.active { color: var(--accent); background: rgba(255,111,0,.05); }
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.order-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.order-id { font-weight: 700; font-size: .95rem; margin-left: 12px; }
.order-date { font-size: .8rem; color: var(--text-muted); }
.order-status {
  display: inline-flex; padding: 4px 14px;
  border-radius: 20px; font-size: .8rem; font-weight: 700;
}
.status-pending    { background: rgba(255,193,7,.15); color: #856404; }
.status-processing { background: rgba(13,110,253,.1); color: #084298; }
.status-shipped    { background: rgba(25,135,84,.1);  color: #0a3622; }
.status-delivered  { background: rgba(25,135,84,.15); color: #0a3622; }
.status-cancelled  { background: rgba(220,53,69,.1);  color: #842029; }
.order-card-body {
  padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .9rem;
}
.order-total { font-weight: 700; color: var(--accent); }

/* ============================================================
   30. AUTH PAGES (Login / Register)
   ============================================================ */

.auth-card {
  max-width: 520px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.auth-title {
  font-size: 1.55rem; font-weight: 800; color: var(--primary);
  text-align: center; margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center; color: var(--text-muted);
  font-size: .92rem; margin-bottom: 32px;
}
.auth-alt {
  text-align: center; margin-top: 24px;
  font-size: .9rem; color: var(--text-muted);
}
.auth-alt a { color: var(--accent); font-weight: 600; }

/* ============================================================
   31. RESPONSIVE — NEW PAGES
   ============================================================ */

@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-options { gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid > div:last-child { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .auth-card { padding: 32px 20px; }
  /* QA cart card layout — zero horizontal overflow */
  .cart-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table thead { display: none; }
  .cart-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
  .cart-table td { border: 0; padding: 6px 0; text-align: right; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cart-table td[data-label]::before { content: attr(data-label); font-weight: 700; color: var(--muted, #888); font-size: .82rem; flex: none; }
  .cart-table td:first-child { display: block; }
}
@media (max-width: 480px) {
  .auth-card { padding: 24px 16px; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .product-options { flex-direction: column; gap: 16px; }
}

/* ============================================================
   32. ADMIN PANEL
   ============================================================ */

.admin-wrap {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
}

/* ── Sidebar ── */
.admin-sidebar {
  width: 240px;
  background: #1a237e;
  color: rgba(255,255,255,.9);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  display: block;
}
.admin-sidebar-logo .brand { font-size: 1.1rem; font-weight: 700; }
.admin-sidebar-logo .brand em { color: #ff6f00; font-style: normal; }
.admin-sidebar-logo .sub { font-size: .7rem; opacity: .55; margin-top: 2px; }
.admin-nav { flex: 1; padding: 10px 0; }
.admin-nav-group {
  padding: 10px 16px 3px;
  font-size: .68rem;
  color: rgba(255,255,255,.38);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .875rem;
  transition: background .18s, color .18s, border-color .18s;
  border-right: 3px solid transparent;
}
.admin-nav-item .icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255,255,255,.09);
  color: #fff;
  border-right-color: #ff6f00;
}
.admin-sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  gap: 12px;
}
.admin-sidebar-foot a {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .18s;
}
.admin-sidebar-foot a:hover { color: rgba(255,255,255,.8); }

/* ── Main area ── */
.admin-main {
  flex: 1;
  margin-right: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar-title { font-weight: 600; color: #1a237e; font-size: .95rem; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-topbar-user { font-size: .8rem; color: #6c757d; }
.admin-content { flex: 1; padding: 24px; }

/* ── Page head ── */
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-page-title { font-size: 1.15rem; font-weight: 700; color: #111827; }

/* ── Stat cards ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon .icon { width: 1.5rem; height: 1.5rem; }
.si-blue   { background: #e8eaf6; color: #1a237e; }
.si-orange { background: #fff3e0; color: #e65100; }
.si-green  { background: #e8f5e9; color: #2e7d32; }
.si-red    { background: #fce4ec; color: #c62828; }
.stat-val { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1; }
.stat-label { font-size: .78rem; color: #6c757d; margin-top: 3px; }

/* ── Admin card / table ── */
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  overflow: hidden;
  margin-bottom: 20px;
}
.admin-card-head {
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
  color: #374151;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th {
  padding: 10px 14px;
  text-align: right;
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-bottom: 1px solid #f3f4f6;
}
.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f9fafb;
  color: #374151;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
}
.tbl-actions { display: flex; gap: 6px; align-items: center; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-gray   { background: #f3f4f6; color: #4b5563; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* ── Buttons (admin extras) ── */
.btn-sm { padding: 5px 12px !important; font-size: .78rem !important; }
.btn-danger {
  background: #dc2626; color: #fff;
  border: none; cursor: pointer;
  padding: 5px 12px; border-radius: 6px;
  font-family: inherit; font-size: .78rem;
  transition: background .18s;
}
.btn-danger:hover { background: #b91c1c; }
.btn-icon {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 6px;
  font-family: inherit; font-size: .78rem; cursor: pointer;
  text-decoration: none; border: none;
  transition: background .18s, color .18s;
}
.btn-icon .icon { width: .85rem; height: .85rem; }
.btn-edit  { background: #eff6ff; color: #1d4ed8; }
.btn-edit:hover  { background: #dbeafe; }
.btn-del   { background: #fef2f2; color: #dc2626; }
.btn-del:hover   { background: #fee2e2; }
.btn-view  { background: #f0fdf4; color: #16a34a; }
.btn-view:hover  { background: #dcfce7; }

/* ── Admin form ── */
.admin-form-wrap { max-width: 760px; }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: .84rem; font-weight: 600; color: #374151; }
.form-control {
  padding: 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: #111827;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26,35,126,.08);
}
.form-control.ltr { direction: ltr; text-align: left; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-hint { font-size: .73rem; color: #9ca3af; }
.img-preview {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  display: block;
  margin-bottom: 7px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}

/* ── Admin login ── */
.admin-login-outer {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a237e 0%, #0d1b5e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  padding: 24px;
}
.admin-login-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
}
.admin-login-logo { text-align: center; margin-bottom: 28px; }
.admin-login-logo .brand { font-size: 1.6rem; font-weight: 700; color: #1a237e; }
.admin-login-logo .brand em { color: #ff6f00; font-style: normal; }
.admin-login-logo .sub { font-size: .83rem; color: #6c757d; margin-top: 4px; }

/* ── Alerts ── */
.admin-alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .875rem;
  margin-bottom: 16px;
}
.admin-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.admin-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.admin-alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Unread message highlight ── */
.msg-row-unread td { background: #eff6ff !important; font-weight: 500; }
.msg-body-preview { font-size: .8rem; color: #6b7280; margin-top: 3px; }

/* ── Settings ── */
.settings-section {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.settings-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

/* ── Order detail ── */
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.order-info-block { background: #f9fafb; border-radius: 10px; padding: 16px; }
.order-info-block h4 { font-size: .82rem; font-weight: 600; color: #6b7280; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.order-info-row { display: flex; justify-content: space-between; font-size: .875rem; padding: 4px 0; border-bottom: 1px solid #f3f4f6; color: #374151; }
.order-info-row:last-child { border-bottom: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .admin-sidebar { width: 200px; }
  .admin-main { margin-right: 200px; }
  .form-row.cols-2,
  .form-row.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-right: 0; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-login-card { padding: 28px 20px; }
}

/* CR#463: image logo replaces text logo */
.header-logo .icon { display: none; }
.header-logo .logo-img { height: 42px; width: auto; display: block; }

/* ── #B64: .admin-main is a flex child with the default min-width:auto, so the card/table
      never shrinks and edit/delete land off-screen with no scroll rescue at 390px ── */
.admin-main { min-width: 0; }
.admin-content { min-width: 0; }
@media (max-width: 860px) {
  .admin-card { max-width: 100%; overflow-x: auto; overflow-y: visible; }
}
