
.page-hero--menu {
  padding: 0;
  overflow: hidden;
}

.menu-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 76px;
  min-height: 510px;
}

.menu-hero-copy {
  position: relative;
  z-index: 2;
  padding: 64px 0 90px;
}

.page-hero--menu h1 {
  max-width: 720px;
}

.menu-hero-lead {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.menu-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
}

.menu-hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.menu-hero-facts svg,
.menu-hero-actions svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-hero-actions {
  display: flex;
  margin-top: 26px;
}

.menu-hero-actions .button {
  gap: 10px;
}

.menu-hero-visual {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: 0 18px 42px 0;
}

.menu-hero-photo {
  position: relative;
  height: 365px;
  overflow: hidden;
  border-radius: 36% 12% 36% 12%;
  box-shadow: 0 22px 50px rgba(64, 49, 35, 0.18);
}

.menu-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(241, 223, 196, 0.3), transparent 40%);
  pointer-events: none;
}

.menu-hero-note {
  bottom: 20px;
}

.menu-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.menu-catalog-section {
  padding-top: 0;
}

.menu-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin: -36px 0 34px;
  padding: 18px 20px;
  border-radius: 20px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 18px 38px rgba(40, 69, 54, 0.22);
}

.filters {
  display: flex;
  flex: 1 1 560px;
  flex-wrap: wrap;
  gap: 9px;
}

.menu-search {
  position: relative;
  flex: 1 1 230px;
  max-width: 280px;
  margin-left: auto;
}

.menu-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--text);
  background: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.menu-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.menu-search svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--green);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.no-js-fallback {
  display: none;
}

.no-js .filters,
.no-js .menu-search,
.no-js .header-cart,
.no-js .product-cart-control {
  display: none;
}

.no-js .cake-note[hidden] {
  display: block;
}

.no-js .no-js-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sand);
}

.no-js .no-js-fallback p {
  margin: 0;
  line-height: 1.5;
}

.cake-note {
  margin: -10px 0 24px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  color: var(--muted);
  background: var(--sand);
  font-size: 14px;
  line-height: 1.5;
}

.cake-note strong {
  color: var(--green);
}

.cake-note[hidden] {
  display: none;
}

.menu-no-results {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--sand);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.menu-no-results[hidden] {
  display: none;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: transparent;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button.active,
.filter-button:hover {
  color: var(--green);
  border-color: var(--cream);
  background: var(--cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 14px 38px rgba(64, 49, 35, 0.08);
  transition: 0.25s;
}

.product-card[hidden] {
  display: none;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(64, 49, 35, 0.13);
}

.product-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(145deg, #f5dfbc, #e7b779);
}

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

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 26, 20, 0.15), transparent 50%);
}

.product-tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 250px;
  padding: 19px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.product-tag--inline {
  position: static;
  flex: 0 1 auto;
  color: var(--green);
  background: var(--sand);
}

.product-weight {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 20px;
  line-height: 1.2;
}

.product-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.product-price {
  font-size: 20px;
  font-weight: 900;
}

.add-to-cart {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.add-to-cart:hover {
  background: var(--green-dark);
}

.product-cart-control {
  display: flex;
  justify-content: flex-end;
  min-width: 106px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 36px 34px 36px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.product-cart-control .quantity-control {
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(184, 91, 45, 0.24);
}

.quantity-control button {
  width: 36px;
  height: 40px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.quantity-control button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(108, 55, 30, 0.24);
  font-weight: 900;
}

.header-cart:hover {
  background: var(--orange-dark);
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: white;
  font-size: 11px;
}

.cart-overlay {
  position: fixed;
  z-index: 89;
  inset: 0;
  background: rgba(18, 25, 21, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100vh;
  padding: 24px;
  overflow: auto;
  background: var(--cream);
  box-shadow: -18px 0 55px rgba(31, 24, 18, 0.22);
  transform: translateX(105%);
  transition: 0.3s;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h3 {
  margin: 0;
  color: var(--green);
  font-size: 28px;
}

.cart-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: white;
  font-size: 23px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cart-empty {
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item strong {
  color: var(--green);
  font-size: 14px;
}

.cart-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item b {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 14px;
}

.quantity-control--cart {
  align-self: center;
  grid-template-columns: 34px 30px 34px;
  min-height: 38px;
  border: 1px solid var(--line);
  color: var(--green);
  background: var(--sand);
}

.quantity-control--cart button {
  width: 34px;
  height: 38px;
}

.quantity-control--cart button:hover {
  background: rgba(40, 69, 54, 0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}

.cart-order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cart-order.disabled,
.cart-order:disabled {
  pointer-events: none;
  opacity: 0.45;
}

.checkout-form[hidden],
#cartView[hidden],
.checkout-field[hidden] {
  display: none;
}

.checkout-form {
  padding: 20px 0 8px;
}

.checkout-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.checkout-fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.checkout-fieldset legend,
.checkout-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.checkout-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.checkout-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-choice {
  position: relative;
  cursor: pointer;
}

.checkout-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-choice span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green);
  background: white;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s;
}

.checkout-choice input:checked + span {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.checkout-choice input:focus-visible + span {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.checkout-field {
  display: block;
  margin-bottom: 16px;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: white;
  font: inherit;
  font-size: 14px;
}

.checkout-field textarea {
  min-height: 74px;
  resize: vertical;
}

.checkout-field input:focus-visible,
.checkout-field textarea:focus-visible,
.checkout-field select:focus-visible {
  border-color: var(--green);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.checkout-product-options:empty {
  display: none;
}

.checkout-product-options h4 {
  margin: 4px 0 10px;
  color: var(--green);
  font-size: 16px;
}

.checkout-option-group {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sand);
}

.checkout-option-group > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.4;
}

.checkout-field--nested:last-child {
  margin-bottom: 0;
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 900;
}

.checkout-summary strong {
  color: var(--green);
  font-size: 18px;
}

.checkout-back {
  display: block;
  margin: 14px auto 0;
  padding: 8px 12px;
  border: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-back:hover {
  text-decoration: underline;
}

.checkout-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.checkout-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.checkout-consent a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1050px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .menu-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .menu-hero-copy {
    padding: 58px 0 40px;
  }

  .menu-hero-visual {
    padding: 0 28px 42px 0;
    margin-bottom: 28px;
  }

  .menu-hero-photo {
    height: 320px;
  }
}

@media (max-width: 760px) {
  .menu-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    flex: 0 0 auto;
    width: 100%;
  }

  .menu-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

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

@media (max-width: 650px) {
  .menu-hero-grid {
    min-height: auto;
  }

  .menu-hero-copy {
    padding: 44px 0 34px;
  }

  .page-hero--menu h1 {
    margin-top: 12px;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
    letter-spacing: -1.5px;
  }

  .menu-hero-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .menu-hero-facts {
    display: grid;
    gap: 12px;
    margin-top: 20px;
  }

  .menu-hero-actions {
    margin-top: 24px;
  }

  .menu-hero-actions .button {
    width: 100%;
  }

  .menu-hero-visual {
    padding: 0 18px 32px 0;
    margin-bottom: 22px;
  }

  .menu-hero-photo {
    height: 250px;
    border-radius: 30% 10% 30% 10%;
  }

  .menu-hero-note {
    bottom: 10px;
  }

  .page-hero--menu + .section {
    padding-top: 0;
  }

  .menu-toolbar {
    position: sticky;
    top: 82px;
    z-index: 40;
    margin: -28px -14px 24px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(40, 69, 54, 0.97);
    box-shadow: 0 12px 28px rgba(40, 69, 54, 0.2);
    backdrop-filter: blur(12px);
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .logo-copy {
    display: none;
  }

  .header-inner,
  .header-actions {
    gap: 8px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .header-cart {
    gap: 6px;
    padding: 0 9px;
    font-size: 12px;
  }

  .cart-panel {
    padding: 18px;
  }

  .checkout-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
