:root {
  --bg: #030806;
  --bg-soft: #060f0b;
  --panel: rgba(10, 25, 18, 0.65);
  --panel-strong: rgba(6, 16, 11, 0.95);
  --text: #f2f7f4;
  --muted: #8aa395;
  --accent: #29d96c;
  --accent-2: #1cb85c;
  --accent-3: #8ef1b8;
  --border: rgba(41, 217, 108, 0.12);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --glow: 0 0 20px rgba(41, 217, 108, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(41, 217, 108, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(24, 184, 92, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(13, 27, 20, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #030806 0%, #060e0a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030806;
}
::-webkit-scrollbar-thumb {
  background: rgba(41, 217, 108, 0.2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(41, 217, 108, 0.4);
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Navbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 8, 6, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand img {
  height: 28px;
}

.shop-tag {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #030806;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-item {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: border-color 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  width: 130px;
  font-family: inherit;
}

.search-box svg {
  color: var(--muted);
}

/* Cart Trigger button */
.cart-trigger {
  background: rgba(41, 217, 108, 0.1);
  border: 1px solid rgba(41, 217, 108, 0.2);
  color: var(--accent);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.cart-trigger:hover {
  background: rgba(41, 217, 108, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(41, 217, 108, 0.15);
}

.cart-badge {
  background: #ff4a4a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0 60px;
}

.eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 12px 0 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff 40%, #8ef1b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--accent-3);
  box-shadow: 0 0 20px rgba(41, 217, 108, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Showcase Promo Card */
.hero-showcase {
  display: flex;
  justify-content: center;
}

.promo-card {
  background: rgba(10, 25, 18, 0.55);
  border: 1px solid rgba(41, 217, 108, 0.15);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(24px);
  position: relative;
  box-shadow: var(--shadow);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(41, 217, 108, 0.14);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.promo-card h3 {
  font-size: 1.5rem;
  margin: 4px 0;
  font-weight: 700;
}

.promo-price {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 4px 0 16px;
}

.showcase-img {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.promo-card:hover .showcase-img img {
  transform: scale(1.05);
}

.promo-card .buy-now-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
}

/* Store Segment styles */
.store-section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  margin: 8px 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Category Filters */
.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(41, 217, 108, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Products Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background: rgba(10, 25, 18, 0.55);
  border: 1px solid rgba(41, 217, 108, 0.12);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(41, 217, 108, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(41, 217, 108, 0.08);
}

.product-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(3, 8, 6, 0.75);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}

.star-icon {
  color: #ffb700;
}

.product-info h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--text);
}

.product-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

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

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

.add-to-cart-btn {
  background: rgba(41, 217, 108, 0.1);
  border: 1px solid rgba(41, 217, 108, 0.2);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: var(--accent);
  color: #030806;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(41, 217, 108, 0.3);
}

/* Footer Section */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 28px;
}

.footer-brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Slide Cart Drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.cart-drawer.active {
  display: block;
}

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.cart-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--panel-strong);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active .cart-drawer-content {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 800;
}

.close-cart-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-cart-btn:hover {
  color: var(--accent);
}

.cart-items-wrapper {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-cart-msg {
  color: var(--muted);
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-details h4 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  font-weight: 700;
}

.cart-item-price {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: rgba(41, 217, 108, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 700;
  width: 16px;
  text-align: center;
}

.remove-item-btn {
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: color 0.3s ease;
}

.remove-item-btn:hover {
  color: #ff4a4a;
  text-decoration: underline;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: rgba(3, 8, 6, 0.6);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cart-total-row #cartSubtotal {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
}

.checkout-btn {
  background: var(--accent);
  color: #030806;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background: var(--accent-3);
  box-shadow: 0 0 20px rgba(41, 217, 108, 0.3);
  transform: translateY(-2px);
}

/* Trending / Popular Products Slider Section */
.trending-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.trending-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0 20px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.trending-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.popular-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: rgba(10, 25, 18, 0.55);
  border: 1px solid rgba(41, 217, 108, 0.12);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

.popular-card:hover {
  border-color: rgba(41, 217, 108, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(41, 217, 108, 0.08);
}

.popular-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.popular-card:hover .popular-thumb img {
  transform: scale(1.06);
}

.pill-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #030806;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.popular-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.popular-info h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
}

.popular-price {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.popular-info .btn-primary {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
}

/* Slider Controls */
.slider-nav {
  display: flex;
  gap: 10px;
}

.slider-btn {
  background: rgba(41, 217, 108, 0.1);
  border: 1px solid rgba(41, 217, 108, 0.25);
  color: var(--accent);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: var(--accent);
  color: #030806;
  box-shadow: 0 0 10px rgba(41, 217, 108, 0.3);
}

/* Reviews Testimonials Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.review-card {
  background: rgba(10, 25, 18, 0.45);
  border: 1px solid rgba(41, 217, 108, 0.1);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
}

.review-card:hover {
  border-color: rgba(41, 217, 108, 0.25);
  transform: translateY(-4px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(41, 217, 108, 0.3);
}

.review-user-info h4 {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 700;
}

.review-country {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Responsive queries */
@media (max-width: 991px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 0;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Can expand to simple mobile menu drawer if needed */
  }
  .search-box {
    display: none;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Custom Premium Popup Modal Styles */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
}

.modal-body {
  position: relative;
  background: var(--panel-strong);
  border: 1px solid rgba(41, 217, 108, 0.2);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(41, 217, 108, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal.active .modal-body {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(41, 217, 108, 0.1);
  border: 1px solid rgba(41, 217, 108, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(41, 217, 108, 0.15);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(41, 217, 108, 0.15); }
  50% { box-shadow: 0 0 25px rgba(41, 217, 108, 0.35); }
  100% { box-shadow: 0 0 10px rgba(41, 217, 108, 0.15); }
}

.modal-body h3 {
  font-size: 1.45rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.modal-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.modal-actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 0.95rem;
}
