* {
  box-sizing: border-box;
}

:root {
  --edge: max(24px, calc((100vw - 1907px) / 2 + 40px));
  --panel-top: 134px;
  --panel-bottom-gap: 24px;
  --panel-height: calc(100vh - var(--panel-top) - var(--panel-bottom-gap));
  --sidebar-w: 179px;
  --cart-w: 293px;
  --col-gap: 32px;
}

body {
  margin: 0;
  background: #f2f5f5;
  font-family: 'Inter', sans-serif;
  color: #000;
}

.rub {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
}

.fixed-shell {
  position: static;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.scroll-spacer {
  pointer-events: none;
}

/* Topbar */

.topbar {
  background: #fff;
  border-radius: 16px;
  padding: 14px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: fixed;
  top: 24px;
  left: var(--edge);
  right: var(--edge);
  z-index: 30;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 85px);
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.logo__icon {
  width: 47px;
  height: 11.81px;
  display: block;
}

.logo__text {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.96px;
  line-height: 1;
  color: #000;
}

.search-wrap {
  position: relative;
  width: clamp(160px, 22vw, 306px);
  max-width: 100%;
  z-index: 6;
  transition: width 0.25s ease;
}

.search-wrap--has-query {
  width: min(470px, 60vw);
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 19px;
  padding: 10px 10px 10px 12px;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  transition: background-color 0.2s ease;
}

.search-wrap--open .search {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.search__cancel {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: rgba(0, 0, 0, 0.4);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  padding: 9px 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: scale(0.85);
  transition: color 0.15s ease, max-width 0.25s ease, opacity 0.2s ease, margin-left 0.25s ease, transform 0.2s ease;
}

.search__cancel:hover {
  color: rgba(0, 0, 0, 0.65);
}

.search-wrap--has-query .search__cancel {
  max-width: 90px;
  margin-left: 4px;
  opacity: 1;
  transform: scale(1);
}

.search__submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0097f5;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  border-radius: 14px;
  padding: 9px 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: scale(0.8);
  transition: background-color 0.15s ease, max-width 0.25s ease, opacity 0.2s ease, padding 0.25s ease, transform 0.2s ease;
}

.search-wrap--has-query .search__submit {
  max-width: 100px;
  padding: 9px 18px;
  opacity: 1;
  transform: scale(1);
}

.search__submit:hover {
  background: #0084d6;
}

.search-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.search-scrim--visible {
  opacity: 1;
  pointer-events: auto;
}

.search-dropdown[hidden] {
  display: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px 19px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.search-dropdown__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 4px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__item mark {
  background: none;
  color: #0097f5;
  font-weight: 700;
}

.search-dropdown__item--selected {
  background: rgba(0, 151, 245, 0.08);
}

.search-dropdown__empty {
  padding: 8px 4px;
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.35);
}

.search__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search__input {
  border: none;
  background: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.85);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search__input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

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

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  height: 57px;
  padding: 0 22px;
  box-sizing: border-box;
  border-radius: 30px;
  background: rgba(0, 157, 255, 0.08);
  color: #0097f5;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.call-btn:hover {
  background: rgba(0, 157, 255, 0.16);
}

.call-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .topbar {
    padding: 14px 24px;
  }
}

@media (max-width: 1023px) {
  :root {
    --cart-w: 260px;
    --col-gap: 20px;
  }
}

.address-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 57px;
  padding: 0 20px;
  box-sizing: border-box;
  background: rgba(0, 157, 255, 0.05);
  border: none;
  border-radius: 20px;
  color: #0097f5;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.address-btn:hover {
  background: rgba(0, 157, 255, 0.1);
}

/* Layout */

/* Sidebar */

.sidebar {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  position: fixed;
  top: var(--panel-top);
  left: var(--edge);
  max-height: var(--panel-height);
  overflow-y: auto;
  z-index: 20;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 147px;
}

.category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 15px;
  width: 100%;
  text-align: left;
}

.category--active {
  background: #f7f7f7;
}

.category__icon {
  width: 27px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.category__icon-wrap {
  display: block;
  width: 27px;
  height: 22px;
  flex-shrink: 0;
}

/* Category icons hidden for now — remove this rule to bring them back. */
.category__icon,
.category__icon-wrap {
  display: none;
}

.category__icon-wrap--mangal {
  position: relative;
  overflow: hidden;
}

.category__icon-wrap--mangal .category__icon {
  position: absolute;
  width: 167.87%;
  height: 269.27%;
  left: -33.97%;
  top: -54.59%;
  max-width: none;
  object-fit: unset;
}

.category__icon-wrap--sauces {
  position: relative;
  overflow: hidden;
}

.category__icon-wrap--sauces .category__icon {
  position: absolute;
  width: 161.26%;
  height: 299.42%;
  left: -33.54%;
  top: -80.3%;
  max-width: none;
  object-fit: unset;
}

.category span {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.8px;
  color: rgba(0, 0, 0, 0.65);
}

.category--active span {
  color: rgba(0, 0, 0, 0.85);
}

/* Menu */

.menu {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  position: fixed;
  top: var(--panel-top);
  left: calc(var(--edge) + var(--sidebar-w) + var(--col-gap));
  width: calc(100vw - var(--edge) * 2 - var(--sidebar-w) - var(--cart-w) - var(--col-gap) * 2);
  min-width: 220px;
  height: var(--panel-height);
  overflow: hidden;
  z-index: 10;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px 16px;
  align-content: start;
  will-change: transform;
}

.menu__section-title {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -1.12px;
  color: #000;
}

.menu__section-title:not(:first-child) {
  margin-top: 24px;
}

.menu__empty {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -1.44px;
  color: #000;
  padding: 24px 0;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
  cursor: pointer;
}

.item__image-wrap {
  background: #f2f2f2;
  border-radius: 33px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.item__image {
  position: absolute;
  left: 10.46%;
  top: 18.02%;
  width: 79.59%;
  height: 63.37%;
  object-fit: cover;
  border-radius: 12px;
  transition: filter 0.2s ease;
}

.item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.51);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.item--active .item__overlay {
  opacity: 1;
}

.item__qty-badge {
  font-weight: 600;
  font-size: 98px;
  letter-spacing: -0.98px;
  color: #fff;
  line-height: 1;
}

.item__qty-badge.qty-pop,
.cart-item__qty-value.qty-pop {
  animation: qtyPop 0.22s ease;
}

@keyframes qtyPop {
  0% {
    transform: scale(0.55);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.item__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.item__name {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item__weight {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.35);
  min-height: 19px;
}

.item__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: rgba(0, 157, 255, 0.05);
  border-radius: 30px;
  padding: 10px 14px;
  max-width: 100%;
  transition: background-color 0.28s ease;
}

.item__control--active {
  background: #009dff;
}

.item__price {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-right: 8px;
  transition: color 0.28s ease;
}

.item__control--active .item__price {
  color: #fff;
}

.item__control-minus,
.item__control-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.item__control-minus::after,
.item__control-plus::after {
  content: '';
  position: absolute;
  inset: -10px;
}

.item__control-minus {
  margin-right: 0;
  transition: margin-right 0.28s ease;
}

.item__control--active .item__control-minus {
  margin-right: 8px;
}

.item__control-minus-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.28s ease, opacity 0.18s ease;
}

.item__control--active .item__control-minus-inner {
  width: 12.3px;
  opacity: 1;
}

.item__stepper-minus {
  width: 12.3px;
  height: 2px;
  flex-shrink: 0;
}

.item__control-plus-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}

.item__control-plus-icon {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  transition: opacity 0.22s ease;
}

.item__control-plus-icon--active {
  opacity: 0;
}

.item__control--active .item__control-plus-icon--default {
  opacity: 0;
}

.item__control--active .item__control-plus-icon--active {
  opacity: 1;
}

/* Cart */

.cart {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  width: var(--cart-w);
  height: var(--panel-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  top: var(--panel-top);
  right: var(--edge);
  z-index: 20;
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.cart__title {
  margin: 0;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -1.28px;
  color: #000;
}

.cart__clear {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.35);
}

.cart__list {
  display: flex;
  flex-direction: column;
  gap: 23px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.cart__list::-webkit-scrollbar {
  width: 4px;
}

.cart__list::-webkit-scrollbar-track {
  background: transparent;
}

.cart__list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.cart__empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.cart__empty-image-wrap {
  position: relative;
  width: 173px;
  height: 156px;
}

.cart__empty-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart__empty-image--blur {
  filter: blur(3.6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 74%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 74%, black 100%);
}

.cart__empty-text {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.8px;
  color: rgba(0, 0, 0, 0.35);
  width: 220px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.cart-item__remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.cart-item:hover .cart-item__remove {
  opacity: 1;
  transform: scale(1);
}

.cart-item__remove:hover {
  background: #e6e6e6;
}

.cart-item__remove img {
  width: 9px;
  height: 9px;
}

.cart-item__image-wrap {
  background: #f2f2f2;
  border-radius: 12px;
  width: 85px;
  height: 85px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.cart-item__image {
  position: absolute;
  left: 10.46%;
  top: 18.02%;
  width: 79.59%;
  height: 63.37%;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.cart-item__name {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.65);
  padding-right: 22px;
}

.cart-item__weight {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.35);
}

.cart-item__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: #f7f7f7;
  border-radius: 17px;
  padding: 7px 9px;
}

.cart-item__qty button {
  position: relative;
  width: 12.3px;
  height: 12.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item__qty button::after {
  content: '';
  position: absolute;
  inset: -8px;
}

.cart-item__qty img {
  display: block;
  max-width: none;
}

.cart-item__qty button[data-action='dec'] img {
  width: 12.3px;
  height: 2px;
}

.cart-item__qty button[data-action='inc'] img {
  width: 12.3px;
  height: 12.3px;
}

.cart-item__qty-value {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.16px;
  color: rgba(0, 0, 0, 0.85);
  min-width: 10px;
  text-align: center;
}

.cart-item__price {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart__summary {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
}

.cart__summary-label {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.35);
}

.cart__summary-total {
  margin: 0;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.32px;
  color: rgba(0, 0, 0, 0.85);
}

.cart__continue {
  margin-top: 24px;
  background: rgba(0, 157, 255, 0.05);
  border-radius: 30px;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: rgba(0, 0, 0, 0.85);
  width: 100%;
}

.cart__continue:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 24px;
}

.modal-overlay.modal-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 941px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-sizing: border-box;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal-overlay--open .modal {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
}

.details-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
}

.modal__back {
  position: static;
  width: 24px;
  height: 24px;
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.15s ease;
}

.modal__back:hover {
  color: #000;
}

.modal__back svg {
  width: 100%;
  height: 100%;
}

#detailsModalCard .modal__close {
  position: static;
}

#detailsModalCard .address-modal__title {
  padding-right: 0;
}

.modal__close img {
  width: 100%;
  height: 100%;
}

.modal__top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.modal__image-wrap {
  background: #f2f2f2;
  border-radius: 43px;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.modal__image {
  position: absolute;
  left: 10.46%;
  top: 18.02%;
  width: 79.59%;
  height: 63.37%;
  object-fit: cover;
  border-radius: 12px;
}

.modal__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 16px;
  min-width: 260px;
  flex: 1;
}

.modal__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__name {
  margin: 0;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -1.28px;
  line-height: 1.2;
  color: #000;
}

.modal__weight {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.65);
}

.modal__description {
  margin: 32px 0 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.5);
}

.modal__nutrition {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.modal__nutrition-caption {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.65);
}

.modal__nutrition-row {
  display: flex;
  gap: 24px;
}

.modal__nutrition-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__nutrition-value {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.96px;
  color: #000;
}

.modal__nutrition-label {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.65);
}

@media (max-width: 700px) {
  .modal__top {
    flex-direction: column;
  }
  .modal__image-wrap {
    width: 100%;
    max-width: 300px;
  }
}

/* Dish counter (modal quantity control) */

.dish-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: rgba(0, 157, 255, 0.05);
  border-radius: 30px;
  padding: 16px 24px;
}

.dish-counter__value {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  margin-right: 10px;
}

.dish-counter__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.dish-counter__btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.dish-counter__btn::after {
  content: '';
  position: absolute;
  inset: -10px;
}

.dish-counter__minus {
  margin-right: 10px;
}

.dish-counter__minus-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

/* Address selection modal */

.address-modal {
  max-width: 640px;
}

.address-modal__title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.6px;
  color: #000;
  padding-right: 32px;
}

.address-modal__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-weight: 500;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.5);
}

.address-modal__hint-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 151, 245, 0.15);
  color: #0097f5;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
}

.address-modal__search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.address-modal__input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.address-modal__input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  color: #000;
  outline: none;
  transition: border-color 0.15s ease;
}

.address-modal__input:focus {
  border-color: #0097f5;
}

.address-dropdown[hidden] {
  display: none;
}

.address-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.address-dropdown__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
}

.address-dropdown__item:hover,
.address-dropdown__item--selected {
  background: rgba(0, 151, 245, 0.08);
}

.address-dropdown__title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.4px;
  color: rgba(0, 0, 0, 0.85);
}

.address-dropdown__subtitle {
  font-weight: 500;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
}

.address-dropdown__empty {
  padding: 8px 10px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.35);
}

.address-modal__find {
  flex-shrink: 0;
  padding: 14px 24px;
  background: #0097f5;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.address-modal__find:hover {
  background: #0084dd;
}

.address-modal__map {
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 16px;
}

.address-modal__result {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: rgba(0, 157, 255, 0.05);
  border-radius: 14px;
  color: #000;
  font-weight: 500;
  font-size: 15px;
}

.address-modal__warning {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: rgba(255, 59, 48, 0.08);
  border-radius: 14px;
  color: #e0311f;
  font-weight: 500;
  font-size: 15px;
}

.address-modal__confirm {
  width: 100%;
  padding: 16px 24px;
  background: #0097f5;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.address-modal__confirm:hover:not(:disabled) {
  background: #0084dd;
}

.address-modal__confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.details-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.details-field {
  flex: 1;
  min-width: 0;
}

.details-field--full {
  margin-bottom: 16px;
}

.details-field__label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}

.address-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: #000;
  outline: none;
  resize: vertical;
  min-height: 72px;
  transition: border-color 0.15s ease;
}

.address-modal__textarea:focus {
  border-color: #0097f5;
}

.details-modal__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.details-modal__actions .address-modal__confirm {
  width: auto;
  flex: 1;
}

.details-modal__skip {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.15s ease;
}

.details-modal__skip:hover {
  color: rgba(0, 0, 0, 0.65);
}

/* Call us modal */

.call-modal {
  max-width: 440px;
}

.call-modal__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 24px;
  margin: 24px 0 10px;
  background: rgba(0, 157, 245, 0.05);
  border-radius: 20px;
  transition: background 0.15s ease;
}

.call-modal__number:hover {
  background: rgba(0, 157, 245, 0.1);
}

.call-modal__number-text {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.4px;
  color: #000;
}

.call-modal__copy-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #0097f5;
}

.call-modal__copy-icon-default,
.call-modal__copy-icon-check {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.call-modal__copy-icon-check {
  opacity: 0;
}

.call-modal__number--copied .call-modal__copy-icon-default {
  opacity: 0;
}

.call-modal__number--copied .call-modal__copy-icon-check {
  opacity: 1;
  color: #1fb15f;
}

.call-modal__caption {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: color 0.15s ease;
}

.call-modal__caption--copied {
  color: #1fb15f;
}

.call-modal__hours {
  margin: 0 0 24px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.call-modal__dial {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.call-modal__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 24px;
  border-radius: 30px;
  background: rgba(37, 211, 102, 0.1);
  color: #1fa855;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.call-modal__whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
}

.call-modal__whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Checkout modal */

.checkout-modal {
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 96px);
  overflow: hidden;
}

.checkout-modal__title {
  flex-shrink: 0;
  margin: 0 0 24px;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.6px;
  color: #000;
}

.checkout-modal__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  flex: 1;
  min-height: 0;
}

.checkout-modal__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.checkout-modal__section-title {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: #000;
}

.checkout-modal__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-modal__items .cart-item__price {
  font-size: 18px;
}

.checkout-modal__recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.checkout-recommend {
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
  border-radius: 18px;
  padding: 12px;
}

.checkout-recommend__image-wrap {
  background: #ececec;
  border-radius: 12px;
  width: 100%;
  height: 90px;
  overflow: hidden;
  margin-bottom: 10px;
}

.checkout-recommend__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-recommend__name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.4px;
  color: rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkout-recommend__weight {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.checkout-recommend__add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 12px;
  background: rgba(0, 157, 255, 0.08);
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  color: #0097f5;
  transition: background 0.15s ease;
}

.checkout-recommend__add:hover {
  background: rgba(0, 157, 255, 0.16);
}

.checkout-modal__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f7f7f7;
  border-radius: 20px;
  padding: 20px;
  overflow-y: auto;
}

.checkout-modal__promo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 600;
  font-size: 18px;
  color: #000;
}

.checkout-modal__promo-chevron {
  width: 18px;
  height: 18px;
  color: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.checkout-modal__promo-toggle--open .checkout-modal__promo-chevron {
  transform: rotate(180deg);
}

.checkout-modal__promo-panel {
  margin-top: 14px;
}

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

.checkout-modal__promo-row {
  display: flex;
  gap: 8px;
}

.checkout-modal__promo-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #000;
  outline: none;
}

.checkout-modal__promo-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  background: #0097f5;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease;
}

.checkout-modal__promo-btn:hover {
  background: #0084dd;
}

.checkout-modal__promo-msg {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}

.checkout-modal__promo-msg--error {
  color: #e0311f;
}

.checkout-modal__promo-msg--success {
  color: #1fb15f;
}

.checkout-modal__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout-modal__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
}

.checkout-modal__summary-row--discount {
  color: #1fb15f;
}

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

.checkout-modal__summary-row--total {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  font-size: 20px;
  color: #000;
}

.checkout-modal__submit {
  width: 100%;
  box-sizing: border-box;
}

.checkout-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.checkout-modal__success[hidden],
.checkout-modal__body[hidden] {
  display: none;
}

.checkout-modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(31, 177, 95, 0.12);
  color: #1fb15f;
  margin-bottom: 20px;
}

.checkout-modal__success-icon svg {
  width: 36px;
  height: 36px;
}

.checkout-modal__success-title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 24px;
  color: #000;
}

.checkout-modal__success-text {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 800px) {
  .checkout-modal__body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .checkout-modal__main {
    overflow-y: visible;
  }

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

