/* ============================================================
   Combos Page  –  combos-page.css  v2.0.0
   Scoped under .combos-page. Measurements from the 1920px design.
   ============================================================ */

/* ── Reset Astra wrappers ── */
body.page-template-page-combos #content,
body.page-template-page-combos #primary,
body.page-template-page-combos .site-main,
body.page-template-page-combos .ast-container {
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
body.page-template-page-combos .ast-container { display: block !important; }

/* ── Design tokens ── */
.combos-page {
  --cb-red:        #d71920;
  --cb-red-dark:   #b01217;
  --cb-yellow:     #f8c431;
  --cb-yellow-dk:  #e9b31b;
  --cb-text:       #1f1f1f;
  --cb-muted:      #4a4a4a;
  --cb-border:     #e3e3e3;
  --cb-radius:     10px;

  font-family: "Poppins", Arial, sans-serif;
  color: var(--cb-text);
  background: #fff;
}

.combos-page *, .combos-page *::before, .combos-page *::after { box-sizing: border-box; }
:where(.combos-page) img { display: block; max-width: 100%; height: auto; }

.cb-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.cb-container {
  max-width: 1660px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.cb-hero { width: 100%; line-height: 0; background: #fdf0dc; }
.cb-hero-img { width: 100%; }

.cb-hero-strip {
  height: 40px;
  background: var(--cb-yellow);
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.cb-grid-section { padding: 100px 0 90px; }

.cb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.cb-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
}

.cb-card-img {
  display: block;
  aspect-ratio: 1170 / 1000;
  padding: 18px 18px 0;
  overflow: hidden;
}
.cb-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.cb-card:hover .cb-card-img img { transform: scale(1.04); }

.cb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 26px 26px;
}

/* Stars */
.cb-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
}
.cb-stars svg { width: 11px; height: 11px; }

/* Title + price */
.cb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.combos-page .cb-card-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cb-red);
  text-decoration: none;
}
.combos-page .cb-card-title:hover { color: var(--cb-red-dark); }

.cb-card-price {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--cb-text);
  line-height: 1.35;
}

.combos-page .cb-card-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Weight + ATC row */
.cb-card-actions {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
}

.combos-page .cb-weight {
  width: 110px;
  height: 40px;
  flex-shrink: 0;
  margin: 0;
  padding: 0 22px 0 12px;
  font: 500 13px "Poppins", Arial, sans-serif;
  color: var(--cb-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23555' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1px solid #9a9a9a;
  border-radius: 6px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
/* Single weight → show as a plain label, not a dropdown */
.combos-page .cb-weight:disabled {
  padding-right: 12px;
  background-image: none;
  opacity: 1;
  cursor: default;
}
.combos-page .cb-weight:focus-visible { outline: 2px solid var(--cb-red); outline-offset: 1px; }

.combos-page .cb-atc {
  flex: 1;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  font: 600 15px "Poppins", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--cb-text);
  background: var(--cb-yellow);
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  transition: background .18s ease, transform .1s ease;
}
.combos-page .cb-atc:hover  { background: var(--cb-yellow-dk); color: var(--cb-text); }
.combos-page .cb-atc:active { transform: scale(.97); }
.combos-page .cb-atc:focus-visible { outline: 2px solid var(--cb-red); outline-offset: 2px; }
.combos-page .cb-atc[disabled] { cursor: wait; opacity: .8; }
.combos-page .cb-atc.is-added { background: #1a7a3f; color: #fff; }

/* Out of stock */
.cb-badge-oos {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #555;
  border-radius: 20px;
}
.cb-card.is-oos .cb-card-img img { opacity: .55; }
.combos-page .cb-card.is-oos .cb-atc { background: #e0e0e0; color: #888; cursor: not-allowed; opacity: 1; }

/* Reveal-on-scroll (class added by JS so cards stay visible without it) */
.cb-card.cb-reveal { opacity: 0; transform: translateY(20px); }
.cb-card.cb-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease;
}
.cb-card.cb-reveal.is-visible:hover { transform: translateY(-4px); }

/* Pagination */
.cb-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 48px;
}
.combos-page .cb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cb-text);
  background: #f3f3f3;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.combos-page a.cb-page-btn:hover,
.combos-page .cb-page-btn.is-active { background: var(--cb-red); color: #fff; }
.combos-page .cb-page-btn.cb-dots { background: transparent; }

/* Empty state */
.cb-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--cb-muted);
}
.cb-empty p { margin: 0 0 16px; font-size: 16px; }
.combos-page .cb-empty-link {
  display: inline-block;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--cb-red);
  border-radius: 6px;
  text-decoration: none;
}
.combos-page .cb-empty-link:hover { background: var(--cb-red-dark); color: #fff; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.cb-promos { padding-bottom: 110px; }

.cb-promos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cb-promo {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1200 / 525;
}
.cb-promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.cb-promo:hover .cb-promo-img { transform: scale(1.03); }

/* CTA image placed where the design puts "Order Now" */
.cb-promo-cta {
  position: absolute;
  width: 19%;
  min-width: 96px;
  transition: transform .2s ease;
}
.cb-promo-hing  .cb-promo-cta { left: 31%; top: 66%; }
.cb-promo-gulab .cb-promo-cta { left: 74%; top: 73%; }
.cb-promo:hover .cb-promo-cta { transform: translateX(4px); }

/* ============================================================
   TOAST (add-to-cart feedback)
   ============================================================ */
.cb-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  font: 500 14px "Poppins", Arial, sans-serif;
  color: #fff;
  background: #222;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}
.cb-toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cb-toast a { color: var(--cb-yellow, #f8c431); font-weight: 600; margin-left: 8px; }
.cb-toast.is-error { background: #b01217; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .cb-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cb-card-body { padding: 12px 20px 22px; }
  .combos-page .cb-card-title { font-size: 17px; }
  .cb-card-price { font-size: 15px; }
  .cb-grid-section { padding: 70px 0 70px; }
}

@media (max-width: 900px) {
  .cb-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-hero-strip { height: 24px; }
  .cb-promos-grid { grid-template-columns: 1fr; gap: 20px; }
  .cb-promos { padding-bottom: 70px; }
}

@media (max-width: 560px) {
  .cb-container { padding: 0 16px; }
  .cb-grid { gap: 12px; }
  .cb-grid-section { padding: 40px 0 50px; }
  .cb-hero-strip { height: 14px; }

  .cb-card-img { padding: 10px 10px 0; }
  .cb-card-body { padding: 10px 12px 14px; }
  .cb-card-head { flex-direction: column; gap: 4px; }
  .combos-page .cb-card-title { font-size: 14px; }
  .cb-card-price { font-size: 14px; font-weight: 600; }
  .combos-page .cb-card-desc { font-size: 11px; }

  .cb-card-actions { flex-direction: column; gap: 8px; padding-top: 12px; }
  .combos-page .cb-weight { width: 100%; height: 36px; font-size: 12px; }
  .combos-page .cb-atc { flex: none; height: 36px; font-size: 13px; }

  .cb-promo { border-radius: 12px; }
}
