/* Shared sizing keeps the offer, shop navigation, and cards on one set of gutters. */
:root { --builder-width: 1248px; --gutter: clamp(16px, 4vw, 64px); }
.catalog, .savings-layout {
  width: min(var(--builder-width), calc(100% - 2 * var(--gutter)));
}
.hero { min-height: clamp(235px, 18vw, 300px); }
.hero-copy { width: min(780px, 90%); padding: 22px 0 25px; }
.hero h1 { margin: 10px 0; }
.hero-build {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 26px; margin-top: 17px; border-radius: 9px; background: #b9edff;
  color: #072a3b; font-size: 1.07rem; font-weight: 750;
}
.hero-build:hover { background: white; }
.savings-band { background: #edf8fc; border-bottom: 1px solid #d0e7ef; }
.savings-layout {
  display: grid; grid-template-columns: minmax(210px, .95fr) minmax(0, 2.2fr);
  align-items: center; gap: clamp(24px, 5vw, 80px); padding-block: 17px;
}
.savings-heading { display: flex; align-items: center; gap: 13px; }
.savings-heading h2 { font-size: clamp(1.32rem, 1.6vw, 1.62rem); }
.savings-heading p { margin-top: 4px; color: #36566a; font-size: 1rem; line-height: 1.2; }
.savings-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 50%; background: #d4edf7; color: #155474; }
.savings-icon svg { width: 21px; height: 21px; }
.savings-ladder { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0; }
.savings-ladder li { position: relative; display: grid; gap: 1px; padding-top: 9px; line-height: 1.13; }
.savings-ladder li::before { content: ''; height: 4px; border-radius: 4px; background: #c3dce6; position: absolute; inset: 0 0 auto; }
.savings-ladder .earned::before { background: #007ca6; }
.savings-ladder .current-tier::before { background: #004764; }
.savings-ladder b { font-size: 1.27rem; }
.savings-ladder b small { font-size: .87rem; font-weight: 650; }
.savings-ladder span { color: #456174; font-size: .92rem; }
.catalog { padding: 0; }
.collection-tools { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #cedeE6; gap: 12px; }
.model-links { display: flex; align-items: stretch; gap: 26px; }
.model-links a { position: relative; padding: 18px 1px; color: #465d6a; font-size: 1.1rem; font-weight: 650; }
.model-links a[aria-current] { color: #075677; }
.model-links a[aria-current]::after { position: absolute; content: ''; inset: auto 0 -1px; height: 3px; border-radius: 3px; background: #0084ae; }
.model-links a:hover, .compare-trigger:hover { color: #01779f; }
.compare-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0 6px 12px; min-height: 44px; font-size: 1rem; font-weight: 700; }
.compare-trigger svg { width: 19px; height: 19px; }
.shelf { padding: 29px 0 32px; }
.shelf-heading { margin-bottom: 16px; }
.shelf-title { align-items: center; gap: 12px; }
.shelf h2 { font-size: clamp(1.85rem, 2.65vw, 2.6rem); }
.flavor-count { font-size: .92rem; color: #456174; border-left: 1px solid #b4cbd6; padding-left: 12px; }
.shelf-desc { font-size: 1.05rem; line-height: 1.35; margin-top: 5px; }
.flavor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.shelf:not(.expanded) .card:nth-child(n+6) { display: none; }
.card { min-width: 0; border-radius: 15px; border: 1px solid #d5e2e9; box-shadow: none; }
.card.active { border-color: #1686aa; box-shadow: 0 0 0 1px #1686aa; }
.p-art { aspect-ratio: 1.32; padding: 13px 10px 11px; background: radial-gradient(ellipse at 32% 12%, var(--tint) 6%, transparent 86%), var(--hue); }
.p-art > img { width: 90%; height: 100%; }
.picked { display: none; position: absolute; left: 8px; top: 8px; align-items: center; gap: 4px; background: #fff; color: #12475b; border-radius: 7px; padding: 3px 7px; font-size: .82rem; font-weight: 750; line-height: 1.2; }
.active .picked { display: flex; }
.picked svg { width: 13px; height: 13px; }
.pack-shadow { display: grid; place-items: center; position: absolute; inset: 12% 0; filter: drop-shadow(2px 4px 3px #16344732); }
.pack-window { height: 100%; display: block; position: relative; overflow: hidden; }
.p-art .pack-window img { position: absolute; width: var(--img-width); height: var(--img-height); max-width: none; left: var(--img-left); top: var(--img-top); object-fit: fill; filter: none; transform: none; }
.card-info { padding: 13px 14px 14px; align-items: stretch; text-align: left; }
.name-btn { display: block; text-align: left; align-self: start; min-height: 0; font: 700 clamp(1.16rem, 1.45vw, 1.32rem)/1.12 var(--body); color: var(--ink); }
.name-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-info .price { margin: auto 0 14px; padding-top: 6px; justify-content: start; font-size: 1.09rem; font-weight: 650; }
.price s { font-size: .9rem; }
.card-info .control { margin-top: 0; }
.ticket, .counter, .detail-info .ticket, .detail-info .counter { height: 46px; border-radius: 9px; font-size: 1rem; }
.ticket { padding: 0 14px; justify-content: center; gap: 9px; }
.ticket > span:first-child { flex: none; }
.ticket .tab, .detail-info .ticket .tab { width: auto; height: auto; border: 0; border-radius: 0; color: #b2eaff; background: none; }
.ticket .tab svg { width: 16px; height: 16px; }
.counter button, .detail-info .counter button, .cart-list .counter button { height: 44px; width: 44px; font-size: 1.25rem; }
.counter { overflow: hidden; }
.cart-list .counter { width: 118px; height: 46px; }
.show-flavors { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; margin: 17px auto 0; border: 1px solid #adc7d3; border-radius: 9px; background: white; font-weight: 700; font-size: 1rem; }
.show-flavors::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.show-flavors[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.show-flavors:hover { background: #eaf5fa; }
.quotes { max-width: 1150px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.model-dialog { width: min(640px,calc(100% - 24px)); border-radius: 18px; max-height: 88dvh; }
.model-dialog .dialog-head { align-items: start; }
.model-dialog .dialog-head h2 { font-size: clamp(1.75rem, 4vw, 2.45rem); }
#compare-content { padding: 0 20px 7px; }
.model-row { border-bottom: 1px solid #dee8ed; display: grid; grid-template-columns: 55px minmax(0,1fr) auto; gap: 14px; padding: 17px 0; align-items: center; }
.model-row:last-child { border: 0; }
.model-pic { height: 64px; display: grid; place-items: center; border-radius: 8px; background: var(--tone); padding: 6px; overflow: hidden; }
.model-pic img { width: 100%; height: 52px; object-fit: contain; }
.model-row h3 { font-size: 1.28rem; margin-bottom: 4px; }
.model-row p { line-height: 1.28; font-size: .98rem; color: #415967; }
.model-price { display: grid; gap: 4px; text-align: right; }
.model-price b { font-size: 1.15rem; }
.model-price a { color: #09617e; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.detail-info .detail-rating { margin: 6px 0 12px; font-weight: 650; }
.bundle-bar { border-radius: 14px; }
.bundle-bar > div > span { font-size: .97rem; }
.bundle-bar .blue-btn, .x { min-height: 44px; }
.x { min-width: 44px; }
@media (min-width: 701px) and (max-width: 1000px) {
  .flavor-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shelf:not(.expanded) .card:nth-child(n+4) { display: none; }
  .quotes { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .hero { min-height: 208px; }
  .hero-copy { padding: 14px 0 32px; width: 96%; }
  .hero h1 { font-size: clamp(2rem, 8.1vw, 3.2rem); }
  .hero-build { margin-top: 13px; min-height: 44px; padding: 0 21px; }
  .savings-layout { grid-template-columns: 1fr; gap: 12px; padding-block: 12px 14px; }
  .savings-icon { display: none; }
  .savings-heading > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; width: 100%; gap: 3px 8px; }
  .savings-heading h2 { font-size: 1.15rem; }
  .savings-heading p { margin: 0; font-size: .91rem; }
  .savings-ladder { gap: 6px; }
  .savings-ladder li { padding-top: 7px; }
  .savings-ladder b { font-size: 1.1rem; }
  .savings-ladder b small, .savings-ladder span { font-size: .86rem; }
  .collection-tools { gap: 0; flex-wrap: wrap; }
  .model-links { gap: 16px; }
  .model-links a { padding: 13px 0; }
  .compare-trigger { min-height: 44px; }
  .shelf { padding: 22px 0; }
  .shelf h2 { font-size: 1.9rem; }
  .shelf-desc { max-width: none; font-size: 1rem; }
  .shelf-heading { margin-bottom: 13px; }
  .flavor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .shelf:not(.expanded) .card:nth-child(n+5) { display: none; }
  .card-info { padding: 10px; }
  .card-info .price { margin: auto 0 11px; padding-top: 5px; font-size: 1rem; }
  .name-btn { font-size: 1.15rem; }
  .p-art { aspect-ratio: 1.19; }
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-columns: auto; overflow: visible; }
  .model-row { gap: 10px; grid-template-columns: minmax(0,1fr) auto; }
  .model-row .model-pic { display: none; }
  .model-price a { display: inline-flex; align-items: center; justify-content: end; min-height: 40px; }
}
@media (max-width: 440px) {
  .model-links { gap: 13px; }
  .model-links a { font-size: 1rem; }
  .compare-trigger { font-size: .94rem; padding-left: 4px; gap: 4px; }
  .compare-trigger svg { width: 16px; }
  .bundle-bar { gap: 5px; }
  .bundle-bar > div > span { font-size: .9rem; }
}

body.has-bundle { scroll-padding-bottom: 90px; }
html:has(.has-bundle) { scroll-padding-bottom: 90px; }

/* Free shipping and free gift thresholds, shown above the bundle lines. */
.perk-strip { display: grid; gap: 7px; margin-top: 9px; }
.perk {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px;
  border: 1px solid #c4e3f1; border-radius: 10px; background: #f4fbfe; padding: 9px 11px;
}
.perk-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #dcedf5; color: #155474; }
.perk-mark svg { width: 17px; height: 17px; }
.perk-copy { display: grid; gap: 1px; min-width: 0; }
.perk-copy strong { font-size: .95rem; }
.perk-copy span { font-size: .82rem; color: var(--muted); }
.perk > b { font-size: .92rem; color: #155474; white-space: nowrap; }
.perk.got { background: #e7f7ee; border-color: #b9dfc7; }
.perk.got .perk-mark { background: #0f7a3d; color: white; }
.perk.got > b { color: #0f7a3d; }
.bar-perks { display: block; font-size: .82rem; font-weight: 750; color: #9df0c2; }
.gift-pick{border:1px solid var(--line,#d9e3ea);border-radius:16px;padding:12px 14px;margin:0 0 16px;display:grid;gap:8px}
.gift-pick legend{font-weight:800;padding:0 6px}
.gift-pick label{display:flex;align-items:center;gap:10px;cursor:pointer;padding:6px;border-radius:12px}
.gift-pick label:has(input:checked){background:#e7f6ec}
.gift-pick img{width:40px;height:40px;object-fit:contain}
.gift-pick span{flex:1;font-weight:700}
