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

/* ============================================================
   THEME VARIABLES — Dark Mode (default)
   ============================================================ */
:root {
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent-glow: rgba(108,99,255,0.25);
  --gold: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"], :root {
  --bg: #080810;
  --bg2: #0e0e1a;
  --surface: rgba(255,255,255,0.04);
  --surface-solid: #12121f;
  --surface2: rgba(255,255,255,0.07);
  --surface2-solid: #1a1a2e;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f1f0ff;
  --text-muted: rgba(241,240,255,0.45);
  --text-sub: rgba(241,240,255,0.65);
  --shadow: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.7);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.1);
  --nav-bg: rgba(8,8,16,0.85);
}

[data-theme="light"] {
  --bg: #f0f0f8;
  --bg2: #e8e8f4;
  --surface: rgba(255,255,255,0.75);
  --surface-solid: #ffffff;
  --surface2: rgba(255,255,255,0.9);
  --surface2-solid: #f5f5ff;
  --border: rgba(108,99,255,0.12);
  --border-strong: rgba(108,99,255,0.2);
  --text: #1a1a2e;
  --text-muted: rgba(26,26,46,0.5);
  --text-sub: rgba(26,26,46,0.7);
  --shadow: 0 8px 40px rgba(108,99,255,0.12);
  --shadow-hover: 0 20px 60px rgba(108,99,255,0.2);
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(108,99,255,0.15);
  --nav-bg: rgba(240,240,248,0.9);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}



a { color: inherit; text-decoration: none; }
img { display: block; }

/* ============================================================
   TOP ANNOUNCEMENT BANNER
   ============================================================ */
.top-banner {
  background: linear-gradient(90deg, var(--accent), #dc2626, var(--accent));
  background-size: 200% auto;
  animation: bannerShimmer 4s linear infinite;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

@keyframes bannerShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   HERO BANNER (Homepage / Category)
   ============================================================ */
.hero-banner {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  position: relative;
  border-radius: 0 0 24px 24px;
}

.hero-banner a { display: block; }

.hero-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s;
}

.hero-banner:hover img { transform: scale(1.02); }

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,8,16,0.5) 100%);
  pointer-events: none;
}

[data-theme="light"] .hero-banner::after {
  background: linear-gradient(to bottom, transparent 40%, rgba(240,240,248,0.4) 100%);
}

/* Mobile banner only shown on phones — hidden on desktop */
.mobile-banner-img { display: none; }

.cat-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.cat-banner img { width:100%; height:100%; object-fit:cover; }

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: background var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface2);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
  margin-left: 8px;
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: rotate(15deg) scale(1.05);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-sub);
  transition: all 0.15s;
}

.dropdown-menu a:hover {
  background: var(--surface2);
  color: var(--accent);
  padding-left: 18px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main { padding: 40px 5%; max-width: 1440px; margin: 0 auto; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 3px;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sort Select */
.sort-select {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
}

.sort-select:hover { border-color: var(--accent); }

/* ============================================================
   LAYOUT TOGGLE BAR (Mobile Grid Switcher)
   ============================================================ */
.layout-bar {
  display: none;
}

@media (max-width: 600px) {
  .layout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 14px;
    gap: 10px;
  }

  .layout-bar .layout-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .layout-switcher {
    display: flex;
    gap: 6px;
    background: var(--surface2);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border);
  }

  .layout-btn {
    background: none;
    border: none;
    border-radius: 7px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: all var(--transition);
    line-height: 1;
  }

  .layout-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
  }
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

/* ============================================================
   PRODUCT CARD — Glassmorphism
   ============================================================ */
.product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .product-card {
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 24px rgba(108,99,255,0.07);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px var(--accent-glow);
  border-color: var(--accent);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .card-img-wrap img { transform: scale(1.08); }

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ── Time badge on product cards ─────────────────────────── */
.badge-time {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  transition: background 0.3s, color 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Warning: 1–3 days — orange */
.badge-time.timer-warning {
  background: #ea580c;
  color: #fff;
}

/* Urgent: < 24 h — fire red, pulsing */
.badge-time.timer-urgent {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  box-shadow: 0 0 10px rgba(239,68,68,0.6);
  animation: urgentPulse 1.2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%,100% { box-shadow: 0 0 8px rgba(239,68,68,0.5); }
  50%      { box-shadow: 0 0 18px rgba(239,68,68,0.9); }
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--transition);
}

.card-title:hover { color: var(--accent); }

.price-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

.price-new {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.card-footer {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-buy {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
  background: var(--accent2);
}

.btn-copy {
  background: var(--surface2);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.btn-copy:hover { border-color: var(--accent); color: var(--accent); }

.btn-copy.copied {
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  border-color: transparent;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  margin-top: 32px;
}

.product-img-large {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

.product-img-large img { width:100%; height:100%; object-fit:cover; }

.product-detail { display: flex; flex-direction: column; gap: 20px; }

.product-detail h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.product-discount-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  width: fit-content;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.product-prices { display: flex; align-items: center; gap: 16px; }

.product-price-new {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

.product-price-old {
  font-size: 20px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-timer {
  background: var(--surface2);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-desc {
  color: var(--text-sub);
  line-height: 1.8;
  font-size: 15px;
}

.product-category { font-size: 13px; color: var(--text-muted); }
.product-category a { color: var(--accent); }

.product-btns { display: flex; gap: 14px; }
.product-btns .btn { padding: 14px 24px; font-size: 15px; }

/* ============================================================
   CATEGORY PAGE HEADER
   ============================================================ */
.cat-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.cat-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 3px;
}

/* ============================================================
   FORM STYLES (Contact page)
   ============================================================ */
.page-content {
  max-width: 760px;
  margin: 48px auto;
  line-height: 1.8;
  color: var(--text-sub);
}

.page-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--text);
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.page-content p { margin-bottom: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.5px;
}

.form-control {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-submit:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(16,185,129,0.4);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 72px; margin-bottom: 20px; filter: grayscale(0.3); }
.empty-state h3 { font-size: 24px; color: var(--text); margin-bottom: 10px; font-weight: 700; }

/* ============================================================
   FOOTER — Premium Dark
   ============================================================ */
footer {
  background: #050508;
  border-top: 3px solid var(--accent);
  margin-top: 80px;
  padding: 64px 5% 0;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .footer-logo-img {
  max-height: 52px;
  width: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 14px var(--accent-glow));
}

.footer-brand p {
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  color: rgba(255,255,255,0.6);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-col ul li a:hover::before { opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-bottom a:hover { color: #fff; }

.footer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-credit .heart {
  color: var(--accent);
  font-size: 14px;
  animation: heartbeat 1.4s ease infinite;
}

@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  70% { transform: scale(1); }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 768px) {
  .product-single { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  main { padding: 28px 4%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger-btn {
  display: none; /* desktop: hidden */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.hamburger-btn:hover span { background: var(--accent); }

/* ============================================================
   MOBILE SIDEBAR OVERLAY
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
  display: block;
  opacity: 1;
}

/* ============================================================
   MOBILE SIDEBAR DRAWER
   ============================================================ */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  height: 100dvh;
  background: var(--bg2);
  border-right: 1px solid var(--border-strong);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.mobile-sidebar.open { left: 0; }

/* ── NEW SIDEBAR ELEMENTS (sb-* classes) ─────────────────── */

/* Header row */
.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sb-close {
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.sb-close:hover { background: rgba(239,68,68,0.15); border-color:#ef4444; color:#ef4444; }

/* Nav section */
.sb-nav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 4px;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}

/* Every nav item — anchor AND button share identical style */
.sb-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  line-height: 1.4;
  /* Full button reset */
  background: none;
  border: 1px solid transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s, color 0.2s;
}

.sb-icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  display: inline-block;
}

.sb-link:hover  { background: var(--surface2); color: var(--text); }
.sb-link.sb-active {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: rgba(108,99,255,0.2);
}

/* Sub-category links */
.sb-sub-link {
  display: block;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.sb-sub-link:hover { background: var(--surface2); color: var(--accent); padding-left: 16px; }

/* Bottom section: social + theme toggle */
.sb-bottom {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Social icon row */
.sb-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.sb-social a:hover { opacity: 0.85; transform: translateY(-2px); }

/* Theme toggle button */
.sb-theme-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.sb-theme-btn:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }


/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-solid);
  flex-shrink: 0;
}

.sidebar-close {
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.sidebar-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* Sidebar Nav Links */
.sidebar-nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
  gap: 2px;
  width: 100%;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background: none;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition);
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-link .sidebar-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-link:hover {
  background: var(--surface2);
  color: var(--text);
}

/* Reset browser default button styles for categories toggle */
button.sidebar-link {
  -webkit-appearance: none;
  appearance: none;
  -webkit-font-smoothing: inherit;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--text-sub);
}

.sidebar-link.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.25);
}

/* Categories accordion row */
.sidebar-cat-wrap { display: flex; flex-direction: column; }

.sidebar-cat-toggle { position: relative; }

.sidebar-caret {
  margin-left: auto;
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  line-height: 1;
}

.sidebar-cat-toggle.open .sidebar-caret { transform: rotate(90deg); }

.sidebar-cat-sub {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 2px 22px;
}

.sidebar-cat-sub.open { display: flex; }

.sidebar-sub-link {
  display: block;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  transition: all var(--transition);
}

.sidebar-sub-link:hover {
  background: var(--surface2);
  color: var(--accent);
  padding-left: 16px;
}

/* Sidebar Social Icons */
.sidebar-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}


.sidebar-social a:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Sidebar Footer (theme button) */
.sidebar-footer {
  padding: 10px 10px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: auto; /* push footer to bottom */
}

.sidebar-theme-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.sidebar-theme-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile nav right-side button group */
.mobile-nav-right {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — PHONE (≤600px)
   ============================================================ */
@media (max-width: 600px) {

  /* === NAV === */
  nav { padding: 0 14px; height: 58px; }
  #site-logo { height: 43px !important; } /* +20% from 36px */
  .nav-links { display: none; } /* hide entire desktop nav block */

  /* Show the mobile right-side group (theme toggle + hamburger) */
  .mobile-nav-right { display: flex; }

  /* The theme toggle inside mobile-nav-right is always visible */
  .mobile-nav-right .theme-toggle { display: flex; }



  /* === MAIN PADDING === */
  main { padding: 16px 14px; }

  /* === TOP BANNER === */
  .top-banner { font-size: 11px; padding: 8px 12px; }

  /* === CATEGORY MOBILE BANNER === */
  .mobile-banner-img {
    display: block;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
  }
  .mobile-banner-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
  }
  /* hide desktop banner on mobile if mobile banner exists */
  .has-mobile-banner .cat-banner { display: none; }

  /* === SECTION HEADER === */
  .section-header { margin-bottom: 4px; }
  .section-title { font-size: 22px; letter-spacing: 1px; }
  .sort-select { padding: 7px 12px; font-size: 12px; }

  /* === PRODUCT GRID — default 1-col === */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 2-col mode toggled by JS */
  .product-grid.grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* === PRODUCT CARD — compact === */
  .product-card {
    border-radius: 14px;
  }

  /* In 1-col: horizontal layout (image left, content right) */
  /* Single-column layout: horizontal card (image left, text right) */
  .product-grid:not(.grid-2col):not(.cat-grid-4) .product-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
  }

  .product-grid:not(.grid-2col):not(.cat-grid-4) .card-img-wrap {
    grid-row: 1 / 3;
    aspect-ratio: unset;
    height: 100%;
    min-height: 110px;
    border-radius: 14px 0 0 14px;
  }

  .product-grid:not(.grid-2col):not(.cat-grid-4) .card-body {
    padding: 10px 10px 4px;
    gap: 4px;
  }

  .product-grid:not(.grid-2col):not(.cat-grid-4) .card-footer {
    padding: 4px 10px 10px;
    flex-direction: column;
    gap: 6px;
  }

  /* cat-grid-4 on mobile: vertical card styling (same as grid-2col) */
  .product-grid.cat-grid-4 .card-body {
    padding: 8px 8px 4px;
    gap: 3px;
  }
  .product-grid.cat-grid-4 .card-footer {
    padding: 0 8px 8px;
    flex-direction: column;
    gap: 5px;
  }

  /* 2-col: vertical layout stays, but tighter */
  .product-grid.grid-2col .card-body {
    padding: 8px 8px 4px;
    gap: 3px;
  }

  .product-grid.grid-2col .card-footer {
    padding: 0 8px 8px;
    flex-direction: column;
    gap: 5px;
  }

  /* === CARD TITLE — clamp on mobile === */
  .card-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-grid.grid-2col .card-title {
    font-size: 11px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* === CARD DESC — hidden on all mobile === */
  .card-desc { display: none; }

  /* === PRICE === */
  .price-new { font-size: 16px; }
  .price-old { font-size: 11px; }
  .product-grid.grid-2col .price-new { font-size: 14px; }

  /* === DISCOUNT BADGE === */
  .badge-discount { font-size: 10px; padding: 3px 7px; }
  .badge-time { font-size: 10px; padding: 3px 7px; }

  /* === MOBILE BUTTONS — stacked, full-width, icon + text === */
  .btn {
    font-size: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    gap: 5px;
    width: 100%;
    justify-content: center;
  }

  /* 2-col: slightly more compact but still text+icon */
  .product-grid.grid-2col .btn {
    font-size: 11px;
    padding: 7px 8px;
  }

  /* === HERO BANNER — smaller on mobile === */
  .hero-banner, .hero-banner img { height: 160px; max-height: 160px; }

  /* === FOOTER === */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  footer { padding: 36px 14px 0; }
}

@media (max-width: 360px) {
  .product-grid.grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-grid.grid-2col .card-body { padding: 6px 6px 2px; }
  .product-grid.grid-2col .card-footer { padding: 0 6px 6px; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.pg-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.pg-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
  font-weight: 700;
}

.pg-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}

/* ============================================================
   CATEGORY SECTIONS (Homepage)
   ============================================================ */
.cat-section {
  margin-top: 4px;
}

/* Stylish gradient divider between categories */
.cat-divider {
  position: relative;
  height: 3px;
  margin: 48px 0 44px;
  border-radius: 99px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 20%,
    var(--accent2) 50%,
    var(--accent) 80%,
    transparent 100%);
  overflow: visible;
}

.cat-divider::before,
.cat-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 99px;
}

.cat-divider::before {
  width: 60%;
  height: 10px;
  background: var(--accent);
  filter: blur(12px);
  opacity: 0.35;
}

.cat-divider::after {
  width: 8px;
  height: 8px;
  background: #fff;
  box-shadow: 0 0 12px 4px var(--accent);
  z-index: 1;
}

/* 4-column grid for category showcases on homepage */
.cat-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Load More / See All button */
.cat-load-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.cat-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.cat-load-btn:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
  color: #fff;
}

/* ============================================================
   ADMIN PAGINATION
   ============================================================ */
/* Reuses .pagination, .pg-btn, .pg-info — same styles above */

/* ============================================================
   RESPONSIVE — cat-grid-4 on tablets/phones
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .cat-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-divider { margin: 32px 0 28px; }
}

@media (max-width: 600px) {
  .cat-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-load-btn { font-size: 13px; padding: 10px 24px; }
  .cat-divider { margin: 24px 0 20px; }
  .pg-btn { min-width: 36px; height: 36px; font-size: 13px; padding: 0 10px; }
  .pagination { gap: 4px; }

  /* Hamburger always visible on mobile — explicit override */
  .hamburger-btn { display: flex !important; }
  .mobile-nav-right { display: flex !important; }
}

/* ============================================================
   PRODUCT SINGLE PAGE — COMPACT URGENCY TIMER
   ============================================================ */
.product-timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 6px 14px 6px 10px;
  width: fit-content;
  transition: background 0.3s, border-color 0.3s;
}

.timer-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  white-space: nowrap;
}

.timer-label .timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Inline boxes row */
.timer-boxes {
  display: flex;
  align-items: center;
  gap: 2px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
}

.timer-box .tnum {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--gold);
  transition: color 0.3s;
}

.timer-box .tlabel {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
}

.timer-sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  opacity: 0.4;
  padding: 0 1px;
  margin-bottom: 8px;
}

/* ─── WARNING (1–3 days) ─── */
.product-timer.timer-warning {
  border-color: rgba(251,146,60,0.4);
  background: rgba(234,88,12,0.08);
}
.product-timer.timer-warning .timer-label { color: #fb923c; }
.product-timer.timer-warning .timer-label .timer-dot { background: #fb923c; }
.product-timer.timer-warning .tnum { color: #fb923c; }

/* ─── URGENT (<24h) — red, pulsing ─── */
.product-timer.timer-urgent {
  border-color: rgba(239,68,68,0.5);
  background: rgba(220,38,38,0.1);
  animation: urgentPulse 1.2s ease-in-out infinite;
}
.product-timer.timer-urgent .timer-label { color: #ef4444; }
.product-timer.timer-urgent .timer-label .timer-dot {
  background: #ef4444;
  animation: dotPop 1s ease-in-out infinite;
}
.product-timer.timer-urgent .tnum { color: #ef4444; }

@keyframes labelBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
@keyframes dotPop {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.5); }
}
