/* ============================================================
   Electro Digital Store — Minimal Design System
   Palette: Pure Black, White, Cool Grays
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-soft:      #f9f9f9;
  --bg-input:     #f3f3f3;
  --surface:      #ffffff;
  --border:       #e5e5e5;
  --border-dark:  #111111;

  --text:         #111111;
  --text-muted:   #888888;
  --text-lighter: #bbbbbb;

  --accent:       #111111;     /* primary interactive colour */
  --accent-hover: #333333;
  --success:      #1a7f4e;
  --danger:       #c0392b;
  --warning:      #b8860b;

  --font: 'Inter', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;
  --radius-pill:100px;

  --transition: .18s ease;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow-md:  0 4px 14px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.13);
}

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

html { scroll-behavior:smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color:inherit; text-decoration:none; }
button, input, select, textarea { font-family:inherit; }
img { display:block; max-width:100%; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:#f0f0f0; }
::-webkit-scrollbar-thumb { background:#ccc; border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:#999; }

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

/* ── Utilities ───────────────────────────────────────────── */
.w-100 { width: 100%; }
.flex-1 { flex: 1; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.mt-4 { margin-top: 16px; }
.span-2 { grid-column: span 2; }

/* ══════════════════════════════════════════════════════════
   TOP ANNOUNCEMENT BAR
══════════════════════════════════════════════════════════ */
.top-bar {
  background: var(--text);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 9px 0;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar strong { font-weight: 600; }
.promo-badge-pill {
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-right: 8px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

/* Logo */
.logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Search */
.search-box-container {
  position: relative;
  flex: 1;
  max-width: 520px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  height: 42px;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--text);
  background: #fff;
}
.search-box i { color: var(--text-muted); flex-shrink:0; }
.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.88rem;
}
.search-box input::placeholder { color: var(--text-muted); }

/* Suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 120;
  overflow: hidden;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-soft); }
.suggestion-thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.suggestion-info { flex: 1; }
.suggestion-title { font-size: 0.85rem; font-weight: 500; }
.suggestion-price { font-size: 0.78rem; color: var(--text-muted); }
.suggestion-brand { font-size: 0.72rem; color: var(--text-lighter); white-space: nowrap; }

/* Header action buttons */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.header-btn:hover { background: var(--text); color: #fff; border-color: var(--text); }
.badge-count {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--text);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
}
.header-btn:hover .badge-count { background: #fff; color: var(--text); border-color: var(--text); }

/* ══════════════════════════════════════════════════════════
   HERO SECTION — Full-width banner image
══════════════════════════════════════════════════════════ */
.hero-banner { margin: 32px 0 48px; }

.hero-banner-img-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  background: var(--bg-soft);
  position: relative;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}

/* Fallback hero (shown when banner.jpg not found) */
.hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: var(--bg-soft);
  text-align: center;
  padding: 60px 40px;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  outline: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text); }

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-sm  { padding: 7px 16px; font-size: 0.80rem; }
.btn-lg  { padding: 13px 32px; font-size: 0.95rem; }

/* ══════════════════════════════════════════════════════════
   CATEGORY PILLS
══════════════════════════════════════════════════════════ */
.categories-section { margin-bottom: 40px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.categories-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.categories-nav::-webkit-scrollbar { display:none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.category-pill:hover {
  border-color: var(--text);
  color: var(--text);
}
.category-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  font-weight: 600;
}
.category-pill i { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════
   STORE LAYOUT — SIDEBAR + GRID
══════════════════════════════════════════════════════════ */
.store-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

/* ── Filter Sidebar ──────────────────────────────────────── */
.filter-sidebar {
  height: fit-content;
  position: sticky;
  top: 82px;
}
.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filter-title h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Range slider */
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.price-range-val {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.price-range-val span:last-child { color: var(--text); font-weight: 600; }

.custom-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.custom-select:focus { border-color: var(--text); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input { accent-color: var(--text); width:16px; height:16px; cursor:pointer; }

/* ── Products Section ────────────────────────────────────── */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.results-count { font-size: 0.83rem; color: var(--text-muted); }
.sort-box { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; color: var(--text-muted); }
.sort-box select { width: auto; border-radius: var(--radius-md); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  outline: 1px solid var(--border);
}
.product-card:hover { background: var(--bg-soft); z-index: 1; }

.product-card-top {
  position: relative;
  padding: 28px 24px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.badge-hot  { background: #111; color: #fff; }
.badge-sale { background: #111; color: #fff; }
.badge-new  { background: #e8e8e8; color: #111; border: 1px solid var(--border); }
.badge-pro  { background: #111; color: #fff; }

/* Card action icons */
.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .card-actions { opacity: 1; }
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.action-btn:hover, .action-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.heart-filled { fill: #111; color: #111 !important; }

/* Product image */
.product-img-wrap {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}
.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }

.quick-view-overlay {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}
.product-img-wrap:hover .quick-view-overlay {
  bottom: 8px;
  opacity: 1;
}

/* Card body */
.product-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-brand { font-size: 0.72rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.product-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.star-filled { fill: #111; color: #111; width:13px; height:13px; }
.rating-num { font-weight: 600; color: var(--text); }
.reviews-count { color: var(--text-lighter); }
.product-short-desc {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.price-container { display: flex; align-items: baseline; gap: 6px; }
.price-current { font-size: 1.05rem; font-weight: 700; }
.price-old { font-size: 0.8rem; color: var(--text-lighter); text-decoration: line-through; }

/* No results */
.no-results-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.no-results-icon { margin: 0 auto 16px; color: var(--text-lighter); }
.no-results-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.no-results-card p { color: var(--text-muted); margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════════════════════ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cart-backdrop.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: -440px;
  width: 100%; max-width: 420px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
}
.cart-drawer.active { right: 0; }

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 { font-size: 0.9rem; font-weight: 600; letter-spacing:0.02em; display:flex; align-items:center; gap:8px; }
.close-drawer-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-drawer-btn:hover { background: var(--bg-soft); color: var(--text); }

.free-shipping-bar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.79rem;
  color: var(--text-muted);
  background: var(--bg-soft);
}
.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 7px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width .4s ease;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.empty-cart-view { text-align:center; padding: 60px 20px; color: var(--text-muted); }
.empty-cart-icon { margin: 0 auto 14px; color: var(--text-lighter); }
.empty-cart-view h4 { font-size:1rem; font-weight:600; margin-bottom:8px; color:var(--text); }
.empty-cart-view p { font-size:0.84rem; margin-bottom:20px; }

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.cart-item:hover { background: var(--bg-soft); }
.cart-item-img { width:56px; height:56px; object-fit:contain; border-radius:var(--radius-sm); background:var(--bg-soft); padding:4px; flex-shrink:0; }
.cart-item-details { flex:1; }
.cart-item-title { font-size:0.83rem; font-weight:500; line-height:1.4; margin-bottom:4px; }
.cart-item-price { font-size:0.83rem; font-weight:700; margin-bottom:6px; }
.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn { background:transparent; border:none; color:var(--text); width:26px; height:24px; cursor:pointer; font-size:0.95rem; transition:var(--transition); }
.qty-btn:hover { background:var(--text); color:#fff; }
.qty-val { padding:0 8px; font-size:0.82rem; font-weight:600; color:var(--text); }
.cart-remove-btn { background:transparent; border:none; color:var(--text-lighter); cursor:pointer; padding:4px; transition:var(--transition); }
.cart-remove-btn:hover { color: var(--danger); }

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.coupon-box { display:flex; gap:8px; margin-bottom:14px; }
.coupon-box input {
  flex:1;
  background:#fff;
  border:1px solid var(--border);
  color:var(--text);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size:0.83rem;
  outline:none;
  transition: var(--transition);
}
.coupon-box input:focus { border-color:var(--text); }
.coupon-box input::placeholder { color:var(--text-lighter); }
.summary-row { display:flex; justify-content:space-between; font-size:0.83rem; margin-bottom:7px; color:var(--text-muted); }
.summary-row.total-row { font-size:1rem; font-weight:700; color:var(--text); border-top:1px solid var(--border); padding-top:10px; margin-top:4px; }

/* ══════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.modal.active { opacity:1; pointer-events:auto; }

.modal-dialog {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* Quick View */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.qv-gallery {
  padding: 32px;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
}
.qv-main-img-wrap {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: 12px;
  padding: 16px;
}
.qv-main-img-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
.qv-thumbnails { display: flex; gap: 8px; }
.qv-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
}
.qv-thumb.active { border-color: var(--text); }
.qv-thumb:hover { border-color: var(--text-muted); }

.qv-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.qv-brand { font-size: 0.72rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.qv-title { font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.qv-rating-bar { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.qv-rating-bar .stars { display: flex; gap: 2px; }
.dot { color: var(--text-lighter); }
.qv-price-box { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.qv-price { font-size: 1.6rem; font-weight: 700; }
.qv-old-price { font-size: 0.9rem; color: var(--text-lighter); text-decoration: line-through; }
.qv-stock-badge { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-pill); }
.in-stock  { background: rgba(26,127,78,.1);  color: var(--success); }
.out-stock { background: rgba(192,57,43,.1); color: var(--danger); }
.stock-tag { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-pill); }

.qv-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.qv-features { margin-bottom: 16px; }
.qv-features h5, .qv-specs-table h5 { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); font-weight:600; margin-bottom:8px; }
.qv-features ul { list-style:none; }
.qv-features li { font-size:0.82rem; color:var(--text-muted); margin-bottom:5px; display:flex; align-items:flex-start; gap:7px; line-height:1.5; }
.qv-features li i { color:var(--text); flex-shrink:0; margin-top:2px; }

.specs-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.spec-item { background:var(--bg-soft); border:1px solid var(--border); padding:8px 10px; border-radius:var(--radius-sm); }
.spec-label { display:block; font-size:0.68rem; color:var(--text-lighter); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:2px; }
.spec-val { font-size:0.80rem; font-weight:500; }

.qv-actions { display:flex; align-items:center; gap:10px; margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.qv-qty-picker {
  display:flex; align-items:center;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.qv-qty-picker input {
  width:38px; text-align:center;
  background:transparent; border:none;
  color:var(--text); font-weight:600; font-size:0.88rem;
  outline:none;
}
.action-btn-lg {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* Compare Matrix */
.compare-table-wrapper { padding: 20px; overflow-x: auto; }
.compare-table { width:100%; border-collapse:collapse; font-size:0.84rem; }
.compare-table th, .compare-table td { padding:12px 16px; border:1px solid var(--border); text-align:center; }
.spec-header-col, .spec-title { text-align:left !important; background:var(--bg-soft); font-size:0.75rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); font-weight:600; }
.compare-product-card { position:relative; padding-top:4px; }
.remove-compare-btn { background:transparent; border:none; color:var(--text-lighter); cursor:pointer; position:absolute; top:0; right:0; transition:var(--transition); }
.remove-compare-btn:hover { color:var(--danger); }
.compare-img { width:72px; height:72px; object-fit:contain; margin:0 auto 8px; }
.compare-title { font-size:0.82rem; font-weight:600; margin-bottom:6px; }
.compare-price { font-weight:700; margin-bottom:8px; }
.rating-badge { display:inline-flex; align-items:center; gap:4px; font-size:0.8rem; }

/* Empty state */
.empty-state { text-align:center; padding:60px 24px; color:var(--text-muted); }
.empty-icon { margin:0 auto 16px; color:var(--text-lighter); }
.empty-state h3 { font-size:1rem; color:var(--text); margin-bottom:8px; }
.empty-state p { font-size:0.84rem; }

/* ══════════════════════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════════════════════ */
.checkout-step-view { padding:36px; }
.checkout-step-view h3 { font-size:1rem; font-weight:700; margin-bottom:6px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:20px 0; }
.form-group label { display:block; font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); margin-bottom:6px; }
.form-control {
  width:100%; background:var(--bg-input); border:1px solid var(--border);
  color:var(--text); padding:11px 14px; border-radius:var(--radius-md);
  font-size:0.88rem; outline:none; transition:var(--transition);
}
.form-control:focus { border-color:var(--text); background:#fff; }
.form-control::placeholder { color:var(--text-lighter); }
.checkout-summary-mini {
  display:flex; align-items:center; justify-content:space-between;
  background:var(--bg-soft); border:1px solid var(--border); padding:12px 16px;
  border-radius:var(--radius-md); font-size:0.85rem; color:var(--text-muted); margin-bottom:20px;
}
.total-highlight { font-size:1.05rem; font-weight:700; color:var(--text); }
.checkout-actions { display:flex; gap:12px; justify-content:flex-end; }

.payment-methods { display:flex; gap:12px; margin:16px 0; }
.payment-option {
  flex:1; background:var(--bg-soft); border:1px solid var(--border); padding:14px;
  border-radius:var(--radius-md); cursor:pointer; display:flex; align-items:center; gap:10px;
  font-size:0.84rem; transition:var(--transition);
}
.payment-option.active, .payment-option:has(input:checked) { border-color:var(--text); background:#fff; }
.payment-option input { display:none; }

.order-success-view { text-align:center; padding:52px 36px; }
.success-icon-animation {
  width:72px; height:72px; background:var(--text); color:#fff;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  margin:0 auto 20px;
}
.order-num { font-size:0.9rem; color:var(--text-muted); margin-bottom:6px; }
.order-num strong { color:var(--text); }
.order-subtitle { font-size:0.85rem; color:var(--text-muted); margin-bottom:28px; }
.order-receipt-card {
  background:var(--bg-soft); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:20px; max-width:400px; margin:0 auto 24px; text-align:left;
}
.order-receipt-card h4 { font-size:0.78rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); margin-bottom:14px; }
.receipt-row { display:flex; justify-content:space-between; margin-bottom:8px; font-size:0.84rem; color:var(--text-muted); }
.receipt-total { font-weight:700; color:var(--text); border-top:1px solid var(--border); padding-top:10px; margin-top:4px; font-size:0.95rem; }

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════════════════ */
.toast-container { position:fixed; bottom:24px; right:24px; z-index:400; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast {
  background:#fff;
  border:1px solid var(--border);
  color:var(--text);
  padding:11px 18px;
  border-radius:var(--radius-pill);
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; gap:10px;
  font-size:0.83rem; font-weight:500;
  animation:slideInRight .22s ease;
  pointer-events:auto;
}
.toast-success i { color:var(--success); }
.toast-warning i { color:var(--warning); }
.toast-info    i { color:var(--text); }
.toast.fade-out { opacity:0; transform:translateX(20px); transition:.25s ease; }
@keyframes slideInRight { from { transform:translateX(60px); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* ══════════════════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════════════════ */
.newsletter-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  text-align: center;
  margin: 0 0 80px;
  background: var(--bg-soft);
}
.newsletter-section h2 { font-size: 1.5rem; margin-bottom: 10px; }
.newsletter-section p { color:var(--text-muted); max-width:500px; margin:0 auto 24px; font-size:0.9rem; }
.newsletter-form { display:flex; max-width:440px; margin:0 auto; gap:10px; }
.newsletter-form input { border-radius:var(--radius-pill); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { }
.footer-brand .logo img { height:28px; margin-bottom:14px; }
.footer-brand p { font-size:0.85rem; color:var(--text-muted); line-height:1.7; max-width:300px; }
.footer-col h4 { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; font-weight:700; color:var(--text-muted); margin-bottom:14px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:9px; font-size:0.85rem; color:var(--text-muted); display:flex; align-items:center; gap:6px; }
.footer-col a:hover { color:var(--text); }
.footer-col i { flex-shrink:0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-lighter);
}
.footer-bottom-links { display:flex; gap:20px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .store-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position:static; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .hero-card { grid-template-columns:1fr; }
  .hero-image-panel { display:none; }
}
@media (max-width: 768px) {
  .header-wrap { flex-wrap:wrap; }
  .search-box-container { order:3; max-width:100%; width:100%; }
  .quick-view-grid { grid-template-columns:1fr; }
  .qv-gallery { border-right:none; border-bottom:1px solid var(--border); }
  .form-grid { grid-template-columns:1fr; }
  .span-2 { grid-column:1; }
  .top-bar-content > div:last-child { display:none; }
  .newsletter-section { padding:36px 24px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
}
@media (max-width: 500px) {
  .hero-content { padding:32px 24px; }
  .products-grid { grid-template-columns:1fr 1fr; }
}
