:root {
  --bg: #fbf7ef;
  --panel: #fffdf8;
  --ink: #27221e;
  --muted: #6c6259;
  --line: rgba(39, 34, 30, 0.14);
  --accent: #8d2f22;
  --accent-dark: #5f1f18;
  --green: #43613d;
  --gold: #c99947;
  --shadow: 0 16px 45px rgba(39, 34, 30, 0.08);
}

@font-face {
  font-family: "Caveat LC";
  src: url("assets/fonts/Caveat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat LC";
  src: url("assets/fonts/Caveat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  padding-bottom: 92px;
  overflow-x: hidden;
  background: #171310;
  color: #f8f1e5;
  --home-accent: #c64232;
  --home-accent-dark: #e05a44;
  --home-panel: #211914;
  --home-panel-soft: #261d17;
  --home-line: rgba(248, 241, 229, 0.2);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  background: rgba(23, 19, 16, 0.96);
  border-bottom: 1px solid rgba(248, 241, 229, 0.12);
  display: grid;
  place-items: center;
  backdrop-filter: blur(14px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  color: #fce5bf;
  text-decoration: none;
}

.nav-logo-full {
  width: 200px;
  height: auto;
  display: block;
}

.nav-logo-icon {
  width: 56px;
  height: 56px;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Caveat LC", "Comic Sans MS", cursive;
  line-height: 0.82;
  white-space: nowrap;
}

.nav-logo-text span {
  font-size: 38px;
  font-weight: 700;
}

.nav-logo-text small {
  font-size: 21px;
  font-weight: 400;
  opacity: 0.92;
}

.nav-social {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f8f1e5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.nav-icon-link svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-whatsapp {
  padding: 0 10px;
  border: 1px solid rgba(248, 241, 229, 0.24);
}

.nav-whatsapp svg path:last-child {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 86px;
    padding: 8px 12px 10px;
    place-items: center start;
  }

  .nav-logo {
    gap: 8px;
  }

  .nav-logo-icon {
    width: 48px;
    height: 48px;
  }

  .nav-logo-text span {
    font-size: 34px;
  }

  .nav-logo-text small {
    font-size: 19px;
  }

  .nav-social {
    right: 12px;
    gap: 6px;
  }

  .nav-icon-link span {
    display: none;
  }

  .nav-whatsapp {
    padding: 0;
    border: 0;
  }

  .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .home-contact-item {
    min-height: 36px;
  }

  .distributor-hero-grid,
  .distributor-value-grid,
  .distributor-varieties-grid,
  .distributor-contact-strip {
    grid-template-columns: 1fr;
  }

  .distributor-hero-copy h1 {
    font-size: 38px;
  }

  .distributor-pizza-orbit {
    min-height: 330px;
    max-width: 360px;
    width: 100%;
    margin: 4px auto 0;
  }

  .distributor-hero-actions {
    align-items: stretch;
  }

  .distributor-hero-actions .button,
  .distributor-hero-actions .text-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .distributor-topbar {
    align-items: flex-start;
  }

  .distributor-nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .distributor-variety-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .distributor-variety-card img {
    width: 70px;
    height: 70px;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: #211d19;
  color: #fffaf0;
  min-height: 50vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 34px 20px 20px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 42px 0 34px;
}

.brandline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.brand-logo {
  width: clamp(96px, 16vw, 156px);
  height: auto;
  display: block;
  margin: 0 0 22px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.subtitle {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.16;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-copy {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 250, 240, 0.92);
  line-height: 1.55;
  font-size: clamp(17px, 2.4vw, 22px);
}

.hero-actions,
.topbar,
.row-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-admin-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.inline-admin-action button {
  width: auto;
}

.admin-actions-bar {
  margin: 0 0 14px;
}

.button,
button,
input[type="submit"] {
  border: 0;
  background: var(--accent);
  color: #fffaf0;
  min-height: 42px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: #2b2723;
}

.button.ghost {
  background: rgba(255, 250, 240, 0.14);
  border: 1px solid rgba(255, 250, 240, 0.34);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 34px 0;
}

body > .site-shell > main {
  background: #171310;
  color: #f8f1e5;
}

.section h2,
.admin h1,
.admin h2,
.admin h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 10px;
}

body > .site-shell > main .section h2 {
  color: #fffaf0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

body > .site-shell > main .lead {
  color: rgba(248, 241, 229, 0.86);
}

.products-section {
  text-align: center;
  min-height: 100vh;
  padding-top: 48px;
  padding-bottom: 58px;
}

.products-section .lead {
  margin: 0 auto;
}

.launch-flag {
  width: fit-content;
  margin: 12px auto 0;
  padding: 7px 12px;
  background: var(--home-accent, var(--accent-dark));
  color: #fffaf0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.delivery-copy {
  max-width: 760px;
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(248, 241, 229, 0.24);
  background: rgba(255, 252, 246, 0.09);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  line-height: 1.45;
  color: rgba(248, 241, 229, 0.9);
}

.delivery-copy span,
.delivery-copy strong,
.delivery-copy a {
  color: inherit;
}

.delivery-copy strong,
.delivery-copy a {
  color: #f8f1e5;
}

.delivery-copy .old-price {
  color: rgba(248, 241, 229, 0.76);
}

.products-section .delivery-copy.mini {
  color: rgba(248, 241, 229, 0.92);
}

.pickup-map-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pickup-map-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.old-price {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: rgba(248, 241, 229, 0.62);
}

.delivery-icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 14px;
  margin-top: 4px;
  border: 2px solid var(--accent);
  border-radius: 2px;
}

.delivery-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  right: -8px;
  width: 8px;
  height: 7px;
  border: 2px solid var(--accent);
  border-left: 0;
  border-radius: 0 2px 2px 0;
}

.delivery-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 20px 0 0 var(--accent);
}

body > .site-shell > main .delivery-icon {
  border-color: var(--home-accent);
}

body > .site-shell > main .delivery-icon::before {
  border-color: var(--home-accent);
}

body > .site-shell > main .delivery-icon::after {
  background: var(--home-accent);
  box-shadow: 20px 0 0 var(--home-accent);
}

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

@media (max-width: 520px) {
  body > .site-shell > main .section h2 {
    font-size: 32px;
    line-height: 1.02;
  }

  .products-section {
    padding-top: 30px;
  }

  .delivery-copy {
    font-size: 13px;
    text-align: left;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .delivery-copy > span:not(.delivery-icon) {
    min-width: 0;
    flex: 1 1 260px;
  }

  .brandline,
  .subtitle,
  .hero-copy,
  body > .site-shell > main .section h2,
  .products-section .lead {
    width: min(330px, calc(100vw - 40px));
    max-width: min(330px, calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
  }

  .brandline {
    font-size: 30px;
  }

  body > .site-shell > main .section h2 {
    font-size: 26px;
  }
}

.pizza-card,
.panel,
.notice,
.order-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pizza-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

body > .site-shell > main .pizza-card {
  background: var(--home-panel);
  border-color: var(--home-line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  color: #f8f1e5;
}

body > .site-shell > main .pizza-card.is-selected {
  border-color: rgba(224, 90, 68, 0.72);
}

body > .site-shell > main .pizza-body {
  background: var(--home-panel);
}

body > .site-shell > main .pizza-title h3,
body > .site-shell > main .final-summary strong {
  color: #fffaf0;
}

body > .site-shell > main .meta,
body > .site-shell > main .anchor-price,
body > .site-shell > main .stock-note-muted {
  color: rgba(248, 241, 229, 0.72);
}

body > .site-shell > main .price,
body > .site-shell > main .stock-note {
  color: #fffaf0;
}

body > .site-shell > main .qty-button {
  background: var(--home-accent);
  color: #fffaf0;
}

body > .site-shell > main .stepper .qty-input {
  background: #171310;
  color: #fffaf0;
  border-color: var(--home-line);
}

body > .site-shell > main .qty-button:focus-visible,
body > .site-shell > main .stepper .qty-input:focus-visible,
body > .site-shell > main button:focus-visible {
  outline: 2px solid rgba(248, 241, 229, 0.82);
  outline-offset: 2px;
}

body > .site-shell > main .tag,
body > .site-shell > main .button,
body > .site-shell > main button,
body > .site-shell > main input[type="submit"] {
  background: var(--home-accent);
  color: #fffaf0;
}

.pizza-card.is-selected {
  border-color: rgba(141, 47, 34, 0.55);
}

.pizza-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(201, 153, 71, 0.5), transparent 0 34%, rgba(141, 47, 34, 0.18) 35% 48%, transparent 49%),
    linear-gradient(135deg, #f4dfba, #f7efe0);
  display: grid;
  place-items: center;
  color: rgba(95, 31, 24, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.pizza-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pizza-photo-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.variety-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(9, 7, 6, 0.76);
  overflow-y: auto;
}

.variety-detail-card {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: 22px;
  background: #171310;
  color: #f8f1e5;
  border: 1px solid rgba(248, 241, 229, 0.22);
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.variety-detail-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.variety-detail-copy h2 {
  margin: 0 0 10px;
  color: #fffaf0;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 0.98;
}

.variety-detail-flag {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: var(--home-accent, #c64232);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variety-detail-copy p {
  color: rgba(248, 241, 229, 0.86);
}

.variety-detail-copy .price {
  color: #fce5bf;
}

.variety-detail-copy .meta {
  color: rgba(248, 241, 229, 0.7);
}

.gourmet-touch {
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(248, 241, 229, 0.18);
}

.gourmet-touch strong {
  display: block;
  margin-bottom: 6px;
  color: #fce5bf;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gourmet-touch p {
  margin: 0;
}

.variety-detail-card .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  min-height: 44px;
  margin: 0;
  z-index: 2;
  background: #fce5bf;
  color: #171310;
}

.home-info-section {
  padding: 18px 0 44px;
}

.home-info-block {
  padding: 16px 0;
  border-top: 1px solid var(--home-line);
  text-align: center;
}

.home-info-block h2 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
}

.home-info-block p {
  margin: 0 0 12px;
  color: rgba(248, 241, 229, 0.78);
}

.home-info-block a:not(.button),
.home-contact-item {
  color: #fffaf0;
  text-underline-offset: 3px;
}

.home-zones-block p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  padding-top: 18px;
}

.home-contact-item {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fffaf0;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.home-contact-item svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pizza-card.is-sold-out .pizza-photo img {
  filter: grayscale(0.25) opacity(0.72);
}

.pizza-body {
  padding: 16px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.pizza-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.pizza-title h3 {
  margin: 0;
  font-size: 17px;
  font-family: Georgia, "Times New Roman", serif;
}

.price {
  font-weight: 850;
  color: var(--accent-dark);
  white-space: nowrap;
}

.price-stack {
  display: grid;
  gap: 1px;
  justify-items: end;
  white-space: nowrap;
}

.anchor-price {
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.meta {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.tag {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: fit-content;
  padding: 6px 9px;
  background: var(--accent);
  color: #fffaf0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-muted {
  background: #2b2521;
}

.stock-note {
  margin: -4px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.stock-note-muted {
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.stepper {
  display: grid;
  grid-template-columns: 36px 48px 82px;
  align-items: center;
}

.mini-stepper {
  grid-template-columns: 26px 34px 26px;
}

.qty-button {
  min-height: 36px;
  padding: 0;
  background: var(--ink);
}

.add-button {
  padding: 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.qty-button:disabled,
.stepper .qty-input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.stepper .qty-input {
  min-height: 36px;
  padding: 0 4px;
  text-align: center;
  border-left: 0;
  border-right: 0;
}

.panel {
  padding: 20px;
}

.checkout-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(9, 7, 6, 0.72);
  padding: 18px;
  overflow-y: auto;
}

.checkout-layer.is-open,
.checkout-layer.is-server-open:not(.is-closed) {
  display: grid;
}

.checkout-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(39, 34, 30, 0.22);
  padding: 22px;
}

.site-shell .checkout-card {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.checkout-card h2 {
  margin: 8px 0 14px;
  text-align: center;
  color: var(--ink);
}

.site-shell .checkout-card h2 {
  color: var(--ink);
}

.checkout-panel {
  display: grid;
  gap: 16px;
}

.checkout-panel[hidden] {
  display: none;
}

#customer-fields[hidden] {
  display: none;
}

.checkout-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 4px auto 12px;
}

.checkout-layer.is-cart-step .checkout-logo {
  display: none;
}

.checkout-recap {
  display: grid;
  gap: 4px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.site-shell .checkout-recap,
.site-shell .cart-line,
.site-shell .confirmation-lines,
.site-shell .final-summary,
.site-shell .customer-saved {
  color: var(--muted);
}

.site-shell .cart-line,
.site-shell .final-summary {
  border-color: var(--line);
}

.site-shell .checkout-card label,
.site-shell .final-summary strong {
  color: var(--ink);
}

.site-shell .checkout-card input,
.site-shell .checkout-card textarea,
.site-shell .checkout-card select {
  background: #fffdf8;
  color: var(--ink);
  border-color: var(--line);
}

.site-shell .checkout-card input::placeholder,
.site-shell .checkout-card textarea::placeholder {
  color: rgba(39, 34, 30, 0.42);
}

.site-shell .text-button {
  color: var(--accent-dark);
}

.site-shell .checkout-card button,
.site-shell .checkout-card .button,
.site-shell .checkout-card input[type="submit"] {
  background: var(--accent);
  color: #fffaf0;
}

.site-shell .checkout-card button.secondary,
.site-shell .checkout-card .button.secondary {
  background: var(--ink);
}

.site-shell .checkout-card .qty-button {
  background: var(--ink);
  color: #fffaf0;
}

.site-shell .checkout-card .stepper .qty-input {
  background: #fffdf8;
  color: var(--ink);
  border-color: var(--line);
}

.cart-panel {
  display: grid;
  gap: 10px;
  padding-bottom: 4px;
}

.cart-lines {
  display: grid;
  gap: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr 92px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.cart-line:first-child {
  border-top: 0;
}

.mini-stepper .qty-button {
  width: 26px;
  min-height: 26px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}

.mini-stepper .qty-input {
  min-height: 26px;
  padding: 4px;
  font-size: 12px;
}

.customer-saved {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(67, 97, 61, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.customer-saved[hidden] {
  display: none;
}

.customer-confirm-row {
  display: flex;
  align-items: end;
}

.customer-confirm-row[hidden] {
  display: none;
}

.icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fffaf0;
}

.checkout-recap p,
.confirmation-lines p {
  margin: 0;
}

.checkout-recap p:first-child,
.confirmation-lines p:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirmation-lines {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.compact-button {
  width: fit-content;
  min-height: 38px;
  padding: 9px 13px;
}

.checkout-final h3 {
  margin: 0;
  font-size: 24px;
}

.final-summary {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.final-summary p {
  margin: 0;
}

.final-summary strong {
  color: var(--ink);
}

.final-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.link-actions,
.payment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.text-button {
  width: auto;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.payment-actions button {
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: #fffaf0;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

.distributor-entry-grid {
  margin: 24px 0;
}

.public-distributor-page {
  min-height: 100vh;
  padding: 22px 0 56px;
  background: #171310;
  color: #f8f1e5;
}

.public-distributor-page .text-button {
  color: #fce5bf;
}

.public-distributor-page .lead {
  color: rgba(248, 241, 229, 0.82);
}

.distributor-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.distributor-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.distributor-hero {
  padding: 10px 0 28px;
}

.distributor-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 34px;
  align-items: center;
}

.distributor-hero-copy h1 {
  max-width: 680px;
  margin: 0 0 16px;
  color: #fffaf0;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: #e05a44;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.distributor-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.distributor-hero-actions .mini {
  max-width: 360px;
  color: rgba(248, 241, 229, 0.72);
}

.distributor-pizza-orbit {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
}

.distributor-pizza-orbit::before {
  content: "";
  position: absolute;
  inset: 18% 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 229, 191, 0.18), rgba(252, 229, 191, 0.02) 58%, transparent 70%);
  filter: blur(10px);
  opacity: 0.85;
  z-index: -1;
}

.orbit-pizza {
  position: absolute;
  display: block;
  width: 48%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.32));
  transform-origin: 50% 50%;
  animation: distributorPizzaFloat 12s ease-in-out infinite;
}

.orbit-pizza-main {
  width: 72%;
  left: 15%;
  top: 16%;
  z-index: 5;
  animation-duration: 18s;
}

.orbit-pizza-two {
  width: 43%;
  left: 0;
  top: 2%;
  z-index: 2;
  opacity: 0.94;
  animation-delay: -4s;
}

.orbit-pizza-three {
  width: 39%;
  right: 2%;
  top: 4%;
  z-index: 3;
  opacity: 0.96;
  animation-delay: -7s;
}

.orbit-pizza-four {
  width: 42%;
  left: 4%;
  bottom: 0;
  z-index: 4;
  opacity: 0.96;
  animation-delay: -10s;
}

.orbit-pizza-five {
  width: 38%;
  right: 8%;
  bottom: 4%;
  z-index: 1;
  opacity: 0.9;
  animation-delay: -13s;
}

@keyframes distributorPizzaFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-pizza {
    animation: none;
  }
}

.distributor-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.distributor-value-grid div,
.distributor-panel {
  background: #211914;
  border: 1px solid rgba(248, 241, 229, 0.16);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.distributor-value-grid div {
  padding: 18px;
}

.distributor-value-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #fffaf0;
}

.distributor-value-grid p {
  margin: 0;
  color: rgba(248, 241, 229, 0.74);
  line-height: 1.45;
}

.distributor-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -8px 0 28px;
  padding: 14px;
  border: 1px solid rgba(248, 241, 229, 0.16);
  background: rgba(248, 241, 229, 0.04);
}

.distributor-contact-strip a {
  color: #fce5bf;
  font-weight: 750;
  text-align: center;
  text-decoration-color: rgba(252, 229, 191, 0.45);
  text-underline-offset: 4px;
}

.distributor-contact-strip-light {
  margin-top: -12px;
  border-color: rgba(42, 35, 31, 0.14);
  background: rgba(255, 252, 246, 0.72);
}

.distributor-contact-strip-light a {
  color: #7e2a20;
  text-decoration-color: rgba(126, 42, 32, 0.34);
}

.distributor-catalog-page {
  padding-top: 26px;
  background: #fbf5eb;
  color: #2a231f;
}

.distributor-catalog-page .text-button {
  color: #7e2a20;
}

.distributor-catalog-page .lead {
  color: rgba(42, 35, 31, 0.78);
}

.distributor-catalog-hero {
  max-width: 760px;
  margin: 10px auto 28px;
  text-align: center;
}

.distributor-catalog-logo {
  width: min(340px, 82vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.distributor-catalog-hero h1 {
  margin: 0 0 10px;
  color: #241c17;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
}

.distributor-catalog-hero h2 {
  margin: 24px 0 8px;
  color: #241c17;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.05;
}

.distributor-catalog-global-copy {
  max-width: 660px;
  margin: 0 auto 18px;
}

.distributor-catalog-page .distributor-panel {
  background: rgba(255, 252, 246, 0.86);
  border-color: rgba(42, 35, 31, 0.14);
  color: #2a231f;
  box-shadow: 0 18px 42px rgba(42, 35, 31, 0.08);
}

.distributor-catalog-page .distributor-panel h2,
.distributor-catalog-page .distributor-panel label,
.distributor-catalog-page .distributor-panel table {
  color: #2a231f;
}

.distributor-catalog-page .distributor-panel th,
.distributor-catalog-page .distributor-panel .mini {
  color: rgba(42, 35, 31, 0.64);
}

.distributor-catalog-page .distributor-panel th,
.distributor-catalog-page .distributor-panel td {
  border-color: rgba(42, 35, 31, 0.12);
}

.distributor-catalog-page .distributor-panel input,
.distributor-catalog-page .distributor-panel select {
  border-color: rgba(42, 35, 31, 0.18);
}

.distributor-order-page-panel {
  padding: 18px;
}

.distributor-order-controls {
  margin-bottom: 14px;
}

.distributor-order-table-wrap {
  overflow-x: auto;
}

.distributor-varieties-table {
  min-width: 760px;
}

.distributor-varieties-table th:nth-child(2),
.distributor-varieties-table th:nth-child(3),
.distributor-varieties-table td:nth-child(2),
.distributor-varieties-table td:nth-child(3) {
  width: 170px;
  text-align: right;
}

.distributor-variety-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.distributor-variety-line img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.distributor-variety-line strong {
  display: block;
  color: inherit;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.distributor-variety-line p {
  margin: 3px 0 0;
  color: rgba(42, 35, 31, 0.62);
  font-size: 13px;
  line-height: 1.3;
}

.distributor-order-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.distributor-order-footer .button,
.distributor-order-footer button,
.distributor-order-footer .text-button {
  width: auto;
}

.distributor-panel {
  color: #f8f1e5;
}

.distributor-panel h2 {
  color: #fffaf0;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.distributor-panel label {
  color: #f8f1e5;
}

.distributor-panel input,
.distributor-panel textarea,
.distributor-panel select {
  border-color: rgba(248, 241, 229, 0.2);
}

.distributor-panel table {
  color: #f8f1e5;
}

.distributor-panel th,
.distributor-panel td {
  border-color: rgba(248, 241, 229, 0.16);
}

.distributor-panel th,
.distributor-panel .mini {
  color: rgba(248, 241, 229, 0.68);
}

.distributor-login-card,
.distributor-apply-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.distributor-login-card h2,
.distributor-apply-block h2 {
  margin-top: 0;
}

.distributor-login-card {
  max-width: 760px;
}

.distributor-landing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 4px;
}

.distributor-order-card {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.distributor-order-card table input {
  min-width: 86px;
}

.distributor-apply-heading {
  max-width: 720px;
}

.distributor-apply-heading p:last-child {
  margin-top: 0;
  color: rgba(248, 241, 229, 0.78);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row span {
  line-height: 1.35;
}

.distributor-login-card button,
.distributor-apply-block button,
.distributor-order-card button {
  width: auto;
}

#delivery-fields,
#takeaway-fields {
  display: grid;
  gap: 16px;
}

#delivery-fields[hidden],
#takeaway-fields[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 750;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

.field-error {
  margin: -2px 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}

.field-note {
  min-height: 18px;
  margin: -8px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.field-note.is-error {
  color: var(--accent-dark);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.referral-tools {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.referral-tools h3 {
  margin-top: 0;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.email-copy-box {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

.email-copy-box textarea {
  min-height: 54px;
  font-size: 13px;
}

.referral-token-link {
  font-weight: 850;
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.qty-list {
  display: grid;
  gap: 10px;
}

.qty-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.qty-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.qty-row strong {
  display: block;
}

.qty-row span {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  padding: 16px 18px;
  margin: 0 0 20px;
  border-left: 4px solid var(--green);
}

.floating-order {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  width: min(440px, calc(100% - 28px));
  min-height: 54px;
  transform: translateX(-50%);
  box-shadow: 0 14px 36px rgba(39, 34, 30, 0.18);
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  background: #c64232;
  color: #fffaf0;
  padding: 11px 16px;
  font-weight: 750;
}

.floating-order.is-disabled {
  background: #c7bdae;
  color: #fffdf8;
  cursor: default;
}

.admin {
  padding: 24px 0 60px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin: 0;
  font-size: 42px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.tabs a {
  padding: 10px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
}

.tabs a.active {
  background: var(--ink);
  color: #fffaf0;
}

.delivery-calendar {
  display: grid;
  gap: 8px;
}

.delivery-calendar h3 {
  margin-bottom: 0;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini {
  font-size: 13px;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  display: block;
  font-size: 26px;
  margin-top: 4px;
}

.costs-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.costs-summary .summary-card {
  padding: 11px 12px;
}

.costs-summary .summary-card span {
  font-size: 12px;
}

.costs-summary .summary-card strong {
  font-size: 20px;
}

@media (max-width: 820px) {
  .costs-summary {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

.order-card {
  padding: 16px;
  margin-bottom: 12px;
}

.order-card.is-cancelled {
  opacity: 0.68;
}

.order-card.is-cancelled h3 {
  text-decoration: line-through;
}

.order-card h3 {
  margin: 0 0 6px;
}

.order-links {
  gap: 10px;
  margin: 8px 0;
}

.order-links a {
  font-size: 14px;
  font-weight: 750;
  color: var(--accent);
  text-underline-offset: 3px;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.pagination a {
  min-width: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.pagination a.active {
  background: var(--ink);
  color: #fffaf0;
}

.qty-stock-cell {
  display: grid;
  gap: 4px;
}

.order-quick-update {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(110px, 0.7fr) minmax(130px, 0.8fr) minmax(110px, 0.7fr) minmax(190px, 1.4fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.order-quick-update label {
  margin: 0;
}

.order-quick-update .row-actions {
  margin: 0;
  gap: 8px;
  flex-wrap: nowrap;
}

.order-quick-update .row-actions button {
  white-space: nowrap;
}

@media (max-width: 920px) {
  .variety-detail-layer {
    place-items: start center;
    padding-top: calc(env(safe-area-inset-top) + 54px);
  }

  .variety-detail-card {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - env(safe-area-inset-top) - 72px);
  }

  .order-quick-update {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-quick-update .row-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 11, 0.72);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 22px;
}

.admin-modal-card h2 {
  margin-right: 46px;
}

.logistics-page .panel {
  margin-bottom: 18px;
}

.route-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.route-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.route-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: grab;
}

.route-item.is-dragging {
  opacity: 0.55;
}

.route-item.is-done .route-main {
  text-decoration: line-through;
  opacity: 0.58;
}

.hide-completed-routes .route-item[data-completed="1"] {
  display: none;
}

.switch-control {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.switch-control input {
  width: 16px;
  height: 16px;
}

.route-position {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.route-main p {
  margin: 4px 0 0;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.route-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 38vh;
    padding: 20px 18px 12px;
  }

  .product-actions {
    align-items: stretch;
  }

  .route-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .route-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
