/* Retail conversion add-ons (6 Nov 2026): Diwali banner, checkout trust, combo builder, 1 kg upgrade. */

/* ---------- Diwali offer banner ---------- */
.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px max(16px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 214, 102, .35) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 40%, rgba(255, 214, 102, .35) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(255, 214, 102, .25) 0 1.5px, transparent 2.5px),
    linear-gradient(100deg, #5b0d1f 0%, #8f1d2c 38%, #b8461b 72%, #d9822b 100%);
  color: #fff7e6;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: inset 0 -2px 0 rgba(255, 214, 102, .55);
}
.promo-banner p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; }
.promo-eyebrow {
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #f2b84b);
  color: #5b0d1f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.promo-headline { font-weight: 800; font-size: 16px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.promo-note { color: #ffe3b0; font-weight: 600; }
.promo-countdown {
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid rgba(255, 224, 138, .7);
  border-radius: 999px;
  color: #ffe08a;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.promo-diya { flex: 0 0 auto; width: 30px; height: 23px; filter: drop-shadow(0 0 6px rgba(255, 196, 77, .85)); }
.promo-diya .diya-bowl { fill: #e9a23b; }
.promo-diya .diya-rim { fill: #ffd27a; }
.promo-diya .diya-flame { fill: #ffe08a; transform-origin: 32px 17px; animation: promo-flicker 1.8s ease-in-out infinite; }
@keyframes promo-flicker { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .8; transform: scale(.9) translateY(1px); } }
@media (max-width: 640px) {
  .promo-banner { gap: 8px; padding: 8px 10px; font-size: 13px; text-align: left; justify-content: flex-start; }
  .promo-banner p { justify-content: flex-start; gap: 2px 8px; }
  .promo-eyebrow { font-size: 10.5px; padding: 1px 8px; }
  .promo-headline { font-size: 13.5px; flex-basis: 100%; }
  .promo-note, .promo-diya-end { display: none; }
  .promo-diya { width: 26px; height: 20px; }
  .promo-countdown { margin-left: auto; font-size: 11px; padding: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) { .promo-diya .diya-flame { animation: none; } }

/* ---------- Checkout helpers ---------- */
.pincode-hint, .field-hint { display: block; margin-top: 5px; color: var(--muted, #66746f); font-size: 12px; font-weight: 500; }
.pincode-hint { color: var(--ink-2, #285c4e); font-weight: 600; }
/* Collapsed by default: one line; tap "Details" to expand. */
.checkout-trust {
  margin: 8px 0;
  border: 1px solid #f1d9a7;
  border-radius: 12px;
  background: #fffaf0;
  color: var(--ink, #173f35);
  font-size: 12.5px;
  line-height: 1.35;
}
.checkout-trust > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  list-style: none;
  cursor: pointer;
}
.checkout-trust > summary::-webkit-details-marker { display: none; }
.checkout-trust .trust-summary { flex: 1 1 auto; min-width: 0; font-weight: 650; }
.checkout-trust .trust-more { flex: 0 0 auto; color: #a3541b; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.checkout-trust[open] .trust-more { display: none; }
.checkout-trust ul { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 7px; }
.checkout-trust li { display: flex; gap: 8px; align-items: flex-start; }
.checkout-trust .trust-icon { flex: 0 0 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #1f6b4f; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.checkout-trust > summary .trust-icon { background: #1f6b4f; }
.checkout-trust[open] > summary .trust-summary { color: var(--muted, #66746f); }
@media (max-width: 760px) {
  /* Same message as the collapsed line above: free the space for the address fields. */
  #checkoutAssurance { display: none; }
}

/* ---------- Build your own combo: entry ---------- */
.combo-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto;
  width: min(1240px, calc(100% - 32px));
  padding: 20px 24px;
  border: 1px solid #f1d9a7;
  border-radius: 20px;
  background: linear-gradient(110deg, #fff6e3 0%, #fffdf7 60%, #fdf0e8 100%);
  box-shadow: var(--shadow, 0 18px 50px rgba(23, 63, 53, .12));
}
.combo-entry h2 { margin: 2px 0 6px; color: var(--ink, #173f35); font-size: 22px; }
.combo-entry p { margin: 0; color: var(--muted, #66746f); max-width: 720px; }
.combo-entry .eyebrow { color: #a3541b; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.combo-entry-copy { flex: 1 1 auto; min-width: 0; }
.combo-entry .combo-entry-button { flex: 0 0 auto; width: auto; min-width: 200px; padding: 14px 28px; white-space: nowrap; }
@media (max-width: 640px) {
  .combo-entry { flex-direction: column; align-items: stretch; padding: 16px; margin: 12px auto; }
  .combo-entry h2 { font-size: 19px; }
  .combo-entry .combo-entry-button { width: 100%; min-width: 0; }
}

/* ---------- Build your own combo: modal ---------- */
body.combo-open { overflow: hidden; }
/* Stop above PageSense's cookie bar (height published by commerce-consent-layout.js). */
.combo-modal { position: fixed; inset: 0 0 var(--storefront-consent-inset, 0px) 0; z-index: 90; display: grid; place-items: center; }
.combo-modal.hidden { display: none; }
.combo-backdrop { position: absolute; inset: 0; border: 0; background: rgba(12, 28, 23, .55); cursor: pointer; }
.combo-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 24px));
  max-height: min(880px, calc(100dvh - 24px - var(--storefront-consent-inset, 0px)));
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.combo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.combo-head h2 { margin: 0; font-size: 20px; color: var(--ink, #173f35); }
.combo-close { width: 38px; height: 38px; border: 1px solid var(--line, #dfe7e2); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.combo-rule { margin: 0; padding: 0 20px 8px; color: var(--muted, #66746f); font-size: 14px; }
.combo-quick { display: flex; gap: 14px; padding: 0 20px 8px; }
.combo-link { padding: 0; border: 0; background: none; color: #a3541b; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.combo-list { list-style: none; margin: 0; padding: 4px 12px 8px; overflow-y: auto; flex: 1 1 auto; }
.combo-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-bottom: 1px solid #f0f3f1; border-radius: 12px; }
.combo-row.picked { background: #fff8ea; }
.combo-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; background: var(--cream, #fbf8ef); overflow: hidden; }
.combo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.combo-copy { flex: 1 1 auto; display: grid; }
.combo-name { font-weight: 700; color: var(--ink, #173f35); }
.combo-copy small { color: var(--muted, #66746f); }
.combo-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line, #dfe7e2); border-radius: 999px; overflow: hidden; }
.combo-step { width: 40px; height: 40px; border: 0; background: #fff; font-size: 20px; color: var(--ink, #173f35); cursor: pointer; }
.combo-step:active { background: var(--cream, #fbf8ef); }
.combo-qty { min-width: 30px; text-align: center; font-weight: 800; }
.combo-foot { padding: 12px 20px 18px; border-top: 1px solid var(--line, #dfe7e2); background: #fffdf8; }
.combo-progress { height: 8px; border-radius: 999px; background: #f1e6cf; overflow: hidden; }
.combo-progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #d9822b, #8f1d2c); transition: width .2s ease; }
.combo-summary { margin: 9px 0 10px; font-weight: 700; color: var(--ink, #173f35); }
.combo-error { margin: 0 0 8px; color: var(--danger, #a64038); font-weight: 600; }
.combo-error.hidden { display: none; }
.combo-add { width: 100%; }
.combo-add:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) {
  .combo-modal { place-items: end center; }
  .combo-panel { width: 100vw; max-height: calc(94dvh - var(--storefront-consent-inset, 0px)); border-radius: 20px 20px 0 0; }
}

/* ---------- Combo in cart ---------- */
.cart-line-combo .combo-media { display: grid; place-items: center; background: #fff3dc; color: #8f1d2c; font-size: 13px; font-weight: 800; text-align: center; }

/* ---------- 1 kg upgrade ---------- */
.upsell-box {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed #d9a54a;
  border-radius: 14px;
  background: #fffaf0;
  color: var(--ink, #173f35);
  font-size: 13.5px;
}
.upsell-box strong { font-size: 14px; }
.upsell-button {
  justify-self: start;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #8f1d2c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.cart-upsell { margin: 10px 4px; }

/* ---------- Mobile product sheet: keep "Add to cart" above PageSense's cookie bar ---------- */
@media (max-width: 760px) {
  .product-detail-modal { bottom: var(--storefront-consent-inset, 0px); }
  .product-detail-panel {
    height: calc(94dvh - var(--storefront-consent-inset, 0px));
    max-height: calc(94vh - var(--storefront-consent-inset, 0px));
  }
}

/* ---------- iPhone: no auto-zoom when a field is tapped ----------
   iOS Safari zooms into any input/select under 16px and stays zoomed after "Continue",
   leaving checkout enlarged and cut off on the right. 16px keeps the page at its normal scale
   (pinch-zoom still works). */
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  .field-grid input,
  .field-grid select { font-size: 16px; }
}

/* ---------- Big Diwali offer banner (8–14 Nov 2026) ---------- */
.mega-offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 22px;
  padding: 34px 40px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff7e6;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 214, 102, .28), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(255, 140, 50, .25), transparent 38%),
    repeating-radial-gradient(circle at 92% 88%, rgba(255, 224, 138, .10) 0 2px, transparent 3px 22px),
    linear-gradient(120deg, #4a0716 0%, #7d1426 34%, #a8331f 68%, #d4782a 100%);
  box-shadow: 0 22px 60px rgba(91, 13, 31, .35), inset 0 0 0 2px rgba(255, 214, 102, .55);
}
.mega-offer::before {
  /* rangoli-style ring */
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, .16) 0 10deg, transparent 10deg 20deg);
  mask: radial-gradient(circle, transparent 38%, #000 39%, #000 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%, #000 70%, transparent 71%);
  pointer-events: none;
}
.mega-diya { position: absolute; width: 46px; height: 35px; filter: drop-shadow(0 0 10px rgba(255, 196, 77, .9)); pointer-events: none; }
.mega-diya .diya-bowl { fill: #e9a23b; } .mega-diya .diya-rim { fill: #ffd27a; }
.mega-diya .diya-flame { fill: #ffe08a; transform-origin: 32px 17px; animation: promo-flicker 1.8s ease-in-out infinite; }
.mega-diya-left { left: 16px; bottom: 14px; }
.mega-diya-right { right: 18px; top: 14px; }
.mega-copy { position: relative; z-index: 1; }
.mega-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #f2b84b); color: #5b0d1f;
  font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
}
.mega-pulse { width: 9px; height: 9px; border-radius: 50%; background: #c0182b; box-shadow: 0 0 0 0 rgba(192, 24, 43, .6); animation: mega-pulse 1.6s infinite; }
@keyframes mega-pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 24, 43, .55); } 70% { box-shadow: 0 0 0 10px rgba(192, 24, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 24, 43, 0); } }
.mega-offer h2 { margin: 0; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); letter-spacing: -.01em; }
.mega-gift { margin: 10px 0 0; font-size: clamp(16px, 1.7vw, 21px); font-weight: 750; color: #ffe08a; }
.mega-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 16px 0 0; }
.mega-price del { color: rgba(255, 247, 230, .7); font-size: 20px; }
.mega-price strong { font-size: 40px; line-height: 1; color: #fff; }
.mega-price span { padding: 4px 10px; border-radius: 8px; background: rgba(31, 107, 79, .95); color: #fff; font-weight: 800; font-size: 14px; }
.mega-countdown { display: flex; gap: 8px; margin: 18px 0 0; }
.mega-countdown > span { display: grid; place-items: center; min-width: 58px; padding: 7px 6px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 224, 138, .45); }
.mega-countdown b { font-size: 22px; line-height: 1.1; color: #ffe08a; font-variant-numeric: tabular-nums; }
.mega-countdown small { font-size: 11px; color: #ffe3b0; text-transform: uppercase; letter-spacing: .06em; }
.mega-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.mega-cta {
  min-height: 56px; padding: 14px 34px; border: 0; border-radius: 16px;
  background: linear-gradient(180deg, #ffe08a 0%, #f2b84b 100%); color: #4a0716;
  font-size: 18px; font-weight: 900; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28), inset 0 -3px 0 rgba(160, 90, 20, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mega-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 0, 0, .32), inset 0 -3px 0 rgba(160, 90, 20, .35); }
.mega-cta:disabled { opacity: .7; cursor: wait; transform: none; }
.mega-details-toggle { padding: 0; border: 0; background: none; color: #fff; font-weight: 800; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mega-details { margin: 14px 0 0; padding: 12px 16px 12px 32px; border-radius: 14px; background: rgba(0, 0, 0, .22); font-size: 14px; line-height: 1.5; }
.mega-details.hidden, .mega-error.hidden { display: none; }
.mega-error { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff; color: #9b1c1c; font-weight: 700; font-size: 14px; }
/* product visual */
.mega-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.mega-card { position: relative; flex: 0 0 auto; border-radius: 22px; background: #fff; padding: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.mega-card img { display: block; width: 210px; max-width: none; height: 210px; object-fit: contain; border-radius: 14px; }
.mega-card-back { position: absolute; left: calc(50% - 250px); top: 10px; transform: rotate(-9deg); opacity: .96; }
.mega-card-front { transform: rotate(3deg); margin-left: -40px; }
.mega-card-gift img { width: 170px; height: 170px; }
.mega-card-gift { transform: rotate(4deg); }
.mega-times { position: absolute; right: -14px; top: -14px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #c0182b; color: #fff; font-size: 22px; font-weight: 900; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); border: 3px solid #ffe08a; }
.mega-card-label { display: block; width: 0; min-width: 100%; margin-top: 6px; text-align: center; color: #4a0716; font-weight: 800; font-size: 13px; line-height: 1.25; }
.mega-card-label em { font-style: normal; color: #1f6b4f; }
.mega-plus { margin: 0 14px; font-size: 46px; font-weight: 900; color: #ffe08a; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.mega-ribbon { position: absolute; left: -10px; top: 14px; z-index: 2; padding: 6px 16px 6px 12px; background: #1f6b4f; color: #fff; font-weight: 900; font-size: 16px; letter-spacing: .08em; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); box-shadow: 0 6px 12px rgba(0, 0, 0, .25); }
.mega-ship { position: absolute; right: 0; top: -6px; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #1f6b4f; color: #fff; font-weight: 900; font-size: 13px; line-height: 1.1; text-align: center; transform: rotate(-10deg); border: 3px dashed #ffe08a; box-shadow: 0 8px 16px rgba(0, 0, 0, .3); }
@media (max-width: 960px) {
  .mega-offer { grid-template-columns: 1fr; padding: 26px 22px 24px; }
  .mega-visual { order: -1; min-height: 230px; }
  .mega-card img { width: 160px; height: 160px; }
  .mega-card-gift img { width: 130px; height: 130px; }
  .mega-card-back { left: calc(50% - 205px); }
}
@media (max-width: 560px) {
  .mega-offer { width: calc(100% - 20px); margin: 12px auto 16px; padding: 20px 16px 20px; border-radius: 22px; gap: 14px; }
  .mega-visual { min-height: 0; padding: 14px 0 4px; }
  .mega-card { padding: 7px; border-radius: 16px; }
  .mega-card img { width: 122px; height: 122px; }
  .mega-card-gift img { width: 104px; height: 104px; }
  .mega-card-back { display: none; }
  .mega-card-front { margin-left: 0; transform: rotate(-3deg); }
  .mega-plus { margin: 0 6px; font-size: 32px; }
  .mega-times { width: 44px; height: 44px; font-size: 17px; right: -10px; top: -10px; }
  .mega-card-label { font-size: 11px; }
  .mega-ship { width: 58px; height: 58px; font-size: 10px; right: -4px; top: -2px; border-width: 2px; }
  .mega-price strong { font-size: 34px; }
  .mega-countdown > span { min-width: 0; flex: 1 1 0; }
  .mega-cta { width: 100%; font-size: 17px; }
  .mega-actions { justify-content: center; }
  .mega-diya { width: 34px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .mega-pulse, .mega-diya .diya-flame { animation: none; } .mega-cta { transition: none; } }
@media (max-width: 960px) { .mega-diya-left { display: none; } }
