.body-font {
  font-family: var(--font-elegant);
}
body {
  font-family: var(--font-elegant);
  margin: 0;
  padding-top: 80px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, #f8efe6 100%);
  color: #4c382f;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #f0e8e3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.menu-header .header-box {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  width: min(1200px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
}
.menu-header .nav-menu {
  grid-column: 2;
  justify-self: center;
}
.menu-header .header-right {
  grid-column: 3;
  justify-self: end;
}
.logo {
  font-size: 24px;
  font-weight: 600;
  color: #8b6f47;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
}
.nav-menu a {
  text-decoration: none;
  color: #483228;
  font-size: 16px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-menu a:hover {
  color: #4a3426;
}
.nav-menu a.active {
  color: #804220;
  font-weight: 700;
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #804220;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  height: 36px;
  margin-left: 0;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 13px;
}
.menu-nav-toggle {
  display: none;
}
.cart-icon {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.cart-icon:hover {
  color: #4a3426;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #d9534f;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  width: min(1440px, 100%);
  margin: 0 auto;
  gap: 30px;
  align-items: start;
  padding: 34px 40px 56px;
}
.products-container {
  min-width: 0;
}
.category {
  display: block;
  margin-bottom: 34px;
}
.category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.category-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}
.category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(155, 115, 88, 0.34);
  border-radius: 999px;
  background: #fffaf6;
  color: #725746;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.category-toggle:hover {
  border-color: rgba(155, 115, 88, 0.64);
  background: #f8eee6;
  color: #4a332a;
}
.category-toggle-icon {
  font-size: 20px;
  line-height: 1;
}
.category.is-collapsed .category-header {
  margin-bottom: 0;
}
.category.is-collapsed .grid {
  display: none;
}
.category h2 {
  position: relative;
  margin: 0;
  padding-left: 34px;
  color: #4a332a;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}
.category h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-left: 3px solid #9b7358;
  border-bottom: 3px solid #9b7358;
  border-radius: 0 0 0 18px;
  transform: rotate(35deg);
}
.category-subtitle {
  margin: 10px 0 0 34px;
  color: #a28a7d;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}
.category-note {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(238, 224, 208, 0.72);
  color: #725746;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.category .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 14px 14px 20px;
  min-height: 370px;
  box-shadow: 0 12px 34px rgba(98, 64, 43, 0.08);
  border: 1px solid rgba(210, 181, 160, 0.23);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(205, 143, 79, 0.36);
  box-shadow: 0 18px 40px rgba(98, 64, 43, 0.12);
}
.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 238px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf6 0%, #f9f2ec 100%);
  overflow: hidden;
}
.card .product-img {
  width: min(84%, 185px);
  height: 215px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(76, 53, 38, 0.16));
}
.card .product-img.is-missing {
  display: none;
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #8f9561;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 5px 12px rgba(74, 78, 39, 0.18);
}
.product-content {
  position: relative;
  padding: 16px 48px 0 2px;
  min-height: 96px;
}
.card .add-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #dda059 0%, #c98138 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 28px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(180, 104, 40, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card .add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(180, 104, 40, 0.28);
}
.card h3 {
  margin: 0 0 8px 0;
  color: #382720;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  font-family: var(--font-art);
  letter-spacing: 0.03em;
}
.card label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: #555;
}
.card small,
.included-toppings {
  display: block;
  min-height: 20px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #8e786f;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card p {
  margin: 0;
}
.card .price {
  color: #9f6032;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}
.card select {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}
.card select[multiple] {
  min-height: 80px;
}
.cart-item {
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0e8e3;
}
.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: bold;
}
.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.cart-edit-btn,
.cart-remove-btn {
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cart-edit-btn {
  border: 1px solid #8b6f47;
  color: #8b6f47;
}
.cart-remove-btn {
  border: 1px solid #d9534f;
  color: #d9534f;
}
.cart-edit-btn:hover {
  background: #8b6f47;
  color: #fff;
}
.cart-remove-btn:hover {
  background: #d9534f;
  color: #fff;
}
.cart-toppings {
  margin-top: 4px;
  padding-left: 8px;
  font-size: 13px;
  color: #666;
}
#cart {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(72,48,36,0.08);
  border: 1px solid rgba(200,170,150,0.1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: none;
}
#cart.visible {
  display: block;
}
@media (min-width: 769px) {
  #cart {
    display: block !important;
  }
}
#cart h2 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #4a3430;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
#total {
  margin: 16px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-weight: 600;
  color: #5c4036;
  font-size: 13px;
}
.cart-panel {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.checkout-button {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: #8b6f47;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.checkout-button:hover {
  background: #7a5f3f;
}
.cart-image-note {
  margin: 8px 0 0;
  color: #9b918b;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.selection-modal,
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 2000;
}
.checkout-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 248, 241, 0.76);
  backdrop-filter: blur(4px);
  cursor: wait;
}
.checkout-loading.visible {
  display: flex !important;
}
.checkout-loading-box {
  min-width: 180px;
  padding: 26px 32px;
  border: 1px solid rgba(200, 129, 60, 0.22);
  border-radius: 18px;
  background: #fffdfb;
  box-shadow: 0 18px 48px rgba(91, 59, 42, 0.16);
  color: #5b3b2a;
  text-align: center;
}
.checkout-loading-box p {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.checkout-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid #f0ddcb;
  border-top-color: #c8813c;
  border-radius: 50%;
  animation: checkout-spin 0.8s linear infinite;
}
@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}
.selection-modal.open,
.checkout-modal.open {
  display: flex;
}
.checkout-modal-overlay,
.selection-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 43, 32, 0.62);
  backdrop-filter: blur(2px);
}
.selection-modal-content,
.checkout-modal-content {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.96) 0%, rgba(255, 255, 255, 0.98) 44%),
    #fff;
  border: 1px solid rgba(205, 163, 126, 0.28);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(58, 43, 32, 0.24);
  z-index: 1;
}
.selection-modal-content h2,
.checkout-modal-content h2 {
  margin: 0 42px 8px 0;
  color: #3d2a22;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}
.checkout-modal-content p {
  margin: 0 0 14px 0;
}
.selection-price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(238, 224, 208, 0.72);
  color: #9f6032;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}
.selection-price[hidden] {
  display: none;
}
.size-selector {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 6px;
  margin: 0 0 4px;
  padding: 5px;
  border: 1px solid rgba(205, 163, 126, 0.32);
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.86);
}
.size-selector[hidden] {
  display: none;
}
.size-option {
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #725746;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.size-option.active {
  background: linear-gradient(180deg, #dda059 0%, #c98138 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(180, 104, 40, 0.2);
}
.selection-quantity-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #5c4036;
  font-size: 15px;
  font-weight: 700;
}
.selection-quantity-row > span {
  display: inline-flex;
  justify-content: flex-start;
}
.quantity-stepper {
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(205, 163, 126, 0.42);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(98, 64, 43, 0.06);
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.quantity-stepper button {
  width: 48px;
  height: 48px;
  border: 0;
  background: #fff8f1;
  color: #8b4f22;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.quantity-stepper button:hover:not(:disabled) {
  background: #f6e7d9;
}
.quantity-stepper button:disabled {
  color: #cdb9a9;
  cursor: not-allowed;
}
.quantity-stepper output {
  display: inline-grid;
  min-width: 48px;
  place-items: center;
  color: #4a332a;
  font-size: 15px;
  font-weight: 800;
}
#selectionForm {
  display: grid;
  width: auto;
  margin: 24px 0 0;
  gap: 16px;
}
.selection-modal-content label {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #5c4036;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}
.selection-modal-content select {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 0 44px 0 14px;
  border: 1px solid rgba(205, 163, 126, 0.36);
  border-radius: 12px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #8b6f47 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, #8b6f47 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    #fff;
  color: #382720;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(98, 64, 43, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.selection-modal-content select:focus {
  outline: none;
  border-color: rgba(201, 129, 56, 0.72);
  box-shadow: 0 0 0 3px rgba(221, 160, 89, 0.14), 0 8px 20px rgba(98, 64, 43, 0.06);
}
.selection-modal-content .selection-remark-field {
  align-items: start;
}
.selection-modal-content .selection-remark-field span {
  padding-top: 12px;
}
.selection-modal-content .selection-remark-field textarea {
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(205, 163, 126, 0.36);
  border-radius: 12px;
  background: #fff;
  color: #382720;
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
  resize: vertical;
  box-shadow: 0 8px 20px rgba(98, 64, 43, 0.06);
  margin-left: 0;
}
.selection-modal-content .selection-remark-field textarea:focus {
  outline: none;
  border-color: rgba(201, 129, 56, 0.72);
  box-shadow: 0 0 0 3px rgba(221, 160, 89, 0.14), 0 8px 20px rgba(98, 64, 43, 0.06);
}
#selectionForm .modal-actions {
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 2px;
}
#selectionForm .secondary-btn {
  min-width: 94px;
}
#selectionForm .submit-btn {
  min-width: 138px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
.secondary-btn,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 46px;
  margin-top: 0;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.secondary-btn {
  background: #f5f0eb;
  color: #5c4036;
}
.submit-btn {
  background: linear-gradient(180deg, #dda059 0%, #c98138 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(180, 104, 40, 0.24);
}
.secondary-btn:hover,
.submit-btn:hover {
  transform: translateY(-1px);
}
.submit-btn:hover {
  box-shadow: 0 12px 26px rgba(180, 104, 40, 0.3);
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(205, 163, 126, 0.14);
  border-radius: 999px;
  background: rgba(248, 242, 236, 0.92);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(92, 64, 54, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}
.modal-close-btn::before,
.modal-close-btn::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 1.5px;
  border-radius: 999px;
  background: #68483b;
  content: "";
  transition: background 0.18s ease, transform 0.18s ease;
}
.modal-close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal-close-btn:hover {
  border-color: rgba(201, 129, 56, 0.28);
  background: #f2e5d8;
  box-shadow: 0 8px 20px rgba(92, 64, 54, 0.1);
  transform: translateY(-1px);
}
.modal-close-btn:hover::before,
.modal-close-btn:hover::after {
  background: #9f6032;
}
.modal-close-btn:active {
  box-shadow: 0 3px 10px rgba(92, 64, 54, 0.08);
  transform: translateY(0) scale(0.96);
}
.modal-close-btn:focus-visible {
  outline: 3px solid rgba(221, 160, 89, 0.25);
  outline-offset: 2px;
}
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #8b6f47;
  color: #fff;
  cursor: pointer;
}
.checkout-button:disabled {
  background: #d8cec6;
  color: #9b8a80;
  cursor: not-allowed;
  box-shadow: none;
}
.checkout-button:disabled:hover {
  background: #d8cec6;
}
.topping-line {
  line-height: 1.4;
}
#checkoutForm {
  display: grid;
  width: auto;
  margin: 24px 0 0;
  gap: 16px;
}
#checkoutForm label {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 16px;
  margin: 0;
  color: #5c4036;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}
#checkoutForm #addressField[hidden] {
  display: none;
}
#checkoutForm label:has(textarea) {
  align-items: start;
}
#checkoutForm label strong,
.checkout-choice-row > strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-height: 46px;
  white-space: nowrap;
}
.checkout-choice-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: #5c4036;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}
.checkout-radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
}
#checkoutForm .required {
  color: #d9534f;
  font-style: normal;
  margin-left: 2px;
}
#checkoutForm input,
#checkoutForm textarea,
#checkoutForm select {
  width: 320px;
  height: auto;
  min-height: 50px;
  margin-left: 0;
  padding: 0 16px;
  border: 1px solid rgba(205, 163, 126, 0.36);
  border-radius: 12px;
  background: #fff;
  color: #382720;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(98, 64, 43, 0.06);
}
#checkoutForm textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}
#checkoutForm .modal-actions {
  justify-content: center;
  margin-top: 8px;
}
#checkoutForm .submit-btn {
  min-width: 180px;
  min-height: 48px;
  padding: 0 34px;
}
.checkout-radio-option {
  gap: 8px !important;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(205, 163, 126, 0.36);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(98, 64, 43, 0.06);
}
.checkout-radio-option input {
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  accent-color: #c98138;
  box-shadow: none !important;
  cursor: pointer;
}
.checkout-radio-option:has(input:checked) {
  border-color: rgba(201, 129, 56, 0.52);
  background: #fff8f1;
  color: #8b4f22;
}
@media (max-width: 1100px) and (min-width: 769px) {
  main {
    grid-template-columns: minmax(0, 1fr) 320px;
    padding-right: 24px;
    padding-left: 24px;
  }

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

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  header {
    width: 100%;
    min-height: 66px;
  }
  body {
    padding-top: 66px;
  }
  .menu-header .header-box {
    position: relative;
    width: calc(100% - 28px);
    min-height: 66px;
  }
  .menu-header .logo {
    height: 58px !important;
  }
  .menu-nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 50%;
    background: #f8eee7;
  }
  .menu-nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #68432f;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-nav-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-nav-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .menu-header .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 28px));
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #eee1d7;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(76, 48, 32, 0.16);
  }
  .menu-header .nav-menu.is-open {
    display: flex;
  }
  .menu-header .nav-menu a {
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 15px;
  }
  .menu-header .nav-menu a:hover,
  .menu-header .nav-menu a.active {
    background: #fbf1e9;
  }
  .menu-header .nav-menu a.active::after {
    display: none;
  }
  .menu-header .lang-switch {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    border-color: #eadbd0;
    border-radius: 9px;
    color: #563827;
  }
  main {
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: 1fr;
    padding: 24px 14px 40px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .products-container,
  .category,
  .category .grid {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
  .category-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 16px;
  }
  .category-header > div:first-child,
  .category-header-actions {
    display: contents;
  }
  .category-note {
    display: inline-flex;
    grid-column: 1 / -1;
    grid-row: 3;
    width: fit-content;
    margin: 2px 0 0 28px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .category-header-actions .category-note {
    margin-left: 28px;
  }
  .category-toggle {
    grid-column: 2;
    grid-row: 1;
    min-height: 36px;
    padding: 0 12px;
    gap: 5px;
    font-size: 12px;
  }
  .category-toggle-icon {
    font-size: 16px;
  }
  .category h2 {
    grid-column: 1;
    grid-row: 1;
    padding-left: 28px;
    font-size: 24px;
  }
  .category h2::before {
    top: 5px;
    width: 18px;
    height: 18px;
    border-width: 0 0 2px 2px;
  }
  .category-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 7px 0 0 28px;
    font-size: 14px;
  }
  .category .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
  .card {
    min-height: 275px;
    padding: 10px 10px 14px;
    border-radius: 14px;
  }
  .product-media {
    height: 160px;
    border-radius: 12px;
  }
  .card .product-img {
    width: min(84%, 140px);
    height: 142px;
  }
  .product-badge {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 10px;
  }
  .product-content {
    min-height: 86px;
    padding: 12px 36px 0 0;
  }
  .card h3 {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.3;
  }
  .card small,
  .included-toppings {
    min-height: 18px;
    margin-bottom: 7px;
    font-size: 11px;
  }
  .card .price {
    font-size: 13px;
    line-height: 1.25;
  }
  .card .add-btn {
    right: 12px;
    bottom: 14px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  #cart {
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: min(360px, 100%);
    max-width: 100%;
    max-height: none;
    border-radius: 18px 0 0 0;
    box-shadow: -16px 18px 40px rgba(72, 48, 36, 0.18);
  }
  .selection-modal,
  .checkout-modal {
    padding: 16px;
  }
  .selection-modal-content,
  .checkout-modal-content {
    padding: 24px 18px;
  }
  .selection-modal-content label {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }
  .selection-quantity-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }
  #checkoutForm label {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
  }
  .checkout-choice-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
  }
  .checkout-radio-group {
    gap: 8px;
  }
  .checkout-radio-option {
    padding: 0 12px;
  }
  #checkoutForm input,
  #checkoutForm textarea {
    min-height: 48px;
    padding-left: 12px;
    padding-right: 12px;
  }
  #checkoutForm .submit-btn {
    width: min(220px, 100%);
  }
  .menu-page .footer-container {
    position: relative;
    padding: 32px 18px 0;
    border-top: 1px solid #eee0d5;
    background:
      radial-gradient(circle at 50% 0, rgba(226, 178, 136, 0.12), transparent 42%),
      #fffdfb;
    box-shadow: 0 -8px 30px rgba(91, 59, 42, 0.05);
  }
  .menu-page .footer-box {
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .menu-page .footer-logo {
    height: 78px !important;
  }
  .menu-page .social-links {
    display: grid;
    grid-template-columns: repeat(6, 36px);
    width: auto;
    margin: 2px 0 4px;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .menu-page .social-link,
  .menu-page .social-link2.telegram,
  .menu-page .social-link2.viber {
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    transform: none;
  }
  .menu-page .social-link {
    background-size: 691.2px 460.8px;
  }
  .menu-page .social-link.instagram { background-position: -225px -171px; }
  .menu-page .social-link.facebook { background-position: -490.5px -171px; }
  .menu-page .social-link.tiktok { background-position: -292.5px -171px; }
  .menu-page .social-link.whatsapp { background-position: -360px -171px; }
  .menu-page .social-link2.telegram,
  .menu-page .social-link2.viber {
    background-color: transparent;
  }
  .menu-page .contant-txt {
    width: min(360px, 100%);
    padding: 18px 16px;
    border: 1px solid #f0e3d9;
    border-radius: 16px;
    background: #fff8f2;
    color: #6d4b39;
    line-height: 1.75;
    text-align: center;
  }
  .menu-page .contant-txt .title {
    margin-bottom: 9px;
    color: #4f301f;
    font-size: 17px;
  }
  .menu-page .contant-txt a {
    color: #7c4b32;
    overflow-wrap: anywhere;
    text-decoration: none;
  }
  .menu-page .footer-txt {
    width: min(360px, 100%);
    margin: 22px auto 0;
    padding: 18px 0 22px;
    border-top: 1px solid #eee2d9;
    color: #957b6c;
    font-size: 12px;
    line-height: 1.6;
  }
  #products {
    justify-content: center;
  }
}
