/* ── Material Symbols Outlined ──────────────────────────────────────────────── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* ── CSS Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.6; transition: background-color 0.25s, color 0.25s; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Light Theme ───────────────────────────────────────────────────────────── */
:root, [data-theme="light"] {
  --primary: #6366F1;
  --primary-rgb: 99,102,241;
  --primary-hover: #4F51C8;
  --primary-container: rgba(99,102,241,0.1);
  --primary-container-solid: #E8E9FF;
  --on-primary: #ffffff;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-low: #F5F5F7;
  --surface-mid: #EEEFF5;
  --surface-high: #E8E8EE;
  --on-surface: #1C1B1F;
  --on-surface-variant: #6B6B7B;
  --on-surface-muted: #9B9BAA;
  --outline: #C8C8D2;
  --outline-variant: #E2E2E8;
  --divider: rgba(0,0,0,0.06);
  --error: #B3261E;
  --on-error: #fff;
  --error-container: #FDECEA;
  --on-error-container: #93000A;
  --success: #166534;
  --success-bg: #dcfce7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08),0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1),0 4px 8px rgba(0,0,0,0.05);
  --card-border: rgba(0,0,0,0.06);
  --navbar-bg: #FFFFFF;
  --navbar-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --drawer-bg: #FFFFFF;
  --input-bg: #F5F5F7;
  --input-border: #DEDEE8;
  --input-focus: #6366F1;
  --footer-bg: #1C1B1F;
  --footer-text: rgba(255,255,255,0.85);
}

/* ── Dark Theme ────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --primary: #818CF8;
  --primary-rgb: 129,140,248;
  --primary-hover: #6370F5;
  --primary-container: rgba(129,140,248,0.15);
  --primary-container-solid: #2D2D5E;
  --on-primary: #1a1a2e;
  --bg: #0F0F1A;
  --surface: #1A1A2E;
  --surface-low: #1E1E30;
  --surface-mid: #252538;
  --surface-high: #2D2D45;
  --on-surface: #E8E8FF;
  --on-surface-variant: #A0A0C0;
  --on-surface-muted: #6B6B90;
  --outline: #3D3D60;
  --outline-variant: #2A2A45;
  --divider: rgba(255,255,255,0.06);
  --error: #F2B8B5;
  --on-error: #601410;
  --error-container: #8C1D18;
  --on-error-container: #F9DEDC;
  --success: #4ADE80;
  --success-bg: rgba(74,222,128,0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3),0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 4px 12px rgba(0,0,0,0.35),0 2px 4px rgba(0,0,0,0.25);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.4),0 4px 8px rgba(0,0,0,0.3);
  --card-border: rgba(255,255,255,0.07);
  --navbar-bg: #1A1A2E;
  --navbar-shadow: 0 1px 0 rgba(255,255,255,0.05);
  --drawer-bg: #1A1A2E;
  --input-bg: #252538;
  --input-border: #3D3D60;
  --input-focus: #818CF8;
  --footer-bg: #0A0A14;
  --footer-text: rgba(255,255,255,0.75);
}

body { background: var(--bg); color: var(--on-surface); }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--on-surface); margin-bottom: 4px; }
.section-subtitle { color: var(--on-surface-variant); font-size: 0.95rem; }

/* ── Responsive helpers ──────────────────────────────────────────────────────── */
.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }
@media (max-width: 700px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
}

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.page-loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--outline); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--navbar-bg); box-shadow: var(--navbar-shadow); }
.navbar-inner { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 64px; max-width: 1280px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-logo-img.logo-dark { filter: brightness(0) invert(1); }
.nav-search-wrap { flex: 1; max-width: 280px; }
.nav-search { display: flex; align-items: center; gap: 8px; background: var(--surface-low); border: 1px solid var(--outline-variant); border-radius: 24px; padding: 7px 16px; transition: border-color 0.2s; }
.nav-search:focus-within { border-color: var(--primary); }
.nav-search-icon { font-size: 18px; color: var(--on-surface-variant); }
.nav-search-input { flex: 1; background: none; border: none; outline: none; font-size: 14px; color: var(--on-surface); min-width: 0; }
.nav-search-input::placeholder { color: var(--on-surface-muted); }
.nav-links { align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--on-surface-variant); transition: background 0.15s, color 0.15s; }
.nav-link:hover, .nav-link.active { background: var(--primary-container); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--on-surface-variant); transition: background 0.15s, color 0.15s; position: relative; }
.nav-icon-btn:hover { background: var(--surface-low); color: var(--on-surface); }
.nav-icon-btn .material-symbols-outlined { font-size: 22px; }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: 2px; right: 2px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--navbar-bg); }
.nav-divider { height: 1px; background: var(--divider); }

/* Mobile Search Bar */
.mobile-search-bar { padding: 8px 16px; }
.mobile-search-form { display: flex; align-items: center; gap: 8px; background: var(--surface-low); border: 1px solid var(--outline-variant); border-radius: 24px; padding: 8px 12px; }
.mobile-search-form .material-symbols-outlined { color: var(--on-surface-variant); font-size: 20px; }
.mobile-search-input { flex: 1; background: none; border: none; outline: none; font-size: 14px; color: var(--on-surface); min-width: 0; }

/* ── Drawer ─────────────────────────────────────────────────────────────────── */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: var(--drawer-bg); z-index: 200; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-header { padding: 24px 20px 16px; background: #1C1B1F; display: flex; align-items: center; }
.drawer-logo { height: 32px; filter: brightness(0) invert(1); }
.drawer-nav { padding: 8px 8px; flex: 1; overflow-y: auto; }
.drawer-link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; color: var(--on-surface-variant); font-size: 15px; font-weight: 500; transition: background 0.15s, color 0.15s; width: 100%; text-align: left; }
.drawer-link:hover, .drawer-link.active { background: var(--primary-container); color: var(--primary); }
.drawer-link .material-symbols-outlined { font-size: 22px; }
.drawer-badge { margin-left: auto; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.drawer-divider { height: 1px; background: var(--divider); margin: 8px 16px; }
.drawer-theme-btn { cursor: pointer; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; border: 1.5px solid transparent; text-decoration: none; }
.btn .material-symbols-outlined { font-size: 18px; }
.btn-filled { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-filled:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.35); }
.btn-filled:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-outlined { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outlined:hover { background: var(--primary-container); }
.btn-outlined:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outlined-white { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outlined-white:hover { background: rgba(255,255,255,0.25); }
.btn-tonal { background: var(--primary-container); color: var(--primary); border-color: transparent; }
.btn-tonal:hover { background: rgba(var(--primary-rgb),0.18); }
.btn-tonal:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-text { background: transparent; color: var(--primary); border-color: transparent; padding: 8px 12px; }
.btn-text:hover { background: var(--primary-container); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--on-surface-variant); }
.form-input { background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--on-surface); outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%; }
.form-input:focus { border-color: var(--input-focus); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.12); }
.form-input.input-error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-error { font-size: 12px; color: var(--error); min-height: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-grid-2 { grid-template-columns: 1fr; } }
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 12px; color: var(--on-surface-muted); font-size: 20px !important; pointer-events: none; }
.input-with-icon { padding-left: 42px !important; }
.input-eye-btn { position: absolute; right: 10px; color: var(--on-surface-muted); display: flex; align-items: center; }
.input-eye-btn:hover { color: var(--on-surface); }
.form-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.form-card-title { font-size: 1.05rem; font-weight: 700; color: var(--on-surface); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.form-card-title .material-symbols-outlined { color: var(--primary); font-size: 22px; }
.filter-select { background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: var(--on-surface); outline: none; width: 100%; cursor: pointer; }

/* ── Empty State ─────────────────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 24px; gap: 12px; }
.empty-state-icon { font-size: 72px !important; color: var(--on-surface-muted); margin-bottom: 8px; }
.empty-state-title { font-size: 1.4rem; font-weight: 700; color: var(--on-surface); }
.empty-state-subtitle { color: var(--on-surface-variant); max-width: 360px; }
.empty-cart-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--surface-low); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.empty-cart-icon .material-symbols-outlined { font-size: 40px; color: var(--on-surface-muted); }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; min-width: 280px; max-width: 480px; pointer-events: none; }
.toast { background: #2D2D45; color: #E8E8FF; border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font-size: 14px; opacity: 0; transform: translateY(12px); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); pointer-events: auto; }
.toast-show { opacity: 1; transform: translateY(0); }
.toast-msg { flex: 1; }
.toast-action { color: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.toast-close { color: rgba(255,255,255,0.5); display: flex; align-items: center; cursor: pointer; }
.toast-close:hover { color: #fff; }
.toast-close .material-symbols-outlined { font-size: 18px; }

/* ── Stars ─────────────────────────────────────────────────────────────────── */
.stars { display: inline-flex; align-items: center; }
.star { font-size: 16px !important; }
.star-full, .star-half { color: #F59E0B; }
.star-empty { color: var(--outline); }

/* ── Product Card ─────────────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
@media (max-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.product-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Shareable <a> link — makes the card a real link for copy/share/ads */
.product-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.product-card-link:focus { outline: none; }
.product-card-img-wrap { position: relative; overflow: hidden; background: var(--surface-low); aspect-ratio: 1; }
.product-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-badge { position: absolute; top: 8px; left: 8px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.product-card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-name { font-size: 13px; font-weight: 600; color: var(--on-surface); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-card-rating { display: flex; align-items: center; gap: 4px; }
.product-card-rating .stars { gap: 1px; }
.product-card-rating .star { font-size: 13px !important; }
.rating-text { font-size: 12px; color: var(--on-surface-muted); }
.product-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-current { font-size: 15px; font-weight: 700; color: var(--primary); }
.price-original { font-size: 12px; color: var(--on-surface-muted); text-decoration: line-through; }
/* Add-to-cart action area below the link */
.product-card-action { padding: 0 12px 12px; }
.add-to-cart-btn { width: 100%; margin-top: 4px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; background-size: 100% 100%; background-position: center; background-repeat: no-repeat; }
@media (max-width: 700px) { .hero { min-height: 320px; } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.1) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 640px; padding: 48px 40px; }
@media (max-width: 700px) { .hero-content { padding: 32px 24px; } }
.hero-tag { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.85); text-transform: uppercase; margin-bottom: 12px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.hero-title-accent { color: var(--primary); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.82); margin-bottom: 28px; max-width: 480px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Features Bar ─────────────────────────────────────────────────────────── */
.features-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 20px; max-width: 1280px; margin: 0 auto; }
@media (max-width: 900px) { .features-bar { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .features-bar { gap: 10px; padding: 20px 12px; } }
.feature-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 10px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; min-width: 0; overflow: hidden; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-container); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon .material-symbols-outlined { color: var(--primary); font-size: 24px; }
.feature-title { font-size: 14px; font-weight: 700; color: var(--on-surface); margin: 0; }
.feature-sub { font-size: 12px; color: var(--on-surface-muted); margin: 0; }

/* ── Category Grid ─────────────────────────────────────────────────────────── */
.categories-section { background: var(--surface-low); }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; text-decoration: none; color: var(--on-surface); }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--primary-rgb),0.3); }
.category-icon-wrap { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cat-color) 15%, transparent); }
.category-icon-wrap .material-symbols-outlined { font-size: 28px; color: var(--cat-color); }
.category-name { font-size: 13px; font-weight: 600; text-align: center; }

/* ── Products Section ─────────────────────────────────────────────────────── */
.deals-section { background: var(--surface-low); }

/* ── Newsletter ─────────────────────────────────────────────────────────────── */
.newsletter-section { background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%); padding: 60px 20px; text-align: center; }
.newsletter-inner { max-width: 540px; margin: 0 auto; }
.newsletter-title { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.newsletter-sub { color: rgba(255,255,255,0.88); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
@media (max-width: 500px) { .newsletter-form { flex-direction: column; } }
.newsletter-input { flex: 1; background: rgba(255,255,255,0.95); border: none; border-radius: 10px; padding: 12px 16px; font-size: 14px; outline: none; }
.newsletter-btn { background: #1C1B1F; color: #fff; border: none; white-space: nowrap; }
.newsletter-btn:hover { background: #333; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 20px 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { height: 36px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-desc { font-size: 13.5px; opacity: 0.8; line-height: 1.7; max-width: 300px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); transition: background 0.2s; }
.footer-social:hover { background: var(--primary); color: #fff; }
.footer-heading { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13.5px; opacity: 0.8; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--primary); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.footer-contact .material-symbols-outlined { font-size: 18px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.footer-contact a { opacity: 0.8; } .footer-contact a:hover { opacity: 1; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); max-width: 1280px; margin: 0 auto; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; opacity: 0.7; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { opacity: 1; color: var(--primary); }

/* ── Products Page ─────────────────────────────────────────────────────────── */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 32px 20px; }
@media (max-width: 900px) { .products-layout { grid-template-columns: 1fr; } }
.filter-sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.filter-panel { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.filter-group { padding: 8px 0; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--on-surface); margin-bottom: 10px; }
.filter-label-row { display: flex; justify-content: space-between; align-items: center; }
.filter-price-display { font-size: 12px; color: var(--primary); font-weight: 600; }
.filter-search-wrap { display: flex; align-items: center; gap: 8px; background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: 10px; padding: 8px 12px; }
.filter-search-wrap:focus-within { border-color: var(--primary); }
.filter-search-wrap .material-symbols-outlined { color: var(--on-surface-muted); font-size: 18px; }
.filter-input { flex: 1; background: none; border: none; outline: none; font-size: 14px; color: var(--on-surface); min-width: 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 500; background: var(--surface-low); color: var(--on-surface-variant); border: 1px solid var(--outline-variant); cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 4px; }
.filter-chip:hover { background: var(--primary-container); color: var(--primary); border-color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-count { font-size: 11px; opacity: 0.8; }
.filter-divider { height: 1px; background: var(--divider); margin: 4px 0; }
.price-slider { width: 100%; accent-color: var(--primary); height: 4px; margin-top: 12px; }
.btn-full { width: 100%; margin-top: 8px; }
.products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.products-title { font-size: 1.5rem; font-weight: 700; }
.products-count { font-size: 13px; color: var(--on-surface-muted); }
.filter-active-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; margin-left: 4px; }
.mobile-filter-panel { display: none; background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.mobile-filter-panel.open { display: block; }

/* ── Product Detail ─────────────────────────────────────────────────────────── */
.detail-page { padding: 32px 0; }
.detail-back { margin-bottom: 20px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .detail-layout { grid-template-columns: 1fr; gap: 24px; } }
.detail-main-img-wrap { background: var(--surface-low); border-radius: 12px; overflow: hidden; border: 1px solid var(--card-border); aspect-ratio: 1; }
.detail-main-img { width: 100%; height: 100%; object-fit: cover; }
.detail-category-badge { display: inline-block; background: var(--primary-container); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.detail-name { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-rating-text { font-size: 13px; color: var(--on-surface-muted); }
.detail-divider { height: 1px; background: var(--divider); margin: 16px 0; }
.detail-price-row { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.detail-price-right { display: flex; flex-direction: column; gap: 4px; }
.detail-price-original { font-size: 15px; color: var(--on-surface-muted); text-decoration: line-through; }
.detail-save-badge { background: rgba(34,197,94,0.12); color: #16a34a; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
[data-theme="dark"] .detail-save-badge { color: #4ade80; }
.stock-badge { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.stock-badge.in-stock { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.25); }
.stock-badge.out-stock { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.25); }
[data-theme="dark"] .stock-badge.in-stock { color: #4ade80; }
[data-theme="dark"] .stock-badge.out-stock { color: #f87171; }
.detail-desc-label { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.detail-desc { font-size: 14px; color: var(--on-surface-variant); line-height: 1.75; margin-bottom: 20px; }
/* Description section below reviews */
.detail-desc-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--card-border); }
.detail-desc-section .section-title { margin-bottom: 14px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.qty-label { font-size: 14px; font-weight: 700; }
.qty-stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-low); border: 1px solid var(--outline-variant); border-radius: 10px; overflow: hidden; }
.qty-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: background 0.15s; }
.qty-btn:hover { background: var(--primary-container); }
.qty-btn .material-symbols-outlined { font-size: 18px; }
.qty-value { width: 36px; text-align: center; font-weight: 700; font-size: 15px; }
.qty-input { width: 44px; text-align: center; font-weight: 700; font-size: 15px; border: none; background: transparent; outline: none; padding: 0; color: var(--on-surface); font-family: inherit; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-note { font-size: 12px; color: var(--on-surface-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.qty-note .material-symbols-outlined { font-size: 14px; color: var(--primary); }
.out-of-stock-notice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--error-container); color: var(--on-error-container); border-radius: 8px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.detail-features { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.detail-feature-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-surface-muted); }
.detail-feature-item .material-symbols-outlined { font-size: 18px; color: var(--primary); }
.related-section { margin-top: 48px; }

/* ── Cart ─────────────────────────────────────────────────────────────────── */
.cart-page { padding: 32px 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.cart-title { font-size: 1.5rem; font-weight: 800; }
.cart-count { font-size: 13px; color: var(--on-surface-muted); }
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-select-all { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 0 4px; }
.cart-selected-count { font-size: 12px; color: var(--primary); font-weight: 600; margin-left: auto; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--on-surface-muted); }
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.cart-item { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1.5px solid var(--card-border); border-radius: 12px; padding: 14px; margin-bottom: 12px; transition: border-color 0.2s; }
.cart-item.selected { border-color: rgba(var(--primary-rgb),0.4); }
.cart-item-img { width: 75px; height: 75px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--surface-low); border: 1px solid var(--card-border); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--on-surface); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-cat { font-size: 12px; color: var(--on-surface-muted); margin: 4px 0 8px; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.cart-item-remove { color: var(--error); display: flex; align-items: center; padding: 4px; border-radius: 6px; }
.cart-item-remove:hover { background: var(--error-container); }
.cart-item-remove .material-symbols-outlined { font-size: 20px; }
.cart-summary-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; }
.cart-summary-title { font-size: 1.05rem; font-weight: 700; }
.cart-summary-sub { font-size: 13px; }
.cart-summary-sub.selected { color: var(--primary); }
.cart-summary-sub.none-selected { color: var(--on-surface-muted); }
.summary-rows { display: flex; flex-direction: column; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.summary-row span:first-child { color: var(--on-surface-variant); }
.summary-row span:last-child { font-weight: 600; }
.free-shipping-hint { background: rgba(59,130,246,0.1); color: #2563EB; font-size: 12px; padding: 8px 12px; border-radius: 6px; }
[data-theme="dark"] .free-shipping-hint { color: #60A5FA; }
.summary-divider { height: 1px; background: var(--divider); }
.summary-total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.summary-total-amount { font-size: 1.2rem; color: var(--primary); font-weight: 800; }
.btn.disabled { opacity: 0.5; pointer-events: none; }
.cart-clear-btn { gap: 6px; }

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.checkout-page { padding: 32px 0; }
.checkout-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--outline-variant); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.payment-option.selected { border-color: var(--primary); background: var(--primary-container); }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-option .material-symbols-outlined { color: var(--on-surface-muted); font-size: 24px; }
.payment-option.selected .material-symbols-outlined { color: var(--primary); }
.pay-title { font-size: 14px; font-weight: 600; }
.pay-sub { font-size: 12px; color: var(--on-surface-muted); }
/* Coming-soon payment option */
.payment-option-soon { opacity: 0.45; filter: blur(0.4px); cursor: not-allowed; pointer-events: none; position: relative; }
.coming-soon-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--outline-variant); color: var(--on-surface-muted); padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
/* Wallet sub-panel */
.wallet-panel { border: 1.5px solid var(--primary); background: var(--primary-container); border-radius: 12px; padding: 16px; margin-top: -4px; animation: fadeIn 0.2s ease; }
.wallet-panel-hint { font-size: 12px; color: var(--on-surface-muted); margin-bottom: 14px; line-height: 1.5; }
.wallet-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wallet-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 20px; border: 1.5px solid var(--outline-variant); border-radius: 12px; cursor: pointer; transition: all 0.2s; background: var(--surface); min-width: 110px; flex: 1; }
.wallet-option input[type="radio"] { display: none; }
.wallet-option.wallet-selected { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.15); }
.wallet-logo { height: 28px; object-fit: contain; }
.wallet-logo-text { font-size: 15px; font-weight: 800; color: var(--on-surface); }
.wallet-name { font-size: 13px; font-weight: 600; color: var(--on-surface); }
.wallet-account-info { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--outline-variant); border-radius: 10px; padding: 12px 14px; margin-top: 4px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
/* Wallet step boxes (payment flow) */
.wallet-step-box { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--outline-variant); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.wallet-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.wallet-pending-note { font-size: 12px; color: var(--on-surface-muted); background: rgba(var(--primary-rgb),0.06); border-radius: 8px; padding: 10px 12px; margin-top: 4px; line-height: 1.6; }
/* Admin transaction badge */
.adm2-txn-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-family: monospace; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; border-radius: 6px; padding: 2px 6px; margin-top: 4px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Admin confirm payment button */
.adm2-confirm-payment-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #fff; background: #d97706; border: none; border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.adm2-confirm-payment-btn:hover { background: #b45309; }
.adm2-confirm-payment-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.adm2-confirm-payment-btn .material-symbols-outlined { font-size: 16px; }
/* ── Google sign-in button ─────────────────────────────────────────────────── */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border: 1.5px solid var(--outline-variant); border-radius: 10px; background: var(--surface); color: var(--on-surface); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.btn-google:hover { background: var(--surface-container); border-color: var(--primary); }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Welcome bottom sheet ──────────────────────────────────────────────────── */
#welcome-sheet { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
#welcome-sheet.welcome-sheet-open { pointer-events: auto; }
.welcome-sheet-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.35s; }
.welcome-sheet-open .welcome-sheet-overlay { opacity: 1; }
.welcome-sheet { position: absolute; bottom: 0; left: 0; right: 0; background: var(--surface); border-radius: 24px 24px 0 0; padding: 12px 24px 40px; max-width: 520px; margin: 0 auto; transform: translateY(100%); transition: transform 0.35s cubic-bezier(.32,1.01,.58,1); box-shadow: 0 -4px 32px rgba(0,0,0,0.18); }
.welcome-sheet-open .welcome-sheet { transform: translateY(0); }
.welcome-sheet-exit .welcome-sheet { transform: translateY(100%); }
.welcome-sheet-exit .welcome-sheet-overlay { opacity: 0; }
.welcome-sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--outline-variant); margin: 0 auto 20px; }
.welcome-sheet-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 12px; }
.welcome-sheet-brand { font-size: 24px; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; }
.welcome-sheet-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.welcome-sheet-sub { font-size: 14px; color: var(--on-surface-muted); text-align: center; margin-bottom: 24px; }
.welcome-sheet-actions { display: flex; flex-direction: column; gap: 12px; }
.welcome-sheet-row { display: flex; gap: 10px; }

/* ── Returning guest banner ────────────────────────────────────────────────── */
.guest-return-banner { display: flex; align-items: center; gap: 10px; background: var(--primary-container,#ede9fe); border: 1px solid var(--primary); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; flex-wrap: wrap; }

/* ── Guest post-checkout signup prompt ─────────────────────────────────────── */
.guest-signup-prompt { display: flex; align-items: center; gap: 14px; background: var(--surface-container); border: 1.5px solid var(--outline-variant); border-radius: 16px; padding: 16px 20px; margin-top: 24px; flex-wrap: wrap; }

.checkout-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 12px; }
.checkout-item-img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--surface-low); }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-size: 13px; font-weight: 600; }
.checkout-item-qty { font-size: 12px; color: var(--on-surface-muted); }
.checkout-item-price { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.order-success { text-align: center; padding: 64px 24px; max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.order-success-icon .material-symbols-outlined { font-size: 80px; color: #22C55E; }
.order-success-title { font-size: 1.8rem; font-weight: 800; }
.order-success-sub { color: var(--on-surface-variant); font-size: 15px; }
.order-success-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── Auth Pages ─────────────────────────────────────────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; padding: 48px 20px; min-height: 80vh; }
.auth-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 20px; padding: 36px; width: 100%; max-width: 440px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.auth-icon { font-size: 48px !important; color: var(--primary); align-self: center; margin-bottom: 6px; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; }
.auth-sub { color: var(--on-surface-muted); text-align: center; font-size: 14px; margin-bottom: 8px; }
.auth-form { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--on-surface-muted); font-size: 12px; margin: 8px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--outline-variant); }
.auth-footer-links { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }
.error-box { background: var(--error-container); color: var(--on-error-container); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 8px; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(34,197,94,0.12); color: #16a34a; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 20px; margin-top: 6px; }
[data-theme="dark"] .verified-badge { color: #4ade80; }
.verified-badge .material-symbols-outlined { font-size: 14px; }

/* ── Account ─────────────────────────────────────────────────────────────────── */
.account-page { padding-top: 0; }
.account-tabs { display: flex; border-bottom: 1px solid var(--divider); background: var(--surface-low); }
.account-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-size: 14px; font-weight: 600; color: var(--on-surface-muted); border-bottom: 2px solid transparent; transition: all 0.2s; cursor: pointer; }
.account-tab:hover { background: var(--primary-container); color: var(--primary); }
.account-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }
.account-tab .material-symbols-outlined { font-size: 20px; }
.tab-badge { background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.account-content { padding: 24px 20px; max-width: 560px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Profile centered layout */
.profile-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0 24px; }
.profile-avatar-circle { width: 90px; height: 90px; border-radius: 50%; background: var(--primary-container); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; }
.profile-name-center { font-size: 1.2rem; font-weight: 700; margin-bottom: 2px; }
.profile-email-center { font-size: 14px; color: var(--on-surface-muted); margin-bottom: 8px; }
.verified-badge-row { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #22c55e; margin-bottom: 4px; }
.guest-badge { background: var(--surface-low); border: 1px solid var(--divider); border-radius: 20px; padding: 3px 12px; font-size: 13px; color: var(--on-surface-muted); }

/* Profile option rows */
.profile-options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.profile-option-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: background 0.15s, box-shadow 0.15s; box-shadow: var(--shadow-sm); }
.profile-option-card:hover { background: var(--primary-container); box-shadow: var(--shadow-md); }
.profile-option-icon { font-size: 22px; color: var(--primary); flex-shrink: 0; }
.profile-option-text { flex: 1; min-width: 0; text-align: left; }
.profile-option-title { font-size: 14px; font-weight: 600; color: var(--on-surface); text-align: left; }
.profile-option-subtitle { font-size: 12px; color: var(--on-surface-muted); margin-top: 1px; text-align: left; }
.profile-option-arrow { font-size: 14px; color: var(--on-surface-muted); }

/* Orders list - Flutter style cards */
.orders-list { display: flex; flex-direction: column; }
.order-card-flutter { background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.order-card-flutter-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px; }
.order-id-text { font-size: 13px; font-weight: 700; color: var(--on-surface); font-family: monospace; }
.order-date-text { font-size: 12px; color: var(--on-surface-muted); margin-top: 2px; }
.order-status-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; letter-spacing: 0.3px; }
.order-card-flutter-items { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--divider); }
.order-item-row-flutter { display: flex; align-items: center; gap: 10px; }
.order-item-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.order-item-name-text { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-item-qty-text { font-size: 12px; color: var(--on-surface-muted); }
.order-card-flutter-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.order-total-text { font-size: 14px; font-weight: 700; color: var(--primary); }
.btn-sm { font-size: 12px; padding: 6px 12px; }

/* Old order-card kept for backwards compat */
.order-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--divider); }
.order-id { font-size: 13px; font-weight: 700; color: var(--on-surface); font-family: monospace; }
.order-date { font-size: 12px; color: var(--on-surface-muted); }
.order-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.status-pending { background: rgba(245,158,11,0.12); color: #D97706; }
.status-processing { background: rgba(99,102,241,0.12); color: var(--primary); }
.status-shipped { background: rgba(59,130,246,0.12); color: #2563EB; }
.status-delivered { background: rgba(34,197,94,0.12); color: #16A34A; }
.status-cancelled { background: rgba(239,68,68,0.12); color: #DC2626; }
.order-items-list { padding: 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.order-item-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.order-item-img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface-low); }
.order-item-name { flex: 1; font-weight: 600; }
.order-item-qty { font-size: 12px; color: var(--on-surface-muted); }
.order-more { font-size: 12px; color: var(--primary); }
.order-card-footer { display: flex; gap: 20px; padding: 14px 20px; background: var(--surface-low); font-size: 13px; flex-wrap: wrap; }
.order-label { color: var(--on-surface-muted); display: block; margin-bottom: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.order-total { font-size: 15px; font-weight: 700; color: var(--primary); }

/* Order detail rows in modal */
.order-detail-row { display: flex; gap: 12px; padding-bottom: 10px; align-items: flex-start; }
.order-detail-label { width: 80px; flex-shrink: 0; font-size: 13px; color: var(--on-surface-muted); }
.order-detail-value { flex: 1; font-size: 14px; font-weight: 500; }
.order-detail-item { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-card { background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 100%; }
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-text { background: none; color: var(--primary); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.btn-text:hover { background: var(--primary-container); }

/* ── Contact ─────────────────────────────────────────────────────────────────── */
.contact-page { padding: 32px 0; }
.contact-header { text-align: center; margin-bottom: 36px; }
.contact-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.contact-sub { color: var(--on-surface-muted); max-width: 500px; margin: 0 auto; }
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.contact-info-items { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-container); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon .material-symbols-outlined { color: var(--primary); font-size: 20px; }
.contact-info-label { font-size: 12px; font-weight: 700; color: var(--on-surface-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-info-val { font-size: 14px; font-weight: 500; }
.contact-features { display: flex; flex-direction: column; gap: 10px; }
.contact-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-page { padding: 32px 0; }
.admin-header { margin-bottom: 24px; }
.admin-title { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.admin-title .material-symbols-outlined { color: var(--primary); }
.admin-sub { color: var(--on-surface-muted); font-size: 14px; margin-top: 4px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 700px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.admin-stat-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); }
.admin-stat-card .material-symbols-outlined { font-size: 32px; }
.stat-val { font-size: 1.3rem; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--on-surface-muted); }
.admin-filters { margin-bottom: 20px; }
.admin-orders { display: flex; flex-direction: column; gap: 16px; }
.admin-order-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.admin-order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.admin-order-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.admin-order-total { font-size: 15px; font-weight: 700; color: var(--primary); }
.admin-order-customer, .admin-order-addr { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-surface-muted); margin-bottom: 8px; }
.admin-order-customer .material-symbols-outlined, .admin-order-addr .material-symbols-outlined { font-size: 16px; }
.admin-order-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding: 10px; background: var(--surface-low); border-radius: 8px; }
.admin-item-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.admin-item-row img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.admin-item-row span:last-child { margin-left: auto; font-weight: 600; }
.admin-order-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-loading { display: flex; align-items: center; gap: 14px; padding: 48px 0; color: var(--on-surface-muted); }

/* ── Admin Nav Link ──────────────────────────────────────────────────────────── */
.admin-nav-link { color: var(--primary) !important; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.admin-nav-link:hover { background: var(--primary-container) !important; }

/* ── Admin Products Table ───────────────────────────────────────────────────── */
.admin-products-table { display: flex; flex-direction: column; gap: 8px; }
.admin-products-head { display: grid; grid-template-columns: 2fr 1fr 1fr 120px 70px; gap: 12px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--on-surface-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 700px) { .admin-products-head { display: none; } }
.admin-product-row { display: grid; grid-template-columns: 2fr 1fr 1fr 120px 70px; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; }
@media (max-width: 700px) { .admin-product-row { grid-template-columns: 1fr; } }
.admin-product-name { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; min-width: 0; }
.admin-product-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.admin-product-cat { font-size: 12px; color: var(--on-surface-muted); }
.admin-product-price { font-size: 13px; font-weight: 600; color: var(--primary); }
.admin-stock-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.admin-stock-input { border: 1px solid var(--outline-variant); border-radius: 8px; padding: 4px 8px; font-size: 14px; font-weight: 600; background: var(--surface-low); color: var(--on-surface); font-family: inherit; }

/* ── Stock Labels ────────────────────────────────────────────────────────────── */
.stock-ok   { color: #16a34a; font-size: 12px; font-weight: 600; }
.stock-low  { color: #d97706; font-size: 12px; font-weight: 600; }
.stock-zero { color: #dc2626; font-size: 12px; font-weight: 600; }
[data-theme="dark"] .stock-ok  { color: #4ade80; }
[data-theme="dark"] .stock-low { color: #fbbf24; }
[data-theme="dark"] .stock-zero{ color: #f87171; }

/* ── Saved Address Card ──────────────────────────────────────────────────────── */
.saved-addr-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--surface-low); border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 10px; }
.saved-addr-banner { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--primary-container); border-radius: 12px; margin-bottom: 16px; font-size: 14px; flex-wrap: wrap; }
.saved-addr-banner .material-symbols-outlined { color: var(--primary); }

/* ── Help Page ───────────────────────────────────────────────────────────────── */
.help-page { padding: 40px 0 60px; }
.help-hero { text-align: center; margin-bottom: 40px; }
.help-title { font-size: 2rem; font-weight: 800; margin: 12px 0 8px; }
.help-subtitle { color: var(--on-surface-muted); font-size: 1rem; }
.help-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
@media (max-width: 700px) { .help-contact-cards { grid-template-columns: 1fr; } }
.help-contact-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.help-contact-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.help-contact-card p { font-size: 14px; color: var(--on-surface-muted); margin: 0; }

/* ── FAQ ──────────────────────────────────────────────────────────────────────── */
.faq-section { margin-bottom: 48px; }
.faq-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.faq-open { border-color: rgba(var(--primary-rgb), 0.4); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; gap: 12px; color: var(--on-surface); background: transparent; border: none; font-family: inherit; }
.faq-question:hover { background: var(--surface-low); }
.faq-chevron { font-size: 20px; flex-shrink: 0; transition: transform 0.2s; color: var(--primary); }
.faq-answer { padding: 0 20px 16px; font-size: 14px; color: var(--on-surface-variant); line-height: 1.7; }
.help-cta-card { background: var(--primary-container); border-radius: 20px; padding: 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.help-cta-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.help-cta-card p { font-size: 14px; color: var(--on-surface-muted); margin: 0; }

/* ── Privacy Page ─────────────────────────────────────────────────────────────── */
.privacy-page { padding: 40px 0 60px; }
.privacy-hero { text-align: center; margin-bottom: 40px; }
.privacy-title { font-size: 2rem; font-weight: 800; margin: 12px 0 6px; }
.privacy-updated { font-size: 13px; color: var(--on-surface-muted); }
.privacy-body { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .privacy-body { grid-template-columns: 1fr; } }
.privacy-toc { background: var(--surface); border: 1px solid var(--card-border); border-radius: 14px; padding: 20px; position: sticky; top: 80px; }
.privacy-toc h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.privacy-toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.privacy-toc a { font-size: 13px; color: var(--on-surface-muted); text-decoration: none; }
.privacy-toc a:hover { color: var(--primary); }
@media (max-width: 800px) { .privacy-toc { position: static; } }
.privacy-content { font-size: 14.5px; line-height: 1.8; color: var(--on-surface-variant); }
.privacy-intro { margin-bottom: 24px; font-size: 15px; }
.privacy-content section { margin-bottom: 32px; }
.privacy-content h2 { font-size: 1.1rem; font-weight: 800; color: var(--on-surface); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-container); }
.privacy-content h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: var(--on-surface); }
.privacy-content ul, .privacy-content ol { padding-left: 20px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.privacy-content a { color: var(--primary); text-decoration: none; }
.privacy-content a:hover { text-decoration: underline; }
.privacy-contact-box { background: var(--surface-low); border-radius: 12px; padding: 20px; line-height: 2; margin-top: 8px; }


/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL — standalone layout
   ═══════════════════════════════════════════════════════════════ */

/* ── Admin Login Page ──────────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f5;
  padding: 24px;
}
[data-theme="dark"] .admin-login-page { background: #0f1117; }

.admin-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}
[data-theme="dark"] .admin-login-card { background: #1a1d27; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.admin-login-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(99,102,241,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.admin-login-icon .material-symbols-outlined {
  font-size: 38px;
  color: #6366F1;
}

.admin-login-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 6px;
}
[data-theme="dark"] .admin-login-title { color: #f0f0f8; }

.admin-login-sub {
  font-size: 13px;
  color: #888;
  margin: 0 0 28px;
}

.admin-error-box {
  width: 100%;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
[data-theme="dark"] .admin-error-box { background: #3f1515; color: #fca5a5; }

#admin-login-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }

.admin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-icon {
  position: absolute;
  left: 12px;
  font-size: 19px;
  color: #9ca3af;
  pointer-events: none;
}

.admin-input {
  width: 100%;
  padding: 13px 40px 13px 40px;
  border: 1.5px solid #dde0e8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #f8f8fc;
  color: #1a1a2e;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}
[data-theme="dark"] .admin-input { background: #252836; border-color: #353849; color: #f0f0f8; }
.admin-input:focus { border-color: #6366F1; background: #fff; }
[data-theme="dark"] .admin-input:focus { background: #1e2130; }

.admin-eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #9ca3af;
}
.admin-eye-btn:hover { color: #6366F1; }

.admin-sign-in-btn {
  width: 100%;
  padding: 14px;
  background: #6366F1;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.admin-sign-in-btn:hover:not(:disabled) { background: #4f46e5; }
.admin-sign-in-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Spinner for button */
.admin-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Dashboard Wrapper ─────────────────────────────────────────── */
.adm-wrap {
  display: flex;
  min-height: 100vh;
  background: #f3f4f8;
}
[data-theme="dark"] .adm-wrap { background: #0f1117; }

/* ── Sidebar ───────────────────────────────────────────────────── */
.adm-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
[data-theme="dark"] .adm-sidebar { background: #16192a; border-color: #2a2d3e; }

.adm-logo-wrap {
  padding: 24px 20px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
}
[data-theme="dark"] .adm-logo-wrap { border-color: #2a2d3e; }
.adm-logo { height: 32px; object-fit: contain; }
.adm-logo-label { font-size: 12px; font-weight: 700; color: #6366F1; letter-spacing: 0.05em; text-transform: uppercase; }

.adm-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
[data-theme="dark"] .adm-nav-btn { color: #9ca3af; }
.adm-nav-btn:hover { background: #f0f1fe; color: #6366F1; }
[data-theme="dark"] .adm-nav-btn:hover { background: #23263d; color: #a5b4fc; }
.adm-nav-btn.active { background: #eff0fe; color: #6366F1; }
[data-theme="dark"] .adm-nav-btn.active { background: #23263d; color: #a5b4fc; }
.adm-nav-btn .material-symbols-outlined { font-size: 20px; }

.adm-nav-badge {
  margin-left: auto;
  background: #6366F1;
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

.adm-sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="dark"] .adm-sidebar-footer { border-color: #2a2d3e; }

.adm-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f3f4f8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  overflow: hidden;
}
[data-theme="dark"] .adm-user-chip { background: #1e2130; color: #9ca3af; }
.adm-user-chip .material-symbols-outlined { font-size: 17px; flex-shrink: 0; color: #6366F1; }
.adm-user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-sign-out-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: none;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #ef4444;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
[data-theme="dark"] .adm-sign-out-btn { border-color: #2a2d3e; }
.adm-sign-out-btn:hover { background: #fee2e2; }
[data-theme="dark"] .adm-sign-out-btn:hover { background: #2c1515; }
.adm-sign-out-btn .material-symbols-outlined { font-size: 18px; }

/* ── Main Content ──────────────────────────────────────────────── */
.adm-main {
  flex: 1;
  min-width: 0;
  padding: 28px 28px 48px;
  overflow-x: hidden;
}
@media (max-width: 700px) { .adm-main { padding: 16px; } }

.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.adm-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}
[data-theme="dark"] .adm-page-title { color: #f0f0f8; }

.adm-mobile-menu {
  display: none;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--on-surface);
}
@media (max-width: 768px) {
  .adm-mobile-menu { display: flex; }
  .adm-sidebar { position: fixed; left: -260px; top: 0; z-index: 200; transition: left 0.3s; height: 100vh; }
  .adm-sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,0.2); }
}

/* ── Stats Row ─────────────────────────────────────────────────── */
.adm-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .adm-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .adm-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; } }

.adm-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}
[data-theme="dark"] .adm-stat-card { background: #1a1d27; border-color: #2a2d3e; }
.adm-stat-card .material-symbols-outlined { font-size: 30px; flex-shrink: 0; }
.adm-stat-val { font-size: 1.3rem; font-weight: 800; color: #1a1a2e; margin: 0 0 2px; line-height: 1; }
[data-theme="dark"] .adm-stat-val { color: #f0f0f8; }
.adm-stat-label { font-size: 12px; color: #888; margin: 0; }

/* ── Filter Tabs ───────────────────────────────────────────────── */
.adm-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.adm-filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}
[data-theme="dark"] .adm-filter-tab { background: #1a1d27; border-color: #2a2d3e; color: #9ca3af; }
.adm-filter-tab:hover { border-color: #6366F1; color: #6366F1; }
.adm-filter-tab.active { background: #6366F1; border-color: #6366F1; color: #fff; }

.adm-tab-count {
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 6px;
  font-weight: 700;
}
.adm-filter-tab.active .adm-tab-count { background: rgba(255,255,255,0.25); }

/* ── Orders ────────────────────────────────────────────────────── */
.adm-orders-list { display: flex; flex-direction: column; gap: 14px; }

.adm-order-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
[data-theme="dark"] .adm-order-card { background: #1a1d27; border-color: #2a2d3e; }

.adm-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.adm-order-id-row { display: flex; flex-direction: column; gap: 3px; }
.adm-order-id { font-size: 11px; font-family: monospace; color: #888; }
.adm-order-date { font-size: 12px; color: #888; }

.adm-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.adm-order-customer, .adm-order-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
[data-theme="dark"] .adm-order-customer, [data-theme="dark"] .adm-order-addr { color: #9ca3af; }
.adm-order-customer .material-symbols-outlined,
.adm-order-addr .material-symbols-outlined { font-size: 15px; color: #9ca3af; }
.adm-dot { color: #ccc; }

.adm-order-items-preview {
  background: #f8f8fc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="dark"] .adm-order-items-preview { background: #12151f; }

.adm-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}
[data-theme="dark"] .adm-item-row { color: #c4c4d0; }
.adm-item-thumb { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.adm-qty { color: #888; font-size: 12px; }
.adm-item-price { margin-left: auto; font-weight: 700; font-size: 13px; color: #6366F1; }
.adm-more { font-size: 12px; color: #9ca3af; margin: 0; }

.adm-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #f0f0f8;
  padding-top: 12px;
  margin-top: 4px;
}
[data-theme="dark"] .adm-order-footer { border-color: #252836; }
.adm-order-total { font-size: 16px; font-weight: 800; color: #6366F1; }

.adm-status-select {
  padding: 8px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  color: #1a1a2e;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
[data-theme="dark"] .adm-status-select { background: #252836; border-color: #2a2d3e; color: #f0f0f8; }
.adm-status-select:focus { border-color: #6366F1; }

/* ── Products ──────────────────────────────────────────────────── */
.adm-products-controls {
  margin-bottom: 16px;
}

.adm-search-input {
  width: 100%;
  max-width: 360px;
  padding: 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.2s;
}
[data-theme="dark"] .adm-search-input { background: #1a1d27; border-color: #2a2d3e; color: #f0f0f8; }
.adm-search-input:focus { border-color: #6366F1; }

.adm-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.adm-product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .adm-product-card { background: #1a1d27; border-color: #2a2d3e; }

.adm-prod-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f8;
}

.adm-prod-info { flex: 1; min-width: 0; }
.adm-prod-name { font-size: 13px; font-weight: 700; color: #1a1a2e; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .adm-prod-name { color: #f0f0f8; }
.adm-prod-cat { font-size: 11px; color: #9ca3af; margin: 0 0 4px; }
.adm-prod-price { font-size: 13px; font-weight: 700; color: #6366F1; margin: 0; }
.adm-discount { font-size: 10px; background: #dcfce7; color: #16a34a; border-radius: 4px; padding: 1px 5px; font-weight: 700; }

.adm-prod-stock-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.adm-stock-label { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; }

.adm-stock-input {
  width: 72px;
  padding: 6px 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  background: #f8f8fc;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.2s;
}
[data-theme="dark"] .adm-stock-input { background: #252836; border-color: #2a2d3e; color: #f0f0f8; }
.adm-stock-input:focus { border-color: #6366F1; }

.adm-save-stock-btn {
  padding: 5px 12px;
  background: #6366F1;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.adm-save-stock-btn:hover:not(:disabled) { background: #4f46e5; }
.adm-save-stock-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Empty state ───────────────────────────────────────────────── */
.adm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 0;
  color: #9ca3af;
}
.adm-empty .material-symbols-outlined { font-size: 48px; opacity: 0.4; }
.adm-empty p { font-size: 15px; margin: 0; }

/* ── WhatsApp Floating Button ────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #128C7E;
  text-decoration: none;
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-bounce 2.5s ease-in-out infinite;
}
.wa-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37,211,102,0.4), 0 3px 12px rgba(0,0,0,0.15);
  animation: none;
}
.wa-fab-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.wa-fab-label { white-space: nowrap; letter-spacing: 0.01em; }
@media (max-width: 768px) {
  .wa-fab {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 50%;
    bottom: 20px;
    right: 16px;
    animation: wa-bounce 2.5s ease-in-out infinite;
    width: 52px;
    height: 52px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .wa-fab:hover { box-shadow: none; }
  .wa-fab-logo { width: 52px; height: 52px; object-fit: contain; display: block; flex-shrink: 0; filter: none; }
  .wa-fab-label { display: none; }
}
@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hide WhatsApp button on admin page */
body.admin-page .wa-fab { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL V2 — horizontal tabs layout
   ═══════════════════════════════════════════════════════════ */

/* ── Login ─────────────────────────────────────────────────── */
.adm2-login-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: #f0f0f5; padding: 24px;
}
[data-theme="dark"] .adm2-login-page { background: #0f1117; }

.adm2-login-card {
  background: #fff; border-radius: 20px; padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  display: flex; flex-direction: column; align-items: center;
}
[data-theme="dark"] .adm2-login-card { background: #1a1d27; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.adm2-login-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(99,102,241,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.adm2-login-icon .material-symbols-outlined { font-size: 38px; color: #6366F1; }

.adm2-login-title { font-size: 1.6rem; font-weight: 800; color: #1a1a2e; margin: 0 0 6px; }
[data-theme="dark"] .adm2-login-title { color: #f0f0f8; }
.adm2-login-sub { font-size: 13px; color: #888; margin: 0 0 26px; }

.adm2-error {
  width: 100%; background: #fee2e2; color: #b91c1c;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
[data-theme="dark"] .adm2-error { background: #3f1515; color: #fca5a5; }

#adm-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.adm2-field { position: relative; display: flex; align-items: center; }
.adm2-field-icon { position: absolute; left: 12px; font-size: 19px; color: #9ca3af; pointer-events: none; }
.adm2-eye { position: absolute; right: 10px; background: none; border: none; cursor: pointer; color: #9ca3af; display: flex; }
.adm2-eye:hover { color: #6366F1; }

.adm2-input {
  width: 100%; padding: 12px 40px; border: 1.5px solid #dde0e8; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #f8f8fc; color: #1a1a2e;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
[data-theme="dark"] .adm2-input { background: #252836; border-color: #353849; color: #f0f0f8; }
.adm2-input:focus { border-color: #6366F1; background: #fff; }
[data-theme="dark"] .adm2-input:focus { background: #1e2130; }

.adm2-signin-btn {
  width: 100%; padding: 13px; background: #6366F1; color: #fff; border: none;
  border-radius: 10px; font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; margin-top: 4px; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.adm2-signin-btn:hover:not(:disabled) { background: #4f46e5; }
.adm2-signin-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Wrap ──────────────────────────────────────────────────── */
.adm2-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  background: #f3f4f8; font-family: inherit;
}
[data-theme="dark"] .adm2-wrap { background: #0f1117; }

/* ── Top bar ───────────────────────────────────────────────── */
.adm2-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: #fff; border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 100;
}
[data-theme="dark"] .adm2-topbar { background: #16192a; border-color: #2a2d3e; }

.adm2-topbar-left { display: flex; align-items: center; gap: 10px; }
.adm2-topbar-logo { height: 28px; object-fit: contain; }
.adm2-topbar-title { font-size: 16px; font-weight: 800; color: #1a1a2e; }
[data-theme="dark"] .adm2-topbar-title { color: #f0f0f8; }

.adm2-topbar-right { display: flex; align-items: center; gap: 8px; }

.adm2-back-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: none; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  color: #555; cursor: pointer; transition: all 0.15s;
}
[data-theme="dark"] .adm2-back-btn { border-color: #2a2d3e; color: #9ca3af; }
.adm2-back-btn:hover { background: #f3f4f8; color: #6366F1; border-color: #6366F1; }
.adm2-back-btn .material-symbols-outlined { font-size: 16px; }

.adm2-signout-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid #e5e7eb; border-radius: 8px;
  cursor: pointer; color: #ef4444; transition: all 0.15s;
}
[data-theme="dark"] .adm2-signout-btn { border-color: #2a2d3e; }
.adm2-signout-btn:hover { background: #fee2e2; }
.adm2-signout-btn .material-symbols-outlined { font-size: 18px; }

/* ── Tabs ──────────────────────────────────────────────────── */
.adm2-tabs {
  display: flex; align-items: center; background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: 0 24px; overflow-x: auto;
}
[data-theme="dark"] .adm2-tabs { background: #16192a; border-color: #2a2d3e; }

.adm2-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 20px; border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit; color: #888;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: all 0.15s;
}
[data-theme="dark"] .adm2-tab { color: #6b7280; }
.adm2-tab .material-symbols-outlined { font-size: 22px; }
.adm2-tab:hover { color: #6366F1; }
.adm2-tab.active { color: #6366F1; border-bottom-color: #6366F1; }

/* ── Content area ──────────────────────────────────────────── */
.adm2-content { flex: 1; padding: 24px; overflow-x: hidden; }
@media (max-width: 600px) { .adm2-content { padding: 12px; } }

.adm2-section-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 16px; }
[data-theme="dark"] .adm2-section-title { color: #f0f0f8; }

/* ── Stats grid ────────────────────────────────────────────── */
.adm2-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
@media (max-width: 900px) { .adm2-stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .adm2-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

.adm2-stat-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .adm2-stat-card { background: #1a1d27; border-color: #2a2d3e; }

.adm2-stat-label { font-size: 12px; color: #888; margin: 0 0 6px; }
.adm2-stat-val { font-size: 1.4rem; font-weight: 800; color: #1a1a2e; margin: 0; }
[data-theme="dark"] .adm2-stat-val { color: #f0f0f8; }
.adm2-stat-val.green { color: #16a34a; }
.adm2-stat-val.orange { color: #f97316; }
.adm2-stat-icon { font-size: 32px; opacity: 0.3; }

/* ── Charts row ────────────────────────────────────────────── */
.adm2-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 768px) { .adm2-charts-row { grid-template-columns: 1fr; } }

.adm2-chart-card, .adm2-summary-card, .adm2-banner-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .adm2-chart-card,
[data-theme="dark"] .adm2-summary-card,
[data-theme="dark"] .adm2-banner-card { background: #1a1d27; border-color: #2a2d3e; }

.adm2-card-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 16px; }
[data-theme="dark"] .adm2-card-title { color: #f0f0f8; }
.adm2-empty-msg { color: #9ca3af; font-size: 14px; text-align: center; padding: 24px 0; }

/* Status bars */
.adm2-status-bars { display: flex; flex-direction: column; gap: 12px; }
.adm2-status-bar-row { display: flex; align-items: center; gap: 10px; }
.adm2-status-bar-label { font-size: 12px; width: 80px; font-weight: 600; color: #555; flex-shrink: 0; }
[data-theme="dark"] .adm2-status-bar-label { color: #9ca3af; }
.adm2-status-bar-track { flex: 1; height: 8px; background: #f3f4f8; border-radius: 4px; overflow: hidden; }
[data-theme="dark"] .adm2-status-bar-track { background: #252836; }
.adm2-status-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.adm2-status-bar-val { font-size: 12px; font-weight: 700; color: #555; width: 24px; text-align: right; }
[data-theme="dark"] .adm2-status-bar-val { color: #9ca3af; }

/* Donut chart */
.adm2-pie-wrap { display: flex; align-items: center; gap: 20px; }
.adm2-donut { flex-shrink: 0; }
.adm2-pie-legend { display: flex; flex-direction: column; gap: 8px; }
.adm2-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; }
[data-theme="dark"] .adm2-legend-row { color: #9ca3af; }
.adm2-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Summary table */
.adm2-summary-table { width: 100%; border-collapse: collapse; }
.adm2-summary-table tr { border-bottom: 1px solid #f0f0f8; }
[data-theme="dark"] .adm2-summary-table tr { border-color: #252836; }
.adm2-summary-table td { padding: 10px 0; font-size: 14px; color: #555; }
[data-theme="dark"] .adm2-summary-table td { color: #9ca3af; }
.adm2-summary-table td:last-child { text-align: right; color: #1a1a2e; }
[data-theme="dark"] .adm2-summary-table td:last-child { color: #f0f0f8; }
.adm2-summary-table .green { color: #16a34a !important; }

/* ── Toolbar ───────────────────────────────────────────────── */
.adm2-tab-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}

.adm2-prod-toolbar-left { display: flex; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }

.adm2-search-wrap {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 8px 14px;
  flex: 1; min-width: 200px;
}
[data-theme="dark"] .adm2-search-wrap { background: #1a1d27; border-color: #2a2d3e; }
.adm2-search-wrap .material-symbols-outlined { font-size: 18px; color: #9ca3af; }
.adm2-search-input {
  border: none; background: none; font-size: 14px; font-family: inherit; width: 100%; outline: none;
  color: #1a1a2e;
}
[data-theme="dark"] .adm2-search-input { color: #f0f0f8; }

.adm2-select {
  padding: 9px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 13px; font-weight: 600; font-family: inherit; background: #fff;
  color: #1a1a2e; cursor: pointer; outline: none; transition: border-color 0.2s;
}
[data-theme="dark"] .adm2-select { background: #1a1d27; border-color: #2a2d3e; color: #f0f0f8; }
.adm2-select:focus { border-color: #6366F1; }

.adm2-add-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 16px;
  background: #6366F1; color: #fff; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.adm2-add-btn:hover { background: #4f46e5; }
.adm2-add-btn .material-symbols-outlined { font-size: 18px; }

/* ── Filter tabs ───────────────────────────────────────────── */
.adm2-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.adm2-filter-tab {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-radius: 20px; border: 1.5px solid #e5e7eb; background: #fff;
  font-size: 13px; font-weight: 600; font-family: inherit; color: #555;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
[data-theme="dark"] .adm2-filter-tab { background: #1a1d27; border-color: #2a2d3e; color: #9ca3af; }
.adm2-filter-tab:hover { border-color: #6366F1; color: #6366F1; }
.adm2-filter-tab.active { background: #6366F1; border-color: #6366F1; color: #fff; }
.adm2-ftab-cnt {
  background: rgba(0,0,0,0.1); border-radius: 10px;
  font-size: 11px; font-weight: 700; padding: 1px 6px;
}
.adm2-filter-tab.active .adm2-ftab-cnt { background: rgba(255,255,255,0.25); }

/* ── Orders table ──────────────────────────────────────────── */
.adm2-orders-table { display: flex; flex-direction: column; gap: 0; }
.adm2-orders-head {
  display: grid;
  grid-template-columns: 80px 1fr 80px 100px 70px 130px 150px;
  padding: 8px 16px; background: #f8f8fc; border-radius: 10px;
  font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 6px; gap: 8px;
}
[data-theme="dark"] .adm2-orders-head { background: #1a1d27; }
@media (max-width: 900px) { .adm2-orders-head { display: none; } }

.adm2-order-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px 100px 70px 130px 150px;
  align-items: center; padding: 12px 16px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  margin-bottom: 8px; gap: 8px;
  border-left: 3px solid #e5e7eb; transition: box-shadow 0.15s;
}
[data-theme="dark"] .adm2-order-row { background: #1a1d27; border-color: #2a2d3e; }
.adm2-order-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
@media (max-width: 900px) { .adm2-order-row { grid-template-columns: 1fr; gap: 6px; } }

.adm2-order-id { font-family: monospace; font-size: 12px; color: #888; }
.adm2-order-customer-cell { display: flex; flex-direction: column; }
.adm2-order-name { font-size: 13px; font-weight: 600; color: #1a1a2e; }
[data-theme="dark"] .adm2-order-name { color: #f0f0f8; }
.adm2-order-email { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm2-order-items-cnt { font-size: 12px; color: #555; }
[data-theme="dark"] .adm2-order-items-cnt { color: #9ca3af; }
.adm2-order-total-cell { font-size: 13px; font-weight: 700; color: #6366F1; }
.adm2-order-date { font-size: 12px; color: #9ca3af; }

.adm2-status-sel, .adm2-courier-sel {
  padding: 6px 10px; border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-size: 12px; font-weight: 600; font-family: inherit;
  background: #fff; color: #1a1a2e; cursor: pointer; outline: none;
  width: 100%; transition: border-color 0.15s;
}
[data-theme="dark"] .adm2-status-sel,
[data-theme="dark"] .adm2-courier-sel { background: #252836; border-color: #2a2d3e; color: #f0f0f8; }
.adm2-status-sel:focus, .adm2-courier-sel:focus { border-color: #6366F1; }

/* ── Products table ────────────────────────────────────────── */
.adm2-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; }
[data-theme="dark"] .adm2-table-wrap { background: #1a1d27; border-color: #2a2d3e; }

.adm2-products-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.adm2-products-table thead tr { background: #f8f8fc; }
[data-theme="dark"] .adm2-products-table thead tr { background: #252836; }
.adm2-products-table th {
  padding: 12px 14px; font-size: 12px; font-weight: 700; color: #888;
  text-transform: uppercase; letter-spacing: 0.05em; text-align: left; white-space: nowrap;
}
.adm2-products-table td {
  padding: 10px 14px; font-size: 13px; color: #555; border-top: 1px solid #f0f0f8;
}
[data-theme="dark"] .adm2-products-table td { color: #9ca3af; border-color: #252836; }
.adm2-products-table tbody tr:hover { background: #fafafa; }
[data-theme="dark"] .adm2-products-table tbody tr:hover { background: #1e2130; }

.adm2-prod-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f3f4f8; }
.adm2-prod-name-cell { font-weight: 600; color: #1a1a2e; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-theme="dark"] .adm2-prod-name-cell { color: #f0f0f8; }

.adm2-badge-cat {
  background: #eff0fe; color: #6366F1; border-radius: 6px;
  padding: 2px 8px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
[data-theme="dark"] .adm2-badge-cat { background: #23263d; }

.adm2-badge-disc {
  background: #fee2e2; color: #dc2626; border-radius: 20px;
  padding: 2px 8px; font-size: 11px; font-weight: 700;
}

.adm2-actions-cell { display: flex; gap: 6px; align-items: center; }

.adm2-edit-btn, .adm2-del-btn, .adm2-featured-btn {
  width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center;
  justify-content: center; border: 1px solid #e5e7eb; background: #fff;
  cursor: pointer; transition: all 0.15s;
}
[data-theme="dark"] .adm2-edit-btn,
[data-theme="dark"] .adm2-del-btn,
[data-theme="dark"] .adm2-featured-btn { background: #252836; border-color: #2a2d3e; }
.adm2-edit-btn .material-symbols-outlined,
.adm2-del-btn .material-symbols-outlined,
.adm2-featured-btn .material-symbols-outlined { font-size: 16px; }
.adm2-edit-btn:hover { background: #eff0fe; border-color: #6366F1; color: #6366F1; }
.adm2-del-btn { color: #ef4444; }
.adm2-del-btn:hover { background: #fee2e2; border-color: #ef4444; }
.adm2-featured-btn { color: #9ca3af; }
.adm2-featured-btn.active { color: #f59e0b; background: #fef3c7; border-color: #f59e0b; }
.adm2-featured-btn:hover { border-color: #f59e0b; color: #f59e0b; }

/* ── Shipping ──────────────────────────────────────────────── */
.adm2-courier-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px;
}
@media (max-width: 700px) { .adm2-courier-cards { grid-template-columns: 1fr 1fr; } }

.adm2-courier-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .adm2-courier-card { background: #1a1d27; border-color: #2a2d3e; }
.adm2-courier-card .material-symbols-outlined { font-size: 28px; }
.adm2-courier-name { font-size: 13px; font-weight: 700; color: #1a1a2e; margin: 0 0 2px; }
[data-theme="dark"] .adm2-courier-name { color: #f0f0f8; }
.adm2-courier-cnt { font-size: 1.2rem; font-weight: 800; color: #555; margin: 0; }
[data-theme="dark"] .adm2-courier-cnt { color: #9ca3af; }

.adm2-shipping-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}

.adm2-status-chip {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}

.adm2-tracking-input {
  width: 100%; padding: 6px 10px; border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-size: 12px; font-family: inherit; background: #fff; color: #1a1a2e; outline: none;
}
[data-theme="dark"] .adm2-tracking-input { background: #252836; border-color: #2a2d3e; color: #f0f0f8; }
.adm2-tracking-input:focus { border-color: #6366F1; }

/* ── Banners ───────────────────────────────────────────────── */
.adm2-banner-field { margin-bottom: 20px; }
.adm2-banner-label { display: block; font-size: 13px; font-weight: 700; color: #555; margin-bottom: 8px; }
[data-theme="dark"] .adm2-banner-label { color: #9ca3af; }
.adm2-banner-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }

.adm2-banner-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #c7d2fe; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff; color: #1a1a2e; outline: none;
  transition: border-color 0.2s; box-sizing: border-box;
}
[data-theme="dark"] .adm2-banner-input { background: #252836; border-color: #353849; color: #f0f0f8; }
.adm2-banner-input:focus { border-color: #6366F1; }

.adm2-banner-preview-wrap { margin-top: 10px; border-radius: 10px; overflow: hidden; max-height: 200px; }
.adm2-banner-preview { width: 100%; height: 200px; object-fit: cover; display: block; }

.adm2-banner-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid #f0f0f8; border-bottom: 1px solid #f0f0f8;
  margin-bottom: 20px;
}
[data-theme="dark"] .adm2-banner-toggle-row { border-color: #252836; }
.adm2-banner-toggle-label { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 3px; }
[data-theme="dark"] .adm2-banner-toggle-label { color: #f0f0f8; }
.adm2-banner-toggle-sub { font-size: 12px; color: #9ca3af; margin: 0; }

/* Toggle switch */
.adm2-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.adm2-toggle input { opacity: 0; width: 0; height: 0; }
.adm2-toggle-slider {
  position: absolute; inset: 0; background: #e5e7eb; border-radius: 26px;
  cursor: pointer; transition: background 0.2s;
}
.adm2-toggle-slider::before {
  content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: transform 0.2s;
}
.adm2-toggle input:checked + .adm2-toggle-slider { background: #6366F1; }
.adm2-toggle input:checked + .adm2-toggle-slider::before { transform: translateX(22px); }

.adm2-carousel-textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c7d2fe; border-radius: 10px;
  font-size: 13px; font-family: inherit; background: #fff; color: #1a1a2e;
  outline: none; resize: vertical; box-sizing: border-box; line-height: 1.6;
}
[data-theme="dark"] .adm2-carousel-textarea { background: #252836; border-color: #353849; color: #f0f0f8; }
.adm2-carousel-textarea:focus { border-color: #6366F1; }

.adm2-save-banner-btn {
  display: flex; align-items: center; gap: 8px; padding: 12px 24px;
  background: #6366F1; color: #fff; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background 0.15s;
}
.adm2-save-banner-btn:hover:not(:disabled) { background: #4f46e5; }
.adm2-save-banner-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Modal ─────────────────────────────────────────────────── */
.adm2-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.adm2-modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 600px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
[data-theme="dark"] .adm2-modal { background: #1a1d27; }
.adm2-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
}
[data-theme="dark"] .adm2-modal-header { border-color: #2a2d3e; }
.adm2-modal-header h3 { font-size: 16px; font-weight: 800; color: #1a1a2e; margin: 0; }
[data-theme="dark"] .adm2-modal-header h3 { color: #f0f0f8; }
.adm2-modal-close { background: none; border: none; cursor: pointer; color: #9ca3af; display: flex; }
.adm2-modal-close:hover { color: #ef4444; }

.adm2-modal-body { flex: 1; overflow-y: auto; padding: 20px; }
.adm2-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .adm2-modal-grid { grid-template-columns: 1fr; } }
.adm2-modal-field { display: flex; flex-direction: column; gap: 6px; }
.adm2-modal-field.adm2-full { grid-column: 1 / -1; }
.adm2-modal-field label { font-size: 12px; font-weight: 700; color: #555; }
[data-theme="dark"] .adm2-modal-field label { color: #9ca3af; }

.adm2-modal-input, .adm2-modal-textarea {
  padding: 10px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #f8f8fc; color: #1a1a2e;
  outline: none; transition: border-color 0.2s; box-sizing: border-box; width: 100%;
}
[data-theme="dark"] .adm2-modal-input,
[data-theme="dark"] .adm2-modal-textarea { background: #252836; border-color: #2a2d3e; color: #f0f0f8; }
.adm2-modal-input:focus, .adm2-modal-textarea:focus { border-color: #6366F1; background: #fff; }
[data-theme="dark"] .adm2-modal-input:focus,
[data-theme="dark"] .adm2-modal-textarea:focus { background: #1e2130; }

.adm2-modal-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: #555; }
[data-theme="dark"] .adm2-modal-checkbox-label { color: #9ca3af; }

.adm2-add-cat-btn {
  width: 38px; flex-shrink: 0; border: 1.5px solid #6366F1; background: #eff0fe; border-radius: 8px;
  cursor: pointer; color: #6366F1; display: flex; align-items: center; justify-content: center;
}
.adm2-add-cat-btn:hover { background: #6366F1; color: #fff; }
#adm2-new-cat-wrap { display: none; flex-direction: column; gap: 6px; }
.adm2-save-cat-btn {
  padding: 6px 12px; background: #6366F1; color: #fff; border: none; border-radius: 6px;
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; align-self: flex-start;
}

.adm2-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid #e5e7eb; flex-shrink: 0;
}
[data-theme="dark"] .adm2-modal-footer { border-color: #2a2d3e; }
.adm2-modal-cancel {
  padding: 10px 18px; background: none; border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; color: #555;
}
[data-theme="dark"] .adm2-modal-cancel { border-color: #2a2d3e; color: #9ca3af; }
.adm2-modal-cancel:hover { background: #f3f4f8; }
.adm2-modal-save {
  padding: 10px 20px; background: #6366F1; color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.adm2-modal-save:hover:not(:disabled) { background: #4f46e5; }
.adm2-modal-save:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Empty state ───────────────────────────────────────────── */
.adm2-empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 0;
  color: #9ca3af;
}
.adm2-empty-state .material-symbols-outlined { font-size: 48px; opacity: 0.4; }
.adm2-empty-state p { font-size: 15px; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   HOME CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.home-carousel {
  position: relative; background: #111;
}
.home-carousel-track { position: relative; width: 100%; }
.home-carousel-slide { display: none; }
.home-carousel-slide.active { display: block; }
.home-carousel-img { width: 100%; height: 380px; display: block; object-fit: contain; object-position: center; background: #111; }

.home-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: none; border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: background 0.15s;
}
.home-carousel-btn:hover { background: #fff; }
.home-carousel-btn.prev { left: 14px; }
.home-carousel-btn.next { right: 14px; }
.home-carousel-btn .material-symbols-outlined { font-size: 22px; color: #333; }

.home-carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 5;
}
.home-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
  border: none; cursor: pointer; transition: background 0.2s, transform 0.2s; padding: 0;
}
.home-carousel-dot.active { background: #fff; transform: scale(1.3); }

/* ── Stock status colors in admin products table ── */
.stock-zero { color: #ef4444; font-weight: 700; }
.stock-low  { color: #f97316; font-weight: 700; }

/* ── Quantity input (product detail page) ────────────────────── */
.qty-input {
  width: 50px; text-align: center; font-weight: 700; font-size: 15px;
  border: none; background: none; font-family: inherit; color: var(--on-surface);
  outline: none; -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { background: var(--primary-container); border-radius: 4px; }

/* ── Admin upload button ─────────────────────────────────────── */
.adm2-upload-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border: 1.5px solid #6366F1; border-radius: 8px; background: #eff0fe;
  color: #6366F1; font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
}
.adm2-upload-btn:hover { background: #6366F1; color: #fff; }
.adm2-upload-btn .material-symbols-outlined { font-size: 17px; }
[data-theme="dark"] .adm2-upload-btn { background: #23263d; border-color: #818cf8; color: #818cf8; }
[data-theme="dark"] .adm2-upload-btn:hover { background: #6366F1; color: #fff; }

/* ── Product image preview in modal ──────────────────────────── */
.adm2-upload-preview-wrap { margin-top: 10px; border-radius: 10px; overflow: hidden; width: 100%; height: 160px; background: #f3f4f8; }
[data-theme="dark"] .adm2-upload-preview-wrap { background: #252836; }
.adm2-upload-preview { width: 100%; height: 160px; object-fit: contain; display: block; }

/* ── Carousel thumbnails in admin banners ────────────────────── */
.adm2-carousel-preview-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adm2-carousel-thumb { width: 100px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; cursor: pointer; }
[data-theme="dark"] .adm2-carousel-thumb { border-color: #2a2d3e; }

/* ── Banner image cards with delete button ─────────────────── */
.adm2-banner-img-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.adm2-banner-img-card { position: relative; border-radius: 8px; overflow: hidden; border: 1.5px solid #e5e7eb; flex-shrink: 0; }
[data-theme="dark"] .adm2-banner-img-card { border-color: #2a2d3e; }
.adm2-banner-img-card-img { width: 160px; height: 90px; object-fit: cover; display: block; }
.adm2-banner-img-card-del {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px;
  background: rgba(220,38,38,0.92); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background 0.15s, transform 0.15s;
}
.adm2-banner-img-card-del:hover { background: #b91c1c; transform: scale(1.1); }
.adm2-banner-img-card-del .material-symbols-outlined { font-size: 15px; }

/* ── Carousel section wrapper (separate from hero) ──────────── */
.home-carousel-section { padding: 24px 20px 0; }
.home-carousel-inner { max-width: 1100px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0,0,0,0.13); border-radius: 16px; overflow: hidden; }
.home-carousel-img { width: 100%; height: 380px; display: block; object-fit: contain; object-position: center; background: #111; }
@media (max-width: 600px) {
  .home-carousel-section { padding: 14px 12px 0; }
  .home-carousel-img { height: 210px; }
}

/* ── Product detail image thumbnails ─────────────────────────── */
.detail-thumb-strip { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2.5px solid transparent; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-container); }

/* ── Customer Reviews section ────────────────────────────────── */
.reviews-section { padding: 32px 0 16px; border-top: 1px solid var(--divider); margin-top: 24px; }
.reviews-header-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.reviews-loading { display: flex; justify-content: center; padding: 32px 0; }
.reviews-empty { display: flex; flex-direction: column; align-items: center; padding: 32px 0; }
.reviews-avg-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 16px 20px; background: var(--surface-low); border-radius: 14px; }
.reviews-avg-score { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.reviews-list-inner { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--surface-low); border-radius: 14px; padding: 16px; }
.review-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-container); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.review-meta { flex: 1; min-width: 0; }
.review-author { font-weight: 600; font-size: 14px; display: block; }
.review-date { font-size: 12px; color: var(--on-surface-muted); }
.review-stars { margin-left: auto; flex-shrink: 0; }
.review-comment { font-size: 14px; color: var(--on-surface); line-height: 1.6; margin: 0; }

/* ── Review star picker (in account modal) ───────────────────── */
.review-star-picker { display: flex; gap: 6px; margin: 8px 0 4px; }
.review-star-btn { background: none; border: none; cursor: pointer; padding: 2px; line-height: 1; }
.review-star-icon { font-size: 30px; color: #F59E0B; transition: transform 0.1s; }
.review-star-btn:hover .review-star-icon { transform: scale(1.2); }

/* ── Spin animation ──────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Admin tabs: 2-column grid on small screens ──────────────── */
@media (max-width: 540px) {
  .adm2-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    overflow-x: visible;
  }
  .adm2-tab {
    padding: 10px 6px;
    font-size: 11px;
    gap: 3px;
    border-bottom: none;
    border-right: 1px solid var(--card-border, #e5e7eb);
    flex-direction: column;
  }
  .adm2-tab:last-child { border-right: none; }
  .adm2-tab .material-symbols-outlined { font-size: 20px; }
  .adm2-tab.active { background: rgba(99,102,241,0.08); border-bottom: none; border-top: 2px solid #6366F1; }
}
@media (max-width: 380px) {
  .adm2-tabs { grid-template-columns: repeat(3, 1fr); }
  .adm2-tab { font-size: 10px; padding: 8px 4px; }
}

/* ── Product detail: feature badges 2×2 on mobile ────────────── */
@media (max-width: 480px) {
  .detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .detail-feature-item {
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface-low, #f8f8fc);
    border-radius: 10px;
    padding: 10px;
  }
}

/* ── Guest order email lookup panel ─────────────────────────── */
.guest-order-lookup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px 24px;
}
.guest-lookup-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb, 99,102,241), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.guest-lookup-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}
.guest-lookup-desc {
  font-size: 14px;
  color: var(--on-surface-muted, var(--text-secondary));
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 360px;
}
.guest-lookup-found {
  width: 100%;
  text-align: left;
}
.guest-lookup-welcome {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  background: rgba(var(--primary-rgb, 99,102,241), 0.07);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 4px;
}

/* ── Email lookup input row ──────────────────────────────────── */
.find-order-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 440px;
}
.find-order-input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

/* ── Lookup result: not found / found ────────────────────────── */
.find-order-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0 8px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.find-order-not-found .material-symbols-outlined {
  font-size: 40px;
  color: var(--text-secondary);
  opacity: 0.5;
}
.find-order-tracking {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: rgba(var(--primary-rgb, 99,102,241), 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}

/* ── Mobile view fixes for account page ─────────────────────── */
@media (max-width: 480px) {
  .account-tabs {
    gap: 4px;
    padding: 0 12px;
  }
  .account-tab {
    font-size: 13px;
    padding: 10px 14px;
    gap: 5px;
  }
  .account-tab .material-symbols-outlined {
    font-size: 18px;
  }
  .tab-badge {
    font-size: 10px;
    padding: 1px 5px;
  }
  .find-order-input-row {
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }
  .find-order-input-row .btn {
    width: 100%;
    justify-content: center;
  }
  .profile-option-card {
    padding: 14px 12px;
  }
  .order-card {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .order-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }
}
