/* ===================================================
   CheMentor — ShadCN-inspired Light Design System
   Palette: #E4F9F5 | #60A5FA | #1E40AF | #0F172A
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:           #F8FAFC;
  --bg-alt:       #F1F5F9;
  --surface:      #ffffff;
  --primary:      #1E40AF;
  --primary-h:    #0e8589;
  --primary-hl:   #60A5FA;
  --primary-pale: rgba(17,153,158,.08);
  --primary-ring: rgba(17,153,158,.25);
  --text:         #0F172A;
  --text-muted:   #64748B;
  --text-faint:   #b0ccc9;
  --border:       #cceee9;
  --border-h:     #60A5FA;
  --shadow-sm:    0 1px 3px rgba(64,81,78,.08), 0 1px 2px rgba(64,81,78,.04);
  --shadow:       0 4px 12px rgba(64,81,78,.1), 0 2px 4px rgba(64,81,78,.06);
  --shadow-lg:    0 12px 32px rgba(64,81,78,.12), 0 4px 8px rgba(64,81,78,.06);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-full:  9999px;
  --ease:         cubic-bezier(.4,0,.2,1);
  --dur:          220ms;
  --success:      #0d9488;
  --warning:      #d97706;
  --danger:       #dc2626;
  --info:         #0891b2;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary-h); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: var(--radius-full); }

/* ── Container ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.page-wrap { padding: 28px 0; min-height: calc(100vh - 64px - 56px); }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: 64px;
  transition: box-shadow var(--dur) var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center;
  height: 64px; gap: 16px;
}
.nav-brand {
  font-size: 1.3rem; font-weight: 800;
  color: var(--primary); letter-spacing: -.4px;
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
}

/* Search */
.nav-search-wrap { position: relative; flex: 1; max-width: 420px; }
.nav-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.nav-search {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); color: var(--text);
  font-size: .875rem; outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-search:focus {
  border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.nav-search::placeholder { color: var(--text-faint); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-icon-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--surface); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.nav-icon-btn:hover { border-color: var(--primary); background: var(--primary-pale); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: var(--radius-full);
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: pop .2s var(--ease);
  border: 2px solid var(--surface);
}

/* Mobile search bar */
.mobile-search-bar {
  display: none; padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
@media (max-width: 768px) {
  .nav-search-wrap { display: none; }
  .mobile-search-bar { display: block; }
}

/* ══════════════════════════════════════════
   SEARCH DROPDOWN
══════════════════════════════════════════ */
.search-results-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 200;
  overflow: hidden; animation: slideDown .15s var(--ease);
}
.search-results-dropdown.open { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
  transition: background var(--dur) var(--ease);
  border-bottom: 1px solid var(--bg);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg); }
.search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.search-item-name { font-size: .875rem; font-weight: 500; color: var(--text); }
.search-item-price { font-size: .8rem; color: var(--primary); font-weight: 600; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 18px; height: 38px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all var(--dur) var(--ease); outline: none;
  user-select: none; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--dur) var(--ease);
}
.btn:hover::after { background: rgba(255,255,255,.08); }
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-h); border-color: var(--primary-h); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-pale); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: rgba(220,38,38,.05); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-sm { height: 32px; padding: 0 14px; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-lg { height: 46px; padding: 0 26px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-sm); }
.btn-icon.sm { width: 32px; height: 32px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-sm { padding: 16px; border-radius: var(--radius); }
.card:hover { box-shadow: var(--shadow); }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 18px; }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; letter-spacing: .01em; }
.form-control {
  width: 100%; height: 40px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: .875rem; outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748B' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }

/* ══════════════════════════════════════════
   BADGE / STATUS
══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-paid      { background: #d1fae5; color: #065f46; }
.badge-cod       { background: #e0f2fe; color: #075985; }
.badge-shipped   { background: #ede9fe; color: #5b21b6; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-in-stock  { background: #d1fae5; color: #065f46; }
.badge-low-stock { background: #fef3c7; color: #92400e; }
.badge-out       { background: #fee2e2; color: #991b1b; }
.badge-primary   { background: var(--primary-pale); color: var(--primary); }

/* ══════════════════════════════════════════
   ALERTS / TOAST
══════════════════════════════════════════ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; margin-bottom: 16px;
  animation: slideDown .2s var(--ease);
}
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.alert-info    { background: #e0f2fe; border: 1px solid #7dd3fc; color: #075985; }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--text); color: #fff;
  font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-lg); min-width: 260px; max-width: 340px;
  animation: slideUp .25s var(--ease);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.hiding { opacity: 0; transform: translateY(8px); }
.toast-icon { flex-shrink: 0; }
.toast-success .toast-icon { color: var(--primary-hl); }
.toast-error .toast-icon   { color: #f87171; }

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg); }
th {
  padding: 11px 16px; text-align: left;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
td {
  padding: 13px 16px; font-size: .875rem;
  border-top: 1px solid var(--border); vertical-align: middle;
}
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:hover { background: var(--bg); }

/* ══════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--dur) var(--ease); cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary-hl);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card-img-wrap {
  position: relative; height: 210px; background: var(--bg);
  overflow: hidden;
}
.product-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-badge {
  position: absolute; top: 10px; left: 10px;
}
.product-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card-cat { font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.product-card-title { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.product-card-title a { color: inherit; }
.product-card-price { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.price-now { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.price-was { font-size: .8rem; color: var(--text-faint); text-decoration: line-through; }
.price-off { font-size: .72rem; font-weight: 700; color: var(--success); background: #d1fae5; padding: 2px 7px; border-radius: var(--radius-full); }
.product-card-footer { padding: 12px 14px 14px; border-top: 1px solid var(--bg); }

/* ══════════════════════════════════════════
   HERO BANNER & SLIDER
══════════════════════════════════════════ */
.banner-slider-section { position: relative; margin-bottom: 36px; border-radius: var(--radius-lg); border: 1.5px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.banner-slider-container {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.banner-slider-container::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: 0 0 100%; scroll-snap-align: center; margin-bottom: 0;
  border-radius: 0; border: none; box-shadow: none;
}
.hero { background: var(--surface); padding: 64px 48px; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 380px; transition: background var(--dur) var(--ease); }
.hero-content { position: relative; z-index: 1; max-width: 580px; }
.hero h1 { font-size: 2.8rem; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 12px; letter-spacing: -.5px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.banner-btn { transition: transform 0.2s var(--ease), filter 0.2s; border: none; }
.banner-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Slider Dots */
.banner-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: rgba(0,0,0,0.15); cursor: pointer; transition: all var(--dur) var(--ease); }
.dot.active { width: 24px; background: rgba(0,0,0,0.6); }

@media (max-width: 768px) {
  .hero { padding: 40px 24px; min-height: 320px; align-items: flex-start; text-align: center; }
  .hero-content { margin: auto; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { justify-content: center; }
}

/* ══════════════════════════════════════════
   SECTION
══════════════════════════════════════════ */
.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 1.15rem; font-weight: 700; color: var(--text); }

/* Category chips */
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 16px; border-radius: var(--radius-full);
  background: var(--surface); border: 1.5px solid var(--border);
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Category Animated Slider */
.category-slider {
  display: flex; gap: 16px; overflow-x: auto; padding: 10px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-slider::-webkit-scrollbar { display: none; }
.category-slider-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 100px; max-width: 100px; gap: 12px; cursor: pointer;
  scroll-snap-align: start; text-decoration: none; flex-shrink: 0;
  animation: slideUp .4s var(--ease) both;
}
.category-slider-card:hover .category-icon-wrap {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: var(--c-border);
}
.category-slider-card:active .category-icon-wrap { transform: scale(0.95); }
.category-icon-wrap {
  width: 76px; height: 76px; padding: 18px;
  border-radius: 20px; border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}
.category-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.category-name {
  font-size: .85rem; font-weight: 700; color: var(--text);
  text-align: center; line-height: 1.2;
}

@media (max-width: 768px) {
  .category-slider { margin-right: -20px; padding-right: 20px; gap: 12px; }
  .category-slider-card { min-width: 80px; max-width: 80px; gap: 10px; }
  .category-icon-wrap { width: 68px; height: 68px; padding: 14px; border-radius: 16px; }
  .category-name { font-size: .75rem; }
}

/* ══════════════════════════════════════════
   EXPLORE LAYOUT
══════════════════════════════════════════ */
.explore-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.filter-panel { position: sticky; top: 80px; }
.filter-section { margin-bottom: 22px; }
.filter-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-muted); font-size: .875rem;
  transition: all var(--dur) var(--ease);
}
.filter-item:hover { background: var(--bg); color: var(--text); }
.filter-item.active { color: var(--primary); background: var(--primary-pale); font-weight: 600; }
.filter-count { font-size: .75rem; color: var(--text-faint); background: var(--bg); padding: 1px 7px; border-radius: var(--radius-full); }

/* ══════════════════════════════════════════
   PRODUCT DETAIL
══════════════════════════════════════════ */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid var(--border); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.product-info h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.product-cat-link { color: var(--primary); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.product-price-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.product-price-now { font-size: 2rem; font-weight: 800; color: var(--primary); }
.product-price-was { font-size: 1.1rem; color: var(--text-faint); text-decoration: line-through; }
.stock-label { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; margin-bottom: 22px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-in .stock-dot   { background: var(--success); }
.stock-low .stock-dot  { background: var(--warning); }
.stock-out .stock-dot  { background: var(--danger); }
.product-actions { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.product-desc { color: var(--text-muted); line-height: 1.8; font-size: .9rem; }
.product-desc-title { font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: 10px; }

/* ══════════════════════════════════════════
   CART PAGE
══════════════════════════════════════════ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.cart-item {
  display: flex; gap: 16px; padding: 18px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px;
  transition: all var(--dur) var(--ease);
}
.cart-item:hover { border-color: var(--border-h); box-shadow: var(--shadow-sm); }
.cart-item-img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); flex-shrink: 0; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 600; font-size: .9rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .85rem; color: var(--primary); font-weight: 700; }
.qty-control { display: flex; align-items: center; gap: 0; margin-top: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); width: fit-content; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: none; cursor: pointer; transition: background var(--dur) var(--ease); }
.qty-btn:hover { background: var(--primary-pale); }
.qty-val { width: 36px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.cart-remove-btn { display: flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 500; color: var(--danger); cursor: pointer; margin-top: 8px; background: none; border: none; padding: 0; transition: opacity var(--dur) var(--ease); }
.cart-remove-btn:hover { opacity: .7; }
.cart-item-total { font-weight: 700; color: var(--text); font-size: .95rem; text-align: right; flex-shrink: 0; }

/* Checkout box */
.checkout-box { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .875rem; border-bottom: 1px solid var(--bg); }
.summary-row:last-child { border-bottom: none; }
.summary-total { font-weight: 700; font-size: 1rem; color: var(--text); }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* Payment options */
.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.payment-option.selected, .payment-option:hover { border-color: var(--primary); background: var(--primary-pale); }
.payment-option input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }
.payment-option-label { font-size: .875rem; font-weight: 600; }
.payment-option-sub { font-size: .78rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   AUTH MODAL / CARD
══════════════════════════════════════════ */
.auth-wrap { max-width: 420px; margin: 48px auto; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 12px; text-align: center;
  font-size: .875rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--dur) var(--ease);
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { animation: fadeIn .2s var(--ease); }

/* ══════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════ */
.profile-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.profile-sidebar { position: sticky; top: 80px; }
.profile-avatar { width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--primary-pale); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; }
.profile-nav { display: flex; flex-direction: column; gap: 2px; }
.profile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.profile-nav-link:hover { background: var(--bg); color: var(--text); }
.profile-nav-link.active { background: var(--primary-pale); color: var(--primary); font-weight: 600; }
.profile-nav-link.danger { color: var(--danger); }
.profile-nav-link.danger:hover { background: #fee2e2; }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; opacity: .35; }
.empty-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-text { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(64,81,78,.35); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  animation: fadeIn .2s var(--ease);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  width: 92%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  animation: slideUp .25s var(--ease); position: relative;
}
.modal-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; cursor: pointer; padding: 4px; border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.modal-close:hover { background: var(--bg); }

/* ══════════════════════════════════════════
   TOGGLE
══════════════════════════════════════════ */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 44px; height: 24px; display: inline-block; }
.toggle input { display: none; }
.toggle-track {
  position: absolute; inset: 0; border-radius: var(--radius-full);
  background: var(--border); cursor: pointer; transition: background var(--dur) var(--ease);
}
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle-thumb {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }

/* ══════════════════════════════════════════
   ADMIN LAYOUT
══════════════════════════════════════════ */
.admin-wrapper { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--surface); border-right: 1.5px solid var(--border);
  padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sidebar-logo {
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
  font-size: 1.1rem; font-weight: 800; color: var(--primary); letter-spacing: -.3px;
}
.admin-nav { padding: 10px 10px; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all var(--dur) var(--ease); margin-bottom: 2px;
}
.admin-nav-item:hover { background: var(--bg); color: var(--text); }
.admin-nav-item.active { background: var(--primary-pale); color: var(--primary); font-weight: 600; }
.admin-nav-item.danger { color: var(--danger); }
.admin-nav-item.danger:hover { background: #fee2e2; }
.admin-nav-divider { height: 1px; background: var(--border); margin: 10px 0; }
.admin-main { display: flex; flex-direction: column; background: var(--bg); }
.admin-grid-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.admin-grid-layout-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.admin-topbar {
  background: var(--surface); border-bottom: 1.5px solid var(--border);
  padding: 0 28px; height: 58px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.admin-page-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.admin-content { padding: 28px; flex: 1; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: all var(--dur) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow); border-color: var(--border-h); }
.stat-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.stat-card-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-pale); display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════
   FOOTER (Native & Rich)
══════════════════════════════════════════ */
.site-footer {
  background: var(--surface); border-top: 1.5px solid var(--border);
  padding: 56px 0 0 0; margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.footer-brand { color: var(--primary); font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -.5px; display: flex; align-items: center; }
.footer-desc { color: var(--text-muted); font-size: .88rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 { color: var(--text); font-size: 1.05rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -.2px;}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); font-size: .88rem; font-weight: 500; transition: all var(--dur) var(--ease); display: inline-block; }
.footer-links a:hover { color: var(--primary); transform: translateX(4px); }
.footer-bottom {
  padding: 24px 0; border-top: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text-muted); font-size: .85rem; font-weight: 500;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-bottom: 32px; }
  .footer-col:first-child { grid-column: span 2; }
  .site-footer { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col:first-child { grid-column: span 1; }
}

/* ══════════════════════════════════════════
   SKELETON
══════════════════════════════════════════ */
.skeleton { background: linear-gradient(90deg, var(--bg) 25%, #c8eeea 50%, var(--bg) 75%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ══════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════ */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown{ from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop      { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

.fade-in   { animation: fadeIn  .3s var(--ease) both; }
.slide-up  { animation: slideUp .35s var(--ease) both; }

/* Staggered grid items */
.product-grid .product-card:nth-child(1)  { animation-delay: .03s; }
.product-grid .product-card:nth-child(2)  { animation-delay: .06s; }
.product-grid .product-card:nth-child(3)  { animation-delay: .09s; }
.product-grid .product-card:nth-child(4)  { animation-delay: .12s; }
.product-grid .product-card:nth-child(5)  { animation-delay: .15s; }
.product-grid .product-card:nth-child(6)  { animation-delay: .18s; }
.product-grid .product-card:nth-child(7)  { animation-delay: .21s; }
.product-grid .product-card:nth-child(8)  { animation-delay: .24s; }

/* ══════════════════════════════════════════
   ADDRESS CARD
══════════════════════════════════════════ */
.address-card {
  padding: 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg);
  margin-bottom: 10px; transition: border-color var(--dur) var(--ease);
}
.address-card:hover { border-color: var(--border-h); }
.address-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.address-text { font-size: .82rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-faint); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════════
   IMAGE UPLOAD PREVIEW
══════════════════════════════════════════ */
.img-preview-wrap {
  width: 100%; height: 120px; border: 2px dashed var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
}
.img-preview-wrap:hover { border-color: var(--primary); background: var(--primary-pale); }
.img-preview-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.img-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: .8rem; }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 28px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-size: .85rem;
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ══════════════════════════════════════════
   MOBILE BOTTOM NAV (Native App UI)
══════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  height: 56px;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; flex: 1; color: var(--text-muted); font-size: 0.65rem; font-weight: 600;
  position: relative;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item img { width: 22px; height: 22px; opacity: 0.6; transition: opacity var(--dur) var(--ease); }
.mobile-nav-item.active img { opacity: 1; filter: brightness(0.9); }
.mobile-nav-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--danger); min-width: 16px; height: 16px; border-radius: 8px;
  color: #fff; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff; padding: 0 4px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cart-layout           { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .profile-layout        { grid-template-columns: 1fr; }
  .explore-layout        { grid-template-columns: 1fr; }
  
  /* Fix Admin mobile UI */
  .admin-grid-layout { grid-template-columns: 1fr; }
  .admin-grid-layout-2 { grid-template-columns: 1fr; }
  
  .admin-wrapper         { display: flex; flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
  }
  .admin-sidebar-logo { display: none; }
  .admin-sidebar > .flex { display: none !important; } /* Hide user info block on mobile */
  .admin-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 12px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: var(--surface); /* Ensure standard background on mobile */
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav-item {
    margin: 0;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
  }
  .admin-nav-item.active { background: var(--primary); border-color: var(--primary); color: #fff; }
  .admin-nav-divider { display: none; }
  .admin-nav-item.danger { margin-top: 0 !important; }
}
@media (max-width: 768px) {
  /* Hide top nav actions, show bottom nav */
  .nav-actions { display: none; }
  .mobile-bottom-nav { display: block; }
  .hide-desktop { display: flex !important; margin-right: -10px; }
  
  /* Adjust body padding for bottom nav */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .page-wrap { padding-top: 16px; }

  .hero { padding: 32px 20px; border-radius: var(--radius); }
  .hero h1 { font-size: 1.6rem; }
  .hero::before { right: -100px; top: -100px; width: 300px; height: 300px; }
  .form-row  { grid-template-columns: 1fr; }
  .form-row-3{ grid-template-columns: 1fr; }
  
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-main img { height: 280px; }
  .admin-content { padding: 18px; }

  /* Native Horizontal Scroll for Home Grids */
  .product-scroll-mobile {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    margin-right: -20px; /* Offset container padding for edge-to-edge scroll */
    padding-right: 20px;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .product-scroll-mobile::-webkit-scrollbar { display: none; }
  .product-scroll-mobile .product-card {
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--radius);
  }
  .product-scroll-mobile .product-card:first-child { margin-left: 2px; }
  .product-scroll-mobile .product-card-img-wrap { height: 150px; }
  .product-scroll-mobile .product-card-title { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .product-scroll-mobile .product-card-body { padding: 10px; }
  .product-scroll-mobile .product-card-footer { padding: 10px; }
  .product-scroll-mobile .product-card-price .price-now { font-size: 0.95rem; }
  .product-scroll-mobile .btn { font-size: 0.75rem; height: 32px; padding: 0; }
  .product-scroll-mobile .btn img { width: 12px; height: 12px; }
}
@media (max-width: 480px) {
  .product-grid:not(.product-scroll-mobile) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid:not(.product-scroll-mobile) .product-card-img-wrap { height: 160px; }
  
  .cart-item { flex-direction: column; padding: 14px; }
  .cart-item-img { width: 100%; height: 180px; }
  .container { padding: 0 16px; }
  .hero { padding: 24px 16px; }
  .hero p { font-size: .9rem; margin-bottom: 16px; }
}
/* Utility */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger  { color: var(--danger); }
.text-sm { font-size: .82rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.flex   { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }


.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(37,99,235,.15);
  color: #1E3A8A;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.home-promo-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #EEF2FF 100%);
  border: 1px solid #DBEAFE;
}

.feature-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-pill {
  background: rgba(255,255,255,.9);
  border: 1px solid #DBEAFE;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.feature-pill strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-pill span {
  display: block;
  color: var(--text-muted);
  font-size: .9rem;
}

.footer-contact-inline {
  color: var(--text-muted);
  font-size: .92rem;
}

@media (max-width: 900px) {
  .home-promo-card { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .feature-pill-grid { grid-template-columns: 1fr; }
}

/* ===== Enhanced CheMentor additions ===== */
body.drawer-open { overflow: hidden; }
.mobile-nav-item { background: transparent; border: none; font: inherit; color: inherit; }
.product-meta-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.product-meta-chip { border:1px solid var(--border); background:var(--bg); border-radius:var(--radius); padding:12px 14px; display:flex; flex-direction:column; gap:4px; }
.product-meta-chip strong { font-size:.78rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }
.product-content-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:18px; }
.product-sections-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.feature-list { list-style:none; display:flex; flex-direction:column; gap:12px; }
.feature-list li { position:relative; padding-left:22px; color:var(--text-muted); }
.feature-list li::before { content:'✓'; position:absolute; left:0; top:0; color:var(--primary); font-weight:700; }
.details-list { display:flex; flex-direction:column; gap:10px; }
.detail-row { display:flex; justify-content:space-between; gap:18px; padding:12px 0; border-bottom:1px solid var(--border); }
.detail-row span { color:var(--text-muted); }
.detail-row strong { color:var(--text); text-align:right; }
.faq-list { display:flex; flex-direction:column; gap:12px; }
.faq-item { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.faq-toggle { width:100%; padding:16px 18px; display:flex; justify-content:space-between; align-items:center; background:transparent; border:none; cursor:pointer; font-weight:700; color:var(--text); text-align:left; }
.faq-answer { display:none; padding:0 18px 18px; color:var(--text-muted); line-height:1.8; }
.faq-item.open .faq-answer { display:block; }
.review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.review-card { height:100%; }
.review-stars { color:#f59e0b; font-size:1rem; letter-spacing:.08em; }
.review-stars span { color:#cbd5e1; }
.review-text { margin:14px 0; color:var(--text); line-height:1.8; }
.review-author { font-weight:700; }
.cart-drawer-overlay { position:fixed; inset:0; background:rgba(15,23,42,.45); opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:1200; }
.cart-drawer-overlay.open { opacity:1; pointer-events:auto; }
.cart-drawer { position:fixed; top:0; right:0; width:min(420px, 100vw); height:100vh; background:var(--surface); box-shadow:var(--shadow-lg); transform:translateX(100%); transition:transform .25s ease; z-index:1201; display:flex; flex-direction:column; }
.cart-drawer.open { transform:translateX(0); }
.cart-drawer-header, .cart-drawer-footer { padding:18px; border-bottom:1px solid var(--border); }
.cart-drawer-footer { border-bottom:none; border-top:1px solid var(--border); margin-top:auto; }
.cart-drawer-body { padding:18px; overflow:auto; display:flex; flex-direction:column; gap:14px; }
.cart-drawer-item { display:grid; grid-template-columns:72px 1fr auto; gap:12px; align-items:start; padding-bottom:14px; border-bottom:1px solid var(--border); }
.cart-drawer-thumb { width:72px; height:72px; object-fit:cover; border-radius:var(--radius-sm); border:1px solid var(--border); }
.cart-drawer-item-title { font-weight:700; line-height:1.4; }
.cart-drawer-item-price { color:var(--primary); font-weight:700; margin-top:6px; }
.cart-drawer-item-side { text-align:right; display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.cart-drawer-line-total { font-weight:700; }
.cart-drawer-remove { background:none; border:none; color:var(--danger); cursor:pointer; font-size:.8rem; }
.cart-drawer-qty { display:flex; align-items:center; gap:10px; margin-top:10px; }
.cart-drawer-qty button { width:28px; height:28px; border-radius:999px; border:1px solid var(--border); background:var(--bg); cursor:pointer; }
.cart-drawer-actions { margin-top:16px; }
@media (max-width: 992px) {
  .product-content-grid, .product-sections-3, .review-grid { grid-template-columns:1fr; }
}
@media (max-width: 768px) {
  .product-meta-grid { grid-template-columns:1fr; }
  .cart-drawer { width:100vw; }
}


/* ===================================================
   Premium storefront refresh + pricing safeguards UI
=================================================== */
body {
  background:
    radial-gradient(circle at top left, rgba(96,165,250,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(99,102,241,.09), transparent 24%),
    var(--bg);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E40AF 0%, #60A5FA 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(30,64,175,.18);
}

.hero.banner-slide {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
}
.hero.banner-slide::before,
.hero.banner-slide::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero.banner-slide::before {
  width: 240px;
  height: 240px;
  right: -50px;
  top: -60px;
  background: rgba(255,255,255,.30);
  filter: blur(8px);
}
.hero.banner-slide::after {
  width: 200px;
  height: 200px;
  bottom: -80px;
  right: 16%;
  background: rgba(255,255,255,.18);
  filter: blur(12px);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-stat-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.hero-stat-card strong {
  display: block;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 4px;
}
.hero-stat-card span {
  display: block;
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.banner-btn {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.premium-trust-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(191,219,254,.75) !important;
  border-radius: 18px;
}
.premium-trust-card img {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(219,234,254,.95), rgba(255,255,255,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 18px rgba(30,64,175,.10);
}

.product-card-premium {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203,213,225,.72);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
}
.product-card-premium::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #1E40AF 0%, #60A5FA 55%, #A78BFA 100%);
}
.product-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(15,23,42,.12);
  border-color: rgba(96,165,250,.7);
}
.product-card-img-wrap {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}
.product-card-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-height: 42px;
}
.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #1e3a8a;
  background: linear-gradient(135deg, rgba(219,234,254,.95), rgba(239,246,255,.95));
  border: 1px solid rgba(147,197,253,.6);
}
.product-meta-tag-muted {
  color: #475569;
  background: linear-gradient(135deg, rgba(241,245,249,.95), rgba(255,255,255,.95));
  border-color: rgba(203,213,225,.8);
}
.product-card-cta {
  height: 44px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 14px 26px rgba(30,64,175,.18);
}
.product-card-cta span { font-size: 1rem; }

.home-promo-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 48%, #eef2ff 100%);
  border: 1px solid rgba(191,219,254,.7) !important;
  box-shadow: 0 26px 64px rgba(15,23,42,.08);
}
.home-promo-card::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(96,165,250,.20) 0%, transparent 70%);
}
.feature-pill {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(191,219,254,.7);
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.feature-pill strong { display: block; color: var(--text); margin-bottom: 4px; }
.feature-pill span { display: block; color: var(--text-muted); font-size: .82rem; }

.premium-checkout-box {
  position: sticky;
  top: 88px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  border: 1px solid rgba(191,219,254,.75);
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(15,23,42,.09);
}
.coupon-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191,219,254,.75);
  background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.92)) !important;
}
.coupon-panel::after {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(96,165,250,.16), transparent 65%);
  pointer-events: none;
}
.coupon-panel.is-success {
  animation: couponPanelSuccess 1.2s ease;
  border-color: rgba(16,185,129,.75);
  box-shadow: 0 18px 40px rgba(16,185,129,.12);
}
#coupon-message.is-success {
  color: var(--success);
  font-weight: 700;
}
@keyframes couponPanelSuccess {
  0% { transform: scale(1); }
  20% { transform: scale(1.015); }
  40% { transform: scale(.995); }
  100% { transform: scale(1); }
}

.payment-option {
  border-radius: 18px;
  border: 1px solid rgba(203,213,225,.85);
  transition: all var(--dur) var(--ease);
}
.payment-option.selected,
.payment-option:hover {
  border-color: rgba(96,165,250,.9);
  box-shadow: 0 14px 28px rgba(30,64,175,.10);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.review-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191,219,254,.72);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}
.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.review-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E40AF 0%, #60A5FA 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(30,64,175,.20);
}
.review-stars-badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.review-card-quote {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(96,165,250,.18);
  pointer-events: none;
}
.review-text {
  position: relative;
  z-index: 1;
  color: var(--text);
  line-height: 1.8;
}
.premium-assurance-strip {
  border: 1px solid rgba(191,219,254,.7);
  background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.95)) !important;
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr; }
  .home-promo-card { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .product-card-desc { min-height: initial; }
  .premium-checkout-box { position: static; }
}
