:root {
  color-scheme: dark;
  --bg: #0f172a;
  --card: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #fb923c;
  --accent-dark: #ea580c;
  --border: rgba(255,255,255,0.12);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #020617 0%, #111827 45%, #1f2937 100%);
  color: var(--text);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  padding: 24px 24px 64px;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.cart-pill {
  border: none;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 24px;
}

.hero-card,
.product-card,
.contact-section,
.promo-banner,
.stats {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.hero-card {
  padding: 24px;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

main {
  padding: 0 24px 64px;
}

.products-section,
.contact-section,
.promo-banner {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 24px;
}

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

.section-header p:last-child {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.filter-group {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 180px;
  z-index: 5;
}

.submenu.show {
  display: flex;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.subfilter-btn {
  width: 100%;
  text-align: left;
}

.product-card {
  padding: 16px;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

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

.product-card h3 {
  margin-bottom: 6px;
}

.product-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price {
  font-weight: 800;
  color: white;
  white-space: nowrap;
  flex: 0 0 auto;
}

.add-to-cart {
  border: none;
  background: var(--accent);
  color: white;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

/* Product action group: spacing between buttons */
.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.product-actions button {
  white-space: nowrap;
  flex: 0 1 auto;
}

/* Pretty Buy Now button */
.buy-now {
  border: 2px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.buy-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(11, 69, 27, 0.12);
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: white;
  border-color: transparent;
}

.buy-now:active { transform: translateY(-1px); }

.info-btn {
  border: 1px solid rgba(251, 146, 60, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.info-btn:hover {
  transform: translateY(-2px);
  background: rgba(251, 146, 60, 0.18);
  border-color: var(--accent);
}

.promo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.contact-section {
  text-align: center;
}

.contact-section p {
  color: var(--muted);
  margin: 10px 0 18px;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 16px 24px 40px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 900;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: #0f172a;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header,
.cart-summary {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-button {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
}

.cart-item-price {
  color: var(--accent);
  font-weight: 700;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.quantity-controls button {
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1f2937;
  color: white;
  cursor: pointer;
}

.remove-item {
  border: none;
  background: transparent;
  color: #f87171;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 0.9rem;
}

.empty-cart {
  color: var(--muted);
  text-align: center;
  padding: 30px 0;
}

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

.summary-row strong {
  color: var(--text);
}

.full-width {
  width: 100%;
  text-align: center;
  border: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 24px;
  z-index: 1100;
}

.image-modal.open {
  display: flex;
}

.image-modal-inner {
  position: relative;
  width: min(100%, 980px);
  max-width: 100%;
}

.image-modal img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 22px;
  display: block;
}

.image-modal-caption {
  color: var(--text);
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

.image-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  border: none;
  background: var(--accent);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.image-modal-back {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.95);
  color: white;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.image-modal-back:hover {
  background: var(--accent-dark);
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.image-modal-prev {
  left: 12px;
}

.image-modal-next {
  right: 12px;
}

@media (max-width: 900px) {
  .hero-content,
  .product-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .navbar {
    position: relative;
    padding-right: 16px;
  }

  .navbar,
  .section-header,
  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
  }

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

  .nav-links a {
    padding: 14px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .product-grid {
    gap: 18px;
  }

  .promo-banner {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 20px 16px 40px;
  }

  .navbar {
    padding: 14px 16px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-card,
  .products-section,
  .promo-banner,
  .contact-section,
  .cart-header,
  .cart-summary {
    padding: 20px;
  }

  .section-header {
    align-items: flex-start;
    gap: 14px;
  }

  .product-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .product-card {
    padding: 18px;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .category-filters {
    justify-content: flex-start;
  }

  .filter-btn,
  .subfilter-btn {
    width: 100%;
  }

  .filter-btn {
    text-align: center;
  }

  .promo-banner {
    width: 100%;
  }
}
