:root {
  --bg: #fff8f2;
  --ink: #2b1d14;
  --accent: #ff8b5c;
  --accent-dark: #e46c3e;
  --cream: #f6e6d7;
  --card: #ffffff;
  --muted: #6b5b4d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0d9c7;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a { font-weight: 500; color: var(--muted); }

.cart-button {
  border: none;
  background: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.cart-button span {
  display: inline-block;
  min-width: 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
}

.checkout-link {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 0.6rem 0 1rem;
}

.subhead { color: var(--muted); font-size: 1.05rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.6rem 0 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

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

.btn.primary:hover { background: var(--accent-dark); }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

.hero-badges {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(68, 44, 27, 0.12);
}

.cookie-stack { display: grid; gap: 1rem; margin-bottom: 1.5rem; }

.cookie {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.4);
}

.cookie::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.cookie.chip { background: #d6a26f; }
.cookie.sugar { background: #f3d9b1; }
.cookie.cocoa { background: #b57b62; }

.section { padding: 3rem 0 4rem; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 12px 30px rgba(68, 44, 27, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-media {
  height: 130px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: rgba(43, 29, 20, 0.75);
}

.product-title { font-weight: 700; font-size: 1.1rem; }

.product-card p { color: var(--muted); margin: 0; }

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

.price {
  font-size: 1.2rem;
  font-weight: 700;
}

.detail-section {
  background: #fff1e6;
}

.detail-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(68, 44, 27, 0.12);
}

.detail-media {
  min-height: 220px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(43, 29, 20, 0.75);
}

.detail-notes { padding-left: 1.2rem; color: var(--muted); }

.detail-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--card);
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.cart.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #f1dccc;
}

.cart-header button {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  padding: 1.2rem 1.5rem;
  overflow-y: auto;
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.cart-item small { color: var(--muted); }

.cart-item button {
  border: none;
  background: var(--cream);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #f1dccc;
  display: grid;
  gap: 1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  background: #2b1d14;
  color: #f6e6d7;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.footer-grid h4, .footer-grid h5 { margin: 0 0 0.5rem; }

@media (max-width: 720px) {
  .nav { flex-direction: column; gap: 0.8rem; }
  nav { flex-wrap: wrap; justify-content: center; }
  .hero { padding-top: 3rem; }
}
