/* Добавлено: модалка выбора объёма — при клике «Добавить в корзину» у товара с несколькими вариантами (100/250/500 мл). Клик по объёму = добавление в корзину. */
.volume-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.volume-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.volume-modal__dialog {
  position: relative;
  background: var(--surface-base);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
  min-width: 280px;
  max-width: 360px;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.volume-modal.is-open .volume-modal__dialog {
  transform: scale(1);
}
.volume-modal__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.volume-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.volume-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid rgba(var(--accent-stroke-rgb), 0.25);
  border-radius: 12px;
  background: var(--surface-base);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s;
}
.volume-modal__option:hover {
  border-color: rgba(var(--accent-stroke-rgb), 0.5);
  background: rgba(var(--accent-stroke-rgb), 0.06);
}
.volume-modal__option-volume {
  color: var(--text-primary);
}
.volume-modal__option-price {
  color: var(--accent-primary);
}

/* Кнопка закрытия (≥44px для тапа на мобильных) */
.volume-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0,0,0,.06);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.volume-modal__close:hover {
  background: rgba(0,0,0,.1);
}

/* Volume modal: на мобильных полноэкранно */
@media (max-width: 768px) {
  .volume-modal__dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: calc(60px + env(safe-area-inset-top,0)) 24px calc(24px + env(safe-area-inset-bottom,0));
  }
  .volume-modal__close {
    top: calc(12px + env(safe-area-inset-top,0));
    right: 16px;
  }
}
