:root {
  --black: #080808;
  --ink: #111111;
  --card: #161616;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #ff6a00;
  --orange-deep: #c45100;
  --text: #f7f4ef;
  --muted: #c8c2b8;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(255, 106, 0, 0.18), transparent 60%),
    var(--black);
  color: var(--text);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.05; margin: 0 0 0.4em; }
p { color: var(--muted); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--orange);
  color: #1a0d00;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header);
  padding: 12px 6vw;
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--orange);
  color: #1a0d00;
  font-weight: 700;
}
.logo-words { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; letter-spacing: 0.04em; }
.logo-words span { color: var(--orange); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a.active, .nav-links a:hover { color: white; }
.header-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #1c1c1c;
}

.icon-btn, .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.icon-btn { background: transparent; border: 1px solid var(--line); }
.cart-link span {
  min-width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #1a0d00;
  font-size: 0.8rem;
}
.btn-primary { background: linear-gradient(180deg, #ff861f, var(--orange)); color: #1a0d00; font-weight: 650; box-shadow: 0 10px 30px rgba(255, 106, 0, 0.25); }
.btn-ghost { background: transparent; color: white; border: 1px solid var(--line); }
.btn-small { min-height: 44px; padding: 0 14px; }
.btn:hover { transform: translateY(-1px); }

.flash {
  margin: 12px 6vw 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid rgba(255, 106, 0, 0.4);
}

.hero, .section, .feature-band, .cta-band { padding: 72px 6vw; }
.hero, .feature-band, .cta-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); font-size: 0.78rem; }
.hero h1 { font-size: clamp(4rem, 9vw, 7.4rem); }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero-support { font-size: 1.15rem; max-width: 38rem; }
.hero-actions, .card-actions, .line-actions, .inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.hero-plate { width: min(100%, 460px); margin-left: auto; perspective: 1100px; }
.pie-3d { position: relative; transform-style: preserve-3d; animation: spin-pie 12s linear infinite; }
.pie-3d img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 28px 50px rgba(0,0,0,.5), 0 0 36px rgba(255, 70, 0, .35); }
.cheese, .ketchup, .splash { position: absolute; display: block; pointer-events: none; }
.cheese { width: 16px; height: 34px; border-radius: 40% 40% 50% 50%; background: linear-gradient(#fff6c8, #ffb000); animation: drip 2.6s ease-in infinite; }
.cheese-a { left: 46%; top: 34%; }
.cheese-b { left: 62%; top: 48%; height: 26px; animation-delay: .7s; }
.ketchup { left: 54%; top: 6%; width: 14px; height: 20px; border-radius: 50% 50% 42% 42%; background: #c81010; animation: ketchup 3s ease-in infinite; }
.splash { left: 50%; top: 62%; width: 10px; height: 10px; border-radius: 50%; background: #e10600; opacity: 0; animation: splash 3s ease-out infinite; }
@keyframes spin-pie { to { transform: rotateX(16deg) rotateZ(360deg); } }
@keyframes drip { 0% { transform: scaleY(.6); opacity: .2; } 40% { opacity: 1; } 100% { transform: translateY(28px) scaleY(1.3); opacity: .15; } }
@keyframes ketchup { 0% { transform: translateY(-18px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(150px); opacity: .2; } }
@keyframes splash { 0%, 70% { opacity: 0; transform: scale(.4); } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(5); } }

.section-head { margin-bottom: 28px; }
.paper { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); }
.product-grid, .category-grid, .why-grid, .review-grid, .story-grid, .stat-grid {
  display: grid;
  gap: 18px;
}
.product-grid, .story-grid { grid-template-columns: repeat(3, 1fr); }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.why-grid, .review-grid, .stat-grid { grid-template-columns: repeat(3, 1fr); }
.food-card, .category-card, .why-grid article, .review-grid blockquote, .order-card, .form-card, .summary, .stat-grid article {
  background: rgba(20, 20, 20, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.food-card { overflow: hidden; display: flex; flex-direction: column; }
.food-card img, .category-card img, .product-photo img, .story-grid img, .cart-line img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.45s ease; }
.food-card:hover img, .category-card:hover img { transform: scale(1.06); }
.stat-grid { grid-template-columns: repeat(3, 1fr); }
.chart-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin: 22px 0; }
.chart { display: flex; align-items: end; gap: 8px; min-height: 160px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 6px; height: 160px; }
.chart-bar { width: 100%; max-width: 36px; min-height: 4px; border-radius: 10px 10px 4px 4px; background: #ff6a00; }
.chart-bar.alt { background: #f3d2b0; }
.chart-col span, .pop-row { color: #c8c2b8; font-size: 0.78rem; }
.pop-row { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; align-items: center; }
.pop-track { height: 8px; background: #2a2a2a; border-radius: 99px; overflow: hidden; }
.pop-track span { display: block; height: 100%; background: #ff6a00; }
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #080808; }
.intro.is-done { display: none; }
.intro-skip { position: absolute; top: 18px; right: 18px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: white; }
.intro-stage { position: relative; width: min(72vw, 460px); perspective: 900px; }
.intro-pizza { width: 100%; border-radius: 50%; animation: pie 4.6s ease forwards; filter: drop-shadow(0 30px 40px rgba(255,106,0,.28)); }
.sauce-drop { position: absolute; left: 58%; top: -30px; width: 16px; height: 22px; border-radius: 50% 50% 50% 50%; background: #c81e1e; animation: drop 1.5s 1.5s ease-in forwards; opacity: 0; }
.sauce-splash { position: absolute; left: 54%; top: 58%; width: 8px; height: 8px; border-radius: 50%; background: #e23b3b; opacity: 0; animation: splash 0.6s 2.9s ease-out forwards; }
@keyframes pie { 0% { transform: rotateX(18deg) rotateZ(-18deg) scale(0.82); } 55% { transform: rotateX(8deg) rotateZ(12deg) scale(1); } 100% { transform: rotateX(0) rotateZ(0) scale(1.08); } }
@keyframes drop { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(250px); } }
@keyframes splash { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(6); } }
.card-body, .why-grid article, .review-grid blockquote, .order-card, .form-card, .summary { padding: 18px; }
.card-foot, .order-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.meta { margin: 0; color: var(--orange); font-size: 0.85rem; }
.category-card { position: relative; min-height: 180px; overflow: hidden; text-decoration: none; }
.category-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.4rem;
}
.feature-band img, .feature-band .product-photo { border-radius: var(--radius); height: 360px; width: 100%; object-fit: cover; }
.feature-band.reverse { grid-template-columns: 0.9fr 1.1fr; }
.cta-band { grid-template-columns: 1fr; text-align: center; }
.price-lg, .card-body s, .card-foot s { color: #8d887f; }
.price-lg { font-size: 2rem; }
.price-lg strong, .card-body strong, .card-foot strong { color: white; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: #141414;
}
.chip.is-active { background: var(--orange); color: #1a0d00; border-color: transparent; }
.menu-search { display: grid; gap: 6px; margin: 8px 0 22px; max-width: 420px; }

.product-layout, .cart-layout, .admin-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.product-photo img { height: 460px; border-radius: var(--radius); }
.stack, .form-card, .summary { display: grid; gap: 12px; }
label { display: grid; gap: 6px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0d0d0d;
}
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 16px; margin: 0; padding: 12px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.choice input { width: auto; min-height: 0; }
.choice span { margin-left: auto; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.narrow { max-width: 640px; margin: 0 auto; }
.cart-line { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { height: 96px; border-radius: 16px; }
.totals { margin: 0; }
.totals div, .order-card .totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.totals .grand { color: white; font-size: 1.2rem; }
.confirm { padding: 28px; border-radius: var(--radius); background: rgba(255, 106, 0, 0.1); border: 1px solid rgba(255, 106, 0, 0.35); }
.status { color: var(--orange); }

.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.row-actions button, .row-actions a { min-height: 44px; }

.site-footer { padding: 48px 6vw 28px; border-top: 1px solid var(--line); background: #0c0c0c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer-grid a, .social-list { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
.social-list { list-style: none; padding: 0; }
.copyright { margin-top: 28px; }

@media (max-width: 1000px) {
  .product-grid, .story-grid, .category-grid, .why-grid, .review-grid, .footer-grid, .hero, .feature-band, .feature-band.reverse, .product-layout, .cart-layout, .admin-split {
    grid-template-columns: 1fr 1fr;
  }
  .hero, .feature-band, .feature-band.reverse, .product-layout, .cart-layout, .admin-split, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .header-tools .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #141414;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 4px 8px; }
  .product-grid, .story-grid, .category-grid, .why-grid, .review-grid, .stat-grid, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .cart-line { grid-template-columns: 88px 1fr; }
  .cart-line strong { grid-column: 2; }
  .hero, .section, .feature-band, .cta-band { padding: 42px 18px; }
  .site-header, .site-footer { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 3.4rem; }
  .food-card img, .product-photo img { height: 220px; }
}

@media (max-width: 800px) {
  .chart-grid, .stat-grid, .pop-row { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .chip { flex: 0 0 auto; }
  .header-tools { gap: 6px; }
  .intro-stage { width: min(86vw, 360px); }
  .product-layout, .cart-layout, .admin-split { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .intro { display: none; }
}
