﻿/* ================================================================
   РљРѕРјР±Рѕ-РЅР°Р±РѕСЂС‹
   ================================================================ */

.combo-section {
  background: linear-gradient(135deg, #1a2e1a 0%, #1e3a1e 60%, #254025 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.combo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.combo-section-header {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.combo-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}
.combo-section-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* РљРЅРѕРїРєР°-С‚РѕРіРіР» */
.combo-section-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 40px 0 20px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.combo-section-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,.5);
  outline-offset: 4px;
  border-radius: 4px;
}
.combo-toggle-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}
.combo-toggle-count {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.combo-toggle-arrow {
  font-size: 22px;
  color: rgba(255,255,255,.7);
  line-height: 1;
  display: block;
  transition: transform .28s var(--ease);
}
.combo-section-toggle[aria-expanded="true"] .combo-toggle-arrow {
  transform: rotate(180deg);
}

/* РЎРІРѕСЂР°С‡РёРІР°РµРјРѕРµ С‚РµР»Рѕ */
.combo-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s var(--ease);
}

/* РЎРµС‚РєР° РєР°СЂС‚РѕС‡РµРє */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 48px; /* РЅРёР¶РЅРёР№ РІРѕР·РґСѓС… вЂ” СЂР°Р±РѕС‚Р°РµС‚ РІРЅСѓС‚СЂРё overflow:hidden СЂРѕРґРёС‚РµР»СЏ */
}

/* РљР°СЂС‚РѕС‡РєР° РєРѕРјР±Рѕ */
.combo-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.combo-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.combo-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.combo-card-image {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: rgba(255,255,255,.05);
}
.combo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.combo-card:hover .combo-card-image img { transform: scale(1.05); }
.combo-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,.2);
}
.combo-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.combo-card-body {
  padding: 14px 16px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.combo-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.combo-card-body p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0 0 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.combo-card-slots {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.combo-card-slots li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}
.combo-card-slots li::before { content: 'в†’'; color: var(--accent); font-weight: 700; }
.combo-card-slot-qty {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.combo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  gap: 8px;
}
.combo-card-footer .price {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.combo-card-footer .price-sub { color: rgba(255,255,255,.5); font-size: 13px; }
.combo-card-footer .btn-primary { flex-shrink: 0; }

/* --- РњРѕРґР°Р»СЊРЅРѕРµ РѕРєРЅРѕ РєРѕРјР±Рѕ --- */
/* .combo-modal-grid РЅР°СЃР»РµРґСѓРµС‚ modal-grid Р±РµР· РїРµСЂРµРѕРїСЂРµРґРµР»РµРЅРёР№ */

.combo-modal-grid .modal-product-name {
  margin-bottom: 10px;
}

.combo-modal-grid .modal-description {
  margin-bottom: 14px;
}

.combo-modal-grid .modal-base-price {
  margin-bottom: 16px;
}

.combo-badge-modal {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.combo-base-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.combo-badge-modal--inline {
  margin-bottom: 0;
  font-size: 11px;
  padding: 2px 10px;
}

/* РЎР»РѕС‚ РІС‹Р±РѕСЂР° РІ РјРѕРґР°Р»Рµ */
.combo-slot-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.combo-slot-legend {
  background: var(--surface2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.combo-slot-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.combo-slot-count {
  font-size: 12px;
  color: var(--muted);
}
.combo-slot-progress {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  transition: background .15s, color .15s;
}
.combo-slot-progress.badge-ok {
  background: #e9f7ef;
  color: var(--green);
  border: 1px solid var(--green);
}

/* РћРїС†РёРё РІРЅСѓС‚СЂРё СЃР»РѕС‚Р° */
.combo-slot-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  padding: 12px;
}
.combo-slot-option {
  cursor: pointer;
}
.combo-slot-option input[type="radio"],
.combo-slot-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.combo-slot-option-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .14s, background .14s, box-shadow .14s;
  text-align: center;
  user-select: none;
  height: 100%;
}
.combo-slot-option:hover .combo-slot-option-inner {
  border-color: var(--accent);
  background: var(--accent-light);
}
.combo-slot-option input:checked + .combo-slot-option-inner {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent);
}
.combo-slot-opt-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.combo-slot-opt-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--surface2);
  border-radius: 8px;
  flex-shrink: 0;
}
.combo-slot-opt-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}
.combo-slot-option input:checked + .combo-slot-option-inner .combo-slot-opt-name {
  color: var(--accent);
  font-weight: 600;
}

/* РЎС‚РµРїРїРµСЂ-СЃР»РѕС‚ */
.combo-slot-options--stepper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.combo-slot-stepper-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .14s, background .14s;
}
.combo-slot-stepper-item.is-picked {
  border-color: var(--accent);
  background: var(--accent-light);
}
.combo-slot-stepper-item .combo-slot-option-inner {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 0;
  background: transparent;
  text-align: left;
}
.combo-slot-stepper-item .combo-slot-opt-img,
.combo-slot-stepper-item .combo-slot-opt-placeholder {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.combo-slot-stepper-item .combo-slot-opt-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.combo-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.combo-stepper-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
  transition: background .12s, border-color .12s;
}
.combo-stepper-btn:hover:not(:disabled) { background: var(--border); }
.combo-stepper-btn:disabled { opacity: .35; cursor: not-allowed; }
.combo-stepper-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  user-select: none;
}
.combo-slot-stepper-item.is-picked .combo-stepper-val { color: var(--accent); }

/* Р¤РёРєСЃРёСЂРѕРІР°РЅРЅС‹Р№ СЂР°Р·РјРµСЂ (РјРµС‚РєР°) */
.combo-fixed-size {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

/* Р’С‹Р±РѕСЂ СЂР°Р·РјРµСЂР° РІРЅСѓС‚СЂРё СЃР»РѕС‚Р° */
.combo-size-select {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* Р—Р°РґРёР·РµР№Р±Р»РµРЅРЅС‹Р№ РІР°СЂРёР°РЅС‚ (Р»РёРјРёС‚ РґРѕСЃС‚РёРіРЅСѓС‚, РЅРµ РІС‹Р±СЂР°РЅ) */
.combo-slot-option.combo-slot-option--disabled {
  pointer-events: none;
}
.combo-slot-option--disabled .combo-slot-option-inner {
  opacity: .38;
  border-color: var(--border);
  background: var(--surface);
}

@media (max-width: 480px) {
  .combo-slot-options {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
    padding: 8px;
  }
  .combo-slot-opt-img,
  .combo-slot-opt-placeholder { width: 48px; height: 48px; }
