:root {
  --primary: #0a1628;
  --primary-light: #1a2d4a;
  --accent: #00b4d8;
  --accent-hover: #0096c7;
  --accent-glow: rgba(0, 180, 216, 0.3);
  --secondary: #f72585;
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2333;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --success: #2ea043;
  --warning: #d29922;
  --danger: #f85149;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --primary: #ffffff;
  --primary-light: #eef3f7;
  --accent: #0284b8;
  --accent-hover: #036a99;
  --accent-glow: rgba(2, 132, 184, 0.16);
  --secondary: #c2185b;
  --bg: #f6f8fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4f8;
  --text: #1f2937;
  --text-muted: #55606e;
  --border: #dde3ea;
  --success: #2da44e;
  --warning: #b8860b;
  --danger: #d92d20;
  --shadow: 0 8px 32px rgba(15, 40, 60, 0.08);
  --shadow-lg: 0 16px 64px rgba(15, 40, 60, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(0, 180, 216, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(247, 37, 133, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(0, 180, 216, 0.05) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

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

/* ========== HEADER / NAV ========== */
.top-bar {
  background: var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--accent); margin-left: 16px; }

header {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo .icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(10, 25, 40, 0.06);
}
.nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px 10px 40px;
  color: var(--text);
  font-size: 14px;
  width: 260px;
  transition: var(--transition);
  outline: none;
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  width: 320px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }

.theme-toggle {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(247, 37, 133, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 180, 216, 0.06) 0%, transparent 60%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0077b6);
  color: #06222e;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #06222e;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 180, 216, 0.05);
}
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-cart {
  background: var(--accent);
  color: #06222e;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cart:hover { background: var(--accent-hover); transform: translateY(-1px); }

.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.15;
  z-index: 0;
}
.hero-visual .ring {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}
.hero-visual .ring:nth-child(1) { width: 300px; height: 300px; top: 150px; left: 150px; }
.hero-visual .ring:nth-child(2) { width: 400px; height: 400px; top: 100px; left: 100px; animation-delay: 1s; }
.hero-visual .ring:nth-child(3) { width: 500px; height: 500px; top: 50px; left: 50px; animation-delay: 2s; }

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

/* ========== STATS BAR ========== */
.stats {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== SECTIONS ========== */
section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 16px; }

/* ========== SERVICE CARDS ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ========== BRANDS ========== */
.brands-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands-scroll {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.brand-item {
  padding: 16px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 1px;
}
.brand-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 180, 216, 0.05);
}

/* ========== FEATURED PRODUCTS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 180, 216, 0.45);
  box-shadow: var(--shadow-lg);
}
.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image .placeholder-icon {
  font-size: 48px;
  color: var(--border);
}
.product-cat-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  color: var(--text-muted);
  opacity: 0.8;
  transition: var(--transition);
}
.product-cat-icon svg { width: 100%; height: 100%; }
.product-card:hover .product-cat-icon { color: var(--accent); opacity: 1; }
.product-detail-media .product-cat-icon {
  width: 200px;
  height: 200px;
  color: var(--text-muted);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sale { background: var(--secondary); color: #2a0a12; }
.badge-new { background: var(--accent); color: #06222e; }
.badge-stock { background: var(--success); color: #fff; }

.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-sku { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}
.price-current {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 8px;
}
.product-actions .btn-cart { flex: 1; text-align: center; }

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-content { text-align: center; }
.cta-content h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.cta-content p { color: var(--text-muted); margin-bottom: 32px; font-size: 17px; }

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 320px; line-height: 1.7; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== STORE PAGE ========== */
.store-hero {
  background: linear-gradient(135deg, var(--primary), var(--bg));
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.store-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.store-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0;
}

/* Filters Sidebar */
.filters-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.filter-group { margin-bottom: 28px; }
.filter-group h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 14px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-option:hover { color: var(--text); }
.filter-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.filter-option .count {
  margin-left: auto;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 10px;
}
.price-range {
  display: flex;
  gap: 12px;
  align-items: center;
}
.price-range input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  width: 100px;
  outline: none;
}
.price-range input:focus { border-color: var(--accent); }

/* Store Grid */
.store-content { min-width: 0; }
.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { font-size: 14px; color: var(--text-muted); }
.sort-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--accent); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.view-btn.active, .view-btn:hover { border-color: var(--accent); color: var(--accent); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.page-btn.active, .page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 180, 216, 0.1);
}

/* ========== CART SIDEBAR ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-size: 20px; font-weight: 700; }
.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}
.cart-close:hover { color: var(--text); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.cart-empty .empty-icon { font-size: 48px; margin-bottom: 16px; }

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-image {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-image .placeholder-icon { font-size: 24px; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-brand { font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.qty-btn:hover { background: rgba(0, 180, 216, 0.15); color: var(--accent); }
.qty-val {
  width: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text);
}
.cart-item-price { font-weight: 700; color: var(--accent); font-size: 15px; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total span { font-size: 14px; color: var(--text-muted); }
.cart-total strong { font-size: 24px; font-weight: 800; color: var(--accent); }
.cart-footer .btn-primary { width: 100%; justify-content: center; }

/* ========== TOAST NOTIFICATION ========== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); }
.toast-icon { color: var(--success); font-size: 20px; }
.toast-message { font-size: 14px; font-weight: 500; }

/* ========== PRODUCT DETAIL PAGE ========== */
.store-layout.no-filters { grid-template-columns: 1fr; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.product-detail-media { min-height: 340px; }
.product-detail-media .product-image { height: 100%; min-height: 340px; }
.product-detail-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.product-detail-info .product-sku { font-size: 13px; }
.product-detail-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0;
}
.product-detail-note {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0;
}
.product-detail-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}
.in-stock { color: var(--success); font-weight: 600; }
.out-stock { color: var(--danger); font-weight: 600; }
.product-detail-cat { color: var(--text-muted); }
.product-detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ========== CHECKOUT MODAL ========== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.checkout-overlay.open { opacity: 1; visibility: visible; }
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(24px) scale(0.96);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(480px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.checkout-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.checkout-header h2 { font-size: 18px; font-weight: 700; }
.checkout-body { padding: 20px 22px; max-height: 40vh; overflow-y: auto; }
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 22px 0;
}
.checkout-form input,
.checkout-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: var(--transition);
}
.checkout-form input:focus,
.checkout-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.checkout-footer {
  padding: 16px 22px 22px;
}
.checkout-footer .cart-total { margin-bottom: 12px; }
.checkout-footer .btn-primary { width: 100%; justify-content: center; }
.checkout-success {
  text-align: center;
  padding: 48px 24px;
}
.checkout-success .empty-icon { font-size: 44px; margin-bottom: 12px; }
.checkout-success h3 { font-size: 22px; margin-bottom: 8px; }
.checkout-success p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-layout.no-filters { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; position: static; }
  .filters-sidebar.show { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .search-box input { width: 180px; }
  .search-box input:focus { width: 220px; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 32px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-media { min-height: 260px; }
  .product-detail-media .product-image { min-height: 260px; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
}
