:root {
  color-scheme: dark;
  --bg: #0f0f12;
  --surface: #19191e;
  --surface-raised: #222229;
  --text: #f7f2e9;
  --muted: #b6b0a9;
  --orange: #ff672f;
  --orange-light: #ff9358;
  --line: rgba(247, 242, 233, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid #ffd3a2;
  outline-offset: 3px;
}

.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: #35180f;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 77% 28%, rgba(255, 118, 51, 0.45), transparent 24%), linear-gradient(132deg, #150d0c, #472014);
  content: "";
}

.hero__image, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__image { z-index: -2; object-fit: cover; object-position: center; }

.hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 10, 10, 0.94) 0%, rgba(12, 10, 10, 0.7) 45%, rgba(12, 10, 10, 0.2) 100%), linear-gradient(0deg, rgba(15, 15, 18, 0.92), transparent 56%);
}

.hero__content { padding: 2rem 0 3.5rem; }

.eyebrow { margin: 0 0 0.55rem; color: var(--orange-light); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-size: 1rem; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; }

.brand strong { color: var(--orange-light); font-weight: 800; }

.brand__mark { display: inline-grid; width: 2rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--orange); color: #25110d; font-size: 0.64rem; font-weight: 950; letter-spacing: -0.08em; }

h1, h2, h3, p { margin-top: 0; }

h1 { max-width: 620px; margin: 1.5rem 0 0.85rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 0.94; letter-spacing: -0.06em; }

.hero__copy { max-width: 540px; margin-bottom: 0; color: #ded4c9; font-size: 1.05rem; line-height: 1.6; }

.catalog-section { padding: 4rem 0 5rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }

h2 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.045em; }

.section-heading__note { max-width: 245px; margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; text-align: right; }

.category-nav { display: flex; gap: 0.65rem; overflow-x: auto; padding: 0.25rem 0 1.5rem; }

.category-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.category-button:hover, .category-button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: #2a120d; }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.product-card {
  display: grid;
  min-height: 245px;
  grid-template-columns: 0.86fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 0 0 0 rgba(255, 103, 47, 0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover { transform: translateY(-3px); border-color: rgba(255, 147, 88, 0.58); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22); }

.product-card__visual { position: relative; min-height: 100%; overflow: hidden; background: linear-gradient(135deg, #5d2416, #1e1513); }

.product-card__image { width: 100%; height: 100%; object-fit: cover; }

.product-card__fallback { display: grid; position: absolute; inset: 0; place-items: center; background: radial-gradient(circle at 54% 40%, #ffb04c 0 12%, #e14c25 12.5% 22%, #711f15 22.5% 31%, transparent 31.5%), linear-gradient(135deg, #4b1d15, #1a1212); }

.product-card__fallback::after { color: rgba(255, 248, 235, 0.76); content: "PIZZA PLANET"; font-size: 0.62rem; font-weight: 850; letter-spacing: 0.16em; transform: translateY(3.7rem); }

.product-card__body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 1.25rem; }

.product-card__category { margin: 0 0 0.45rem; color: var(--orange-light); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.product-card h3 { margin-bottom: 0.85rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.12; }

.product-card__price { margin: auto 0 1rem; font-size: 1.35rem; font-weight: 850; }

.product-card__details { border: 0; border-radius: 0.55rem; padding: 0.65rem 0.8rem; background: #f8eee3; color: #2b1913; font-size: 0.8rem; font-weight: 800; }

.product-card__details:hover { background: var(--orange-light); }

.empty-state { grid-column: 1 / -1; margin: 0; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); text-align: center; }

.site-footer { border-top: 1px solid var(--line); background: #0b0b0d; }

.site-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }

.site-footer p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.product-dialog { width: min(720px, calc(100% - 1.5rem)); max-height: min(82vh, 780px); overflow: auto; border: 1px solid rgba(255, 180, 132, 0.26); border-radius: 1.2rem; padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.product-dialog::backdrop { background: rgba(7, 7, 9, 0.78); backdrop-filter: blur(4px); }

.dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }

.dialog__eyebrow { margin-bottom: 0.35rem; }

.dialog__title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 5vw, 2.3rem); line-height: 1.05; }

.dialog__close { flex: 0 0 auto; width: 2.4rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font-size: 1.35rem; line-height: 1; }

.dialog__close:hover { border-color: var(--orange-light); color: var(--orange-light); }

.dialog__body { padding: 1.5rem; }

.dialog__price { margin: 0 0 1.5rem; color: var(--orange-light); font-size: 1.2rem; font-weight: 850; }

.option-group + .option-group { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.option-group h3 { margin-bottom: 0.35rem; font-size: 1rem; }

.option-group__limit { margin-bottom: 0.9rem; color: var(--muted); font-size: 0.83rem; }

.option-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 0.55rem; margin: 0; padding: 0; list-style: none; }

.option-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; min-height: 2.4rem; border: 1px solid var(--line); border-radius: 0.55rem; padding: 0.45rem 0.6rem; color: #e8dfd4; font-size: 0.81rem; }

.option-list span:last-child { flex: 0 0 auto; color: var(--orange-light); font-weight: 750; white-space: nowrap; }

.dialog__no-options { margin: 0; color: var(--muted); line-height: 1.5; }

@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { grid-template-columns: 0.72fr 1fr; }
}

@media (min-width: 1040px) {
  .hero { min-height: 480px; }
  .catalog-section { padding-top: 5rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card { display: flex; min-height: 370px; flex-direction: column; }
  .product-card__visual { min-height: 155px; }
}

@media (max-width: 520px) {
  .section-heading { display: block; }
  .section-heading__note { margin-top: 0.85rem; text-align: left; }
  .product-card { min-height: 220px; }
  .site-footer > div { align-items: start; flex-direction: column; }
  .option-list { grid-template-columns: 1fr; }
}
