:root {
  --primary: #15181f;
  --primary-dark: #0f172a;
  --secondary: #0f172a;
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --bg: #f4f7fb;
  --card-bg: #ffffff;
  --text: #111827;
  --text-light: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --success: #10b981;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top, rgba(220, 38, 38, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.nav-container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 24px; 
  max-width: 1280px; 
  margin: 0 auto; 
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo img {
  display: block;
}
.logo-icon { font-size: 1.8rem; color: var(--accent); }
.search-box {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  transition: var(--transition);
  width: 300px;
}
.search-box:focus-within { 
  border-color: #111827; 
  background: #fff; 
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08); 
}
.search-box input { 
  border: none; 
  background: transparent; 
  outline: none; 
  padding: 2px 6px; 
  font-size: 0.85rem; 
  width: 100%; 
  color: #111827; 
}
.search-box input::placeholder { color: #9ca3af; }
.search-btn { 
  background: none; 
  border: none; 
  cursor: pointer; 
  color: #4b5563; 
  display: flex; 
  align-items: center; 
}
.cart-btn { 
  position: relative; 
  background: none; 
  border: none; 
  cursor: pointer; 
  color: #111827; 
  padding: 8px; 
  border-radius: 999px; 
  transition: var(--transition); 
}
.cart-btn:hover { background: #f3f4f6; }
.cart-count { 
  position: absolute; 
  top: 0; 
  right: -2px; 
  background: #111827; 
  color: #fff; 
  font-size: 0.65rem; 
  width: 18px; 
  height: 18px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 700; 
}

.nav-btn:hover {
   background: #f3f4f6;
 }

#wishlist-btn {
   color: #ef4444;
}


.hero {
  position: relative;
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #111827 100%);
  color: #fff;
  padding: 60px 20px 60px;
  text-align: center;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 20px 80px rgba(15, 23, 42, 0.18);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(234, 88, 12, 0.14), transparent 25%),
              radial-gradient(circle at 80% 40%, rgba(194, 65, 12, 0.14), transparent 24%);
  border-radius: inherit;
}
.hero-title {
  position: relative;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}
.hero-subtitle {
  position: relative;
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #111827;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--primary);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}

.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 48px auto 32px;
  width: 100%;
}
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: linear-gradient(135deg, #eef2ff 0%, #e2e8f0 100%);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.08);
  aspect-ratio: 4/3;
  min-width: 0;
  isolation: isolate;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
  border-color: rgba(234, 88, 12, 0.45);
}
.category-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 18px 14px;
  font-size: 1.05rem;
  color: var(--secondary);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(to top, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
  letter-spacing: 0.03em;
  z-index: 2;
}
.category-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.category-card:hover .category-image img {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .categories { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .categories { grid-template-columns: 1fr; }
}

.section-title { font-size: clamp(1.9rem, 2.4vw, 2.4rem); font-weight: 800; margin: 56px 0 28px; text-align: center; letter-spacing: -0.04em; }
.section-title::after { content: ''; display: block; width: 72px; height: 4px; margin: 14px auto 0; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.filter-bar { display: flex; justify-content: center; margin-bottom: 32px; position: sticky; top: 74px; z-index: 50; padding: 10px 0; }
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; background: rgba(255,255,255,0.92); backdrop-filter: blur(18px); padding: 12px 20px; border-radius: 999px; box-shadow: 0 14px 36px rgba(15,23,42,0.08); }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(15,23,42,0.08); background: #fff;
  cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: var(--transition); color: var(--text);
}
.filter-btn.active, .filter-btn:hover { background: rgba(234, 88, 12, 0.12); color: var(--secondary); border-color: rgba(234, 88, 12, 0.35); }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 60px; }

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1400px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.product-image {
   height: 220px;
   background: var(--bg);
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   overflow: hidden;
 }
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-category {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.card-nav:hover { background: #fff; }
.card-prev { left: 6px; }
.card-next { right: 6px; }
.image-counter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 500;
}
.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.product-desc { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.color-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.color-chip:hover { transform: scale(1.12); }
.color-chip.selected { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(220, 38, 38, 0.25); transform: scale(1.12); }
.color-row { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.option-label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 3px; }
.size-selector { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.size-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}
.size-btn:hover { border-color: var(--primary); }
.size-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.add-to-cart { width: 100%; margin-top: 8px; padding: 8px 16px; font-size: 0.85rem; }

.cart-sidebar {
  position: fixed; right: 0; top: 0; height: 100vh; width: 420px; max-width: 92vw;
  background: #f8fafc; z-index: 200; transform: translateX(105%); transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: -18px 0 60px rgba(15,23,42,0.14); display: flex; flex-direction: column; overflow-y: auto;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 26px 26px 20px; border-bottom: 1px solid rgba(15,23,42,0.08); flex-shrink: 0; background: #fff; }
.cart-header h2 { font-size: 1.35rem; margin: 0; }
.close-cart { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); padding: 6px 8px; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; min-height: 0; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 60px; height: 60px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; overflow: hidden; }
.cart-item-image .product-img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item-meta { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }
.color-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cart-item-price { font-weight: 600; color: var(--primary); white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1rem; padding: 4px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); background: #fff; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.total-amount { color: var(--primary); }
.clear-cart { margin-top: 8px; }

.checkout-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.checkout-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.checkout-panel-header h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.checkout-form { display: flex; flex-direction: column; gap: 10px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12); }
.checkout-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.overlay.active { opacity: 1; pointer-events: auto; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--secondary); color: #fff; padding: 14px 28px; border-radius: 50px; font-weight: 500; z-index: 300; transition: transform 0.4s cubic-bezier(.4,0,.2,1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.toast.show { transform: translateX(-50%) translateY(0); }

.loading-spinner { grid-column: 1 / -1; text-align: center; padding: 60px; font-size: 1.1rem; color: var(--text-light); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.92); z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35); cursor: pointer;
}
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff;
  border: none; cursor: pointer; font-size: 2rem; width: 48px; height: 48px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 500; background: rgba(0,0,0,0.35); padding: 8px 16px; border-radius: 50px; }
.lightbox-counter { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 500; background: rgba(0,0,0,0.35); padding: 6px 14px; border-radius: 50px; }
.product-img { cursor: zoom-in; }
.product-card { cursor: default; }

.footer { background: #111827; color: #cbd5e1; text-align: center; padding: 16px 20px 80px; font-size: 0.85rem; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
  z-index: 100;
  padding: 4px 20px 8px;
  border-radius: 20px 20px 0 0;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.6rem;
  text-align: center;
  padding: 2px 4px;
  transition: all 0.2s;
  flex: 1;
  font-weight: 500;
}

.bottom-nav a:hover {
  transform: translateY(-1px);
}

.bottom-nav .nav-icon {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0;
}

.bottom-nav .cart-count {
  position: relative;
  top: -10px;
  right: -4px;
  font-size: 0.6rem;
  background: #fff;
  color: var(--accent);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.bottom-nav-cart {
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 2px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.bottom-nav-cart .nav-icon {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
}

.bottom-nav-cart .cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
}

.wishlist-center {
  background: #fff;
  border-radius: 50% 50% 0 50%;
  transform: rotate(45deg);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.wishlist-center .nav-icon {
  transform: rotate(-45deg);
  font-size: 1.1rem;
  margin: 0;
  color: var(--accent);
}

.wishlist-center .cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
}
.footer p { margin: 0 0 16px 0; line-height: 1.8; }
.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-icon { color: #cbd5e1; transition: 0.2s; padding: 8px; display: inline-flex; align-items: center; justify-content: center; }
.social-icon img { display: block; }
.social-icon.whatsapp:hover img { opacity: 0.8; }
.social-icon.tiktok:hover img { opacity: 0.8; }
.social-icon.instagram:hover img { opacity: 0.8; }
.social-icon.phone:hover img { opacity: 0.8; }

@media (max-width: 768px) {
  .nav-container {
    padding: 12px 16px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .logo {
    order: 1;
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .logo-text { font-size: 1.25rem; }
  .logo-icon { font-size: 1.5rem; }
  .search-box {
    order: 2;
    flex: 1;
    max-width: 100%;
  }
  .search-box input { font-size: 0.9rem; padding: 6px 10px; }
  .cart-btn {
    order: 3;
    padding: 6px;
    flex-shrink: 0;
  }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; padding: 0 8px; }
  .hero { padding: 50px 14px 44px; border-radius: 0 0 24px 24px; }
  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px auto;
  }
  .category-card { padding: 16px 12px; border-radius: 16px; }
  .category-card h3 { font-size: 0.9rem; padding: 10px 8px; }
  .section-title { font-size: 1.3rem; margin: 28px 0 16px; }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
.product-image { height: 160px; }
   .product-info { padding: 10px; }
  .product-name { font-size: 0.85rem; margin-bottom: 3px; }
  .product-desc { font-size: 0.75rem; margin-bottom: 6px; }
  .product-price { font-size: 0.95rem; }
  .size-btn { width: 26px; height: 26px; font-size: 0.7rem; }
  .color-chip { width: 18px; height: 18px; }
  .color-chip:hover { transform: scale(1.12); }
  .color-chip.selected { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(220, 38, 38, 0.25); transform: scale(1.12); }
  .card-nav { width: 24px; height: 24px; font-size: 0.85rem; }
  .card-prev { left: 3px; }
  .card-next { right: 3px; }
  .add-to-cart { padding: 6px 12px; font-size: 0.78rem; }
  .cart-sidebar { width: 100%; right: -100%; max-width: 100vw; }
  .cart-sidebar.open { right: 0; }
  .filter-bar { position: sticky; top: 130px; z-index: 50; padding: 4px 0; }
  .filter-buttons { padding: 5px 8px; gap: 3px; border-radius: 30px; }
  .filter-btn { padding: 5px 10px; font-size: 0.75rem; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .lightbox-close, .lightbox-nav { width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox-caption { font-size: 0.8rem; padding: 5px 10px; }
  .lightbox-counter { font-size: 0.8rem; padding: 5px 10px; }
}

@media (min-width: 768px) {
   .product-grid { grid-template-columns: repeat(3, 1fr); }
 }

 @media (min-width: 1024px) {
   .container { max-width: 1400px; }
   .product-grid { grid-template-columns: repeat(4, 1fr); }
 }

 .selection-modal {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.6);
   z-index: 300;
   display: none;
   align-items: center;
   justify-content: center;
   padding: 20px;
 }
 .selection-modal.open { display: flex; }
 .selection-modal-content {
   background: #fff;
   border-radius: 16px;
   max-width: 400px;
   width: 100%;
   max-height: 90vh;
   overflow-y: auto;
   padding: 24px;
   position: relative;
 }
 .selection-modal-close {
   position: absolute;
   top: 12px;
   right: 12px;
   background: none;
   border: none;
   font-size: 1.4rem;
   cursor: pointer;
   color: var(--text-light);
   padding: 4px 8px;
 }
 .selection-modal-image {
   height: 200px;
   background: var(--bg);
   border-radius: 12px;
   overflow: hidden;
   margin-bottom: 16px;
 }
 .selection-modal-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
 }
 .selection-modal-info {
   display: flex;
   flex-direction: column;
 }
 .selection-modal-name {
   font-size: 1.2rem;
   font-weight: 600;
   margin-bottom: 4px;
 }
 .selection-modal-price {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--primary);
   margin-bottom: 12px;
 }
 .selection-modal-sizes {
   display: flex;
   gap: 6px;
   margin-bottom: 12px;
   flex-wrap: wrap;
 }
.selection-modal-colors {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.new-arrivals {
  padding: 20px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.view-all {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.view-all:hover {
  text-decoration: underline;
}

.new-arrivals-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-padding-left: 12px;
}
.new-arrivals-grid::-webkit-scrollbar {
  height: 4px;
}
.new-arrivals-grid::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 2px;
}
.new-arrivals-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.new-arrival-card {
  min-width: 140px;
  max-width: 140px;
  cursor: pointer;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.new-arrival-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.new-arrival-image {
  height: 120px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.new-arrival-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.new-arrival-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
}
.new-arrival-info {
  padding: 8px;
}
.new-arrival-name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.new-arrival-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}
.rating-stars {
  display: flex;
  gap: 1px;
}
.rating-star {
  color: #f59e0b;
  font-size: 0.7rem;
}
.rating-star.empty {
  color: #e5e7eb;
}
.rating-count {
  font-size: 0.65rem;
  color: var(--text-light);
}

.new-arrival-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.new-arrival-card:hover .new-arrival-nav {
  opacity: 1;
}

.new-arrival-nav.prev {
  left: 4px;
}

.new-arrival-nav.next {
  right: 4px;
}

.new-arrival-counter {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 0.6rem;
}









