/* Hero Studio (Shopnik v4). CORE-OWNED (shopnik-books-core).
   Breakpoints checked: 360, 390, 768, 1024, 1280, 1920. Fixed aspect ratios per breakpoint = no layout shift. */

.sh-hero { --sh-radius: var(--store-card-radius, 1.25rem); --sh-accent: var(--store-primary, var(--bs-primary)); position: relative; margin: 0 0 1.25rem; isolation: isolate; }
.sh-hero *, .sh-hero *::before, .sh-hero *::after { box-sizing: border-box; }
.sh-hero img, .sh-hero video { display: block; max-width: 100%; }

/* ---------- frame heights (aspect ratios) ---------- */
.sh-hero { --sh-ar: 1 / 1; }          /* phones: shorter, so the first products show sooner (slides still grow to fit) */
.sh-h-compact { --sh-ar: 5 / 4; }
.sh-h-tall { --sh-ar: 4 / 5; }
@media (min-width: 768px) { .sh-hero { --sh-ar: 16 / 8; } .sh-h-compact { --sh-ar: 21 / 8; } .sh-h-tall { --sh-ar: 16 / 9; } }
@media (min-width: 1200px) { .sh-hero { --sh-ar: 21 / 8; } .sh-h-compact { --sh-ar: 3 / 1; } .sh-h-tall { --sh-ar: 2 / 1; } }
.sh-classic { --sh-ar: 4 / 3.4; }
@media (min-width: 768px) { .sh-classic { --sh-ar: 16 / 7; } }
@media (min-width: 1200px) { .sh-classic { --sh-ar: 12 / 5; } }

/* ---------- track & slides ---------- */
.sh-stage { position: relative; }
.sh-track { position: relative; border-radius: var(--sh-radius); overflow: hidden; background: #0f172a; }
.sh-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); aspect-ratio: var(--sh-ar); width: 100%; min-width: 0; }   /* no fixed min/max height: a slide grows to fit its text and product card */
.sh-track { display: grid; grid-template-columns: minmax(0, 1fr); }   /* a slide can never be wider than the banner */
.sh-track > .sh-item { grid-area: 1 / 1; }
.sh-track > .sh-item:not(.is-active) { visibility: hidden; }
.sh-slide .sh-track > .sh-item { transition: transform .55s cubic-bezier(.22,.61,.36,1), visibility 0s linear .55s; }
.sh-slide .sh-track > .sh-item:not(.is-active) { transform: translateX(100%); }
.sh-slide .sh-track > .sh-item.is-before:not(.is-active) { transform: translateX(-100%); }
.sh-slide .sh-track > .sh-item.is-active { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.sh-fade .sh-track > .sh-item { transition: opacity .6s ease, visibility 0s linear .6s; }
.sh-fade .sh-track > .sh-item:not(.is-active) { opacity: 0; }
.sh-fade .sh-track > .sh-item.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }

.sh-visual, .sh-body { grid-area: 1 / 1; }
.sh-visual { position: relative; overflow: hidden; }
.sh-media, .sh-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-overlay { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(2,6,23,calc(var(--sh-overlay) + .2)) 0%, rgba(2,6,23,var(--sh-overlay)) 55%, rgba(2,6,23,calc(var(--sh-overlay) - .15)) 100%); }
.sh-align-center .sh-overlay { background: rgba(2,6,23,var(--sh-overlay)); }
.sh-align-right .sh-overlay { background: linear-gradient(270deg, rgba(2,6,23,calc(var(--sh-overlay) + .2)) 0%, rgba(2,6,23,var(--sh-overlay)) 55%, rgba(2,6,23,calc(var(--sh-overlay) - .15)) 100%); }
.sh-tone-dark .sh-overlay { background: rgba(255,255,255,var(--sh-overlay)); }

/* ---------- content ---------- */
.sh-body { min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem;
  padding: clamp(1.25rem, 4vw, 3.5rem); padding-bottom: clamp(3.75rem, 6vw, 4.5rem); color: #fff; }
@media (min-width: 992px) { .sh-body { flex-direction: row; align-items: center; justify-content: space-between; } }
.sh-content { max-width: min(40rem, 100%); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.sh-align-center .sh-body { justify-content: center; align-items: center; text-align: center; }
.sh-align-center .sh-content { align-items: center; margin-inline: auto; }
.sh-align-right .sh-body { flex-direction: row-reverse; }
.sh-align-right .sh-content { align-items: flex-end; text-align: right; margin-left: auto; }
@media (max-width: 991.98px) { .sh-align-right .sh-body { flex-direction: column; } }
.sh-tone-dark .sh-body { color: #0f172a; }

.sh-eyebrow { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-tone-dark .sh-eyebrow { background: rgba(15,23,42,.08); border-color: rgba(15,23,42,.2); }
.sh-title { overflow-wrap: break-word; max-width: 100%; margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.6rem); text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.sh-tone-dark .sh-title { text-shadow: none; }
.sh-sub { overflow-wrap: anywhere; margin: 0; font-size: clamp(.98rem, .9rem + .45vw, 1.2rem); line-height: 1.5; opacity: .92; max-width: 36rem; }
.sh-service { margin: 0; font-weight: 600; opacity: .95; }
.sh-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.sh-align-center .sh-ctas { justify-content: center; }
.sh-cta { min-height: 48px; display: inline-flex; align-items: center; padding-inline: 1.5rem; border-radius: var(--store-btn-radius, 999px); font-weight: 700; }
.sh-hero .sh-cta-ghost { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.4) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (hover: hover) { .sh-hero .sh-cta-ghost:hover { background: rgba(255,255,255,.24) !important; } }
.sh-tone-dark .sh-cta-ghost { background: rgba(15,23,42,.06) !important; color: #0f172a !important; border-color: rgba(15,23,42,.3) !important; }

/* promo: coupon + countdown */
.sh-promo { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.sh-coupon { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .9rem; border-radius: .75rem; cursor: pointer; font: inherit; color: inherit;
  background: rgba(255,255,255,.14); border: 1.5px dashed rgba(255,255,255,.65); }
.sh-coupon strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.sh-tone-dark .sh-coupon { background: rgba(15,23,42,.05); border-color: rgba(15,23,42,.45); }
.sh-copied { font-size: .8rem; font-weight: 700; }
.sh-countdown { display: inline-flex; gap: .4rem; font-variant-numeric: tabular-nums; }
.sh-countdown > span { display: inline-flex; align-items: baseline; gap: .1rem; padding: .35rem .55rem; border-radius: .6rem; background: rgba(2,6,23,.45); font-size: .8rem; }
.sh-countdown b { font-size: 1.05rem; }
.sh-countdown.is-ended { opacity: .55; }
.sh-countdown-mini { padding: .25rem .5rem; border-radius: .5rem; background: rgba(15,23,42,.06); font-size: .8rem; }

/* product spotlight card */
.sh-card { display: flex; gap: .9rem; align-items: center; width: min(100%, 24rem); padding: .9rem; border-radius: 1rem; color: var(--bs-body-color, #0f172a);
  background: color-mix(in srgb, var(--bs-body-bg, #fff) 92%, transparent); box-shadow: 0 12px 40px rgba(2,6,23,.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: left; }
.sh-card-img { width: 84px; height: 84px; flex: none; object-fit: cover; border-radius: .75rem; background: var(--bs-tertiary-bg, #f1f5f9); }
.sh-card-body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.sh-card-name { font-weight: 700; color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-card-name:hover { text-decoration: underline; }
.sh-card-meta { font-size: .8rem; opacity: .75; }
.sh-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.sh-price strong { font-size: 1.1rem; }
.sh-was { opacity: .6; font-size: .85rem; }
.sh-off { font-size: .75rem; font-weight: 700; padding: .1rem .4rem; border-radius: .4rem; background: var(--bs-danger, #dc3545); color: #fff; }
.sh-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sh-quick-add { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.sh-add { min-height: 40px; font-weight: 700; }
.sh-variants { display: flex; flex-wrap: wrap; gap: .35rem; width: 100%; }
.sh-chip { position: relative; cursor: pointer; }
.sh-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sh-chip span { display: inline-flex; min-height: 32px; align-items: center; padding: .2rem .6rem; border-radius: .5rem; font-size: .8rem; border: 1px solid var(--bs-border-color, #cbd5e1); }
.sh-chip input:checked + span { border-color: var(--sh-accent); box-shadow: inset 0 0 0 1px var(--sh-accent); font-weight: 700; }
.sh-chip input:focus-visible + span { outline: 2px solid var(--sh-accent); outline-offset: 2px; }
.sh-chip.is-out span { opacity: .45; text-decoration: line-through; }
.sh-soldout { font-weight: 700; font-size: .85rem; opacity: .7; }
.sh-stepper { display: inline-flex; align-items: center; border: 1px solid var(--bs-border-color, #cbd5e1); border-radius: .6rem; overflow: hidden; }
.sh-step { width: 36px; height: 40px; border: 0; background: transparent; font-weight: 700; color: inherit; }
.sh-stepper input { width: 2.6rem; height: 40px; border: 0; text-align: center; background: transparent; color: inherit; -moz-appearance: textfield; }
.sh-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- controls ---------- */
.sh-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: .5rem; z-index: 3; pointer-events: none; }
.sh-controls > * { pointer-events: auto; }
.sh-dots { display: flex; gap: .15rem; }
.sh-dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.sh-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .25s, background .25s; }
.sh-dot.is-active::before { width: 22px; background: #fff; }
.sh-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }
.sh-prev { left: 1rem; } .sh-next { right: 1rem; }
.sh-hero .sh-controls { top: 0; bottom: 0; align-items: flex-end; padding-bottom: .9rem; }
@media (hover: none) { .sh-arrow { display: none; } }
/* Phones and tablets: no buttons over the slide text. Swipe and the dots still work; touching the slide stops autoplay. */
@media (max-width: 991.98px) { .sh-hero .sh-arrow, .sh-hero .sh-pause { display: none !important; } }
@media (hover: hover) { .sh-arrow:hover { background: rgba(255,255,255,.34); } }
.sh-pause { position: absolute; right: .9rem; bottom: .9rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(2,6,23,.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sh-pause svg { display: block; color: #fff; }
.sh-pause .sh-ico-play, .sh-pause[aria-pressed="true"] .sh-ico-pause { display: none; }
.sh-pause[aria-pressed="true"] .sh-ico-play { display: block; }
.sh-arrow:focus-visible, .sh-dot:focus-visible, .sh-pause:focus-visible, .sh-tab:focus-visible, .sh-pin:focus-visible, .sh-coupon:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(2,6,23,.6); }

/* story tabs */
.sh-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: .75rem; border-radius: var(--sh-radius); overflow: hidden;
  background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #e2e8f0); }
.sh-tab { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .15rem .6rem; padding: .9rem 1rem .8rem; text-align: left; border: 0;
  background: transparent; color: var(--bs-body-color); cursor: pointer; min-height: 56px; opacity: .65; transition: opacity .2s, background .2s; }
.sh-tab + .sh-tab { border-left: 1px solid var(--bs-border-color, #e2e8f0); }
.sh-tab.is-active { opacity: 1; }
@media (hover: hover) { .sh-tab:hover { opacity: 1; background: var(--bs-tertiary-bg, #f8fafc); } }
.sh-tab-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bs-border-color, #e2e8f0); }
.sh-tab-fill { display: block; height: 100%; width: 0; background: var(--sh-accent); }
.sh-tab.is-active .sh-tab-fill { width: 100%; }
.sh-tab.is-active.is-running .sh-tab-fill { width: 0; animation: sh-fill var(--sh-interval, 8s) linear forwards; }
.sh-hero.is-paused .sh-tab.is-active .sh-tab-fill { animation-play-state: paused; }
@keyframes sh-fill { to { width: 100%; } }
.sh-tab-num { font-weight: 800; font-size: .8rem; color: var(--sh-accent); font-variant-numeric: tabular-nums; }
.sh-tab-label { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-tab-price { font-size: .78rem; opacity: .75; }
@media (max-width: 767.98px) {
  .sh-tabs { grid-auto-columns: minmax(0, 1fr); border: 0; background: transparent; gap: .35rem; }
  .sh-tab { min-height: 0; padding: .6rem .4rem 0; grid-template-columns: 1fr; }
  .sh-tab + .sh-tab { border-left: 0; }
  .sh-tab-num, .sh-tab-price { display: none; }
  .sh-tab-label { font-size: .75rem; }
}

/* ---------- split layout ---------- */
.sh-layout-split .sh-track { background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #e2e8f0); }
.sh-layout-split .sh-item { aspect-ratio: auto; min-height: 0; max-height: none; grid-template-rows: auto auto; }
.sh-layout-split .sh-visual { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
.sh-layout-split .sh-body { grid-area: 2 / 1; color: var(--bs-body-color); padding-bottom: clamp(3.5rem, 5vw, 4rem); flex-direction: column; align-items: flex-start; justify-content: center; }
.sh-layout-split .sh-overlay { display: none; }
.sh-layout-split .sh-title { text-shadow: none; }
.sh-layout-split .sh-eyebrow { background: color-mix(in srgb, var(--sh-accent) 12%, transparent); border-color: color-mix(in srgb, var(--sh-accent) 35%, transparent); color: var(--bs-body-color); }
.sh-layout-split .sh-cta-ghost { background: transparent !important; color: var(--bs-body-color) !important; border-color: var(--bs-border-color) !important; }
.sh-layout-split .sh-coupon { border-color: var(--bs-border-color); }
.sh-layout-split .sh-card { box-shadow: none; border: 1px solid var(--bs-border-color, #e2e8f0); background: var(--bs-tertiary-bg, #f8fafc); }
.sh-layout-split .sh-dot::before { background: color-mix(in srgb, var(--bs-body-color) 35%, transparent); }
.sh-layout-split .sh-dot.is-active::before { background: var(--sh-accent); }
.sh-layout-split .sh-arrow { top: 30%; }
@media (min-width: 992px) {
  .sh-layout-split .sh-item { grid-template-columns: 1fr 1.05fr; grid-template-rows: 1fr; min-height: clamp(380px, 38vw, 560px); }
  .sh-layout-split .sh-visual { grid-area: 1 / 2; aspect-ratio: auto; }
  .sh-layout-split .sh-body { grid-area: 1 / 1; }
  .sh-layout-split .sh-arrow { top: 50%; }
  .sh-layout-split.sh-h-compact .sh-item { min-height: 340px; }
  .sh-layout-split.sh-h-tall .sh-item { min-height: clamp(460px, 44vw, 660px); }
}

/* ---------- bento ---------- */
.sh-bento-desktop { display: none; }
@media (min-width: 1200px) { .sh-bento-compact { display: none; } .sh-bento-desktop { display: block; } }
.sh-bento { display: grid; gap: 1rem; }
/* overflow: clip (not hidden) keeps rounded corners without stopping a slide from growing to fit its content */
.sh-bento-main .sh-item { border-radius: var(--sh-radius); overflow: hidden; overflow: clip; }
.sh-bento-side { display: grid; gap: 1rem; }
@media (min-width: 768px) { .sh-bento-side { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) {
  .sh-bento:not(.is-single) { grid-template-columns: 2fr 1fr; }
  .sh-bento:not(.is-single) .sh-bento-main .sh-item { height: 100%; aspect-ratio: auto; min-height: 460px; }
  .sh-bento-side { grid-template-columns: 1fr; }
}
.sh-tile { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; border-radius: var(--sh-radius); overflow: hidden;
  background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #e2e8f0); color: var(--bs-body-color); min-height: 200px; }
.sh-tile-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sh-badge { font-size: .75rem; font-weight: 800; padding: .25rem .55rem; border-radius: .5rem; background: color-mix(in srgb, var(--bs-danger, #dc3545) 14%, transparent); color: var(--bs-danger-text-emphasis, #b02a37); }
.sh-tile-product { display: flex; gap: .8rem; align-items: center; }
.sh-tile-product img { width: 80px; height: 80px; border-radius: .75rem; object-fit: cover; flex: none; background: var(--bs-tertiary-bg, #f1f5f9); }
.sh-tile-actions { margin-top: auto; }
.sh-tile-actions .sh-quick-add { width: 100%; }
.sh-tile-actions .sh-add { flex: 1; }
.sh-tile-visual { position: absolute; inset: 0; }
.sh-tile-visual .sh-overlay { background: linear-gradient(0deg, rgba(2,6,23,.75) 0%, rgba(2,6,23,.15) 70%); }
.sh-tile-text { position: relative; z-index: 1; margin-top: auto; color: #fff; display: flex; flex-direction: column; gap: .35rem; }
.sh-tile-title { margin: 0; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.sh-tile-link { color: #fff; font-weight: 700; text-decoration: none; }
.sh-tile-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- shop the look (hotspots) ---------- */
.sh-look { position: relative; }
.sh-look-stage { position: relative; }
.sh-look-stage > .sh-item { border-radius: var(--sh-radius); overflow: hidden; overflow: clip; }
.sh-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sh-pin { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; pointer-events: auto; cursor: pointer;
  background: var(--sh-accent); color: #fff; font-weight: 800; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: sh-pulse 2.4s infinite; }
.sh-pin[aria-expanded="true"] { animation: none; box-shadow: 0 0 0 6px rgba(255,255,255,.45); }
@keyframes sh-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.sh-pop { position: absolute; pointer-events: auto; z-index: 4; width: min(22rem, 90%);
  left: clamp(1rem, calc(var(--x) * 1% + 2rem), calc(100% - 23rem)); top: clamp(1rem, calc(var(--y) * 1% - 4rem), calc(100% - 10rem)); }
.sh-pop .sh-card { width: 100%; }
.sh-look-list { display: none; }
@media (max-width: 767.98px) {
  .sh-pins { display: none; }   /* tiny pins are hard to tap — phones get a list */
  .sh-look-list { display: grid; gap: .75rem; margin-top: 1rem; }
  .sh-look-list .sh-card { width: 100%; box-shadow: none; border: 1px solid var(--bs-border-color, #e2e8f0); }
  .sh-look-heading { margin: 0; font-weight: 800; }
}

/* ---------- device visibility ---------- */
@media (max-width: 767.98px) { .sh-desktop-only { display: none !important; } }
@media (min-width: 768px) { .sh-mobile-only { display: none !important; } }

/* ---------- small screens ---------- */
@media (max-width: 575.98px) {
  .sh-body { padding: 1.1rem 1.1rem 3.6rem; }
  .sh-card { width: 100%; }
  .sh-cta { width: 100%; justify-content: center; }
  .sh-ctas { width: 100%; }
}

/* ---------- classic (stores that haven't opened Hero Studio yet) ---------- */
.sh-classic .sh-track { border-radius: 20px; }
.sh-classic .sh-cta { border-radius: 999px; }

/* ---------- dark mode ---------- */
[data-bs-theme="dark"] .sh-card { background: color-mix(in srgb, var(--bs-body-bg, #0f172a) 90%, transparent); }
[data-bs-theme="dark"] .sh-layout-split .sh-track, [data-bs-theme="dark"] .sh-tile, [data-bs-theme="dark"] .sh-tabs { background: var(--bs-body-bg); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sh-track { scroll-behavior: auto !important; }
  .sh-hero .sh-track > .sh-item, .sh-dot::before, .sh-tab { transition: none !important; }
  .sh-tab-fill { animation: none !important; }
  .sh-pin { animation: none; }
}

/* ================= v4.6 composition (desktop 7:5, bento, trust, tabs, kit, phone peek) ================= */

/* Desktop: a slide with a product card = copy left, fixed-width card right */
@media (min-width: 992px) {
  .sh-has-card .sh-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); text-align: left; }
  .sh-has-card .sh-content { align-items: flex-start; margin: 0; text-align: left; }
  .sh-item.sh-has-card .sh-ctas, .sh-item.sh-has-card .sh-trust { justify-content: flex-start; }   /* beats the centred-slide rule */
  .sh-has-card .sh-title { font-size: clamp(1.9rem, 1rem + 2.1vw, 3rem); }   /* shares the row with a card: keep the headline to 2-3 lines */
  .sh-has-card .sh-card { width: 100%; }
  .sh-has-card:not(.sh-tone-dark) .sh-overlay { background: linear-gradient(90deg, rgba(2,6,23,calc(var(--sh-overlay) + .25)) 0%, rgba(2,6,23,var(--sh-overlay)) 55%, rgba(2,6,23,calc(var(--sh-overlay) - .1)) 100%); }
  .sh-layout-split .sh-has-card .sh-body { grid-template-columns: minmax(0, 1fr); }
}

/* Desktop bento: banner copy bottom-left; the two tiles share the column equally */
@media (min-width: 1200px) {
  .sh-bento-desktop .sh-bento-main .sh-item:not(.sh-has-card) .sh-body { flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; }
  .sh-bento-desktop .sh-bento-main .sh-item:not(.sh-has-card) .sh-content { align-items: flex-start; margin: 0; text-align: left; }
  .sh-bento-desktop .sh-bento-main .sh-item:not(.sh-has-card) .sh-ctas,
  .sh-bento-desktop .sh-bento-main .sh-item:not(.sh-has-card) .sh-trust { justify-content: flex-start; }
  .sh-bento-desktop .sh-bento-main .sh-item:not(.sh-has-card):not(.sh-tone-dark) .sh-overlay { background: linear-gradient(0deg, rgba(2,6,23,calc(var(--sh-overlay) + .35)) 0%, rgba(2,6,23,calc(var(--sh-overlay) - .1)) 70%); }
  .sh-bento-desktop .sh-bento-side { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .sh-bento-desktop .sh-bento-side .sh-tile:only-child { grid-row: span 2; }
}

/* Trust strip under the buttons */
.sh-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .5rem 0 0; padding: .65rem 0 0; border-top: 1px solid rgba(255,255,255,.22); font-size: .85rem; font-weight: 500; }
.sh-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.sh-trust svg { flex: none; opacity: .9; }
.sh-align-center .sh-trust { justify-content: center; }
.sh-tone-dark .sh-trust { border-top-color: rgba(15,23,42,.2); }
.sh-layout-split .sh-trust { border-top-color: var(--bs-border-color, #e2e8f0); }
.sh-layout-split .sh-trust svg { color: var(--sh-accent); }
@media (max-width: 575.98px) { .sh-trust { font-size: .78rem; gap: .25rem .8rem; } .sh-trust li:nth-child(3) { display: none; } }

/* Story tabs: kicker + title + one useful line */
.sh-tab-text { display: flex; flex-direction: column; min-width: 0; }
.sh-tab-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) { .sh-tab-kicker { display: none; } .sh-tab-text { align-items: center; } }

/* Shop the look: kit bar */
.sh-kit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; padding: .85rem 1rem; border-radius: var(--sh-radius);
  background: var(--bs-tertiary-bg, #f8fafc); border: 1px solid var(--bs-border-color, #e2e8f0); color: var(--bs-body-color); }
.sh-kit-sum { display: flex; flex-direction: column; }
.sh-kit-sum span { font-size: .85rem; opacity: .8; }
.sh-kit-add { min-height: 44px; font-weight: 700; }
.sh-kit-status { width: 100%; font-size: .85rem; font-weight: 600; }
.sh-kit-status:empty { display: none; }
@media (max-width: 575.98px) { .sh-kit-add { width: 100%; justify-content: center; } }

/* Phones & tablets: one swipeable row with a peek of the next slide (native swipe, snaps to each slide) */
@media (max-width: 991.98px) {
  .sh-track { display: flex; gap: .6rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; background: transparent; border-radius: 0; }
  .sh-track::-webkit-scrollbar { display: none; }
  .sh-track > .sh-item { flex: 0 0 88%; scroll-snap-align: start; border-radius: var(--sh-radius); overflow: hidden; overflow: clip; background: #0f172a;
    visibility: visible !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .sh-track > .sh-item:only-child { flex-basis: 100%; }
  .sh-layout-split .sh-track { border: 0; }
  .sh-layout-split .sh-track > .sh-item { background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #e2e8f0); }
}

@media (min-width: 1200px) {
  .sh-bento-desktop .sh-bento-main .sh-has-card .sh-title { font-size: clamp(1.8rem, .9rem + 1.6vw, 2.5rem); }
  .sh-bento-desktop .sh-bento-main .sh-has-card .sh-body { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
}
/* deal/service tiles: product centred between the badge and the button, no empty hole */
.sh-tile-product { margin-block: auto; }

/* ================= cart control in the hero (same − qty + as product cards) ================= */
.sh-hero .sh-cart { min-width: 9.5rem; flex: 1 1 9.5rem; }
.sh-hero .sh-cart .lenta-add-btn, .sh-hero .sh-cart .lenta-stepper-pill { min-height: 44px; width: 100%; }
.sh-tile-actions .sh-cart, .sh-tile-actions .sh-variants { width: 100%; }
.sh-card-actions { width: 100%; }

/* ================= trust strip: symmetric, equal columns ================= */
.sh-trust { display: grid; grid-template-columns: repeat(var(--sh-trust-n, 3), minmax(0, 1fr)); gap: 0; width: 100%; max-width: 40rem; }
.sh-trust { align-items: center; }
.sh-trust li { display: flex; align-items: center; gap: .45rem; padding: 0 .85rem; line-height: 1.3; min-width: 0; min-height: 2.6em; }
.sh-trust li:first-child { padding-left: 0; }
.sh-trust li + li { border-left: 1px solid rgba(255,255,255,.22); }
.sh-tone-dark .sh-trust li + li { border-left-color: rgba(15,23,42,.18); }
.sh-layout-split .sh-trust li + li { border-left-color: var(--bs-border-color, #e2e8f0); }
.sh-align-center .sh-trust { margin-inline: auto; }
.sh-align-center .sh-trust li { justify-content: center; }
@media (min-width: 992px) {
  .sh-item.sh-has-card .sh-trust { margin-inline: 0; }
  .sh-item.sh-has-card .sh-trust li { justify-content: flex-start; }
}
/* phones: three equal columns, icon above the words, all three kept */
@media (max-width: 575.98px) {
  .sh-trust { font-size: .72rem; }
  .sh-trust li, .sh-align-center .sh-trust li { flex-direction: column; justify-content: flex-start; text-align: center; gap: .25rem; padding: 0 .35rem; }
  .sh-trust li:first-child { padding-left: .35rem; }
  .sh-trust li:nth-child(3) { display: flex; }
}

/* slides with a product card: trust strip spans the whole banner under copy + card */
.sh-body > .sh-trust { max-width: none; }
@media (min-width: 992px) {
  .sh-item.sh-has-card .sh-body > .sh-trust { grid-column: 1 / -1; margin-top: 0; }
  .sh-item.sh-has-card .sh-body { row-gap: 1.25rem; }
}
@media (max-width: 991.98px) { .sh-body > .sh-trust { width: 100%; } }
