/* ══════════════════════════════════════════
   BOOTLEG BAKERY — Speakeasy Style
   ══════════════════════════════════════════ */

:root {
  --gold: #C8A951;
  --gold-light: #E8D5A0;
  --gold-dark: #8B7332;
  --bg: #0D0B09;
  --bg-card: #161210;
  --bg-section: #111010;
  --text: #a09585;
  --text-muted: #887b6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: #e8e0d4;
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 169, 81, 0.27);
  color: var(--gold-light);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--gold-light); }


/* ── FILM GRAIN ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iMSIvPjwvc3ZnPg==");
  animation: grain 8s steps(10) infinite;
}


/* ── KEYFRAMES ── */
@keyframes grain {
  0%, 100% { transform: translate(0,0) }
  10% { transform: translate(-2%,-2%) }
  30% { transform: translate(3%,1%) }
  50% { transform: translate(-1%,3%) }
  70% { transform: translate(2%,-1%) }
  90% { transform: translate(-3%,2%) }
}

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

@keyframes flicker {
  0%, 100% { opacity: 1 }
  50% { opacity: 0.82 }
}


/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(13, 11, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(139, 115, 50, 0.13);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  color: var(--gold); font-size: 18px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
}
.nav-brand:hover { color: var(--gold-light); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--gold-dark); font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600; text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }


/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, #1a150e 0%, var(--bg) 70%);
}
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,81,0.03) 0%, transparent 70%);
  animation: flicker 4s ease-in-out infinite;
}
.hero-logo {
  width: min(420px, 85vw); height: auto;
  filter: drop-shadow(0 0 40px rgba(200,169,81,0.15));
  animation: float 6s ease-in-out infinite;
}
.hero-tagline {
  font-size: 18px; color: var(--gold-dark); font-style: italic;
  margin-top: 24px; letter-spacing: 3px; text-align: center;
}
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.4; animation: float 3s ease-in-out infinite;
}
.scroll-hint span {
  color: var(--gold-dark); font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
}
.scroll-hint .line {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--gold-dark), transparent);
}


/* ── SHOP HERO ── */
.shop-hero {
  padding: 160px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse at center top, #1a150e 0%, var(--bg) 70%);
  position: relative;
}
.shop-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}


/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 14px 42px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 600; text-decoration: none; border-radius: 2px;
  background: transparent; cursor: pointer; transition: all 0.4s ease;
}
.btn:hover { background: var(--gold); color: var(--bg); }

.btn-fill {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg); border: none; padding: 16px 52px;
  font-family: 'Playfair Display', serif; font-size: 16px;
  font-weight: 700; border-radius: 4px;
  box-shadow: 0 4px 20px rgba(200, 169, 81, 0.2);
}
.btn-fill:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(200, 169, 81, 0.35);
  color: var(--bg);
}


/* ── SECTIONS ── */
.section {
  padding: 100px 24px 80px;
  max-width: 1200px; margin: 0 auto;
}
.section-label {
  color: var(--gold-dark); font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase; font-weight: 600;
  text-align: center; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 56px); color: var(--gold-light);
  font-weight: 800; margin: 12px 0 0; line-height: 1.1; text-align: center;
}
.section-subtitle {
  color: var(--text-muted); font-size: 18px; font-style: italic;
  max-width: 500; margin: 8px auto 0; text-align: center;
}


/* ── ORNAMENT ── */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 14px 0;
}
.ornament .bar { width: 60px; height: 1px; background: var(--gold-dark); }
.ornament .skull { color: var(--gold); font-size: 10px; }
.ornament .star { color: var(--gold-dark); font-size: 14px; }

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 0 auto; max-width: 400; padding: 0 24px;
}
.divider .line-left {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark));
}
.divider .line-right {
  flex: 1; height: 1px;
  background: linear-gradient(to left, transparent, var(--gold-dark));
}


/* ── CAKE GRID ── */
.cake-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; margin-top: 56px;
}
.cake-card {
  flex: 1 1 240px; max-width: 280px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 115, 50, 0.17);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: all 0.4s ease;
  position: relative;
}
.cake-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(200, 169, 81, 0.08);
}
.cake-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--gold); color: var(--bg);
  font-size: 9px; font-weight: 700; padding: 3px 8px;
  border-radius: 3px; letter-spacing: 1.5px;
  font-family: 'Cormorant Garamond', serif;
}
.cake-img-wrap {
  width: 100%; aspect-ratio: 1; overflow: hidden;
  background: #1a1714; position: relative;
}
.cake-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9) contrast(1.1);
}
.cake-card:hover .cake-img-wrap img { transform: scale(1.08); }
.cake-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,11,9,0.8) 0%, transparent 50%);
}
.cake-info { padding: 18px 20px 22px; }
.cake-name {
  font-family: 'Playfair Display', serif; color: var(--gold-light);
  font-size: 17px; font-weight: 600;
}
.cake-desc {
  color: var(--text-muted); font-size: 13px;
  margin: 8px 0 14px; line-height: 1.5; font-style: italic;
}
.cake-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.cake-price {
  font-family: 'Playfair Display', serif; color: var(--gold);
  font-size: 20px; font-weight: 700;
}
.cake-btn {
  background: transparent; border: 1px solid var(--gold-dark);
  color: var(--gold); padding: 6px 14px; border-radius: 4px;
  cursor: pointer; font-family: 'Cormorant Garamond', serif;
  font-size: 12px; letter-spacing: 1.5px; font-weight: 600;
  text-transform: uppercase; transition: all 0.3s ease;
}
.cake-card:hover .cake-btn {
  background: var(--gold); color: var(--bg);
}

.minimum-note {
  text-align: center; margin: 48px auto 0; max-width: 400;
  padding: 18px 32px; border: 1px dashed rgba(139, 115, 50, 0.33);
  border-radius: 8px; background: rgba(200, 169, 81, 0.024);
}
.minimum-note p {
  color: var(--gold-dark); font-size: 14px; font-weight: 600;
  letter-spacing: 1.5px; margin-top: 8px; text-transform: uppercase;
}


/* ── ABOUT ── */
.about-section {
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-section) 50%, var(--bg) 100%);
}
.about-wrap {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 48px;
  align-items: center; justify-content: center;
}
.about-img {
  flex: 1 1 340px; max-width: 400px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(139, 115, 50, 0.2);
  position: relative;
}
.about-img img {
  width: 100%; height: auto; display: block;
  filter: brightness(0.95) contrast(1.05);
}
.about-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,169,81,0.07) 0%, transparent 60%);
}
.about-text { flex: 1 1 340px; max-width: 440px; }
.about-text .section-label { text-align: left; }
.about-text .section-title { text-align: left; font-size: clamp(32px, 5vw, 44px); }
.about-text .ornament { justify-content: flex-start; }
.about-text p { line-height: 1.8; margin-top: 16px; }
.about-text p.story { color: var(--text); font-size: 17px; font-style: italic; }
.about-text p.tagline { color: var(--text-muted); font-size: 16px; }


/* ── FOOTER / SOCIALS ── */
.footer-section {
  padding: 80px 24px 60px; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #080705 100%);
}
.social-grid {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 36px; flex-wrap: wrap;
}
.social-card {
  padding: 20px 32px; border: 1px solid rgba(139, 115, 50, 0.2);
  border-radius: 8px; background: var(--bg-card);
  transition: all 0.3s ease; cursor: pointer; min-width: 180px;
}
.social-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
}
.social-icon { font-size: 28px; margin-bottom: 8px; }
.social-name {
  font-family: 'Playfair Display', serif; color: var(--gold-light);
  font-size: 16px; font-weight: 600;
}
.social-handle {
  color: var(--gold-dark); font-size: 13px; margin-top: 4px; font-style: italic;
}
.copyright {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid rgba(139, 115, 50, 0.08);
}
.copyright p {
  color: rgba(139, 115, 50, 0.53); font-size: 12px;
  margin-top: 12px; letter-spacing: 2px; text-transform: uppercase;
}

.skull-svg { display: inline-block; vertical-align: middle; }


/* ── CART TOGGLE BUTTON ── */
.cake-btn.added {
  background: var(--gold); color: var(--bg);
}
.cart-toggle {
  background: none; border: none; cursor: pointer;
  position: relative; padding: 4px; display: flex; align-items: center;
}
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold); color: var(--bg);
  font-size: 10px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  opacity: 0; transform: scale(0); transition: all 0.3s ease;
}
.cart-badge.has-items {
  opacity: 1; transform: scale(1);
}


/* ── CART OVERLAY ── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.cart-overlay.open {
  opacity: 1; pointer-events: auto;
}


/* ── CART DRAWER ── */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(420px, 90vw);
  background: var(--bg);
  border-left: 1px solid rgba(139, 115, 50, 0.2);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(139, 115, 50, 0.15);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light); font-size: 22px; font-weight: 700;
}
.cart-close {
  background: none; border: none; color: var(--gold-dark);
  font-size: 28px; cursor: pointer; padding: 0 4px;
  transition: color 0.3s;
}
.cart-close:hover { color: var(--gold); }

.cart-body {
  flex: 1; overflow-y: auto; padding: 24px 28px;
}

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 12px; text-align: center;
}
.cart-empty p {
  font-family: 'Playfair Display', serif;
  color: var(--gold-dark); font-size: 18px; font-weight: 600;
}
.cart-empty span {
  color: var(--text-muted); font-size: 14px; font-style: italic;
}


/* ── CART ITEMS ── */
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(139, 115, 50, 0.1);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.cart-item-img {
  width: 52px; height: 52px; border-radius: 8px;
  object-fit: cover; border: 1px solid rgba(139, 115, 50, 0.15);
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light); font-size: 14px; font-weight: 600;
}
.cart-item-price {
  color: var(--text-muted); font-size: 12px; margin-top: 2px;
}
.cart-item-controls {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 4px;
  background: var(--bg-card); border: 1px solid rgba(139, 115, 50, 0.25);
  color: var(--gold); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  font-family: 'Cormorant Garamond', serif;
}
.qty-btn:hover {
  background: var(--gold); color: var(--bg);
}
.qty-count {
  color: var(--gold-light); font-size: 15px; font-weight: 600;
  min-width: 20px; text-align: center;
  font-family: 'Playfair Display', serif;
}
.cart-item-subtotal {
  font-family: 'Playfair Display', serif;
  color: var(--gold); font-size: 15px; font-weight: 700;
  min-width: 55px; text-align: right;
}


/* ── CART FOOTER ── */
.cart-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(139, 115, 50, 0.15);
  background: var(--bg-card);
}
.cart-minimum {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 6px;
  background: rgba(200, 169, 81, 0.06);
  border: 1px dashed rgba(139, 115, 50, 0.3);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.cart-minimum span {
  color: var(--gold-dark); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}
.cart-minimum.met {
  border-color: #4a7a3d;
  background: rgba(74, 122, 61, 0.1);
}
.cart-minimum.met span {
  color: #6fad5e;
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cart-total span {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light); font-size: 18px; font-weight: 600;
}
.cart-total-price {
  font-size: 24px !important; color: var(--gold) !important; font-weight: 800 !important;
}
.cart-checkout {
  width: 100%; text-align: center; padding: 14px;
  font-size: 14px; letter-spacing: 2px;
}
.cart-checkout:disabled {
  opacity: 0.4; cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.cart-clear {
  width: 100%; margin-top: 10px; padding: 8px;
  background: none; border: none;
  color: var(--text-muted); font-size: 12px; cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.3s;
  display: none;
}
.cart-clear:hover { color: var(--gold); }


/* ── TOAST ── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-card); color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  padding: 12px 28px; border-radius: 8px;
  border: 1px solid rgba(139, 115, 50, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 300; pointer-events: none;
  opacity: 0; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}


/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 1px; }
  .section { padding: 70px 16px 60px; }
  .cake-grid { gap: 16px; }
  .cake-card { max-width: 100%; flex: 1 1 100%; }
  .about-wrap { gap: 32px; }
  .cart-drawer { width: 100vw; }
  .cart-item { gap: 10px; }
  .cart-item-img { width: 44px; height: 44px; }
}
