/* ====================================================
   ShopNest - Main Stylesheet
   Professional Amazon-inspired e-commerce design
   ==================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --nav-bg:        #0f1923;
  --nav-secondary: #1a2d42;
  --accent:        #ff9900;
  --accent-hover:  #e47911;
  --accent-light:  #fff3cd;
  --accent-dark:   #c67000;

  /* Backgrounds */
  --bg-main:    #f0f2f5;
  --bg-card:    #ffffff;
  --bg-hover:   #f8f9fa;
  --bg-dark:    #131921;

  /* Text */
  --text-primary:   #111820;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;
  --text-white:     #ffffff;
  --text-link:      #007185;
  --text-link-hover:#c45500;

  /* Status */
  --success: #16a34a;
  --danger:  #dc2626;
  --warning: #d97706;
  --info:    #2563eb;
  --success-bg: #f0fdf4;
  --danger-bg:  #fef2f2;

  /* Border */
  --border:     #e5e7eb;
  --border-dark:#d1d5db;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-md: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.04);
  --shadow-nav:0 2px 8px rgba(0,0,0,.35);

  /* Sizing */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --container:   1280px;
  --nav-height:  64px;
  --cat-nav-h:   44px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;

  /* Transitions */
  --trans: 0.2s ease;
  --trans-slow: 0.35s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--text-link-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; color: var(--text-primary); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.d-none-sm { display: none; }

/* ---------- TOP BANNER ---------- */
.top-banner {
  background: var(--nav-secondary);
  color: #ccc;
  text-align: center;
  padding: 7px 16px;
  font-size: var(--font-size-xs);
  letter-spacing: 0.02em;
}
.top-banner-sep { margin: 0 12px; opacity: .4; }

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-height);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Logo */
.nav-logo { flex-shrink: 0; }
.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.04em;
}
.logo-text::first-letter {
  color: var(--accent);
}

/* Search */
.nav-search { flex: 1; max-width: 680px; }
.search-wrap {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-full);
  overflow: visible;
  border: 2px solid transparent;
  background: #fff;
  transition: border-color var(--trans);
  position: relative;
}
.search-wrap:focus-within { border-color: var(--accent); }

/* ---- Custom category dropdown ---- */
.search-cat-wrap {
  position: relative;
  flex-shrink: 0;
}
.search-cat-btn {
  display: flex; align-items: center; gap: 6px;
  background: #f0f0f0;
  border: none;
  border-right: 1px solid #d0d0d0;
  padding: 0 14px;
  height: 44px;
  font-size: .8rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  min-width: 100px;
  transition: background var(--trans);
  outline: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}
.search-cat-btn:hover, .search-cat-btn.open { background: #e5e5e5; }
.search-cat-arrow { font-size: .6rem; transition: transform var(--trans); }
.search-cat-btn.open .search-cat-arrow { transform: rotate(180deg); }
.search-cat-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
  z-index: 10000;
  padding: 6px 0;
}
.search-cat-dropdown.open { display: block; }
.scat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  font-size: .82rem; font-weight: 500; color: var(--text-primary);
  cursor: pointer;
  transition: background var(--trans);
}
.scat-item:hover { background: #f8f9fa; color: var(--accent-dark); }
.scat-item.selected { background: #fff8ee; color: var(--accent-dark); font-weight: 700; }
.scat-all { border-bottom: 1px solid var(--border); margin-bottom: 4px; color: var(--text-secondary); font-weight: 600; }
.scat-item i { width: 16px; text-align: center; font-size: .8rem; color: var(--accent); }

.search-input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  outline: none;
  background: transparent;
  min-width: 0;
}
.search-btn {
  background: var(--accent);
  color: var(--nav-bg);
  border: none;
  padding: 0 22px;
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--accent-hover); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-white);
  font-size: 1.25rem;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
  background: none;
  border: none;
  cursor: pointer;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.1); color: var(--accent); }
.nav-icon-link { text-decoration: none; }
.nav-label { font-size: var(--font-size-xs); font-weight: 600; }
.nav-caret { font-size: 0.65rem; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: var(--nav-bg);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: #fff;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--trans);
}

/* ---------- DROPDOWN MENUS ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  border: 1px solid var(--border);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
  overflow: hidden;
}
.dropdown.open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header {
  padding: 12px 16px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  transition: background var(--trans);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-link-hover); }
.dropdown-item i { width: 16px; color: var(--text-secondary); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown-footer {
  display: block; text-align: center;
  padding: 10px; font-size: var(--font-size-xs);
  color: var(--info); border-top: 1px solid var(--border);
  font-weight: 600;
}
.dropdown-footer:hover { background: var(--bg-hover); }
.dropdown-empty { padding: 16px; text-align: center; color: var(--text-muted); font-size: var(--font-size-sm); }
.btn-login {
  background: var(--accent);
  color: var(--text-primary) !important;
  font-weight: 700;
  margin: 10px;
  border-radius: var(--radius);
  justify-content: center;
}
.btn-login:hover { background: var(--accent-hover); }
.text-seller { color: var(--success) !important; }
.text-admin  { color: var(--info) !important; }
.text-danger { color: var(--danger) !important; }

/* Notification menu */
.notif-menu { min-width: 300px; }
.notif-item {
  display: flex; flex-direction: column;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 2px;
  transition: background var(--trans);
}
.notif-item:hover { background: var(--bg-hover); }
.notif-title { font-size: var(--font-size-sm); font-weight: 600; }
.notif-time  { font-size: var(--font-size-xs); color: var(--text-muted); }
.notif-info    { border-left: 3px solid var(--info); }
.notif-success { border-left: 3px solid var(--success); }
.notif-warning { border-left: 3px solid var(--warning); }

/* ---------- CATEGORY NAV ---------- */
.cat-nav {
  background: var(--nav-secondary);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cat-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: var(--cat-nav-h);
  gap: 4px;
  overflow: hidden;
}
.cat-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #d1d5db;
  font-size: var(--font-size-xs);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: background var(--trans), color var(--trans);
}
.cat-nav-link:hover { background: rgba(255,255,255,.12); color: var(--text-white); }
.cat-nav-link.active { background: rgba(255,153,0,.2); color: var(--accent); font-weight: 700; }
.cat-nav-link i { font-size: 0.8rem; }
.cat-nav-all {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: var(--font-size-sm); font-weight: 700;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  transition: background var(--trans); white-space: nowrap;
  border: none; cursor: pointer; flex-shrink: 0;
}
.cat-nav-all:hover, .cat-nav-all.open { background: rgba(255,255,255,.2); }
.cat-deals { color: var(--accent) !important; font-weight: 700; flex-shrink: 0; }
.cat-deals:hover { background: rgba(255,153,0,.15) !important; }

/* ---- Category Sidebar ---- */
.cat-sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 8998;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.cat-sidebar-backdrop.open {
  opacity: 1; visibility: visible;
  transition: opacity .28s ease, visibility 0s linear 0s;
}
.cat-sidebar {
  position: fixed;
  top: 0; left: -340px;
  width: 320px; max-width: 88vw;
  height: 100vh;
  background: #fff;
  z-index: 8999;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 4px 0 32px rgba(0,0,0,.22);
  transition: left .3s cubic-bezier(.4,0,.2,1);
}
.cat-sidebar.open { left: 0; }
.cat-sidebar-head {
  background: var(--nav-bg); color: #fff;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  font-size: .95rem; font-weight: 700;
}
.cat-sidebar-close {
  background: none; border: none; color: #fff; font-size: 1.1rem;
  cursor: pointer; padding: 4px 8px; border-radius: var(--radius);
  transition: background .15s;
}
.cat-sidebar-close:hover { background: rgba(255,255,255,.15); }
.cat-sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 8px 0 24px;
}
.cat-sidebar-section-label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  padding: 12px 18px 6px;
}
.cat-sidebar-item { border-bottom: 1px solid #f0f0f0; }
.cat-sidebar-row {
  display: flex; align-items: stretch;
  padding: 0; cursor: default; background: none; border: none; width: 100%;
}
.cat-sidebar-row:hover { background: none; }
/* Parent link (fills the row) */
.cat-sidebar-parent-link {
  display: flex; align-items: center; gap: 12px;
  flex: 1; padding: 12px 16px;
  color: var(--text-primary); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: background .15s;
}
.cat-sidebar-parent-link:hover { background: #f4f5f7; color: var(--accent); }
/* Expand chevron button */
.cat-sidebar-expand-btn {
  flex-shrink: 0; width: 42px;
  background: none; border: none; border-left: 1px solid #f0f0f0;
  cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  align-self: stretch;
}
.cat-sidebar-expand-btn:hover { background: #f0f0f0; color: var(--accent); }
.cat-sidebar-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; flex-shrink: 0;
}
.cat-sidebar-name { flex: 1; font-size: .9rem; font-weight: 500; }
.cat-sidebar-arrow {
  font-size: .7rem; color: var(--text-muted);
  transition: transform .2s;
}
.cat-sidebar-item.expanded .cat-sidebar-arrow { transform: rotate(90deg); }
.cat-sidebar-children {
  display: none;
  background: #f8f9fa;
  border-top: 1px solid #ebebeb;
}
.cat-sidebar-item.expanded .cat-sidebar-children { display: block; }
/* Also show on hover for quick access */
.cat-sidebar-item:hover .cat-sidebar-children { display: block; }
/* ── Sidebar account links (Mi cuenta section) ── */
.cat-sidebar-account-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  color: var(--text-primary); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s, color .15s;
}
.cat-sidebar-account-link:hover { background: #f4f5f7; color: var(--accent); }
/* Logo in navbar */
.nav-logo-img { height: 40px; max-width: 160px; object-fit: contain; display: block; }
.cat-sidebar-child-link {
  display: block;
  padding: 9px 18px 9px 58px;
  font-size: .85rem; color: var(--text-secondary);
  transition: background .15s, color .15s;
}
.cat-sidebar-child-link:hover { background: #efefef; color: var(--accent); }
.cat-sidebar-child-all {
  font-weight: 700; color: var(--accent);
  padding-left: 18px; border-bottom: 1px solid #e5e5e5;
}

/* ---------- HOME WIDGET GRID (Amazon-style) ---------- */
.home-widget-grid { display: none; } /* legacy — replaced by shelves */

/* ========================================================================
   PRODUCT SHELVES  (Homepage horizontal scroll rows)
   ======================================================================== */
.shelves-section {
  background: var(--bg-main);
  padding: 36px 0 48px;
}
.shelf-row {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 5px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
  margin-bottom: 22px;
  overflow: hidden;
}
.shelf-row:last-child { margin-bottom: 0; }
.shelf-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 13px;
  border-bottom: 1px solid var(--border);
}
.shelf-row-header-left { display: flex; align-items: center; gap: 12px; }
.shelf-row-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem; flex-shrink: 0;
}
.shelf-row-title {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text-primary); margin: 0;
}
.shelf-row-more {
  font-size: .8rem; font-weight: 600;
  color: var(--text-link); white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.shelf-row-more:hover { color: var(--accent); }
/* Scroll container */
.shelf-row-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shelf-row-scroll::-webkit-scrollbar { display: none; }
/* Individual item */
.shelf-item {
  flex: 0 0 172px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-right: 1px solid var(--border);
  padding: 14px 12px 14px;
  transition: background .15s;
  min-width: 0;
}
.shelf-item:last-child { border-right: none; }
.shelf-item:hover { background: #f7f8fa; }
/* Image */
.shelf-item-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-main);
  margin-bottom: 10px;
}
.shelf-item-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.shelf-item:hover .shelf-item-img img { transform: scale(1.06); }
.shelf-item-disc {
  position: absolute; top: 6px; left: 6px;
  background: #e31c21; color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: 2px 6px; border-radius: 5px;
  letter-spacing: .02em;
}
/* Body */
.shelf-item-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shelf-item-name {
  font-size: .78rem; font-weight: 500; color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.shelf-item-price-row {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  margin-top: 2px;
}
.shelf-item-price { font-size: .92rem; font-weight: 800; color: #b12704; }
.shelf-item-old   { font-size: .7rem; color: var(--text-muted); text-decoration: line-through; }
.shelf-item-stars { font-size: .6rem; color: #ffa41c; display: flex; gap: 1px; }
.shelf-item-badge {
  font-size: .64rem; font-weight: 600; color: #15803d;
  display: flex; align-items: center; gap: 3px; margin-top: 1px;
}
@media (max-width: 600px) {
  .shelf-item { flex: 0 0 140px; }
  .shelf-row-title { font-size: .9rem; }
}

/* ── Shelf row visual differentiation ─────────────────────────────────── */
.shelf-row--1 .shelf-row-header { background: #fff5f5; border-bottom-color: #fecaca; }
.shelf-row--1 .shelf-row-title  { color: #991b1b; }
.shelf-row--1 .shelf-row-more   { color: #dc2626; }
.shelf-row--1 .shelf-row-more:hover { color: #991b1b; }

.shelf-row--2 .shelf-row-header { background: #faf5ff; border-bottom-color: #ddd6fe; }
.shelf-row--2 .shelf-row-title  { color: #5b21b6; }
.shelf-row--2 .shelf-row-more   { color: #7c3aed; }
.shelf-row--2 .shelf-row-more:hover { color: #5b21b6; }

.shelf-row--3 .shelf-row-header { background: #fffbeb; border-bottom-color: #fde68a; }
.shelf-row--3 .shelf-row-title  { color: #92400e; }
.shelf-row--3 .shelf-row-more   { color: #d97706; }
.shelf-row--3 .shelf-row-more:hover { color: #92400e; }

.shelf-row--4 .shelf-row-header { background: #f0fdf4; border-bottom-color: #bbf7d0; }
.shelf-row--4 .shelf-row-title  { color: #14532d; }
.shelf-row--4 .shelf-row-more   { color: #16a34a; }
.shelf-row--4 .shelf-row-more:hover { color: #14532d; }

.shelf-row--5 .shelf-row-header { background: #eff6ff; border-bottom-color: #bfdbfe; }
.shelf-row--5 .shelf-row-title  { color: #1e3a8a; }
.shelf-row--5 .shelf-row-more   { color: #2563eb; }
.shelf-row--5 .shelf-row-more:hover { color: #1e3a8a; }

.shelf-row--6 .shelf-row-header { background: #f0fdfa; border-bottom-color: #99f6e4; }
.shelf-row--6 .shelf-row-title  { color: #134e4a; }
.shelf-row--6 .shelf-row-more   { color: #0d9488; }
.shelf-row--6 .shelf-row-more:hover { color: #134e4a; }

/* ── Shelf Layout Differentiation ──────────────────────────────────────── */

/* ---- Ranked Grid (Best Sellers) ---- */
.shelf-ranked-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0;
  padding: 16px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 60%);
}
.shelf-ranked-item {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid #fde8e8;
  border-radius: 10px;
  margin: 5px;
  padding: 14px 10px 12px;
  position: relative;
  background: #fff;
  transition: box-shadow .18s, transform .18s;
}
.shelf-ranked-item:hover {
  box-shadow: 0 6px 20px rgba(220,38,38,.12);
  transform: translateY(-3px);
}
.shelf-rank-num {
  position: absolute; top: 8px; left: 10px;
  font-size: 1.6rem; font-weight: 900;
  color: #fecaca; line-height: 1;
  font-family: Georgia, serif;
  z-index: 1;
}
.shelf-ranked-item:nth-child(1) .shelf-rank-num { color: #fbbf24; font-size: 2rem; }
.shelf-ranked-item:nth-child(2) .shelf-rank-num { color: #9ca3af; font-size: 1.75rem; }
.shelf-ranked-item:nth-child(3) .shelf-rank-num { color: #d97706; font-size: 1.6rem; }
.shelf-ranked-img {
  width: 80px; height: 80px; margin: 8px auto 10px;
  border-radius: 8px; overflow: hidden;
  background: #f8f9fa;
}
.shelf-ranked-img img { width:100%; height:100%; object-fit:contain; }
.shelf-ranked-body { text-align: center; }
.shelf-ranked-name {
  font-size: .72rem; font-weight: 500; color: var(--text-primary);
  line-height: 1.3; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 5px;
}
.shelf-ranked-price { font-size: .88rem; font-weight: 800; color: #b12704; }
.shelf-ranked-old   { font-size: .68rem; color: var(--text-muted); text-decoration: line-through; }
@media (max-width: 700px) {
  .shelf-ranked-grid { grid-template-columns: repeat(3, 1fr); }
  .shelf-ranked-item:nth-child(n+7) { display: none; }
}
@media (max-width: 460px) {
  .shelf-ranked-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf-ranked-item:nth-child(n+5) { display: none; }
}

/* ---- Featured Layout (New Arrivals) ---- */
.shelf-featured-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}
.shelf-featured-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: linear-gradient(160deg, #faf5ff 0%, #f0e6ff 100%);
  border-right: 1px solid #ddd6fe;
  transition: background .2s;
  position: relative;
  overflow: hidden;
}
.shelf-featured-card:hover { background: linear-gradient(160deg, #f3e8ff 0%, #e9d5ff 100%); }
.shelf-featured-img {
  position: relative; flex: 0 0 180px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(255,255,255,.5);
}
.shelf-featured-img img { max-width: 100%; max-height: 140px; object-fit: contain; }
.shelf-featured-disc {
  position: absolute; top: 8px; left: 8px;
  background: #7c3aed; color: #fff;
  font-size: .65rem; font-weight: 900;
  padding: 3px 8px; border-radius: 99px;
}
.shelf-featured-new-ribbon {
  position: absolute; bottom: 8px; right: -1px;
  background: #7c3aed; color: #fff;
  font-size: .6rem; font-weight: 900;
  padding: 3px 10px 3px 8px;
  letter-spacing: .08em;
}
.shelf-featured-body { padding: 14px 16px; flex: 1; }
.shelf-featured-name {
  font-size: .88rem; font-weight: 700; color: var(--text-primary);
  line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.shelf-featured-price { font-size: 1.1rem; font-weight: 900; color: #7c3aed; }
.shelf-featured-old   { font-size: .78rem; color: var(--text-muted); text-decoration: line-through; margin-top: 2px; }
.shelf-featured-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: .75rem; font-weight: 700;
  color: #7c3aed; background: rgba(124,58,237,.08);
  padding: 6px 12px; border-radius: 99px;
}
.shelf-featured-rest { flex: 1; }
.shelf-featured-rest .shelf-item { border-top: 3px solid transparent; }
.shelf-featured-rest .shelf-item:hover { border-top-color: #7c3aed; }
.shelf-item-new-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #7c3aed; box-shadow: 0 0 0 2px #fff;
}
@media (max-width: 600px) {
  .shelf-featured-wrap { grid-template-columns: 1fr; }
  .shelf-featured-card { flex-direction: row; max-height: 120px; }
  .shelf-featured-img  { flex: 0 0 100px; }
}

/* ---- Free Shipping shelf accent ---- */
.shelf-layout-scroll.shelf-row--4 .shelf-row-scroll { background: #f0fdf4; }
.shelf-layout-scroll.shelf-row--4 .shelf-item { border-top: 2px solid #bbf7d0; }
.shelf-layout-scroll.shelf-row--4 .shelf-item:hover { background: #f0fdf4; }
.shelf-item-ship-badge {
  position: absolute; bottom: 6px; right: 6px;
  background: #059669; color: #fff;
  font-size: .55rem; width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════
   ACCOUNT PAGES — shared layout
   ══════════════════════════════════════════════════════════════════════ */
.acct-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 28px 0 72px;
  align-items: start;
}
@media (max-width: 900px) { .acct-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.acct-sidebar {
  position: sticky;
  top: calc(var(--nav-height, 60px) + 16px);
}
.acct-sidebar-profile {
  background: linear-gradient(160deg, var(--nav-bg) 0%, #1e3a4a 100%);
  border-radius: 16px; padding: 24px 20px; text-align: center;
  margin-bottom: 10px;
}
.acct-sidebar-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); margin: 0 auto 12px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900; color: #111;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.acct-sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-sidebar-name  { color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 3px; }
.acct-sidebar-email { color: rgba(255,255,255,.55); font-size: .75rem; margin-bottom: 12px; word-break: break-all; }
.acct-sidebar-badges {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.acct-badge {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  font-size: .68rem; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 5px;
}
.acct-badge i { color: var(--accent); }

/* Nav */
.acct-sidebar-nav {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; overflow: hidden;
}
.acct-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: .875rem; font-weight: 600;
  color: var(--text-secondary); text-decoration: none;
  transition: background .15s, color .15s;
  position: relative;
}
.acct-nav-link:hover  { background: var(--bg-hover); color: var(--text-primary); }
.acct-nav-link.active { background: var(--accent-light); color: #92400e; }
.acct-nav-link.active .acct-nav-icon { color: var(--accent); }
.acct-nav-link--danger       { color: #dc2626; }
.acct-nav-link--danger:hover { background: #fef2f2; color: #b91c1c; }
.acct-nav-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-hover); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .85rem; transition: background .15s, color .15s;
}
.acct-nav-link:hover  .acct-nav-icon { background: rgba(255,153,0,.12); color: var(--accent); }
.acct-nav-link.active .acct-nav-icon { background: rgba(255,153,0,.18); }
.acct-nav-count {
  margin-left: auto; background: var(--accent); color: #111;
  font-size: .65rem; font-weight: 900; min-width: 20px; height: 20px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.acct-nav-divider { height: 1px; background: var(--border); margin: 6px 4px; }

/* Main content area */
.acct-main { min-width: 0; }
.acct-page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.acct-page-title { font-size: 1.55rem; font-weight: 900; color: var(--text-primary); margin: 0; }
.acct-page-subtitle { font-size: .88rem; color: var(--text-muted); margin-top: 3px; }

/* Stats row */
.acct-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 700px) { .acct-stats { grid-template-columns: repeat(2,1fr); } }
.acct-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 16px; text-align: center;
  transition: box-shadow .15s, transform .15s;
}
.acct-stat:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-2px); }
.acct-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin: 0 auto 10px;
}
.acct-stat-icon.blue   { background: #dbeafe; color: #2563eb; }
.acct-stat-icon.green  { background: #dcfce7; color: #16a34a; }
.acct-stat-icon.orange { background: #ffedd5; color: #ea580c; }
.acct-stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.acct-stat-val { font-size: 1.3rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.acct-stat-lbl { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

/* Section cards */
.acct-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-bottom: 20px;
}
.acct-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: .88rem; font-weight: 800; color: var(--text-primary);
}
.acct-card-head i { color: var(--accent); margin-right: 8px; }
.acct-card-body { padding: 20px; }

/* ── Gallery Lightbox ─────────────────────────────────────────────────── */
.gallery-lb {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10000;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.gallery-lb--open { display: flex; }
.gallery-lb-img {
  max-width: 88vw; max-height: 75vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  cursor: default; pointer-events: none;
}
.gallery-lb-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 1.2rem;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 1;
}
.gallery-lb-close:hover { background: rgba(255,255,255,.25); }
.gallery-lb-prev, .gallery-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 1;
}
.gallery-lb-prev { left: 16px; }
.gallery-lb-next { right: 16px; }
.gallery-lb-prev:hover, .gallery-lb-next:hover { background: rgba(255,255,255,.28); }
.gallery-lb-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 14px 20px 8px; max-width: 90vw;
}
.gallery-lb-thumb {
  width: 60px; height: 60px; object-fit: cover;
  border-radius: 6px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.25);
  opacity: .65; transition: opacity .15s, border-color .15s;
}
.gallery-lb-thumb:hover, .gallery-lb-thumb.active {
  opacity: 1; border-color: var(--accent, #ff9900);
}

/* ======================================================================
   TOP DEAL SPOTLIGHT — redesigned
   ====================================================================== */
.top-deal-section { background: var(--bg-main); padding: 32px 0; }
.top-deal-card-new {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  border: 1px solid var(--border);
}
/* Header bar */
.top-deal-hd {
  background: linear-gradient(90deg, #131921 0%, #232f3e 100%);
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px; gap: 16px; flex-wrap: wrap;
}
.top-deal-hd-left { display: flex; align-items: center; gap: 12px; }
.top-deal-badge-pill {
  background: var(--accent); color: #111;
  font-size: .76rem; font-weight: 900;
  padding: 5px 14px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 5px;
}
.top-deal-hd-cat { font-size: .75rem; color: rgba(255,255,255,.55); font-weight: 600; }
.top-deal-timer-wrap { display: flex; align-items: center; gap: 8px; }
/* Body */
.top-deal-body {
  display: flex; text-decoration: none; color: inherit;
}
.top-deal-img-new {
  position: relative;
  flex: 0 0 240px;
  background: #f7f8fa;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; min-height: 220px;
  border-right: 1px solid var(--border);
}
.top-deal-img-new img {
  max-width: 100%; max-height: 200px;
  object-fit: contain; transition: transform .35s;
}
.top-deal-body:hover .top-deal-img-new img { transform: scale(1.05); }
.top-deal-disc-badge {
  position: absolute; top: 12px; left: 12px;
  background: #e31c21; color: #fff;
  font-size: .72rem; font-weight: 900;
  padding: 4px 10px; border-radius: 99px;
}
.top-deal-info-new {
  flex: 1; padding: 26px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.top-deal-brand-tag {
  font-size: .76rem; font-weight: 700;
  color: var(--text-link); text-transform: uppercase; letter-spacing: .05em;
}
.top-deal-name-new {
  font-size: 1.2rem; font-weight: 800;
  color: var(--text-primary); line-height: 1.3; margin: 0;
}
.top-deal-prices-new { display: flex; align-items: baseline; gap: 14px; }
.top-deal-price-big { font-size: 2rem; font-weight: 900; color: #b12704; line-height: 1; }
.top-deal-orig-price { font-size: .95rem; color: var(--text-muted); text-decoration: line-through; }
.top-deal-saving-pill {
  background: #dcfce7; color: #15803d;
  font-size: .82rem; font-weight: 700;
  padding: 5px 12px; border-radius: 8px;
  width: fit-content;
}
.top-deal-stock-wrap { }
.top-deal-bar-new {
  height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden;
}
.top-deal-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffa41c, #e31c21);
  border-radius: 99px;
}
.top-deal-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #111;
  font-size: .92rem; font-weight: 800;
  padding: 13px 26px; border-radius: 99px;
  transition: background .2s, transform .15s;
  width: fit-content; margin-top: 4px;
}
.top-deal-body:hover .top-deal-cta-btn { background: #e68900; transform: scale(1.02); }
@media (max-width: 640px) {
  .top-deal-body { flex-direction: column; }
  .top-deal-img-new { flex: 0 0 auto; min-height: 180px; border-right: none; border-bottom: 1px solid var(--border); }
  .top-deal-info-new { padding: 18px 20px; }
  .top-deal-price-big { font-size: 1.5rem; }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; top: 0; left: -300px; width: 290px; height: 100vh;
  background: var(--nav-bg); z-index: 2000;
  transition: left var(--trans-slow);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { left: 0; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--nav-secondary);
}
.mobile-menu-header .logo-text { font-size: 1.4rem; }
.mobile-menu-header button { color: #fff; font-size: 1.2rem; padding: 4px; }
.mobile-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; color: var(--accent); font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav { padding: 8px 0; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: #d1d5db; font-size: var(--font-size-sm);
  transition: background var(--trans), color var(--trans);
}
.mobile-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.mobile-nav-link i { width: 18px; color: var(--accent); }
.mobile-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 8px 0; }
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1500;
  opacity: 0; visibility: hidden;
  transition: opacity var(--trans-slow), visibility var(--trans-slow);
}
.overlay.active { opacity: 1; visibility: visible; }

/* ---------- ALERTS (inline contextual only — e.g. coupon msg, status badges) ---------- */
.alert {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.alert-icon { font-size: 1.1rem; font-weight: 700; }
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #86efac; }
.alert-error   { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }

/* ---------- TOAST NOTIFICATIONS ---------- */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  pointer-events: all;
  opacity: 0;
  transform: translateY(20px);
  animation: toastIn .32s ease forwards, toastOut .32s ease forwards 4.7s;
  border-left: 4px solid currentColor;
}
.toast-icon { font-size: 1.15rem; flex-shrink: 0; }
.toast-msg  { flex: 1; line-height: 1.4; }
.toast-close {
  background: none; border: none; cursor: pointer;
  opacity: .55; font-size: 1rem; line-height: 1;
  color: inherit; padding: 0 0 0 6px; flex-shrink: 0;
}
.toast-close:hover { opacity: 1; }
.toast-success { background: #f0fdf4; color: #166534; }
.toast-error   { background: #fef2f2; color: #991b1b; }
.toast-warning { background: #fffbeb; color: #92400e; }
.toast-info    { background: #eff6ff; color: #1e40af; }
@keyframes toastIn  { to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }
@media (max-width: 480px) {
  #toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: 100%; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #111; }
.btn-secondary {
  background: #e7e9ec;
  color: var(--text-primary);
  border-color: #d5d9d9;
}
.btn-secondary:hover { background: #d5d9d9; }
.btn-dark { background: var(--nav-bg); color: #fff; border-color: var(--nav-bg); }
.btn-dark:hover { background: #1a2d42; color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--text-link-hover);
}
.btn-outline:hover { background: var(--accent); color: #111; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: var(--font-size-xs); }
.btn-lg { padding: 14px 28px; font-size: var(--font-size-base); }
.btn-full { width: 100%; }
.btn-icon { padding: 8px; min-width: 36px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: var(--font-size-sm); font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,153,0,.15); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }
.form-text { font-size: var(--font-size-xs); color: var(--text-secondary); margin-top: 4px; }
.form-error { font-size: var(--font-size-xs); color: var(--danger); margin-top: 4px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Checkbox / Radio */
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check-input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.form-check-label { font-size: var(--font-size-sm); cursor: pointer; }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
  font-weight: 700;
  font-size: var(--font-size-base);
}
.card-body { padding: 20px; }

/* ---------- PRODUCT CARD ---------- */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Image wrapper */
.product-card > a { display: block; }
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f9f9f9;
  width: 100%;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* Badges */
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-sale    { background: var(--danger);  color: #fff; }
.badge-new     { background: var(--success); color: #fff; }
.badge-hot     { background: var(--accent);  color: #111; }
.badge-free-ship { background: #1a2d42; color: var(--accent); }

/* Quick actions */
.product-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(10px);
  transition: opacity var(--trans), transform var(--trans);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 34px; height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  color: var(--text-secondary);
  transition: background var(--trans), color var(--trans);
}
.product-action-btn:hover { background: var(--accent); color: #111; }
.product-action-btn.wishlisted { color: var(--danger); }

/* Card body */
.product-card-body {
  padding: 14px;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.product-name:hover { color: var(--text-link-hover); }
.product-brand {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* Stars */
.stars { display: flex; align-items: center; gap: 1px; }
.star { font-size: 0.9rem; color: #ccc; }
.star.filled { color: #f59e0b; }
.star.half   { color: #f59e0b; }
.product-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}
.rating-count { font-size: 0.7rem; }

/* Price */
.product-price { margin-top: auto; }
.price-current {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--text-primary);
}
.price-original {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: var(--font-size-xs);
  color: var(--danger);
  font-weight: 700;
}
.price-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}

/* Card footer */
.product-card-footer {
  padding: 0 14px 14px;
}
.btn-add-cart {
  width: 100%;
  padding: 9px;
  background: var(--accent);
  color: #111;
  font-size: var(--font-size-sm);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--trans);
}
.btn-add-cart:hover  { background: var(--accent-hover); }
.btn-add-cart:active { transform: scale(.98); }

/* Stock warning */
.stock-low  { font-size: var(--font-size-xs); color: var(--danger); font-weight: 600; }
.stock-ok   { font-size: var(--font-size-xs); color: var(--success); }
.stock-none { font-size: var(--font-size-xs); color: var(--text-muted); }

/* ---------- SECTION HEADERS ---------- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 4px; height: calc(100% - 8px);
  background: var(--accent);
  border-radius: var(--radius-full);
}
.section-link {
  font-size: var(--font-size-sm); font-weight: 600;
  color: var(--text-link); display: flex; align-items: center; gap: 4px;
}
.section-link:hover { color: var(--text-link-hover); }

/* ---------- PRODUCT GRID ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ---------- HOMEPAGE HERO / SLIDER ---------- */
.hero-section {
  background: var(--bg-main);
  padding: 0;
}
.hero-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1923 0%, #1a2d42 100%);
}
.hero-slide {
  display: none;
  position: relative;
  min-height: 420px;
  align-items: center;
}
.hero-slide.active { display: flex; }
.hero-slide-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,25,35,.85) 0%, rgba(15,25,35,.3) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto; padding: 60px 40px;
  color: #fff;
}
.hero-content .subtitle {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  max-width: 520px;
  margin-bottom: 16px;
}
.hero-content p { font-size: var(--font-size-lg); color: rgba(255,255,255,.75); max-width: 440px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider controls */
.slider-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,.5);
  cursor: pointer; border: none;
  transition: background var(--trans), width var(--trans);
}
.slider-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ---------- DEALS SECTION ---------- */
.deals-section { padding: 40px 0; }
.deal-timer {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--font-size-sm); font-weight: 600;
  color: var(--danger);
  background: var(--danger-bg);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #fca5a5;
}
.timer-unit {
  display: flex; flex-direction: column; align-items: center;
  background: var(--danger); color: #fff;
  padding: 4px 8px; border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 800;
}
.timer-label { font-size: 0.6rem; font-weight: 400; opacity: .8; }

/* ---------- CATEGORY CARDS ---------- */
/* ── Category Cards ─────────────────────────────────────────────────────── */
.cat-cards-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 12px;
  cursor: grab;
  user-select: none;
}
.cat-cards-row.is-dragging { cursor: grabbing; }
.cat-cards-row::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 140px;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: block;
  background: #1a2b3c;
  box-shadow: 0 2px 10px rgba(0,0,0,.13);
  transition: transform .22s, box-shadow .22s;
  flex-shrink: 0;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.cat-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .35s;
}
.cat-card:hover .cat-card-bg { transform: scale(1.08); }
.cat-card--nopic .cat-card-bg {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1923 100%);
}
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.68) 100%);
}
.cat-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 11px 13px;
  color: #fff;
  display: flex; flex-direction: column; gap: 3px;
}
.cat-card-icon { font-size: .78rem; opacity: .88; }
.cat-card-name {
  font-size: .78rem; font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 5px rgba(0,0,0,.7);
}
/* Drag-scroll cursor for shelf rows too */
.shelf-row-scroll {
  cursor: grab;
  user-select: none;
}
.shelf-row-scroll.is-dragging { cursor: grabbing; }

/* ---------- PROMO BANNERS ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  background-size: cover; background-position: center;
}
.promo-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, transparent 60%);
}
.promo-card-content {
  position: relative; z-index: 2;
  padding: 24px 20px; color: #fff;
}
.promo-card-content h3 { font-size: var(--font-size-xl); margin-bottom: 4px; }
.promo-card-content p  { font-size: var(--font-size-xs); opacity: .8; margin-bottom: 14px; }
.promo-btn {
  display: inline-block;
  padding: 7px 16px;
  background: #fff;
  color: var(--text-primary);
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background var(--trans);
}
.promo-btn:hover { background: var(--accent); }

/* ---------- PAGE SECTIONS ---------- */
.page-section { padding: 40px 0; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 14px 0; font-size: var(--font-size-xs);
  color: var(--text-secondary);
}
.breadcrumbs a { color: var(--text-link); }
.breadcrumbs a:hover { color: var(--text-link-hover); }
.breadcrumbs .sep { color: var(--text-muted); }
.breadcrumbs .current { color: var(--text-primary); font-weight: 600; }

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 340px;
  gap: 28px;
  align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--nav-height) + var(--cat-nav-h) + 16px); }
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f9f9f9;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.gallery-main img:hover { transform: scale(1.08); }
.gallery-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.gallery-thumb {
  width: 66px; height: 66px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--trans);
  background: #f9f9f9;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info { padding-right: 16px; }
.product-info .product-title { font-size: var(--font-size-2xl); font-weight: 800; margin-bottom: 8px; }
.product-info .product-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 16px; font-size: var(--font-size-sm);
}
.product-info .price-big { font-size: 2rem; font-weight: 800; }

/* Buy box */
.buy-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-height) + var(--cat-nav-h) + 16px);
}
.buy-box .price-big { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.buy-box-delivery {
  background: var(--bg-hover);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: var(--font-size-sm);
  margin-bottom: 16px;
}
.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 14px;
}
.qty-btn {
  width: 36px; height: 36px;
  background: var(--bg-hover);
  border: none; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: background var(--trans);
  color: var(--text-primary);
}
.qty-btn:hover { background: var(--accent); color: #111; }
.qty-input {
  width: 50px; text-align: center;
  border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-size: var(--font-size-sm); font-weight: 600;
  outline: none; padding: 8px 0;
}

/* Product tabs */
.product-tabs { margin-top: 32px; }
.tabs-header { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 12px 20px; font-size: var(--font-size-sm); font-weight: 600;
  color: var(--text-secondary); border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color var(--trans), border-color var(--trans);
}
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Attributes table */
.attributes-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.attributes-table tr:nth-child(even) td { background: var(--bg-hover); }
.attributes-table td { padding: 10px 14px; border: 1px solid var(--border); }
.attributes-table td:first-child { font-weight: 600; width: 35%; color: var(--text-secondary); }

/* Reviews */
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.reviewer-avatar {
  width: 38px; height: 38px;
  border-radius: 50%; background: var(--nav-secondary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: var(--font-size-sm);
  flex-shrink: 0;
}
.reviewer-info .reviewer-name { font-weight: 700; font-size: var(--font-size-sm); }
.reviewer-info .review-date  { font-size: var(--font-size-xs); color: var(--text-muted); }
.verified-badge { font-size: 0.7rem; color: var(--success); font-weight: 600; }
.review-title  { font-weight: 700; font-size: var(--font-size-sm); margin: 6px 0 4px; }
.review-text   { font-size: var(--font-size-sm); color: var(--text-secondary); line-height: 1.6; }
.rating-breakdown { max-width: 380px; }
.rating-bar-row {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--font-size-xs); margin-bottom: 6px;
}
.rating-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill  { height: 100%; background: #f59e0b; border-radius: var(--radius-full); }

/* ---------- CART PAGE ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--border); }
.cart-item-name { font-weight: 700; font-size: var(--font-size-sm); margin-bottom: 4px; }
.cart-item-meta { font-size: var(--font-size-xs); color: var(--text-secondary); }
.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-remove { font-size: var(--font-size-xs); color: var(--danger); cursor: pointer; }
.cart-item-price { font-weight: 800; font-size: var(--font-size-lg); white-space: nowrap; }

/* Order summary box */
.order-summary-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-height) + var(--cat-nav-h) + 16px);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-size: var(--font-size-lg); font-weight: 800; padding-top: 12px; }
.summary-row.discount { color: var(--success); }

/* Coupon */
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-input { flex: 1; }

/* ---------- CHECKOUT ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; padding: 32px 0;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: var(--font-size-sm); font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: all var(--trans);
}
.page-btn:hover  { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #111; border-color: var(--accent); }

/* ---------- NEWSLETTER ---------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--nav-bg) 0%, var(--nav-secondary) 100%);
  padding: 48px 0;
  margin-top: 40px;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.newsletter-text h3 { font-size: var(--font-size-2xl); color: #fff; margin-bottom: 6px; }
.newsletter-text p  { color: rgba(255,255,255,.65); font-size: var(--font-size-sm); }
.newsletter-form { display: flex; gap: 0; flex: 1; max-width: 450px; }
.nl-input {
  flex: 1; padding: 13px 18px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  border: none; font-size: var(--font-size-sm); outline: none;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  border-right: none;
}
.nl-input::placeholder { color: rgba(255,255,255,.5); }
.nl-input:focus { background: rgba(255,255,255,.18); }
.nl-btn {
  padding: 13px 24px;
  background: var(--accent); color: #111; font-weight: 700;
  border: none; cursor: pointer;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  white-space: nowrap; transition: background var(--trans);
}
.nl-btn:hover { background: var(--accent-hover); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.04em; }
.footer-logo::first-letter { color: var(--accent); }
.footer-brand p { font-size: var(--font-size-sm); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: var(--font-size-sm);
  transition: background var(--trans), color var(--trans);
}
.footer-social a:hover { background: var(--accent); color: #111; }
.footer-col h4 {
  color: #fff; font-size: var(--font-size-sm);
  font-weight: 700; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: var(--font-size-sm); color: #9ca3af; transition: color var(--trans); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li i { width: 16px; color: var(--accent); margin-right: 6px; }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pay-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: #9ca3af;
  border: 1px solid rgba(255,255,255,.1);
}
.pay-badge i { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; flex-wrap: wrap; gap: 12px;
  font-size: var(--font-size-xs);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #6b7280; transition: color var(--trans); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #111;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--trans);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover   { background: var(--accent-hover); transform: translateY(-3px); }

/* ---------- CART TOAST ---------- */
.cart-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  z-index: 3000;
  font-size: var(--font-size-sm);
  transition: transform var(--trans-slow);
  min-width: 300px;
}
.cart-toast.show { transform: translateX(-50%) translateY(0); }
.cart-toast i { color: var(--success); font-size: 1.2rem; }
.cart-toast-link {
  color: var(--accent); font-weight: 700; margin-left: auto;
  white-space: nowrap;
}
.cart-toast-close { color: rgba(255,255,255,.6); margin-left: 8px; font-size: 1.2rem; line-height: 1; }

/* ---------- TABLES ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.table th {
  background: var(--bg-hover); font-weight: 700;
  padding: 12px 14px; text-align: left;
  border-bottom: 2px solid var(--border);
  color: var(--text-secondary); font-size: var(--font-size-xs);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--bg-hover); }
.table img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius); }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
}
.status-pending    { background: #fef3c7; color: #b45309; }
.status-processing { background: #eff6ff; color: #1d4ed8; }
.status-shipped    { background: #f0f9ff; color: #0369a1; }
.status-delivered  { background: var(--success-bg); color: #15803d; }
.status-cancelled  { background: var(--danger-bg); color: #b91c1c; }
.status-active     { background: var(--success-bg); color: #15803d; }
.status-inactive   { background: var(--bg-hover); color: var(--text-secondary); }
.status-paid       { background: var(--success-bg); color: #15803d; }
.status-failed     { background: var(--danger-bg); color: #b91c1c; }

/* ========================================================================
   STORE PAGE
   ======================================================================== */
.store-hero {
  position: relative;
  background: var(--nav-bg);
}
.store-hero-banner {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.store-hero-banner--default {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #0f1923 0%, #1a2b3c 60%, #232f3e 100%);
}
.store-hero-body {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.store-logo-wrap { flex-shrink: 0; }
.store-logo {
  width: 96px; height: 96px; border-radius: 12px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  background: #fff;
  display: block;
}
.store-logo--placeholder {
  width: 96px; height: 96px; border-radius: 12px;
  border: 4px solid #fff;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.store-hero-info { flex: 1; min-width: 0; padding-bottom: 4px; }
.store-name {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin: 0 0 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.store-desc {
  font-size: .82rem; color: rgba(255,255,255,.75);
  margin: 0 0 10px; max-width: 600px;
}
.store-meta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.store-stat {
  font-size: .78rem; color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 5px;
}
/* Layout */
.store-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-hero-body { margin-top: -30px; flex-wrap: wrap; }
  .store-name { font-size: 1.2rem; }
}
/* Sidebar filter card */
.filter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.filter-card-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.store-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 8px; border-radius: var(--radius-md);
  font-size: .82rem; color: var(--text-primary);
  transition: background var(--trans);
  text-decoration: none;
}
.store-cat-link:hover  { background: var(--bg-main); }
.store-cat-link.active { background: rgba(255,153,0,.1); color: var(--accent); font-weight: 700; }
.store-cat-count {
  font-size: .72rem; color: var(--text-muted);
  background: var(--bg-main); padding: 1px 7px; border-radius: 99px;
}
/* Toolbar */
.store-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.store-sort select { cursor: pointer; }

/* Store contact buttons (in hero) */
.store-contact-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.store-contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 99px;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  transition: filter .15s, transform .12s;
  cursor: pointer;
}
.store-contact-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.store-contact-btn--wa    { background: #25d366; color: #fff; }
.store-contact-btn--email { background: #fff; border: 1.5px solid var(--border); color: var(--text-secondary); }
.store-contact-btn--phone { background: #fff; border: 1.5px solid var(--border); color: var(--text-secondary); }
/* Store contact sidebar card */
.store-contact-row-item {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: .82rem;
}
.store-contact-row-item i { color: var(--accent); width: 16px; }

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state-icon { font-size: 4rem; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { font-size: var(--font-size-xl); margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p  { color: var(--text-muted); font-size: var(--font-size-sm); margin-bottom: 24px; }

/* ---------- LOADING SPINNER ---------- */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

/* ---------- MISC ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.col-gap-sm { column-gap: 10px; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  .d-none-sm { display: flex; }
}

@media (max-width: 1024px) {
  .product-detail-layout { grid-template-columns: 1fr 1fr; }
  .buy-box { grid-column: span 2; position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 2rem; }
  .hero-slide { min-height: 280px; }
  .hero-content { padding: 40px 20px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-price { grid-column: 2; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .section-title { font-size: var(--font-size-xl); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card-body { padding: 10px; }
  .price-current { font-size: var(--font-size-lg); }
}

/* ===================================================================
   WHY CHOOSE US
   =================================================================== */
.why-us-section {
  padding: 72px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.why-us-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .2s, box-shadow .2s;
}
.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.why-us-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.why-us-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.why-us-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===================================================================
   BRANDS SECTION
   =================================================================== */
.brands-section {
  padding: 56px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  min-width: 120px;
}
.brand-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(255,153,0,.15);
  transform: translateY(-2px);
}
.brand-card-icon {
  font-size: 1.75rem;
  color: var(--text-secondary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-card:hover .brand-card-icon {
  color: var(--accent);
}
.brand-card-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* ===================================================================
   STATS BANNER
   =================================================================== */
.stats-banner {
  background: var(--nav-bg);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 16px;
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.75rem; }
}

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.testimonials-section {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: .875rem;
  display: flex;
  gap: 2px;
}
.testimonial-text {
  font-size: .9375rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin: 0;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.testimonial-meta {
  font-size: .75rem;
  color: var(--text-secondary);
}

/* ===================================================================
   NEWSLETTER SECTION (INDEX)
   =================================================================== */
.newsletter-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #0f1923 0%, #1e3a5f 100%);
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.newsletter-text {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: #fff;
}
.newsletter-icon {
  font-size: 2.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.newsletter-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.newsletter-text p {
  color: rgba(255,255,255,.75);
  font-size: .9375rem;
  line-height: 1.6;
  margin: 0;
}
.newsletter-form {
  flex: 1;
  min-width: 280px;
}
.newsletter-input-wrap {
  display: flex;
  gap: 8px;
}
.newsletter-input-wrap input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: none;
  transition: background .2s;
}
.newsletter-input-wrap input[type="email"]::placeholder {
  color: rgba(255,255,255,.5);
}
.newsletter-input-wrap input[type="email"]:focus {
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 2px var(--accent);
}
.newsletter-disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-top: 10px;
  line-height: 1.5;
}
.newsletter-disclaimer a {
  color: rgba(255,255,255,.7);
}
@media (max-width: 768px) {
  .newsletter-inner { flex-direction: column; gap: 28px; }
  .newsletter-input-wrap { flex-direction: column; }
  .brands-row { gap: 12px; }
  .brand-card { min-width: 100px; padding: 16px 18px; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   ACCOUNT — ORDERS
   =================================================================== */
.acct-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.acct-filter-tab {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .15s;
}
.acct-filter-tab:hover,
.acct-filter-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
}
.acct-order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.acct-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.acct-order-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.acct-order-num {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.acct-order-date {
  font-size: .78rem;
  color: var(--text-secondary);
}
.acct-order-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.acct-order-total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.acct-order-items {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acct-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background .15s;
}
.acct-order-item:hover {
  background: var(--surface);
}
.acct-order-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.acct-order-item-info {
  flex: 1;
  min-width: 0;
}
.acct-order-item-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-order-item-meta {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.acct-order-item-sub {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* ===================================================================
   ACCOUNT — ADDRESSES
   =================================================================== */
.acct-addr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.acct-addr-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
.acct-addr-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.acct-addr-card--default {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.acct-addr-badge {
  font-size: .72rem;
  background: var(--accent);
  color: #111;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
}
.acct-addr-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-primary);
}
.acct-addr-lines {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.acct-addr-phone {
  color: var(--accent);
  font-weight: 600;
}
.acct-addr-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ===================================================================
   ACCOUNT — CARD COMPONENTS (shared)
   =================================================================== */
.acct-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===================================================================
   ACCOUNT PROFILE — NEWSLETTER TOGGLE
   =================================================================== */
.acct-newsletter-toggle {
  display: block;
  cursor: pointer;
}
.acct-newsletter-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.acct-newsletter-toggle-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.acct-newsletter-toggle:has(input:checked) .acct-newsletter-toggle-body {
  border-color: #059669;
  background: #f0fdf4;
}
.acct-newsletter-icon {
  font-size: 1.5rem;
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: color .2s;
}
.acct-newsletter-toggle:has(input:checked) .acct-newsletter-icon {
  color: #059669;
  border-color: #059669;
}
.acct-newsletter-text {
  flex: 1;
  min-width: 0;
}
.acct-newsletter-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.acct-newsletter-desc {
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}
.acct-newsletter-switch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.acct-toggle-switch-ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background .2s;
}
.acct-toggle-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.acct-newsletter-toggle:has(input:checked) .acct-toggle-switch-ui {
  background: #059669;
}
.acct-newsletter-toggle:has(input:checked) .acct-toggle-switch-ui::after {
  transform: translateX(18px);
}

/* =================================================================
   HERO V2 — IMPRESSIVE
   ================================================================= */
.hero-v2 {
  position: relative;
  background: linear-gradient(135deg, #07111d 0%, #0f2233 40%, #172d44 80%, #0c1b2b 100%);
  overflow: hidden;
  padding: 64px 0 56px;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.hero-v2-banner-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .3;
}
/* Decorative orbs */
.hero-v2-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-v2-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,153,0,.14) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-v2-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,90,160,.2) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-v2-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,153,0,.1) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}
.hero-v2-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
/* LEFT */
.hero-v2-left { color: #fff; }
.hero-v2-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  background: rgba(255,153,0,.12);
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(255,153,0,.25);
}
.hero-v2-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}
.hero-v2-title-accent {
  background: linear-gradient(90deg, #ff9900, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-v2-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 28px;
}
/* Search bar */
.hero-v2-search {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.hero-v2-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 22px;
  font-size: 1rem;
  color: #111;
  background: transparent;
  min-width: 0;
}
.hero-v2-search-input::placeholder { color: #9ca3af; }
.hero-v2-search-btn {
  background: var(--accent);
  border: none;
  padding: 14px 24px;
  font-size: .9375rem;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.hero-v2-search-btn:hover { background: #e68900; }
/* Quick category chips */
.hero-v2-quick-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.hero-v2-quick-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  font-size: .78rem; font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.hero-v2-quick-chip:hover {
  background: rgba(255,153,0,.2);
  border-color: rgba(255,153,0,.4);
  color: var(--accent);
}
/* Trust badges */
.hero-v2-trust {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.hero-v2-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: rgba(255,255,255,.6);
}
.hero-v2-trust-item i { color: var(--accent); font-size: .9rem; }
/* Hero CTA button */
.hero-v2-actions { margin-bottom: 28px; }
.hero-v2-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #111; font-weight: 800; font-size: 1rem;
  padding: 14px 32px; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,153,0,.4);
  transition: transform .15s, box-shadow .15s;
}
.hero-v2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,153,0,.5);
}
/* RIGHT: product cards grid */
.hero-v2-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
  position: relative;
}
.hero-prod-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.hero-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  border-color: rgba(255,153,0,.3);
}
.hero-prod-card-1 { grid-column: 1; grid-row: 1; }
.hero-prod-card-2 { grid-column: 2; grid-row: 1 / 3; }
.hero-prod-card-3 { grid-column: 1; grid-row: 2; }
.hero-prod-card-4 { grid-column: 1 / 3; grid-row: 3; display:flex; flex-direction:row; align-items:center; }
.hero-prod-card-4 .hero-prod-img { width: 80px; height: 80px; flex-shrink: 0; }
.hero-prod-card-4 .hero-prod-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-prod-img {
  width: 100%; aspect-ratio: 1;
  overflow: hidden; background: rgba(0,0,0,.2);
}
.hero-prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.hero-prod-card:hover .hero-prod-img img { transform: scale(1.06); }
.hero-prod-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--danger, #e31c21);
  color: #fff; font-size: .65rem; font-weight: 800;
  padding: 3px 7px; border-radius: 4px;
}
.hero-prod-info {
  padding: 10px 12px;
}
.hero-prod-name {
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-prod-price {
  font-size: .875rem; font-weight: 800;
  color: var(--accent);
}
.hero-prod-orig {
  font-size: .7rem; font-weight: 400;
  text-decoration: line-through;
  color: rgba(255,255,255,.4);
  margin-left: 4px;
}
/* Stats strip below product cards */
.hero-v2-stats {
  grid-column: 1 / 3;
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px 20px;
}
.hero-v2-stat {
  display: flex; flex-direction: column; align-items: center;
  flex: 1;
}
.hero-v2-stat-num {
  font-size: 1.25rem; font-weight: 900; color: var(--accent);
}
.hero-v2-stat-lbl {
  font-size: .7rem; color: rgba(255,255,255,.55); font-weight: 600;
}
.hero-v2-stat-div {
  width: 1px; height: 36px; background: rgba(255,255,255,.15);
}
/* Responsive hero */
@media (max-width: 900px) {
  .hero-v2-inner { grid-template-columns: 1fr; }
  .hero-v2-right { display: none; }
  .hero-v2 { min-height: auto; padding: 48px 0; }
}
@media (max-width: 600px) {
  .hero-v2-search { flex-direction: column; border-radius: 14px; }
  .hero-v2-search-btn { border-radius: 0 0 14px 14px; }
}

/* =================================================================
   CATEGORY PRODUCT SECTIONS
   ================================================================= */
.cat-prods-section .section-title { font-size: 1.375rem; }
.cat-prods-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
/* Grid 4-col */
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .products-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .products-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* Horizontal scroll row */
.cat-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cat-scroll-row::-webkit-scrollbar { height: 4px; }
.cat-scroll-row::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.cat-scroll-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.cat-scroll-card {
  min-width: 200px; max-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  scroll-snap-align: start;
  transition: box-shadow .2s, transform .2s;
  flex-shrink: 0;
}
.cat-scroll-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.cat-scroll-img {
  width: 100%; aspect-ratio: 1;
  position: relative; overflow: hidden;
  background: #f8f9fa;
}
.cat-scroll-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .25s;
}
.cat-scroll-card:hover .cat-scroll-img img { transform: scale(1.05); }
.cat-scroll-disc {
  position: absolute; top: 6px; left: 6px;
  background: var(--danger, #e31c21);
  color: #fff; font-size: .65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.cat-scroll-ship {
  position: absolute; bottom: 6px; left: 6px;
  background: #059669; color: #fff;
  font-size: .6rem; padding: 2px 6px; border-radius: 4px;
}
.cat-scroll-body { padding: 10px 12px; }
.cat-scroll-brand { font-size: .68rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cat-scroll-name { font-size: .825rem; font-weight: 700; color: var(--text-primary); margin: 4px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-scroll-stars { font-size: .6rem; color: #f59e0b; margin-bottom: 5px; }
.cat-scroll-price { font-size: .9375rem; font-weight: 800; color: var(--accent, #ff9900); }
.cat-scroll-orig { font-size: .72rem; font-weight: 400; text-decoration: line-through; color: var(--text-secondary); margin-left: 4px; }

/* Featured big + grid layout */
.cat-featured-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 820px) { .cat-featured-layout { grid-template-columns: 1fr; } }
.cat-featured-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s;
  display: block;
}
.cat-featured-main:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.cat-featured-img {
  width: 100%; aspect-ratio: 1;
  position: relative; overflow: hidden; background: #f8f9fa;
}
.cat-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-featured-main:hover .cat-featured-img img { transform: scale(1.04); }
.cat-featured-disc {
  position: absolute; top: 12px; left: 12px;
  background: var(--danger, #e31c21); color: #fff;
  font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 6px;
}
.cat-featured-info { padding: 20px; }
.cat-featured-brand { font-size: .72rem; color: var(--text-secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cat-featured-name { font-size: 1.0625rem; font-weight: 800; color: var(--text-primary); margin: 8px 0; line-height: 1.35; }
.cat-featured-desc { font-size: .825rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.cat-featured-price { font-size: 1.375rem; font-weight: 900; color: var(--accent, #ff9900); }
.cat-featured-orig { font-size: .875rem; font-weight: 400; text-decoration: line-through; color: var(--text-secondary); margin-left: 6px; }
.cat-featured-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .875rem; font-weight: 700; color: var(--text-link); }
.cat-featured-rest {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
