/* =========================================
   KhaylimTech Ventures — Main Stylesheet
   ========================================= */

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

/* ---- CSS Variables (Themes) ---- */
:root {
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #a07818;
  --orange: #f97316;
  --orange-light: #fb923c;

  /* Dark Mode (default) */
  --bg: #0d0d12;
  --bg-card: #1a1a24;
  --bg-nav: rgba(13,13,18,0.95);
  --bg-input: #222230;
  --bg-footer: #080810;
  --border: #2a2a3a;
  --text: #f0f0f0;
  --text-muted: #8888aa;
  --text-heading: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);
  --badge-bg: #222230;
}

[data-theme="light"] {
  --bg: #f2f2f7;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.97);
  --bg-input: #f0f0f5;
  --bg-footer: #1a1a2e;
  --border: #e0e0ee;
  --text: #2a2a3a;
  --text-muted: #666677;
  --text-heading: #0d0d1a;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --badge-bg: #f0f0f5;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

/* Push page content down so it doesn't hide behind fixed navbar */
body { padding-top: 70px; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text span:first-child {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo-text span:last-child {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,162,39,0.08);
}

/* Search Bar */
.nav-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
}

.nav-search input:focus { border-color: var(--gold); }
.nav-search input::placeholder { color: var(--text-muted); }

.nav-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover { background: rgba(201,162,39,0.06); }

.search-result-item img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
}

.search-result-item .sri-info { flex: 1; }
.search-result-item .sri-name { font-size: 0.82rem; font-weight: 600; }
.search-result-item .sri-price { font-size: 0.78rem; color: var(--gold); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  transition: all 0.2s;
  position: relative;
}

.nav-btn:hover { border-color: var(--gold); color: var(--gold); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.visible { display: flex; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

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

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--gold); background: rgba(201,162,39,0.08); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,18,0.92) 0%, rgba(13,13,18,0.6) 60%, rgba(13,13,18,0.2) 100%);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(90deg, rgba(13,13,18,0.85) 0%, rgba(13,13,18,0.55) 60%, rgba(13,13,18,0.1) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 80px 0;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-showcase {
  width: 100%;
  max-width: 380px;
  position: relative;
}

.showcase-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-track {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  text-decoration: none;
  cursor: pointer;
}
.showcase-slide:hover { border-color: var(--gold); }

.showcase-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.showcase-slide.exit {
  opacity: 0;
  transform: translateX(-60px) scale(0.97);
}

.showcase-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a24;
}

.showcase-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.showcase-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 2px;
}

.showcase-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.showcase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.showcase-dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 3px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-cat {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(212,170,60,0.15);
  border: 1px solid rgba(212,170,60,0.5);
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.hero-cat:hover {
  background: rgba(212,170,60,0.35);
  border-color: var(--gold);
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Always visible on dark hero background */
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.hero .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.2s;
  border: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Trust badges strip */
.trust-strip {
  background: linear-gradient(135deg, #1a1a24, #0d0d12);
  border-top: 1px solid rgba(201,162,39,0.15);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  padding: 16px 0;
}

[data-theme="light"] .trust-strip {
  background: linear-gradient(135deg, #f0f0f5, #e8e8f0);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .trust-item {
  color: var(--text);
}

.trust-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 500;
}

.trust-item i { color: var(--gold); font-size: 1.1rem; }

/* =========================================
   SECTION STYLES
   ========================================= */
.section { padding: 60px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text-heading);
}

.section-title span { color: var(--gold); }

.section-line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 2px;
  margin-top: 6px;
}

.view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  white-space: nowrap;
}

.view-all:hover { gap: 8px; }

/* =========================================
   CATEGORY CARDS
   ========================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(249,115,22,0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(201,162,39,0.15); }
.cat-card:hover::before { opacity: 1; }

.cat-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
  display: block;
}

.cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cat-arrow {
  position: absolute;
  bottom: 12px;
  right: 14px;
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.cat-card:hover .cat-arrow { opacity: 1; }

/* =========================================
   PRODUCT CARDS
   ========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.product-card {
  min-width: 0; /* prevent grid blowout */
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201,162,39,0.12);
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new { background: var(--gold); color: #000; }
.badge-hot { background: var(--orange); color: #fff; }
.badge-out { background: #666; color: #fff; }

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(13,13,18,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.product-wishlist:hover,
.product-wishlist.active { color: #ef4444; border-color: #ef4444; }

.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 1px; }
.rating-count { font-size: 0.72rem; color: var(--text-muted); }

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
}

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

.product-add-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.product-add-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}

.product-add-btn.added {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

/* =========================================
   PROMO BANNER
   ========================================= */
.promo-banner {
  background: linear-gradient(135deg, #1a1a24 0%, #0d0d12 100%);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
  margin: 0 0 60px;
}

[data-theme="light"] .promo-banner {
  background: linear-gradient(135deg, #1a1a2e, #0d0d20);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(201,162,39,0.12), transparent 70%);
  pointer-events: none;
}

.promo-text .promo-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.promo-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.promo-text h2 span { color: var(--gold); }

.promo-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(201,162,39,0.15);
  padding: 56px 0 0;
}

[data-theme="light"] .footer { background: #1a1a2e; }

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand .footer-logo-text span:first-child {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-brand .footer-logo-text span:last-child {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 9px; }

.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-newsletter p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter-form button {
  padding: 10px 16px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--gold-light); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom p span { color: var(--gold); }

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

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-link:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,162,39,0.08); }

/* =========================================
   PAGE HEADER (inner pages)
   ========================================= */
.page-header {
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); }

/* =========================================
   PRODUCTS PAGE LAYOUT
   ========================================= */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 40px 0;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Sidebar */
.sidebar {
  flex-shrink: 0;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: color 0.2s;
}

.filter-option:hover { color: var(--gold); }

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  font-size: 0.72rem;
  background: var(--badge-bg);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 10px;
}

/* Price range */
.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.price-inputs input {
  width: 100%;
  min-width: 0;
  padding: 8px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
  box-sizing: border-box;
}

.price-inputs input:focus { border-color: var(--gold); }

.apply-filter {
  width: 100%;
  margin-top: 12px;
  padding: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.apply-filter:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

/* Products toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.products-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.products-count span { color: var(--gold); font-weight: 700; }

.toolbar-right { display: flex; align-items: center; gap: 10px; }

.sort-select {
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.sort-select:focus { border-color: var(--gold); }

/* =========================================
   PRODUCT DETAIL PAGE
   ========================================= */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.detail-img-main {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.detail-thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.detail-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.detail-thumb.active,
.detail-thumb:hover { border-color: var(--gold); }

.detail-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.detail-name {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.2;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.detail-price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.detail-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.in-stock { background: rgba(34,197,94,0.12); color: #22c55e; }
.out-stock { background: rgba(239,68,68,0.12); color: #ef4444; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qty-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper button {
  width: 38px;
  height: 38px;
  background: var(--bg-input);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.qty-stepper button:hover { background: var(--gold); color: #000; }

.qty-stepper input {
  width: 48px;
  height: 38px;
  background: var(--bg-card);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-add-cart {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  transition: all 0.2s;
}

.btn-add-cart:hover { box-shadow: 0 6px 20px rgba(201,162,39,0.35); transform: translateY(-1px); }

/* =========================================
   CART PAGE
   ========================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 40px 0;
}

.cart-items-list { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.cart-item:hover { border-color: rgba(201,162,39,0.3); }

.cart-item-img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-input);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-cat { font-size: 0.7rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.cart-item-name { font-size: 0.95rem; font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }
.cart-item-price { font-size: 1rem; font-weight: 800; color: var(--gold); }

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-remove {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 4px;
}

.cart-remove:hover { color: #ef4444; }

/* Cart Summary */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.cart-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.summary-row.total {
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.summary-row.total span:last-child { color: var(--gold); }

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.checkout-btn:hover { box-shadow: 0 6px 20px rgba(201,162,39,0.4); transform: translateY(-1px); }

.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart i { font-size: 3.5rem; color: var(--text-muted); margin-bottom: 16px; display: block; }
.empty-cart h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.empty-cart p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: slideInToast 0.3s ease, fadeOutToast 0.3s ease 2.5s forwards;
  max-width: 300px;
}

.toast i { color: var(--gold); font-size: 1rem; }

@keyframes slideInToast {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(120%); }
}

/* =========================================
   UTILITIES
   ========================================= */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-input) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
