/* ============================================================
   LEE GROUP SHOP — Main Stylesheet
   Theme: White / Black / Red — Automotive
   ============================================================ */

/* ── Google Fonts (Sarabun: Thai + Latin) ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --red:         #cc0000;
  --red-dark:    #aa0000;
  --red-light:   #ff2222;
  --black:       #111111;
  --black-soft:  #1a1a1a;
  --dark:        #222222;
  --gray-dark:   #444444;
  --gray:        #888888;
  --gray-mid:    #bbbbbb;
  --gray-light:  #f0f0f0;
  --gray-bg:     #f8f8f8;
  --white:       #ffffff;
  --yellow:      #f5a623;
  --green:       #28a745;
  --border:      #e8e8e8;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.16);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --transition:  0.22s ease;
  --font:        'Sarabun', sans-serif;
  --container:   1280px;
}

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

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ── Layout helpers ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1  { gap: 8px; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }
.text-red   { color: var(--red); }
.text-gray  { color: var(--gray); }
.text-white { color: var(--white); }
.fw-bold { font-weight: 700; }
.d-none { display: none !important; }

/* ── Section heading ─────────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-light);
}
.section-heading h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  position: relative;
  padding-left: 14px;
}
.section-heading h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.section-heading .view-all {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-heading .view-all:hover { text-decoration: underline; }

.section-wrap { padding: 32px 0; }

/* ──────────────────────────────────────────────────────────────
   A. ANNOUNCEMENT BAR
   ────────────────────────────────────────────────────────────── */
.announcement-bar {
  background: var(--black-soft);
  color: #ccc;
  font-size: 12px;
  padding: 7px 0;
  position: relative;
  z-index: 200;
}
.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ann-items {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}
.ann-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ccc;
  white-space: nowrap;
  transition: color var(--transition);
}
.ann-item:hover { color: var(--white); }
.ann-item i { color: var(--red); font-size: 11px; }

.ann-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ann-right a {
  color: #ccc;
  transition: color var(--transition);
}
.ann-right a:hover { color: var(--white); }
.ann-right .sep { color: #555; }
.lang-dropdown {
  position: relative;
}
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #444;
  border-radius: 4px;
  color: #ccc;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  padding: 3px 7px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: border-color var(--transition), color var(--transition);
  line-height: 1;
}
.lang-dropdown-btn:hover { border-color: #888; color: #fff; }
.lang-dropdown-btn img { display: block; border-radius: 2px; }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  min-width: 130px;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.lang-dropdown-menu.open { display: block; }
.lang-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.lang-dropdown-menu a:hover { background: #2a2a2a; color: #fff; }
.lang-dropdown-menu a.active { color: var(--red); }
.lang-dropdown-menu img { display: block; border-radius: 2px; }

/* ──────────────────────────────────────────────────────────────
   B. MAIN HEADER
   ────────────────────────────────────────────────────────────── */
.main-header {
  background: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 150;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.header-logo { flex-shrink: 0; }
.header-logo a { display: flex; align-items: center; }
.header-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 620px;
}
.search-form {
  display: flex;
  border: 2px solid var(--red);
  border-radius: var(--radius-sm);
  overflow: visible;
  background: var(--white);
  position: relative;
}
.search-input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.search-btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  color: var(--dark);
}
.search-input::placeholder { color: var(--gray); }
.search-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover { background: var(--red-dark); }

/* Live search dropdown */
.search-live-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 9999;
  overflow: hidden;
  animation: slpFadeIn .12s ease;
}
.search-live-dropdown.open { display: block; }
@keyframes slpFadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.slp-list { list-style: none; margin: 0; padding: 6px 0; }
.slp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .1s;
}
.slp-item:hover,
.slp-item.active { background: #fafafa; }
.slp-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #f9f9f9;
}
.slp-info { flex: 1; min-width: 0; }
.slp-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slp-brand { font-size: 11px; color: #999; margin-top: 2px; }
.slp-prices { flex-shrink: 0; text-align: right; }
.slp-price  { font-size: 13px; font-weight: 700; color: var(--red); }
.slp-sale   { font-size: 13px; font-weight: 700; color: var(--red); display: block; }
.slp-original { font-size: 11px; color: #aaa; text-decoration: line-through; display: block; }
.slp-footer {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--red);
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
  background: #fafafa;
  transition: background .1s;
}
.slp-footer:hover { background: #f5f5f5; }
.slp-footer i { margin-right: 6px; }
.slp-empty {
  padding: 18px 14px;
  font-size: 13px;
  color: #888;
  text-align: center;
}
.slp-empty i { margin-right: 6px; color: #ccc; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  color: var(--black);
  min-width: 52px;
}
.action-btn:hover { background: var(--gray-bg); color: var(--red); }
.action-btn i {
  font-size: 20px;
  line-height: 1;
}
.action-btn .action-label {
  font-size: 11px;
  margin-top: 3px;
  color: var(--gray-dark);
  white-space: nowrap;
}
.action-btn:hover .action-label { color: var(--red); }
.action-badge {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile hamburger (hidden on desktop) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────────────
   C. NAVIGATION BAR
   ────────────────────────────────────────────────────────────── */
.main-nav {
  background: var(--black);
  position: relative;
  z-index: 140;
}
.nav-inner {
  display: flex;
  align-items: stretch;
  position: relative;
}

/* Categories button */
.nav-categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-categories-btn:hover { background: var(--red-dark); }
.nav-categories-btn i { font-size: 15px; }
.nav-categories-btn .chevron { font-size: 11px; margin-left: 4px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-links .nav-cat-item {
  display: flex;
  align-items: stretch;
  list-style: none;
}
/* Auto-dropdown nav items */
.nav-auto-dropdown-item {
  position: relative;
  display: flex;
  align-items: stretch;
  list-style: none;
}
.nav-auto-btn {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  height: 46px;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-auto-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-auto-btn:hover,
.nav-auto-btn.open { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-auto-btn.open::after { transform: scaleX(1); }

/* nav-auto-dropdown: positioned under button, bg + text explicitly set */
.nav-auto-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f5f5f5 !important;
}
.nav-auto-dropdown .mega-menu-body { background: #f5f5f5; }
.nav-auto-dropdown .mega-cat-children { background: #ebebeb; }

/* Hard-override all dark nav link bleed */
.nav-auto-dropdown a,
.nav-auto-dropdown a:hover,
.nav-auto-dropdown a:active {
  color: #222222 !important;
  background: transparent !important;
  height: auto !important;
  padding: revert !important;
  font-size: revert !important;
  font-weight: revert !important;
  white-space: normal !important;
  position: static !important;
}
.nav-auto-dropdown a::after { display: none !important; }
.nav-auto-dropdown .mega-cat-link { background: transparent !important; }
.nav-auto-dropdown .mega-cat-link:hover { background: #e0e0e0 !important; color: var(--red) !important; }
.nav-auto-dropdown .mega-cat-children li a { color: #444 !important; }
.nav-auto-dropdown .mega-cat-children li a:hover { color: var(--red) !important; background: #d8d8d8 !important; }
.nav-links li a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  height: 46px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }

/* ── Mega Menu ───────────────────────────────────────────────── */
/* ── Mega menu ───────────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: none;
  z-index: 300;
}
.mega-menu.open { display: block; }

.mega-menu-body {
  max-height: 460px;
  overflow-y: auto;
}

/* Category block row */
.mega-cat-block { border-bottom: 1px solid var(--gray-light); }
.mega-cat-block:last-child { border-bottom: none; }

.mega-cat-row {
  display: flex;
  align-items: center;
}
.mega-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 11px 14px;
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  min-width: 0;
}
.mega-cat-link:hover { color: var(--red); background: var(--gray-bg); }
.mega-cat-link img {
  width: 34px; height: 34px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  flex-shrink: 0;
}
.mega-cat-link .cat-icon {
  width: 34px; height: 34px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 15px;
  flex-shrink: 0;
}
.mega-cat-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* V toggle button */
.mega-cat-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  height: 100%;
  min-height: 46px;
  color: var(--gray);
  font-size: 11px;
  transition: color var(--transition), transform 0.25s ease;
}
.mega-cat-toggle:hover { color: var(--red); }
.mega-cat-toggle.is-open {
  color: var(--red);
  transform: rotate(180deg);
}

/* Sliding children */
.mega-cat-children {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-light);
}
.mega-cat-children.is-open { max-height: 600px; }
.mega-cat-children ul { padding: 4px 0; }
.mega-cat-children li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 58px;
  font-size: 13px;
  color: #555;
  transition: color var(--transition), background var(--transition);
}
.mega-cat-children li a::before {
  content: '–';
  color: #ccc;
  font-size: 12px;
  flex-shrink: 0;
}
.mega-cat-children li a:hover { color: var(--red); background: #f0f0f0; }

/* Child links with image inside auto-dropdowns */
.mega-cat-child-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 14px 7px 28px !important; /* left indent = child indicator */
  font-size: 13px !important;
  color: #444 !important;
  transition: color var(--transition), background var(--transition);
}
.mega-cat-child-link::before { display: none !important; }
.mega-cat-child-link:hover { color: var(--red) !important; background: #d8d8d8 !important; }
.child-indent {
  display: block;
  width: 10px;
  flex-shrink: 0;
  border-left: 2px solid #ccc;
  height: 20px;
  margin-right: 2px;
}
.mega-cat-child-img {
  width: 26px !important;
  height: 26px !important;
  object-fit: cover;
  border-radius: 4px;
  background: var(--gray-light);
  flex-shrink: 0;
}
/* cat-icon used as placeholder for child images */
.mega-cat-child-img.cat-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  width: 26px !important;
  height: 26px !important;
}

.mega-menu-footer {
  padding: 9px 16px;
  border-top: 1px solid var(--gray-light);
  background: var(--gray-bg);
}
.mega-menu-footer a {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Mobile drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-drawer {
  position: fixed;
  top: 0; left: -300px;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 500;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-drawer.open { left: 0; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--black);
}
.mobile-nav-header img { height: 36px; }
.mobile-nav-close {
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.mobile-nav-links { padding: 8px 0; }
.mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 15px;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-light);
  font-weight: 500;
}
.mobile-nav-links li a:hover { color: var(--red); background: var(--gray-bg); }

/* Mobile category accordion */
.mobile-cat-item { border-bottom: 1px solid var(--gray-light); }
.mobile-cat-item:last-child { border-bottom: none; }
.mobile-cat-row {
  display: flex;
  align-items: center;
}
.mobile-cat-row > a {
  flex: 1;
  border-bottom: none !important;
}
.mobile-cat-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 13px 16px;
  color: var(--gray);
  font-size: 13px;
  transition: color var(--transition), transform 0.25s;
  flex-shrink: 0;
}
.mobile-cat-toggle.is-open { color: var(--red); transform: rotate(180deg); }
.mobile-cat-children {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-light);
  padding: 4px 0;
}
.mobile-cat-children li a {
  padding: 10px 20px 10px 36px;
  font-size: 13px;
  font-weight: 400;
  border-bottom: none !important;
  color: #555;
}
.mobile-cat-children li a:hover { color: var(--red); background: transparent; }

.mobile-nav-divider {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  padding: 10px 20px 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ──────────────────────────────────────────────────────────────
   D. HERO BANNER SLIDER
   ────────────────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--black);
  min-height: 460px;
}
.hero-slide {
  display: none;
  position: relative;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.hero-slide.active { display: flex; align-items: center; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 60px 0;
  color: var(--white);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-headline span { color: var(--red); }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 440px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--red);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.hero-cta:hover {
  background: transparent;
  color: var(--white);
}

/* Placeholder banner (no image) */
.hero-placeholder {
  min-height: 460px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a0000 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-placeholder::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204,0,0,0.15) 0%, transparent 70%);
}

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  z-index: 10;
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.slider-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────────
   E. SERVICE FEATURES STRIP
   ────────────────────────────────────────────────────────────── */
.service-strip {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
}
.service-strip .container { padding: 0; }
.service-features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.service-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.service-feature:last-child { border-right: none; }
.service-feature:hover { background: var(--white); }
.service-icon {
  width: 44px; height: 44px;
  background: rgba(204,0,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon i { color: var(--red); font-size: 18px; }
.service-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
  line-height: 1.3;
}
.service-text p {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────
   F. CATEGORY SECTION
   ────────────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cat-image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-bg);
}
.cat-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .cat-image-wrap img { transform: scale(1.06); }
.cat-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gray-light), var(--gray-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-placeholder i { font-size: 36px; color: var(--gray-mid); }
.cat-name {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.category-card:hover .cat-name { color: var(--red); }

/* ──────────────────────────────────────────────────────────────
   G. PROMO BANNERS
   ────────────────────────────────────────────────────────────── */
.promo-banners { padding: 24px 0; }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.promo-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.promo-card-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.promo-card-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}
.promo-card-content p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 14px;
  line-height: 1.5;
}
.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 20px;
  transition: all var(--transition);
}
.promo-btn:hover { background: var(--black); color: var(--white); }

/* ──────────────────────────────────────────────────────────────
   H. PRODUCT CARDS
   ────────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #ddd;
  transform: translateY(-3px);
}

/* Product image */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-bg);
  aspect-ratio: 1;
}
.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.05); }

/* Badges */
.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.badge-new  { background: var(--red);   color: var(--white); }
.badge-sale { background: #ff6600;      color: var(--white); }
.badge-hot  { background: var(--black); color: var(--white); }
.badge-best { background: #0066cc;      color: var(--white); }
.badge-top  { background: var(--green); color: var(--white); }

/* Hover actions */
.product-actions {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
  z-index: 2;
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-action-btn {
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.product-action-btn:hover { background: var(--red); color: var(--white); }

/* Quick view overlay */
.quick-view-btn {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.75);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  width: 100%;
}
.product-card:hover .quick-view-btn { opacity: 1; }

/* Product info */
.product-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.product-name:hover { color: var(--red); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  min-height: 18px;
}
.stars { display: flex; gap: 1px; }
.stars .fa-star,
.stars .fa-star-half-alt { color: var(--yellow); font-size: 11px; }
.stars .fa-star.far { color: var(--gray-mid); }
.review-count { font-size: 11px; color: var(--gray); }

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-top: auto;
}
.price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
}
.price-old {
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
}
.price-discount {
  font-size: 11px;
  background: rgba(204,0,0,0.1);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

/* Flash sale countdown */
.flash-sale-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #e65c00;
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 4px;
  padding: 3px 8px;
  margin-top: 4px;
}
.flash-sale-timer i { color: #e65c00; }
.flash-countdown { font-variant-numeric: tabular-nums; }
.flash-sale-timer-lg {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 6px;
  margin: 8px 0;
  gap: 7px;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-to-cart-btn:hover { background: var(--red-dark); }
.add-to-cart-btn:disabled {
  background: var(--gray-mid);
  cursor: not-allowed;
}

/* ──────────────────────────────────────────────────────────────
   I. BEST SELLER SIDE LIST
   ────────────────────────────────────────────────────────────── */
.bestseller-list { display: flex; flex-direction: column; gap: 12px; }
.bestseller-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all var(--transition);
}
.bestseller-item:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.bs-rank {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-light);
  min-width: 28px;
  text-align: center;
  line-height: 1;
}
.bs-rank.top-3 { color: var(--red); }
.bs-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  flex-shrink: 0;
}
.bs-info { flex: 1; min-width: 0; }
.bs-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  line-height: 1.4;
}
.bs-name:hover { color: var(--red); }
.bs-price { font-size: 14px; font-weight: 800; color: var(--red); }
.bs-cart-btn {
  width: 34px; height: 34px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.bs-cart-btn:hover { background: var(--red-dark); }

/* ──────────────────────────────────────────────────────────────
   J. BRAND LOGO CAROUSEL
   ────────────────────────────────────────────────────────────── */
.brands-section {
  background: var(--black);
  padding: 28px 0;
}
.brands-section .section-heading h2 { color: var(--white); }
.brands-section .section-heading h2::before { background: var(--red); }
.brands-section .section-heading { border-bottom-color: #333; }
.brands-section .view-all { color: var(--gray-mid); }

.brands-track-wrap {
  overflow: hidden;
  position: relative;
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.brand-logo-item {
  flex: 0 0 auto;
  width: calc(100% / 7);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #2a2a2a;
  cursor: pointer;
  transition: background var(--transition);
}
.brand-logo-item:last-child { border-right: none; }
.brand-logo-item:hover { background: rgba(255,255,255,0.05); }
.brand-logo-item img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.7);
  transition: filter var(--transition);
}
.brand-logo-item:hover img { filter: grayscale(0) brightness(1); }
.brand-text-logo {
  color: #666;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.brand-logo-item:hover .brand-text-logo { color: var(--white); }

/* ──────────────────────────────────────────────────────────────
   K. FOOTER
   ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--black-soft);
  color: #aaa;
  padding-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--red);
}

/* Col 1 — Store info */
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 48px; }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #999;
  margin-bottom: 16px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 15px;
  transition: all var(--transition);
}
.social-link:hover { background: var(--red); color: var(--white); }

/* Footer nav links */
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  color: #999;
  font-size: 13px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '›';
  color: var(--red);
  font-size: 16px;
  line-height: 1;
}
.footer-links a:hover { color: var(--white); }

/* Contact info */
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #999;
}
.footer-contact-item i {
  color: var(--red);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.footer-contact-item a { color: #999; }
.footer-contact-item a:hover { color: var(--white); }

/* Payment methods */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.payment-icon {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-icon img { height: 18px; object-fit: contain; }
.payment-icon-text {
  background: #2a2a2a;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  height: 28px;
  display: flex;
  align-items: center;
}

/* Footer bottom */
.footer-bottom {
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 12px;
  color: #666;
}
.footer-policy-links {
  display: flex;
  gap: 16px;
}
.footer-policy-links a {
  font-size: 12px;
  color: #666;
  transition: color var(--transition);
}
.footer-policy-links a:hover { color: var(--white); }

/* Mobile bottom nav (hidden on desktop) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 300;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
}
.mobile-bottom-nav ul {
  display: flex;
  justify-content: space-around;
}
.mobile-bottom-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  font-size: 10px;
  color: var(--gray);
  gap: 4px;
  position: relative;
}
.mobile-bottom-nav ul li a i { font-size: 20px; }
.mobile-bottom-nav ul li a.active { color: var(--red); }
.mobile-bottom-nav .cart-badge-mob {
  position: absolute;
  top: 6px; right: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  width: 15px; height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Notification toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success i { color: var(--green); }
.toast.toast-error   i { color: var(--red); }

/* ── Skeleton loader ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE — Tablet (≤1024px)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid       { grid-template-columns: repeat(3, 1fr); }
  .category-grid      { grid-template-columns: repeat(4, 1fr); }
  .service-features   { grid-template-columns: repeat(3, 1fr); }
  .brand-logo-item    { width: calc(100% / 5); }
  .footer-grid        { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .hero-headline      { font-size: 2.3rem; }
  .ann-items          { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE — Mobile (≤768px)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Announcement bar */
  .announcement-bar { display: none; }

  /* Header */
  .main-header { padding: 10px 0; }
  .header-inner { gap: 12px; }
  .header-logo img { height: 42px; }
  .header-search { display: none; }
  .action-btn .action-label { display: none; }
  .action-btn { padding: 6px 8px; min-width: 40px; }
  .action-btn i { font-size: 22px; }
  .wishlist-btn { display: flex !important; }
  .hamburger-btn { display: flex; }

  /* Nav */
  .main-nav { display: none; }

  /* Mobile drawer */
  /* (handled by JS toggle) */

  /* Hero */
  .hero-slider, .hero-slide, .hero-placeholder { min-height: 280px; }
  .hero-headline  { font-size: 1.6rem; }
  .hero-sub       { font-size: 13px; display: none; }
  .hero-cta       { font-size: 14px; padding: 10px 22px; }
  .hero-content   { padding: 30px 0; }
  .slider-arrow   { display: none; }

  /* Services */
  .service-features { grid-template-columns: repeat(2, 1fr); }
  .service-feature  { border-right: none; border-bottom: 1px solid var(--border); }

  /* Categories */
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Promos */
  .promo-grid { grid-template-columns: 1fr; }

  /* Products */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-name { font-size: 12px; }
  .price-current { font-size: 0.95rem; }
  .add-to-cart-btn { font-size: 12px; padding: 8px; }
  .product-actions { display: none; }

  /* Best seller */
  .bestseller-list { gap: 8px; }
  .bs-thumb { width: 52px; height: 52px; }

  /* Brands */
  .brands-section { overflow-x: auto; }
  .brands-track { gap: 0; }
  .brand-logo-item { width: 120px; border-right: 1px solid #2a2a2a; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-policy-links { flex-wrap: wrap; justify-content: center; }

  /* Mobile bottom nav */
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 60px; }

  /* Section spacing */
  .section-wrap { padding: 20px 0; }
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE — Small mobile (≤480px)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .category-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: 1fr; }
  .promo-card     { min-height: 130px; padding: 18px; }
  .promo-card-content h3 { font-size: 1.1rem; }
  .hero-headline  { font-size: 1.4rem; }
  .hero-badge     { display: none; }
}

/* ── Utility: visually hidden ────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ──────────────────────────────────────────────────────────────
   HOMEPAGE — Products + Sidebar layout
   ────────────────────────────────────────────────────────────── */
.products-with-sidebar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.products-main  { flex: 1; min-width: 0; }
.products-sidebar {
  width: 280px;
  flex-shrink: 0;
}
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Sidebar heading */
.sidebar-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-heading i { color: var(--red); }
.sidebar-body { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); overflow: hidden; }

/* Compact bestseller item in sidebar */
.bs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition);
}
.bs-item:last-child { border-bottom: none; }
.bs-item:hover { background: var(--gray-bg); }
.bs-num {
  font-size: 1rem;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  color: var(--gray-mid);
  line-height: 1;
}
.bs-num.top3 { color: var(--red); }
.bs-thumb-img {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  flex-shrink: 0;
}
.bs-info-block { flex: 1; min-width: 0; }
.bs-item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 4px;
}
.bs-item-name:hover { color: var(--red); }
.bs-item-price { font-size: 13px; font-weight: 800; color: var(--red); }
.bs-item-stars { display: flex; gap: 1px; }
.bs-item-stars i { font-size: 10px; color: var(--yellow); }

/* Product variant label */
.product-variant-label {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-variant-label i { color: var(--red); font-size: 10px; }

/* Bundle info line */
.product-bundle-info {
  font-size: 11px;
  color: var(--gray-dark);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-bundle-info i { color: var(--red); }

/* Out of stock overlay */
.product-oos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.product-oos-overlay span {
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Empty section state */
.section-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray);
}
.section-empty i { font-size: 40px; margin-bottom: 12px; display: block; color: var(--gray-light); }

/* "View all" button below a section */
.section-view-all-wrap {
  text-align: center;
  margin-top: 24px;
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-family: var(--font);
  background: none;
  cursor: pointer;
}
.btn-view-all:hover { background: var(--red); color: var(--white); }

/* Hero placeholder content */
.hero-placeholder-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  color: var(--white);
}

/* Responsive: sidebar stacks on tablet */
@media (max-width: 1024px) {
  .products-with-sidebar { flex-direction: column; }
  .products-sidebar       { width: 100%; }
  .product-grid-4         { grid-template-columns: repeat(3, 1fr); }
  .bestseller-list        { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 768px) {
  .product-grid-4   { grid-template-columns: repeat(2, 1fr); }
  .bestseller-list  { grid-template-columns: 1fr; }
  .products-sidebar { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   STEP 4 — Category / Search / Product Detail
   ────────────────────────────────────────────────────────────── */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 13px; color: var(--gray); padding: 14px 0;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--gray-mid); font-size: 10px; }
.breadcrumb .current { color: var(--dark); font-weight: 600; }

/* ── Category header banner ─────────────────────────────────── */
.category-header-banner {
  background: linear-gradient(135deg, var(--black) 0%, #2a0000 100%);
  color: var(--white);
  padding: 28px 0;
}
.category-header-banner h1 { font-size: 1.7rem; font-weight: 800; margin-top: 6px; }
.category-header-banner .breadcrumb { color: rgba(255,255,255,0.6); padding: 0 0 8px; }
.category-header-banner .breadcrumb a { color: rgba(255,255,255,0.6); }
.category-header-banner .breadcrumb a:hover { color: var(--white); }
.category-header-banner .breadcrumb .current { color: var(--white); }

/* ── Subcategory pills ──────────────────────────────────────── */
.subcategory-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.subcat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; color: var(--dark);
  transition: all var(--transition); background: var(--white);
}
.subcat-pill:hover, .subcat-pill.active {
  background: var(--red); border-color: var(--red); color: var(--white);
}

/* ── Shop layout (sidebar + content) ───────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.shop-content { min-width: 0; }

/* Filter sidebar */
.filter-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.filter-box-header {
  background: var(--black); color: var(--white);
  padding: 12px 16px; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.filter-box-header i { color: var(--red); }
.filter-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.filter-check {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: 13px; cursor: pointer; color: var(--gray-dark);
}
.filter-check input[type=radio] { accent-color: var(--red); cursor: pointer; }
.filter-check:hover { color: var(--red); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-input {
  width: 80px; border: 1px solid var(--border);
  padding: 7px 8px; border-radius: var(--radius-sm);
  font-size: 13px; font-family: var(--font); outline: none;
}
.price-input:focus { border-color: var(--red); }

/* Sort bar */
.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--gray-bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 16px; gap: 10px; flex-wrap: wrap;
}
.results-count { font-size: 13px; color: var(--gray); }
.sort-select {
  border: 1px solid var(--border); padding: 6px 10px;
  border-radius: var(--radius-sm); font-size: 13px;
  font-family: var(--font); background: var(--white);
  color: var(--dark); outline: none; cursor: pointer;
}
.sort-select:focus { border-color: var(--red); }

/* ── Product detail page ────────────────────────────────────── */
.product-detail-wrap { padding: 0 0 48px; }
.product-detail-layout {
  display: grid;
  grid-template-columns: 52% 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 24px;
}

/* Gallery */
.product-gallery { position: sticky; top: 88px; }
.gallery-main {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--gray-bg);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.3s ease;
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--gray-bg);
  transition: border-color var(--transition); flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--red); }

/* Info panel */
.product-info-panel { display: flex; flex-direction: column; gap: 16px; }
.product-detail-breadcrumb { font-size: 12px; color: var(--gray); }
.product-detail-breadcrumb a { color: var(--gray); }
.product-detail-breadcrumb a:hover { color: var(--red); }
.product-detail-name {
  font-size: 1.45rem; font-weight: 800;
  color: var(--black); line-height: 1.3;
}
.product-detail-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-detail-sku { font-size: 12px; color: var(--gray); }

/* Price block */
.product-price-block {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.detail-price-current { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.detail-price-old { font-size: 1rem; color: var(--gray); text-decoration: line-through; }
.detail-price-save {
  font-size: 13px; background: rgba(204,0,0,0.1); color: var(--red);
  padding: 3px 10px; border-radius: 20px; font-weight: 700;
}

/* Stock */
.product-stock-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stock-in-dot  { background: var(--green); }
.stock-out-dot { background: var(--red); }
.stock-in  { color: var(--green); font-weight: 600; }
.stock-out { color: var(--red);   font-weight: 600; }

/* Qty + cart row */
.qty-cart-row { display: flex; gap: 10px; align-items: center; }
.qty-selector {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.qty-btn {
  width: 38px; height: 46px; border: none; background: var(--gray-bg);
  font-size: 18px; cursor: pointer; font-family: var(--font);
  transition: background var(--transition), color var(--transition);
}
.qty-btn:hover { background: var(--red); color: var(--white); }
.qty-input {
  width: 52px; height: 46px; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 15px; font-weight: 700; font-family: var(--font);
  outline: none;
}
.add-cart-main-btn {
  flex: 1; background: var(--red); color: var(--white); border: none;
  height: 46px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: background var(--transition);
}
.add-cart-main-btn:hover { background: var(--red-dark); }
.add-cart-main-btn:disabled { background: var(--gray-mid); cursor: not-allowed; }
.wishlist-main-btn {
  width: 46px; height: 46px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 18px; color: var(--gray);
  cursor: pointer; transition: all var(--transition); background: var(--white);
  flex-shrink: 0;
}
.wishlist-main-btn:hover, .wishlist-main-btn.wished { border-color: var(--red); color: var(--red); }

/* Product meta */
.product-meta { font-size: 13px; color: var(--gray); display: flex; flex-direction: column; gap: 7px; }
.product-meta-row { display: flex; align-items: center; gap: 6px; }
.product-meta-row strong { color: var(--dark); min-width: 60px; }
.product-meta-row a { color: var(--dark); }
.product-meta-row a:hover { color: var(--red); }

/* Variant selector (Group type) */
.variant-section { padding: 14px 0; border-top: 1px solid var(--border); }
.variant-section > h4 {
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.variant-section > h4 i { color: var(--red); }
.variant-list { display: flex; flex-direction: column; gap: 8px; }
.variant-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
  gap: 12px;
}
.variant-item:hover { border-color: var(--red); background: rgba(204,0,0,0.02); }
.variant-item.current-variant { border-color: var(--red); background: rgba(204,0,0,0.04); }
.variant-label { font-size: 13px; font-weight: 600; color: var(--dark); flex: 1; }
.variant-price { font-size: 14px; font-weight: 800; color: var(--red); flex-shrink: 0; }
.variant-select-btn {
  background: var(--red); color: var(--white); border: none;
  padding: 6px 16px; border-radius: 20px; font-size: 12px;
  font-weight: 700; cursor: pointer; font-family: var(--font);
  white-space: nowrap; transition: background var(--transition);
}
.variant-select-btn:hover { background: var(--red-dark); }
.variant-current-tag {
  background: var(--green); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}

/* Bundle components */
.bundle-section { padding: 14px 0; border-top: 1px solid var(--border); }
.bundle-section > h4 {
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.bundle-section > h4 i { color: var(--red); }
.bundle-items { display: flex; flex-direction: column; gap: 8px; }
.bundle-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--gray-bg);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.bundle-item-qty {
  background: var(--red); color: var(--white); font-size: 11px;
  font-weight: 700; padding: 2px 8px; border-radius: 10px;
  flex-shrink: 0; white-space: nowrap;
}
.bundle-item-img {
  width: 44px; height: 44px; object-fit: cover;
  border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--white);
}
.bundle-item-info { flex: 1; min-width: 0; }
.bundle-item-name { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; }
.bundle-item-price { font-size: 12px; color: var(--gray); margin-top: 2px; }
.bundle-savings {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: rgba(40,167,69,0.08);
  border: 1px solid rgba(40,167,69,0.3); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--green); font-weight: 600; margin-top: 8px;
}
.bundle-savings i { flex-shrink: 0; }

/* Product tabs */
.product-tabs-wrap {
  margin-top: 36px;
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.tab-nav {
  display: flex; background: var(--gray-bg);
  border-bottom: 1px solid var(--border); overflow-x: auto;
}
.tab-btn {
  padding: 14px 24px; font-size: 14px; font-weight: 600; color: var(--gray-dark);
  border: none; background: none; cursor: pointer; font-family: var(--font);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition); white-space: nowrap;
}
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); background: var(--white); }
.tab-pane { display: none; padding: 24px; line-height: 1.8; }
.tab-pane.active { display: block; }
.tab-pane p { margin-bottom: 12px; color: var(--gray-dark); font-size: 14px; }

/* Reviews */
.reviews-summary {
  display: flex; align-items: center; gap: 28px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.review-avg-num { font-size: 3.2rem; font-weight: 800; color: var(--red); line-height: 1; }
.review-avg-block { display: flex; flex-direction: column; gap: 4px; }
.review-avg-block .stars i { font-size: 18px; }
.review-avg-label { font-size: 13px; color: var(--gray); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-avatar {
  width: 36px; height: 36px; background: var(--gray-light);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--gray); font-size: 16px; flex-shrink: 0;
}
.review-author { font-weight: 700; font-size: 14px; }
.review-date { font-size: 12px; color: var(--gray); margin-left: auto; }
.review-stars { display: flex; gap: 2px; }
.review-stars i { color: var(--yellow); font-size: 12px; }
.review-body { font-size: 14px; color: var(--gray-dark); line-height: 1.7; margin-top: 6px; }

/* Review form */
.review-form { background: var(--gray-bg); padding: 20px; border-radius: var(--radius-md); margin-top: 24px; }
.review-form h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.star-picker { display: flex; gap: 6px; margin-bottom: 14px; cursor: pointer; }
.star-picker i { font-size: 26px; color: var(--gray-mid); transition: color var(--transition); }
.star-picker i:hover, .star-picker i.lit { color: var(--yellow); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-control {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color var(--transition);
  background: var(--white);
}
.form-control:focus { border-color: var(--red); }
textarea.form-control { min-height: 100px; resize: vertical; }
.btn-submit { background: var(--red); color: var(--white); border: none; padding: 10px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: background var(--transition); }
.btn-submit:hover { background: var(--red-dark); }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 24px 0 8px; flex-wrap: wrap;
}
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--dark); cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
.page-btn.disabled { opacity: 0.35; pointer-events: none; }
.page-ellipsis { color: var(--gray); padding: 0 4px; }

/* Search page */
.search-header {
  background: var(--gray-bg); border-bottom: 1px solid var(--border); padding: 20px 0;
}
.search-query-display { font-size: 1.05rem; color: var(--dark); }
.search-query-display strong { color: var(--red); }
.search-no-results { text-align: center; padding: 60px 20px; }
.search-no-results i { font-size: 52px; color: var(--gray-light); display: block; margin-bottom: 16px; }
.search-no-results h3 { font-size: 1.2rem; color: var(--gray-dark); margin-bottom: 8px; }
.search-no-results p { color: var(--gray); font-size: 14px; }

/* Related products */
.related-section { padding: 36px 0 0; }

/* ── Responsive step 4 ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-detail-layout { grid-template-columns: 50% 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-box  { position: static; display: none; }
  .filter-box.mobile-open { display: block; margin-bottom: 16px; }
  #mobile-filter-btn { display: flex !important; }
  .sort-bar { gap: 6px; }
  .detail-price-current { font-size: 1.6rem; }
  .product-detail-name  { font-size: 1.2rem; }
  .tab-btn { padding: 10px 16px; font-size: 13px; }
  .gallery-thumbs .gallery-thumb { width: 58px; height: 58px; }
  .product-detail-layout { padding-top: 16px; }
}

/* ── Step 5: Cart ─────────────────────────────────────────────────────────── */
.cart-wrap { padding: 32px 0 60px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-table-wrap { background: #fff; border-radius: 10px; border: 1px solid #eee; overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  background: var(--black);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  text-align: left;
  letter-spacing: 0.03em;
}
.cart-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  font-size: 14px;
  color: var(--black);
}
.cart-table tr:last-child td { border-bottom: none; }
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  display: block;
}
.cart-item-name {
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  transition: color .2s;
}
.cart-item-name:hover { color: var(--red); }
.cart-item-meta { font-size: 12px; color: var(--gray); }
.cart-qty-box { display: flex; align-items: center; gap: 0; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; width: fit-content; }
.cart-qty-btn {
  width: 32px; height: 32px;
  background: #f5f5f5;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: var(--black);
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.cart-qty-btn:hover { background: var(--red); color: #fff; }
.cart-qty-input {
  width: 44px;
  height: 32px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-price-col { font-size: 14px; color: var(--gray); white-space: nowrap; }
.cart-subtotal-col { font-weight: 700; color: var(--red); font-size: 15px; white-space: nowrap; }
.cart-remove-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: color .2s;
  display: flex;
}
.cart-remove-btn:hover { color: var(--red); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 16px; gap: 12px; }
.btn-continue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--black);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  background: transparent;
  transition: all .2s;
}
.btn-continue:hover { background: var(--black); color: #fff; }
.btn-checkout {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn-checkout:hover { background: #a30000; }
.cart-summary-box {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 24px;
  position: sticky;
  top: 80px;
}
.cart-summary-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.cart-summary-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid #eee;
}
.cart-summary-row.total .total-price { color: var(--red); font-size: 20px; }
.shipping-tbd {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin: 12px 0;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 6px;
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty i { font-size: 64px; color: #e0e0e0; display: block; margin-bottom: 24px; }
.cart-empty h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.cart-empty p { color: var(--gray); margin-bottom: 24px; }

/* ── Step 5: Checkout ────────────────────────────────────────────────────── */
.checkout-wrap { padding: 32px 0 60px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.checkout-breadcrumb a { color: var(--gray); text-decoration: none; }
.checkout-breadcrumb a:hover { color: var(--red); }
.checkout-breadcrumb .active-step { color: var(--black); font-weight: 600; }
.checkout-section {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-section-title i { color: var(--red); }
.omise-field-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; color: #111; outline: none;
  transition: border-color .2s;
}
.omise-field-input:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(204,0,0,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.form-group label .required { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  transition: border-color .2s;
  background: #fff;
  box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--red); }
.form-control.error { border-color: #e53935; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--gray); margin-top: 5px; }
.error-list {
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.error-list p { color: #c62828; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.error-list ul { list-style: disc; padding-left: 20px; color: #c62828; font-size: 13px; }
.shipping-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.shipping-option:hover { border-color: var(--red); background: #fff9f9; }
.shipping-option input[type=radio] { accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.shipping-option.selected { border-color: var(--red); background: #fff4f4; }
.shipping-option-name { font-weight: 600; font-size: 14px; }
.shipping-option-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.shipping-option-price { margin-left: auto; font-weight: 700; font-size: 15px; color: var(--black); white-space: nowrap; }
.shipping-option-price.free { color: #2e7d32; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.payment-option:hover { border-color: var(--red); background: #fff9f9; }
.payment-option input[type=radio] { accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.payment-option.selected { border-color: var(--red); background: #fff4f4; }
.payment-option-icon { width: 36px; height: 36px; border-radius: 6px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.payment-option-name { font-weight: 600; font-size: 14px; }
.payment-option-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.checkout-summary-box {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 24px;
  position: sticky;
  top: 80px;
}
.checkout-summary-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
}
.checkout-item-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}
.checkout-item-img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.checkout-item-details { flex: 1; min-width: 0; }
.checkout-item-name { font-size: 13px; font-weight: 600; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-item-meta { font-size: 12px; color: var(--gray); }
.checkout-item-price { font-size: 14px; font-weight: 700; color: var(--black); white-space: nowrap; }
.checkout-summary-divider { border: none; border-top: 1px solid #f0f0f0; margin: 14px 0; }
.checkout-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #555; margin-bottom: 8px; }
.checkout-summary-row.total { font-size: 16px; font-weight: 700; color: var(--black); border-top: 1px solid #eee; padding-top: 12px; margin-top: 4px; }
.checkout-summary-row.total .total-val { color: var(--red); font-size: 20px; }
.btn-place-order {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s;
}
.btn-place-order:hover { background: #a30000; }
.btn-place-order:disabled { background: #ccc; cursor: not-allowed; }
.terms-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #555; margin-top: 14px; cursor: pointer; }
.terms-check input { accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }

/* ── Step 5: Order Complete ──────────────────────────────────────────────── */
.order-complete-wrap { padding: 48px 0 80px; }
.order-complete-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  overflow: hidden;
}
.order-success-header {
  background: linear-gradient(135deg, var(--black) 0%, #222 100%);
  color: #fff;
  padding: 40px 32px;
  text-align: center;
}
.order-success-icon {
  width: 72px; height: 72px;
  background: #2e7d32;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #fff;
}
.order-success-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.order-success-header p { font-size: 14px; opacity: 0.8; }
.order-number-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 16px;
}
.order-complete-body { padding: 32px; }
.order-detail-section { margin-bottom: 28px; }
.order-detail-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.order-detail-table { width: 100%; border-collapse: collapse; }
.order-detail-table td { padding: 8px 0; font-size: 14px; vertical-align: top; }
.order-detail-table td:first-child { color: var(--gray); width: 140px; }
.order-detail-table td:last-child { font-weight: 600; color: var(--black); }
.order-items-table { width: 100%; border-collapse: collapse; }
.order-items-table th { font-size: 12px; color: var(--gray); text-align: left; padding: 6px 0 8px; border-bottom: 1px solid #eee; }
.order-items-table td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid #f7f7f7; }
.order-items-table tr:last-child td { border-bottom: none; }
.order-total-row td { font-weight: 700; font-size: 15px; border-top: 2px solid #eee; padding-top: 12px; }
.order-total-row .total-val { color: var(--red); font-size: 18px; }
.order-complete-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.btn-track-order {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.btn-track-order:hover { background: #a30000; }
.btn-shop-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--black);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: all .2s;
}
.btn-shop-more:hover { background: var(--black); color: #fff; }
.payment-info-box {
  background: #fffde7;
  border: 1px solid #f9c910;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #5f4300;
  margin-top: 16px;
}
.payment-info-box strong { display: block; margin-bottom: 6px; color: #3e2900; }

/* ── Step 5: responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-box { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-box { position: static; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
  .cart-table td { padding: 4px 16px; border: none; }
  .cart-item-img { width: 64px; height: 64px; }
  .order-complete-actions { flex-direction: column; align-items: center; }
  .order-complete-body { padding: 20px; }
}

/* ── Step 6: Auth pages (login / register) ────────────────────────────────── */
.auth-wrap { padding: 60px 0 80px; }
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  overflow: hidden;
}
.auth-card-header {
  background: var(--black);
  color: #fff;
  padding: 32px;
  text-align: center;
}
.auth-card-header .auth-logo {
  width: 64px; height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}
.auth-card-header h1 { font-size: 1.4rem; font-weight: 700; }
.auth-card-header p  { font-size: 13px; opacity: 0.75; margin-top: 4px; }
.auth-card-body { padding: 32px; }
.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #eee;
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #555;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.auth-switch a { color: var(--red); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.btn-auth {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s;
  margin-top: 8px;
}
.btn-auth:hover { background: #a30000; }

/* Social login buttons */
.social-login-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; transition: opacity .15s, box-shadow .15s;
  font-family: inherit;
}
.btn-social:hover { opacity: .88; box-shadow: 0 2px 10px rgba(0,0,0,.18); text-decoration: none; }
.btn-social img  { width: 20px; height: 20px; object-fit: contain; }
.btn-social i    { font-size: 18px; }
.btn-google   { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-line     { background: #00b900; color: #fff; }

.password-group { position: relative; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
}
.password-toggle:hover { color: var(--black); }
.auth-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2e7d32;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Step 6: Account page ────────────────────────────────────────────────── */
.account-wrap { padding: 32px 0 60px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.account-sidebar {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.account-user-info {
  background: var(--black);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.account-avatar {
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
}
.account-user-name { font-weight: 700; font-size: 15px; }
.account-user-email { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.account-nav { padding: 8px 0; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.account-nav-link:hover { background: #fafafa; color: var(--red); }
.account-nav-link.active { background: #fff4f4; color: var(--red); border-left-color: var(--red); font-weight: 700; }
.account-nav-link i { width: 18px; text-align: center; color: var(--red); }
.account-nav-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.account-nav-link.logout-link { color: #888; }
.account-nav-link.logout-link:hover { color: var(--red); }
.account-content {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 28px;
}
.account-content-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-content-title i { color: var(--red); }

/* Order history */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  background: #f7f7f7;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid #eee;
}
.orders-table td { padding: 14px; border-bottom: 1px solid #f5f5f5; font-size: 14px; vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: #fafafa; }
.order-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.status-pending    { background: #fff3e0; color: #e65100; }
.status-confirmed  { background: #e3f2fd; color: #1565c0; }
.status-processing { background: #f3e5f5; color: #6a1b9a; }
.status-shipped    { background: #e8eaf6; color: #283593; }
.status-delivered  { background: #e8f5e9; color: #2e7d32; }
.status-cancelled  { background: #ffebee; color: #c62828; }
.status-refunded   { background: #fce4ec; color: #880e4f; }
.order-link { color: var(--red); font-weight: 700; text-decoration: none; }
.order-link:hover { text-decoration: underline; }

/* Address cards */
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.address-card {
  border: 1.5px solid #eee;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.address-card.is-default { border-color: var(--red); }
.address-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  font-size: 14px;
}
.default-badge {
  font-size: 11px;
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.address-actions { margin-top: 12px; display: flex; gap: 8px; }
.btn-address-del {
  font-size: 12px;
  color: #999;
  background: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.btn-address-del:hover { color: var(--red); border-color: var(--red); }
.btn-add-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 20px;
  transition: background .2s;
}
.btn-add-address:hover { background: var(--red); }

/* Address add form */
.add-address-form {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  display: none;
}
.add-address-form.open { display: block; }

/* Wishlist grid */
.wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wishlist-empty { text-align: center; padding: 60px 20px; }
.wishlist-empty i { font-size: 56px; color: #e0e0e0; display: block; margin-bottom: 16px; }
.wishlist-empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.wishlist-empty p { color: var(--gray); }
.btn-save-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  margin-top: 8px;
}
.btn-save-profile:hover { background: #a30000; }

/* ── Step 6: responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .address-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .auth-card-body { padding: 20px; }
  .auth-wrap { padding: 32px 0 60px; }
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .account-content { padding: 16px; }
}

/* ── Step 12: CMS Pages ─────────────────────────────────────────────────── */
.cms-page-header {
  background: #f5f5f5;
  border-bottom: 1px solid #ebebeb;
  padding: 20px 0 24px;
}
.cms-page-header .breadcrumb { margin-bottom: 10px; }
.cms-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}
.cms-page-wrap { padding: 40px 0 60px; }
.cms-page-body {
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
}
.cms-page-body h1,
.cms-page-body h2,
.cms-page-body h3,
.cms-page-body h4 {
  font-weight: 700;
  color: var(--dark);
  margin: 1.4em 0 .6em;
  line-height: 1.3;
}
.cms-page-body h2 { font-size: 1.3rem; }
.cms-page-body h3 { font-size: 1.1rem; }
.cms-page-body p  { margin: 0 0 1em; }
.cms-page-body a  { color: var(--red); text-decoration: underline; }
.cms-page-body a:hover { color: #a30000; }
.cms-page-body ul,
.cms-page-body ol { margin: 0 0 1em 1.4em; }
.cms-page-body li { margin-bottom: .4em; }
.cms-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}
.cms-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: .93rem;
}
.cms-page-body table th,
.cms-page-body table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}
.cms-page-body table th { background: #f5f5f5; font-weight: 700; }
.cms-page-body blockquote {
  border-left: 4px solid var(--red);
  margin: 1em 0;
  padding: .5em 1em;
  color: #555;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
}
.cms-page-body hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2em 0;
}
.cms-page-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ebebeb;
  font-size: 12px;
  color: #aaa;
}
.cms-page-meta i { margin-right: 4px; }
@media (max-width: 768px) {
  .cms-page-title { font-size: 1.25rem; }
  .cms-page-wrap  { padding: 24px 0 48px; }
}
