/* ===== FreshGrin Store Styles ===== */
/* Matches landing page: dark theme, mint accents, Space Grotesk + DM Sans */

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

:root {
  --mint: #3EEBBE;
  --mint-light: #B8F5E5;
  --mint-glow: rgba(62, 235, 190, 0.15);
  --mint-dim: rgba(62, 235, 190, 0.6);
  --dark: #0A1A14;
  --dark-card: #0F2A1F;
  --dark-card-hover: #132E24;
  --cream: #F4FBF8;
  --text: #C8E6DA;
  --text-bright: #EAFFF6;
  --text-dim: rgba(200, 230, 218, 0.5);
  --accent: #FF6B4A;
  --accent-glow: rgba(255, 107, 74, 0.15);
  --border: rgba(62, 235, 190, 0.08);
  --border-hover: rgba(62, 235, 190, 0.25);
  --danger: #ef4444;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* ===== NAV ===== */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 26, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--mint);
  opacity: 1;
}

.nav-links a.active {
  color: var(--mint);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -10px;
}

.cart-count.hidden {
  display: none;
}

/* ===== PAGE CONTAINER ===== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

/* ===== SHOP PAGE ===== */
.shop-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.shop-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.shop-header h1 span {
  color: var(--mint);
}

.shop-header p {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
}

/* Hero product (bundle) */
.hero-product {
  background: var(--dark-card);
  border: 2px solid var(--border-hover);
  border-radius: 24px;
  padding: 3rem;
  margin: 2rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-product::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-product-info {
  position: relative;
  z-index: 1;
}

.hero-product-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.hero-product-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-bright);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.hero-product-info p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-price .current {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mint);
}

.hero-price .original {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.hero-price .savings {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-product-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-bundle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-bundle-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(62, 235, 190, 0.06);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  transition: transform 0.3s, border-color 0.3s;
}

.hero-bundle-circle:hover {
  transform: scale(1.1);
  border-color: var(--mint);
}

.hero-bundle-item span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--mint-dim);
}

/* Products grid */
.products-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mint);
  margin-bottom: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.product-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.product-card-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: 1.2rem;
  flex: 1;
}

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

.product-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mint);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--mint);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--mint-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--mint-glow);
}

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

.btn-secondary:hover {
  background: rgba(62, 235, 190, 0.08);
  border-color: var(--mint);
}

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

.btn-accent:hover {
  background: #ff8266;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem 0;
  align-items: start;
}

.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem;
  min-height: 360px;
  position: relative;
}

.product-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.product-emoji-large {
  font-size: 8rem;
  position: relative;
  z-index: 1;
}

.product-info {
  padding: 1rem 0;
}

.product-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.product-breadcrumb a {
  color: var(--text-dim);
}

.product-breadcrumb a:hover {
  color: var(--mint);
}

.product-info h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-bright);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.product-info .product-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-price-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mint);
}

.product-price-compare {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.product-features li::before {
  content: '✓';
  color: var(--mint);
  font-weight: 700;
  font-size: 0.85rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(62, 235, 190, 0.1);
  flex-shrink: 0;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.quantity-control button {
  background: transparent;
  border: none;
  color: var(--text);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}

.quantity-control button:hover {
  background: rgba(62, 235, 190, 0.08);
  color: var(--mint);
}

.quantity-control span {
  width: 42px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-bright);
}

.product-long-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.7;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* Bundle includes section */
.bundle-includes {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(62, 235, 190, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.bundle-includes h3 {
  font-size: 1rem;
  color: var(--mint);
  margin-bottom: 1rem;
}

.bundle-includes-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bundle-includes-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}

.bundle-includes-item .bi-emoji {
  font-size: 1.5rem;
}

/* ===== CART PAGE ===== */
.cart-header {
  padding: 3rem 0 2rem;
}

.cart-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.cart-item:hover {
  border-color: var(--border-hover);
}

.cart-item-emoji {
  font-size: 2.2rem;
  text-align: center;
}

.cart-item-info h3 {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.2rem;
}

.cart-item-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mint);
  text-align: right;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: color 0.2s, background 0.2s;
}

.cart-item-remove:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.cart-summary {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-bright);
}

.cart-summary-row.total .amount {
  color: var(--mint);
}

.cart-summary .btn {
  width: 100%;
  margin-top: 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.cart-empty h2 {
  font-size: 1.5rem;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
}

.cart-empty p {
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--dark-card);
  border: 1px solid var(--mint);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-bright);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--mint);
  font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.store-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.store-footer .footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 0.5rem;
}

.store-footer p {
  font-size: 0.85rem;
  opacity: 0.4;
}

/* ===== LOADING ===== */
.loading-skeleton {
  background: linear-gradient(90deg, var(--dark-card) 25%, rgba(62, 235, 190, 0.05) 50%, var(--dark-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

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

/* ===== ADDED TO CART ANIMATION ===== */
@keyframes addedPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-added {
  animation: addedPulse 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-product {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .store-nav {
    padding: 0.8rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a span.nav-text {
    display: none;
  }

  .page-container {
    padding: 1rem;
  }

  .hero-product {
    padding: 2rem 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-card {
    padding: 1.5rem 1.2rem;
  }

  .cart-item {
    grid-template-columns: 40px 1fr auto;
    gap: 1rem;
    padding: 1rem;
  }

  .cart-item-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .cart-item-price {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
  }
}

/* ===== MOBILE NAV ===== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 600px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 26, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }

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