/* =====================================================
   JUST EVE - STOREFRONT STYLES
   Brand: dark, bold, blush/wine palette
   ===================================================== */

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

:root {
  --black: #0a0a0a;
  --cream: #f5efe6;
  --blush: #d4736e;
  --wine: #8b2252;
  --gold: #c9a96e;
  --deep: #1a0a12;
  --card-bg: #141014;
  --border: rgba(139,34,82,0.15);
  --text-muted: rgba(245,239,230,0.55);
  --text-dim: rgba(245,239,230,0.35);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--cream); text-decoration: none; }
a:hover { color: var(--blush); }

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

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,34,82,0.1);
  transition: background 0.3s;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--blush); font-style: italic; }

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blush);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blush);
}

.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--wine);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 4vw;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ---- PAGE WRAPPER ---- */
.page-content {
  padding-top: 70px;
  min-height: 100vh;
}

/* ---- SECTION HEADERS ---- */
.section-header {
  padding: 3rem 4vw 2rem;
}

.section-header .label {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-header h1,
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ---- CATEGORY TABS ---- */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 4vw 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-tab {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--cream);
  text-decoration: none;
}

.category-tab:hover,
.category-tab.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 4vw 4rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--cream);
  display: block;
}

.product-card:hover {
  border-color: rgba(139,34,82,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139,34,82,0.15);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, var(--deep), var(--black));
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--wine);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}

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

.product-card-category {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.product-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-current {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blush);
}

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

/* ---- PRODUCT DETAIL ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem 4vw 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.product-image-main {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--deep), var(--black));
  border: 1px solid var(--border);
}

.product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-info .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-info .breadcrumb a { color: var(--blush); }

.product-info h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.product-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.product-info .price-main {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blush);
}

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

.product-info .description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Size selector */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.size-selector label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.size-btn:hover { border-color: var(--blush); }
.size-btn.selected {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

/* Quantity */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-selector label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.qty-btn:hover { border-color: var(--blush); }

.qty-value {
  font-size: 1rem;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

/* Add to cart button */
.btn-add-cart {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--wine), var(--blush));
  border: none;
  border-radius: 8px;
  color: var(--cream);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139,34,82,0.4);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.btn-add-cart.added {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
}

/* ---- CART PAGE ---- */
.cart-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 4vw 4rem;
}

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

.cart-empty h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

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

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

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }
  .cart-item-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
  }
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--deep), var(--black));
}

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

.cart-item-details h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cart-item-details .item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-details .item-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--blush);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-remove:hover { color: var(--blush); }

/* Cart summary */
.cart-summary {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

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

.cart-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

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

.btn-checkout {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, var(--wine), var(--blush));
  border: none;
  border-radius: 8px;
  color: var(--cream);
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139,34,82,0.4);
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- CONTINUE SHOPPING LINK ---- */
.btn-continue {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-continue:hover {
  border-color: var(--blush);
  color: var(--blush);
}

/* ---- LOADING ---- */
.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--blush);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 3rem 4vw;
  border-top: 1px solid rgba(245,239,230,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-brand span { color: var(--blush); }

.footer-right {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ---- SUCCESS PAGE ---- */
.success-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.success-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-page p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ---- TOAST NOTIFICATION ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--wine);
  color: var(--cream);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

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

/* ---- FEATURED SECTION (Homepage) ---- */
.featured-section {
  padding: 4rem 4vw;
  background: var(--black);
}

.featured-section .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.featured-section .section-title h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.featured-section .view-all {
  font-size: 0.85rem;
  color: var(--blush);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Scrollable featured row */
.featured-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.featured-scroll::-webkit-scrollbar {
  height: 4px;
}

.featured-scroll::-webkit-scrollbar-track {
  background: var(--deep);
  border-radius: 2px;
}

.featured-scroll::-webkit-scrollbar-thumb {
  background: var(--wine);
  border-radius: 2px;
}

.featured-scroll .product-card {
  min-width: 280px;
  max-width: 320px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---- AGE VERIFICATION GATE ---- */
.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--deep) 0%, var(--black) 40%, #0d0610 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.age-gate::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,34,82,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.age-gate::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,115,110,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.age-gate-content {
  position: relative;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.age-gate-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.age-gate-brand {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.age-gate-brand span { color: var(--blush); font-style: italic; }

.age-gate-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.age-gate-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--wine), var(--blush));
  margin: 0 auto 2.5rem;
}

.age-gate-question {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: var(--cream);
}

.age-gate-sub {
  font-size: 0.95rem;
  color: rgba(245,239,230,0.55);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.age-gate-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-gate-btn {
  padding: 1rem 3rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
}

.age-gate-btn-yes {
  background: linear-gradient(135deg, var(--wine), var(--blush));
  color: var(--cream);
}

.age-gate-btn-yes:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139,34,82,0.4);
  color: var(--cream);
}

.age-gate-btn-no {
  background: transparent;
  border-color: rgba(245,239,230,0.2);
  color: rgba(245,239,230,0.5);
}

.age-gate-btn-no:hover {
  border-color: rgba(139,34,82,0.5);
  color: rgba(245,239,230,0.7);
}

.age-gate-footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: rgba(245,239,230,0.25);
  line-height: 1.5;
}

.age-gate-footer strong { color: rgba(245,239,230,0.4); }
