
:root {
  --header-offset: 72px;
  --green: #29442F;
  --cream: #F0EBDD;
  --sage: #A8B99A;
  --dark: #19251C;
  --white: #FFFFFF;
  --muted: #687268;
  --border: #DFE4D9;
  --whatsapp: #16834A;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  background: #FAF9F4;
  color: var(--dark);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
  cursor: pointer;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid #B77932;
  outline-offset: 4px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-offset);
  padding: 10px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--green);
  color: var(--cream);
}

.brand {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: clamp(7px, 2vw, 12px);
}

.brand img {
  flex: 0 0 auto;
  width: clamp(42px, 13vw, 58px);
  height: clamp(42px, 13vw, 58px);
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}

.brand-name {
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.brand-tagline {
  margin-top: 5px;
  color: var(--sage);
  font: 700 clamp(0.45rem, 2.1vw, 0.56rem) "Segoe UI", sans-serif;
  letter-spacing: clamp(0.08em, 0.5vw, 0.14em);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.5vw, 28px);
  flex: 0 0 auto;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-bottom: 1px solid var(--cream);
  min-height: 44px;
  padding: 9px 1px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--cream);
  font-size: clamp(0.82rem, 2.3vw, 1rem);
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.header-link:hover {
  color: var(--sage);
  border-color: var(--sage);
  opacity: 0.92;
}

.header-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  min-height: 350px;
  padding: 52px 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(ellipse at 85% 15%, #50694B 0, transparent 42%),
    var(--green);
  color: var(--cream);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  overflow-wrap: anywhere;
  color: var(--sage);
}

.hero h1 {
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: 1.06;
  letter-spacing: clamp(-1.5px, -0.25vw, -0.5px);
  overflow-wrap: anywhere;
}

.hero > p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 750;
  transition: transform 0.2s, opacity 0.2s;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-cream {
  background: var(--cream);
  color: var(--green);
}

.menu-section, .order-section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 36px 5%;
}

.contact-section {
  padding: 48px 5%;
  background: var(--green);
  color: var(--cream);
}

.contact-inner {
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

.contact-intro {
  margin-bottom: 24px;
}

.contact-intro .eyebrow {
  color: var(--sage);
  margin: 0 0 5px;
}

.contact-intro h2 {
  margin: 0;
  font: 700 clamp(1.9rem, 6vw, 3rem)/1.15 Georgia, serif;
}

.contact-intro .muted {
  margin: 8px 0 0;
  color: #D1D9CE;
}

.contact-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.contact-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid #FFFFFF30;
  border-radius: 12px;
  background: #FFFFFF0C;
  transition: background-color 180ms ease, transform 180ms ease;
}

a.contact-card:hover {
  background: #FFFFFF18;
  transform: translateY(-2px);
}

.contact-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.contact-card > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-label {
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-arrow {
  margin-left: auto;
  color: var(--sage);
  font-size: 1.2rem;
}

.maps-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 750;
}

.maps-button span {
  font-size: 1.3rem;
  line-height: 1;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  min-width: 0;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 5px 0 20px;
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

.category-button {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--green);
  text-align: left;
  box-shadow: 0 3px 12px #19251C08;
  transition: border-color 0.18s, transform 0.18s;
}

.category-button:hover {
  transform: translateY(-2px);
  border-color: var(--sage);
}

.category-image-frame {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #E5E8DD;
}

.category-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-image-pending {
  padding: 8px;
  background: #E6E9DF;
  color: #53634F;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}

.category-label {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.category-button.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.category-button.active .category-label {
  background: var(--green);
  color: var(--cream);
}

.all-category-button {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  border-radius: 6px;
}

.all-category-button .category-label {
  min-height: 44px;
  padding: 8px 14px;
}

.products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.product-results {
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

.products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
}

.products-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.products-heading h2:focus {
  outline: 3px solid #B77932;
  outline-offset: 4px;
}

.products-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.back-categories {
  min-height: 44px;
  color: var(--green);
  font-weight: 700;
}

.product-card {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 5px 18px #19251C08;
}

.product-category {
  margin: 0 0 8px;
  color: #56704E;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-description {
  flex: 1;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.product-option {
  width: 100%;
  margin: 0 0 12px;
}

.product-option label {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
}

.product-option select {
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #C6D0C0;
  border-radius: 6px;
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: 16px;
}

.product-option select:focus-visible {
  outline: 3px solid #B77932;
  outline-offset: 2px;
}

.product-bottom {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 800;
}

.add-button {
  min-height: 44px;
  padding: 9px 14px;
  background: var(--green);
  color: var(--cream);
  border: 0;
  border-radius: 6px;
}

.order-section {
  max-width: 900px;
  margin: 0 auto 36px;
  background: #F0F2E9;
  border-radius: 14px;
}

.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #52684C;
  text-decoration: underline;
}

.order-items {
  display: grid;
  gap: 12px;
}

.order-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.order-row h3 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.order-row p {
  margin: 3px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.quantity-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quantity-controls button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #C6D0C0;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
}

.quantity-controls .remove-button {
  width: auto;
  min-width: 76px;
  padding: 0 12px;
  border-radius: 6px;
  color: #7D352F;
}

.order-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 18px 0;
  font-size: 1.05rem;
}

.order-total strong {
  color: var(--green);
  font-size: 1.5rem;
}

.delivery-form {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FAF9F4;
}

.delivery-heading h3 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.delivery-heading p {
  margin: 5px 0 16px;
}

.delivery-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.delivery-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.delivery-field {
  min-width: 0;
}

.delivery-field label > span[aria-hidden="true"] {
  color: #9D3D32;
}

.delivery-field input,
.delivery-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid #C6D0C0;
  border-radius: 6px;
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: 16px;
}

.delivery-field textarea {
  min-height: 92px;
  resize: vertical;
}

.delivery-field input:focus-visible,
.delivery-field textarea:focus-visible {
  outline: 3px solid #B77932;
  outline-offset: 2px;
}

.delivery-field input[aria-invalid="true"],
.delivery-field textarea[aria-invalid="true"] {
  border-color: #9D3D32;
}

.delivery-field-wide {
  grid-column: 1 / -1;
}

.delivery-error {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #8B3028;
  font-size: 0.9rem;
  font-weight: 650;
}

.button-whatsapp {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  white-space: normal;
  overflow-wrap: anywhere;
  background: var(--whatsapp);
  color: var(--white);
}

#order-message {
  text-align: center;
  overflow-wrap: anywhere;
}

.footer {
  padding: 30px 7%;
  background: var(--green);
  color: var(--cream);
  text-align: center;
}

.footer p {
  margin-bottom: 0;
  color: var(--sage);
}

.floating-cart-button {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 28px);
  min-height: 56px;
  padding: 9px 15px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 8px 24px #10191045;
  white-space: nowrap;
}

.floating-cart-title {
  font-weight: 800;
}

.floating-cart-count {
  color: var(--sage);
  font-size: 0.82rem;
}

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

.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: #F0F2E9;
  color: var(--dark);
  box-shadow: -16px 0 42px #1019102B;
}

.cart-dialog::backdrop {
  background: #10191099;
  backdrop-filter: blur(2px);
}

.cart-dialog .order-section {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 24px 26px calc(28px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
}

.cart-heading-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-close-button {
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 1px solid #C6D0C0;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1;
}

.continue-delivery {
  width: 100%;
  margin-bottom: 18px;
  scroll-margin-top: 16px;
}

@media (min-width: 600px) {
  .contact-section {
    padding: 60px 6%;
  }

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

  .contact-card:nth-child(2) {
    grid-row: span 2;
  }

  .menu-section, .order-section {
    padding: 48px 6%;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    padding: 20px;
  }

  .order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
  }

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

  .delivery-field-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  :root {
    --header-offset: 84px;
  }

  .header {
    min-height: 84px;
    padding: 14px 7%;
    gap: 20px;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .brand-name {
    font-size: 1.9rem;
  }

  .brand-tagline {
    margin-top: 7px;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
  }

  .hero {
    min-height: 410px;
    padding: 76px 8%;
  }

  .menu-section, .order-section {
    padding: 60px 7%;
  }

  .contact-section {
    padding: 72px 7%;
  }

  .contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-card:nth-child(2) {
    grid-row: auto;
  }

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

  .categories {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .product-card {
    padding: 22px;
  }
}

@media (max-width: 599px) {
  .cart-dialog {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: min(88dvh, 820px);
    padding-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 42px #1019102B;
  }

  .cart-dialog .order-section {
    min-height: auto;
    padding: 18px 5% calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
  }

  .floating-cart-button {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    min-height: 52px;
    padding: 8px 12px;
  }
}

@media (max-width: 420px) {
  .header-actions {
    gap: 11px;
  }

  .header-link {
    gap: 5px;
    font-size: 0.78rem;
  }

  .header-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .brand-tagline {
    display: none;
  }
}

@media (max-width: 359px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .header-link {
    font-size: 0.78rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header {
    gap: 8px;
    padding-right: 4%;
    padding-left: 4%;
  }

  .header-link {
    gap: 4px;
    font-size: 0.72rem;
  }

  .header-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .brand-tagline {
    display: none;
  }

  .product-card,
  .delivery-form {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
