:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --ink: #f5f5f5;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.12);
  --flame: #ff1e45;
  --flame-deep: #d4002f;
  --gold: #ff4d6d;
  --ok: #3dd68c;
  --danger: #ff6b6b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --header-h: 72px;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 30, 69, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 30, 69, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(18, 16, 14, 0.92), rgba(18, 16, 14, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(28, 24, 21, 0.75);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cart-trigger:hover {
  border-color: rgba(255, 30, 69, 0.55);
  transform: translateY(-1px);
}

.cart-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--flame);
  color: #1a100c;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 8vh, 4.5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 12s var(--ease) both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 14, 0.35) 0%, rgba(18, 16, 14, 0.2) 35%, rgba(18, 16, 14, 0.88) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18, 16, 14, 0.75) 0%, rgba(18, 16, 14, 0.25) 55%, rgba(18, 16, 14, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

.brand-hero-logo {
  display: block;
  width: min(520px, 88vw);
  height: auto;
  margin: 0 0 0.75rem;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.55));
  animation: brand-in 1s var(--ease) both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--flame), var(--flame-deep));
  color: #fff8f3;
  box-shadow: 0 12px 30px rgba(255, 30, 69, 0.32);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-add {
  background: rgba(255, 30, 69, 0.12);
  color: var(--ink);
  border: 1px solid rgba(255, 30, 69, 0.4);
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn-add:hover {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
}

/* Sections */
.menu-section,
.howto,
.story {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2,
.story-copy h2,
.howto h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.05em;
  font-weight: 400;
}

.section-head p,
.story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter:hover,
.filter.is-active {
  color: #fff;
  background: var(--flame);
  border-color: var(--flame);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.product {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.55s var(--ease) both;
}

.product-media {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product:hover .product-media img {
  transform: scale(1.08);
}

.product-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.product-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* Story */
.story {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.story-visual {
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow);
}

.story-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

/* How to */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--flame);
  margin-bottom: 0.35rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-brand p,
.footer-meta p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  z-index: 70;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}

.cart-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.cart-panel {
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.cart-header,
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
}

.cart-header h2,
.checkout-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow: auto;
  padding: 0.5rem 1.25rem 1rem;
}

.cart-empty {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.qty button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.qty span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 600;
}

.cart-item-price {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--gold);
}

.cart-footer {
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
}

.cart-totals {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.cart-totals > div,
.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.cart-total {
  color: var(--ink);
  font-size: 1.15rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}

.cart-total strong {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 400;
}

/* Checkout / Success */
.checkout-modal,
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.checkout-modal.is-open,
.success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-panel,
.success-panel {
  width: min(560px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.checkout-modal.is-open .checkout-panel,
.success-modal.is-open .success-panel {
  transform: none;
}

.checkout-form {
  padding: 0 1.25rem 1.35rem;
  display: grid;
  gap: 1.25rem;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.75rem;
}

legend {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

input:focus,
textarea:focus {
  border-color: rgba(255, 30, 69, 0.7);
}

.delivery-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-chip {
  display: inline-flex;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-chip span {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.radio-chip input:checked + span {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff8f3;
}

.checkout-summary {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 0.75rem;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.success-panel {
  padding: 2rem 1.5rem;
  text-align: center;
}

.success-kicker {
  margin: 0 0 0.35rem;
  color: var(--ok);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.success-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.success-panel p {
  color: var(--muted);
}

.success-total {
  margin: 1.25rem 0 1.5rem !important;
  color: var(--ink) !important;
  font-size: 1.15rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  background: #1a1a1a;
  border: 1px solid rgba(255, 30, 69, 0.5);
  color: var(--ink);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.06);
  }
}

@media (min-width: 700px) {
  .nav {
    display: flex;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .steps li {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 1.25rem;
  }

  .steps li:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media (min-width: 960px) {
  .story {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }

  .product {
    grid-template-columns: 130px 1fr;
  }

  .product-media {
    width: 130px;
    height: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
