/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --cream: #faf8f5;
  --gray-100: #f5f3f0;
  --gray-200: #e8e5e0;
  --gray-400: #a8a29e;
  --gray-600: #6b6560;
  --accent: #1a1a1a;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ──────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo { height: 44px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav a {
  text-decoration: none; color: var(--gray-600);
  font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav a:hover { color: var(--black); }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  padding: 80px 24px;
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-sub {
  max-width: 520px; margin: 0 auto 32px;
  color: var(--gray-600); font-size: 16px; line-height: 1.7;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 28px;
  font-size: 14px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--black); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
}
.btn-primary {
  background: var(--black); color: var(--white);
}
.btn-primary:hover { background: #333; border-color: #333; }
.btn-secondary {
  background: transparent; color: var(--black);
}
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Sections ────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-size: 1.8rem; font-weight: 300; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.section-desc { color: var(--gray-600); }
.drop-section + .drop-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--gray-200); }

/* ─── Product Grid ────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); }

/* ─── Product Carousel ───────────────────────────────── */
.product-carousel {
  position: relative; width: 100%; height: 200px;
  overflow: hidden; background: var(--gray-100);
}
.product-carousel .carousel-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 200px; object-fit: cover;
  opacity: 0; transition: opacity 0.3s ease;
}
.product-carousel .carousel-img.active { opacity: 1; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 18px; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  color: var(--black); line-height: 1;
}
.product-carousel:hover .carousel-btn { opacity: 1; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-btn:hover { background: rgba(255,255,255,1); }
.carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: rgba(255,255,255,0.95); }

.product-card img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--gray-100);
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.product-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.product-price { font-weight: 600; font-size: 18px; }
.product-remaining {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--gray-600);
}
.product-remaining.low { color: #c53030; font-weight: 600; }
.product-desc {
  font-size: 14px; color: var(--gray-600); margin-bottom: 12px;
}
.quantity-controls {
  display: flex; align-items: center; gap: 12px;
}
.qty-btn {
  width: 32px; height: 32px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white);
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--gray-100); }
.qty-display { font-weight: 600; min-width: 20px; text-align: center; }
.sold-out-badge {
  display: inline-block; padding: 6px 12px;
  background: var(--gray-200); color: var(--gray-600);
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  border-radius: var(--radius);
}

/* ─── Notify Me (Sold Out) ────────────────────────────── */
.notify-me-block { margin-top: 4px; }
.notify-me-form {
  display: flex; gap: 8px; margin-top: 8px;
}
.notify-email-input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 13px;
}
.notify-email-input:focus { outline: none; border-color: var(--black); }
.btn-notify-me {
  padding: 8px 16px; background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius); font-size: 12px;
  letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
}
.btn-notify-me:hover { background: #333; }
.notify-me-msg { font-size: 12px; margin-top: 4px; min-height: 16px; }
.notify-me-msg.success { color: #2f855a; }
.notify-me-msg.error { color: #c53030; }

/* ─── Cart ────────────────────────────────────────────── */
.cart-section {
  margin-top: 48px; padding: 32px;
  background: var(--gray-100); border-radius: var(--radius);
}
.cart-section h3 {
  font-size: 1.2rem; font-weight: 400; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--gray-200);
}
.cart-item:last-of-type { border-bottom: none; }
.cart-tax {
  display: flex; justify-content: space-between;
  padding: 8px 0 0; margin-top: 8px;
  border-top: 1px solid var(--gray-200);
  font-size: 14px; color: var(--gray-600);
}
.cart-total {
  display: flex; justify-content: space-between;
  padding: 16px 0; margin-top: 4px;
  border-top: 2px solid var(--black);
  font-size: 1.2rem; font-weight: 600;
}
.cart-checkout { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

.input {
  padding: 12px 16px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 14px;
  width: 100%; transition: border-color 0.2s;
}
.input:focus { outline: none; border-color: var(--black); }

.error-text { color: #c53030; font-size: 14px; margin-top: 8px; }

/* ─── Pickup Options ─────────────────────────────────── */
#pickup-selector { margin-bottom: 20px; }
#pickup-selector h4 { font-weight: 600; margin-bottom: 12px; }
.pickup-options { display: flex; flex-direction: column; gap: 8px; }
.pickup-option-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; background: var(--white);
}
.pickup-option-card:hover { border-color: var(--gray-400); }
.pickup-option-card.selected { border-color: var(--black); background: var(--cream); }
.pickup-option-card input[type="radio"] { accent-color: var(--black); flex-shrink: 0; width: 18px; height: 18px; }
.pickup-option-info { flex: 1; }
.pickup-option-info .po-location { font-weight: 600; font-size: 15px; }
.pickup-option-info .po-time { font-size: 14px; color: var(--gray-600); margin-top: 2px; }
.pickup-option-info .po-address { font-size: 13px; color: var(--gray-400); margin-top: 2px; }

/* ─── Empty State ─────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
}
.empty-state h2 {
  font-size: 1.8rem; font-weight: 300; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}
.empty-state p {
  color: var(--gray-600); max-width: 460px; margin: 0 auto 24px;
}

/* ─── About ───────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-text h2 {
  font-size: 1.8rem; font-weight: 300; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.about-text p { color: var(--gray-600); margin-bottom: 12px; }
.about-image img {
  width: 100%; border-radius: var(--radius);
}

/* ─── Subscribe ───────────────────────────────────────── */
.subscribe-box {
  max-width: 480px; margin: 0 auto; text-align: center;
}
.subscribe-box h2 {
  font-size: 1.8rem; font-weight: 300; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.subscribe-box p { color: var(--gray-600); margin-bottom: 24px; }
.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
.subscribe-msg {
  margin-top: 12px; font-size: 14px; font-weight: 500;
}
.subscribe-msg.success { color: #2f855a; }
.subscribe-msg.error { color: #c53030; }

/* ─── Banners ─────────────────────────────────────────── */
.banner {
  padding: 16px 0; font-size: 14px; position: relative;
}
.banner-success { background: #f0fff4; color: #2f855a; border-bottom: 1px solid #c6f6d5; }
.banner-warn { background: #fffaf0; color: #c05621; border-bottom: 1px solid #feebc8; }
.banner-close {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: inherit; opacity: 0.6;
}
.banner-close:hover { opacity: 1; }

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  padding: 48px 0; text-align: center;
  border-top: 1px solid var(--gray-200);
}
.footer-logo { height: 36px; margin-bottom: 12px; opacity: 0.6; }
.footer p { color: var(--gray-600); font-size: 14px; }
.footer-copy { margin-top: 8px; font-size: 12px; color: var(--gray-400); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a { font-size: 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 24px; }
  .product-grid { grid-template-columns: 1fr; }
}
