/* ====== Choose Combo Cards ====== */
.cb-heading { text-align:center; margin:8px 0 18px; }
.combo-cards { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; padding:16px; }
.combo-card { width:min(100%, 340px); border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.08); padding:16px; background:#fff; }
.combo-card-hero { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:10px; margin-bottom:12px; display:block; }
.combo-card .combo-image-placeholder { height:160px; background:#f5f5f7; margin-bottom:12px; border-radius:10px; }
.combo-card .button { display:inline-block; margin-top:12px; background:#ff2b6d; color:#fff; padding:12px 18px; border-radius:10px; text-decoration:none; }

/* ====== Builder layout ====== */
.combo-builder { display:flex; gap:24px; align-items:flex-start; padding:16px; padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
.combo-builder-main { flex:1; min-width:0; }
.combo-summary { width:360px; }

/* Title + progress */
.cb-title { margin:0 0 6px; font-size:clamp(22px, 3.5vw, 34px); line-height:1.1; }
.progress { margin:8px 0 16px; }
.progress-bar { background:#eee; height:8px; border-radius:6px; overflow:hidden; }
.progress-fill { height:100%; background:#2bb673; width:0; display:block; transition:width .2s ease; }
.items-left-pill { font-size:12px; color:#666; margin-left:8px; }

/* ====== Products grid ====== */
.combo-products { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
@media(min-width:640px){ .combo-products { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media(min-width:980px){ .combo-products { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.combo-product{
  border:1px solid #eee; background:#fff; border-radius:14px;
  box-shadow:0 3px 10px rgba(0,0,0,.04); padding:12px; text-align:center;
  position:relative; display:flex; flex-direction:column; align-items:center; gap:8px;
}
.combo-product .thumb img { width:100%; height:140px; object-fit:cover; border-radius:10px; }
@media(min-width:560px){ .combo-product .thumb img { height:160px; } }
.prod-title { font-size:14px; line-height:1.35; margin:4px 0 0; max-width:100%; }
.prod-title br{ display:none; } /* tidy long names */
.prod-title{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.prod-price { font-weight:700; margin:4px 0 0; }

/* ====== Qty Controls — plain number, kill theme interference ====== */
.combo-builder .qty-controls { display:flex; justify-content:center; align-items:center; gap:10px; margin-top:8px; width:100%; }

/* aggressively reset any inherited theme rules on our buttons */
.combo-builder .qty-controls button{
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: none !important;
  position: static !important;
}

/* plain number – no background, no borders */
.combo-builder .combo-qty{
  all: unset;
  width: auto;
  min-width: 1.5ch;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* remove native number spinners */
.combo-builder .combo-qty::-webkit-outer-spin-button,
.combo-builder .combo-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.combo-builder .combo-qty[type=number] { -moz-appearance: textfield; }

/* ====== OOS ====== */
.oos { opacity:.55; pointer-events:none; }
.oos-badge { position:absolute; top:8px; left:8px; background:#111; color:#fff; font-size:12px; padding:4px 6px; border-radius:6px; }

/* ====== Summary (desktop highlight + sticky) ====== */
.summary-box{
  background:#fff; padding:18px; border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.12); border:1px solid #f3d9e2; position:sticky; top:16px;
}
.summary-list .summary-row{ display:flex; justify-content:space-between; gap:8px; margin-bottom:8px; }
.summary-totals div{ display:flex; justify-content:space-between; margin:6px 0; }
.summary-totals .discount{ color:#2bb673; font-weight:700; }
.add-pack-to-cart{ width:100%; margin-top:12px; padding:12px; background:#ff2b6d; color:#fff; border:none; border-radius:12px; cursor:pointer; font-weight:700; letter-spacing:.3px; }
.add-pack-to-cart[disabled]{ opacity:.6; cursor:not-allowed; }

/* ====== Mobile sticky summary bar ====== */
.summary-mobile-bar{
  display:flex; position:fixed; left:0; right:0; bottom:0;
  padding:12px max(12px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background:#111; color:#fff; box-shadow:0 -8px 20px rgba(0,0,0,.3);
  z-index: 9999;
  align-items:center; justify-content:space-between; gap:12px;
}
.summary-mobile-bar .mob-summary{ display:flex; gap:10px; align-items:center; font-weight:700; }
.summary-mobile-bar .mob-total{ font-size:16px; }
.summary-mobile-bar .mob-count{ background:#2bb673; color:#fff; padding:4px 8px; border-radius:999px; font-size:12px; }
.summary-mobile-bar .mob-add{ background:#ff2b6d; color:#fff; border:none; border-radius:12px; padding:12px 18px; min-width:150px; font-weight:700; }
.summary-mobile-bar .mob-add[disabled]{ opacity:.6; }

/* ====== Responsive ====== */
@media(min-width:980px){
  .combo-builder{ padding:24px 24px 24px; }
  .summary-mobile-bar{ display:none; }
}
