:root {
  --bg: #c9b49c;
  --paper: #fef8f0;
  --paper-soft: #fffdf9;
  --paper-alt: #fbf0e1;
  --hero: linear-gradient(180deg, #fdf0de 0%, #fef7ec 100%);
  --text: #2b2118;
  --muted: #6b584a;
  --line: #eedcc4;
  --line-strong: #f2dfc6;
  --accent: #e07b24;
  --accent-strong: #c96812;
  --shadow: 0 30px 80px rgba(60, 40, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

.floating-cart,
.cart-toast {
  position: fixed;
  right: 20px;
  z-index: 20;
}

.floating-cart {
  right: 20px;
  bottom: 20px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-cart.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.floating-cart-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(224, 123, 36, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 240, 0.92);
  box-shadow: 0 16px 36px rgba(60, 40, 20, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-10px);
  opacity: 0.82;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.floating-cart-button.cart-bump {
  animation: cart-bump 360ms ease;
}

.floating-cart.is-active .floating-cart-button,
.floating-cart-button:hover {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 20px 42px rgba(60, 40, 20, 0.22);
}

.floating-cart-icon {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  width: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
}

.floating-cart-icon svg {
  width: 24px;
  height: 24px;
}

.floating-cart-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.floating-cart-copy strong {
  font-size: 0.95rem;
}

.floating-cart-copy span {
  color: var(--muted);
}

.cart-toast {
  right: 20px;
  bottom: 108px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #2b2118;
  color: #fff;
  box-shadow: 0 16px 36px rgba(43, 33, 24, 0.28);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cart-toast.is-lifted {
  bottom: 28px;
}

.cart-flyer {
  position: absolute;
  z-index: 25;
  border-radius: 50%;
  border: 5px solid #f5e7d4;
  pointer-events: none;
  box-shadow: 0 18px 36px rgba(43, 33, 24, 0.18);
  opacity: 0.95;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1), opacity 820ms ease;
}

.cart-flyer.is-flying {
  opacity: 0.22;
  transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(0.2);
}

.cart-flyer.entradas {
  background: radial-gradient(circle at 50% 45%, #f8efe5 0%, #edd9c4 30%, #d96045 31%, #89aa56 54%, #2e2c30 100%);
}

.cart-flyer.pastas {
  background: radial-gradient(circle at 50% 45%, #f1de86 0%, #d4af58 35%, #73934d 36%, #5d7a42 58%, #2e2c30 100%);
}

.cart-flyer.principales {
  background: radial-gradient(circle at 50% 45%, #e39948 0%, #c06921 35%, #86a54e 36%, #678540 56%, #2e2c30 100%);
}

.cart-flyer.postres,
.cart-flyer.bebidas {
  background: radial-gradient(circle at 50% 45%, #eab666 0%, #cb8b3c 29%, #8cad58 31%, #6b8842 54%, #2e2c30 100%);
}

@keyframes cart-bump {
  0% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(0) scale(1.06);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 24px auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 28px;
}

.hero-section {
  background: var(--hero);
  padding: 28px 72px 72px;
}

.topbar,
.hero-stats,
.hero-actions,
.section-head,
.featured-bottom,
.menu-card-bottom,
.panel-head,
.summary-line,
.cart-item-head,
.cart-meta,
.quantity-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.topbar,
.hero-actions,
.hero-stats,
.featured-bottom,
.menu-card-bottom,
.panel-head,
.summary-line,
.cart-item-head,
.cart-meta,
.quantity-controls {
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 18px/1 "Outfit", sans-serif;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
}

.brand-copy span,
.topnav a,
.section-copy,
.delivery-copy p,
.delivery-points,
.menu-card p,
.featured-card p,
.cart-meta,
.checkout-form label,
.transfer-card p,
.empty-state span {
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-grid,
.delivery-section,
.checkout-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hero-grid {
  align-items: center;
  padding-top: 40px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow-pill,
.menu-tab,
.count-pill {
  border-radius: 999px;
}

.eyebrow-pill {
  display: inline-flex;
  padding: 8px 16px;
  background: #fbe6cc;
  color: #b85e10;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.12;
}

.hero-copy p,
.section-copy,
.delivery-copy p {
  line-height: 1.7;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.tile-button,
.quantity-controls button {
  cursor: pointer;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
}

.primary-button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(224, 123, 36, 0.32);
}

.secondary-button {
  border: 1.5px solid var(--accent);
  color: #b85e10;
}

.hero-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.hero-stats strong {
  font: 700 28px/1 "Outfit", sans-serif;
}

.hero-art,
.delivery-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring,
.hero-disc,
.hero-plate,
.delivery-disc,
.delivery-photo,
.featured-plate,
.menu-thumb {
  border-radius: 50%;
}

.hero-ring {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1.5px dashed #e7cda9;
}

.hero-disc,
.delivery-disc {
  position: absolute;
  background: #fbe6cc;
}

.hero-disc {
  width: 380px;
  height: 380px;
}

.hero-plate,
.delivery-photo {
  position: relative;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 50% 45%, #f1de86 0%, #d4af58 34%, #c86e2a 35%, #6f8a43 58%, #2e2c30 100%);
}

.floating-card {
  position: absolute;
  left: 12px;
  bottom: 68px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(80, 50, 20, 0.14);
  font-weight: 700;
}

.featured-section,
.menu-section,
.delivery-section,
.checkout-section {
  padding: 80px 72px;
}

.menu-section,
.checkout-section {
  background: var(--paper-alt);
}

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-kicker {
  margin: 0 0 8px;
  color: #b85e10;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.featured-card,
.menu-card,
.panel {
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
}

.featured-card {
  position: relative;
  margin-top: 78px;
  padding: 96px 22px 24px;
  border-radius: 22px;
}

.featured-plate {
  position: absolute;
  top: -72px;
  left: 50%;
  width: 156px;
  height: 156px;
  transform: translateX(-50%);
  border: 6px solid #f5e7d4;
}

.menu-thumb.entradas,
.featured-plate.entradas {
  background: radial-gradient(circle at 50% 45%, #f8efe5 0%, #edd9c4 30%, #d96045 31%, #89aa56 54%, #2e2c30 100%);
}

.menu-thumb.pastas,
.featured-plate.pastas {
  background: radial-gradient(circle at 50% 45%, #f1de86 0%, #d4af58 35%, #73934d 36%, #5d7a42 58%, #2e2c30 100%);
}

.menu-thumb.principales,
.featured-plate.principales {
  background: radial-gradient(circle at 50% 45%, #e39948 0%, #c06921 35%, #86a54e 36%, #678540 56%, #2e2c30 100%);
}

.menu-thumb.postres,
.menu-thumb.bebidas,
.featured-plate.postres,
.featured-plate.bebidas {
  background: radial-gradient(circle at 50% 45%, #eab666 0%, #cb8b3c 29%, #8cad58 31%, #6b8842 54%, #2e2c30 100%);
}

.featured-card h3,
.menu-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 38px 0 44px;
}

.menu-tab {
  padding: 11px 24px;
  border: 1px solid #e7cda9;
  background: transparent;
  color: #5a4536;
}

.menu-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.menu-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
}

.menu-thumb {
  flex: none;
  width: 104px;
  height: 104px;
  border: 5px solid #f5e7d4;
}

.menu-card-copy {
  min-width: 0;
}

.tile-button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.delivery-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.delivery-points {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.panel {
  padding: 24px;
  border-radius: 24px;
}

.panel-head {
  align-items: flex-start;
}

.panel-head-left {
  justify-content: flex-start;
}

.count-pill {
  padding: 10px 12px;
  border: 1px solid rgba(224, 123, 36, 0.18);
  background: #fff4e4;
  color: #875427;
}

.cart-items,
.summary-box,
.checkout-form,
.transfer-details,
.transfer-card,
.empty-state {
  display: grid;
  gap: 14px;
}

.cart-items {
  margin: 22px 0;
}

.cart-item {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(224, 123, 36, 0.14);
}

.summary-box {
  padding-top: 18px;
  border-top: 1px solid rgba(224, 123, 36, 0.14);
}

.total-line {
  color: #b9452d;
}

.quantity-controls {
  justify-content: flex-start;
}

.quantity-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(224, 123, 36, 0.24);
  border-radius: 999px;
  background: #fff;
}

.checkout-form {
  margin-top: 18px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(224, 123, 36, 0.18);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--text);
}

.transfer-details {
  padding: 16px;
  border: 1px solid rgba(224, 123, 36, 0.16);
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.9);
}

.transfer-card h3,
.transfer-card p {
  margin: 0;
}

.transfer-alias {
  display: inline-flex;
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid rgba(224, 123, 36, 0.18);
  border-radius: 12px;
  background: #fff0dc;
  color: #91581c;
}

.full-width {
  width: 100%;
}

.empty-state {
  place-items: center;
  min-height: 170px;
  text-align: center;
  padding: 18px;
  border: 1px dashed rgba(224, 123, 36, 0.24);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.9);
}

.empty-state p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-section,
  .featured-section,
  .menu-section,
  .delivery-section,
  .checkout-section {
    padding: 48px 32px;
  }

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

  .menu-grid,
  .checkout-section,
  .delivery-section,
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .floating-cart,
  .cart-toast {
    right: 12px;
    left: 12px;
  }

  .floating-cart-button {
    width: 100%;
    min-width: 0;
  }

  .page-shell {
    width: min(100% - 16px, 1440px);
    margin: 8px auto;
    border-radius: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    gap: 16px;
  }

  .hero-art,
  .delivery-visual {
    min-height: 280px;
  }

  .hero-ring {
    width: 280px;
    height: 280px;
  }

  .hero-disc,
  .delivery-disc {
    width: 240px;
    height: 240px;
  }

  .hero-plate,
  .delivery-photo {
    width: 220px;
    height: 220px;
  }

  .floating-card {
    position: static;
    margin-top: 200px;
  }

  .featured-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
