/* ==========================================================================
   Home page (templates/storefront/home.html). Ported from the approved prototype:
   deals-first bento hero (offers carousel, flash deal, coupon, catch of the day),
   offers marquee, rails, category photo cards, promo banners, trust row.
   Tiles are vivid brand art and keep their colours in both themes; everything
   on the canvas uses the shared tokens.
   ========================================================================== */

.hero { padding-top: 8px; }
.home-pin { margin-bottom: 14px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: 1.55fr 1fr 1fr; grid-template-rows: clamp(240px, 16vw, 330px) clamp(240px, 16vw, 330px); gap: 14px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate; color: var(--white); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease); animation: tileIn .9s var(--ease) both; animation-delay: calc(var(--intro, 0s) + .1s); min-width: 0; }
.tile:nth-child(2) { animation-delay: calc(var(--intro, 0s) + .2s); }
.tile:nth-child(3) { animation-delay: calc(var(--intro, 0s) + .3s); }
.tile:nth-child(4) { animation-delay: calc(var(--intro, 0s) + .4s); }
@keyframes tileIn { from { opacity: 0; transform: translateY(60px) scale(.9) rotateX(12deg); filter: blur(8px); } }
.tile:hover { box-shadow: var(--shadow-lg); }
.tile :where(a:not(.btn)) { color: inherit; }
.tile .add-mini { position: absolute; right: 16px; bottom: 16px; left: auto; z-index: 4; }

/* the empty-slot fallbacks */
.bento.no-side .flash { grid-column: span 2; }
.bento.no-flash .coupon-t { grid-column: span 2; }
.bento.no-feat .flash, .bento.no-feat .coupon-t { grid-row: span 2; }
.bento.no-feat.no-flash.no-side { grid-template-columns: 1fr; grid-template-rows: clamp(300px, 22vw, 420px); }

/* ---------- (a) offers carousel ---------- */
.car { grid-row: span 2; background: #061E52; }
.slide { position: absolute; inset: 0; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; isolation: isolate; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--g); }
.slide:nth-child(3n+1) { --g: radial-gradient(120% 120% at 0% 0%, #3B8FFF 0%, #0B4FB8 48%, #061E52 100%); --blob: #8EC3FF; }
.slide:nth-child(3n+2) { --g: radial-gradient(120% 120% at 100% 0%, #FF8A3D 0%, #FF4B2B 45%, #9E1230 100%); --blob: #FFD43B; }
.slide:nth-child(3n+3) { --g: radial-gradient(120% 120% at 0% 100%, #2BC4A6 0%, #0E8A7A 50%, #064A44 100%); --blob: #7FE0FF; }
.slide .blob { position: absolute; z-index: -1; width: 300px; height: 300px; left: -80px; top: -80px; background: var(--blob); border-radius: 50%; filter: blur(50px); opacity: .55; animation: blob 12s ease-in-out infinite alternate; }
.slide:nth-child(3n+2) .blob { left: auto; right: -60px; top: -60px; }
.slide:nth-child(3n+3) .blob { top: auto; bottom: -80px; left: -60px; }
@keyframes blob { to { transform: translate(40px, -30px) scale(1.2); } }
.slide > div:first-of-type { max-width: 54%; position: relative; z-index: 1; }
.slide h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); font-weight: 800; margin-top: 16px; color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.18); }
.slide h2 .big { display: block; font-size: 1.4em; line-height: .95; color: var(--sun); letter-spacing: -.05em; }
.slide p.sub { font-size: 1.02rem; opacity: .9; margin-top: 12px; max-width: 30ch; }
.slide .cta-row { position: relative; z-index: 1; margin-bottom: 28px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.slide.on .anim { animation: slideUp .8s var(--ease) both; animation-delay: calc(var(--intro, 0s) + var(--i, 0) * 90ms + 100ms); }
@keyframes slideUp { from { opacity: 0; transform: translateY(28px); } }
.slide .art { position: absolute; right: 2%; top: 52%; width: 44%; aspect-ratio: 1; translate: 0 -50%; z-index: -1; pointer-events: none; }
.slide .art img { position: absolute; border-radius: 50%; object-fit: cover; border: 5px solid rgba(255,255,255,.9); box-shadow: 0 24px 50px -14px rgba(0,0,0,.55); background: var(--white); }
.slide.on .art img { animation: popIn 1s var(--spring) both, floaty 6s ease-in-out infinite; }
.slide .art img:nth-child(1) { width: 62%; height: 62%; left: 18%; top: 4%; animation-delay: .25s, 0s; }
.slide .art img:nth-child(2) { width: 42%; height: 42%; left: -2%; top: 52%; animation-delay: .4s, -2s; }
.slide .art img:nth-child(3) { width: 38%; height: 38%; left: 56%; top: 60%; animation-delay: .55s, -4s; }
@keyframes popIn { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
@keyframes floaty { 50% { translate: 0 -12px; } }
.off-disc { position: absolute; z-index: 2; right: 5%; top: 7%; width: 104px; height: 104px; border-radius: 50%; background: var(--hot); color: var(--on-hot); display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-weight: 800; line-height: .9; box-shadow: 0 16px 30px -10px rgba(255,75,43,.7); }
.slide.on .off-disc { animation: stamp .7s var(--spring) .7s both, spin 18s linear 1.4s infinite; }
.off-disc b { font-size: 2rem; display: block; letter-spacing: -.04em; }
.off-disc small { font-size: .7rem; letter-spacing: .1em; }
@keyframes stamp { from { opacity: 0; transform: scale(2.2) rotate(-30deg); } }
@keyframes spin { to { rotate: 360deg; } }
.code-pill { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px; border-radius: 15px; border: 2px dashed rgba(255,255,255,.6); background: rgba(255,255,255,.1); font-weight: 800; letter-spacing: .14em; color: var(--white); }
.code-pill button { height: 36px; border-radius: 10px; border: 0; padding: 0 12px; background: var(--white); color: #0B110E; font-weight: 800; font-size: .75rem; letter-spacing: .04em; position: relative; overflow: hidden; }
.car-nav { position: absolute; z-index: 4; left: clamp(22px, 3vw, 40px); right: calc(clamp(22px, 3vw, 40px) + 96px); bottom: 29px; display: flex; gap: 8px; }
.car-nav button { flex: 1; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; cursor: pointer; }
.car-nav button::before { content: ""; position: absolute; inset: -10px 0; }
.car-nav button i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }
.car-nav button.done i { transform: scaleX(1); }
.car-nav button.on i { animation: prog var(--dur, 5.5s) linear forwards; }
.car.paused .car-nav button.on i { animation-play-state: paused; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.car-arrows { position: absolute; z-index: 4; right: clamp(22px, 3vw, 40px); bottom: 12px; display: flex; gap: 6px; }
.car-arrows button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--white); display: grid; place-items: center; transition: background .2s; cursor: pointer; }
.car-arrows button:hover { background: rgba(255,255,255,.3); }
.car-arrows svg { width: 18px; }
.car.single .car-arrows, .car.single .car-nav { display: none; }
/* sparkles (added by home.js) */
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 12px rgba(255,255,255,.7); animation: rise var(--t) linear infinite; animation-delay: var(--dl); opacity: 0; font-style: normal; }
.fx i.star { background: none; box-shadow: none; color: var(--sun); width: auto; height: auto; font-size: var(--s); line-height: 1; }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: .9; } 100% { transform: translateY(-460px) translateX(40px) rotate(220deg); opacity: 0; } }

/* ---------- (b) flash deal ---------- */
.flash { background: linear-gradient(150deg, #FF6A3D, #FF3B2F 60%, #D91E36); padding: 20px; display: flex; flex-direction: column; }
.flash::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); animation: ringPulse 2s ease-in-out infinite; pointer-events: none; }
@keyframes ringPulse { 50% { opacity: .2; } }
.flash-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flash-top b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 1rem; letter-spacing: -.02em; white-space: nowrap; }
.flash-top b svg { width: 18px; animation: zap 1.4s ease-in-out infinite; }
.timer { display: flex; gap: 4px; font-family: var(--f-display); font-weight: 700; }
.timer span { background: rgba(0,0,0,.22); border-radius: 8px; min-width: 32px; height: 30px; display: grid; place-items: center; font-size: .9rem; overflow: hidden; position: relative; font-variant-numeric: tabular-nums; }
.timer span.flip { animation: flipNum .45s var(--ease); }
@keyframes flipNum { from { transform: translateY(-40%); opacity: .2; } }
.flash-body { display: flex; align-items: center; gap: 12px; flex: 1; margin-top: 10px; min-height: 0; }
.flash-img { width: 46%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--white); flex-shrink: 0; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); transform: rotate(-5deg); transition: transform .5s var(--spring); display: block; }
.flash:hover .flash-img { transform: rotate(0) scale(1.05); }
.flash-img img { width: 100%; height: 100%; object-fit: cover; }
.flash-info { min-width: 0; padding-bottom: 34px; }
.flash-info .nm { display: block; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.flash-info .nm:hover { text-decoration: underline; }
.flash-info .wt { font-size: .76rem; opacity: .85; }
.flash-info .pr { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 8px; animation: priceBeat 2.4s ease-in-out infinite; transform-origin: left; }
.flash-info s { opacity: .7; font-size: .85rem; font-weight: 600; letter-spacing: 0; }
@keyframes priceBeat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.08); } 86% { transform: scale(.98); } }
.flash-off { display: inline-block; margin-top: 10px; background: var(--sun); color: var(--sun-ink); font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; letter-spacing: .04em; }
.stock { margin-top: 10px; }
.stock small { font-size: .72rem; font-weight: 700; opacity: .9; }
.stock .bar { height: 6px; border-radius: 6px; background: rgba(0,0,0,.2); margin-top: 4px; overflow: hidden; }
.stock .bar i { display: block; height: 100%; background: var(--sun); border-radius: 6px; animation: grow 1.6s var(--ease) .6s both; }
@keyframes grow { from { width: 0; } }

/* ---------- (c) coupon ---------- */
.coupon-t { background: var(--sun); color: var(--sun-ink); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.coupon-t .pct { font-family: var(--f-display); font-weight: 800; font-size: 4.2rem; letter-spacing: -.06em; line-height: .85; animation: pctIn 1.2s var(--spring) both; animation-delay: calc(var(--intro, 0s) + .8s); }
.coupon-t .pct small { font-size: .3em; letter-spacing: 0; margin-left: 4px; }
.coupon-t .pct-eta { font-size: clamp(2.2rem, 1.4rem + 1.6vw, 3.2rem); }
@keyframes pctIn { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.coupon-t p { font-weight: 600; font-size: .86rem; margin-top: 6px; max-width: 26ch; }
.ticket { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--sun-ink); color: var(--sun); border-radius: 14px; padding: 6px 6px 6px 14px; position: relative; animation: ticketShake 4s ease-in-out infinite 3s; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); top: 50%; translate: 0 -50%; }
.ticket::before { left: -7px; } .ticket::after { right: -7px; }
.ticket b { font-family: var(--f-display); letter-spacing: .12em; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket button, .ticket .ticket-go { border: 0; background: var(--sun); color: var(--sun-ink); border-radius: 10px; height: 34px; padding: 0 12px; font-weight: 800; font-size: .74rem; position: relative; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ticket .ticket-go svg { width: 14px; }
@keyframes ticketShake { 0%, 88%, 100% { transform: none; } 90% { transform: rotate(-2deg) scale(1.03); } 92% { transform: rotate(2deg) scale(1.03); } 94% { transform: rotate(-1deg); } }
.coupon-t .gift { position: absolute; right: -14px; top: -14px; width: 120px; color: var(--sun-ink); opacity: .1; animation: wiggle 4s ease-in-out infinite; z-index: -1; }
@keyframes wiggle { 50% { transform: rotate(12deg) scale(1.05); } }

/* ---------- (d) catch of the day ---------- */
.feat { grid-column: span 2; background: var(--sea); }
.feat img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.feat:hover img.bg { transform: scale(1.06); }
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,30,46,.92) 0%, rgba(4,30,46,.6) 45%, transparent 75%); }
.feat-in { padding: 22px 24px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; max-width: 62%; }
.feat h3 { font-size: 1.7rem; font-weight: 800; margin-top: 10px; color: var(--white); }
.feat h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.feat p { opacity: .85; font-size: .86rem; margin-top: 6px; }
.feat .pr { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.feat .pr b { font-family: var(--f-display); font-size: 1.8rem; letter-spacing: -.04em; }
.feat .pr s { opacity: .65; }
.feat .pr .tag { background: var(--hot); color: var(--on-hot); font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.feat .pr .per { font-size: .78rem; opacity: .8; }
.sticker-sea { background: #7FE0FF; color: #062A44; }
.sticker-ice { background: #DCEBFF; color: #0B3E91; }

/* product-tile stepper on the vivid tiles */
.tile .stepper { box-shadow: 0 10px 22px -8px rgba(0,0,0,.5); }
.tile .add { border-color: var(--white); background: var(--white); color: #0B3E91; }
.tile .add:hover { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }

/* ---------- marquee ---------- */
.home-mq { margin-top: 18px; animation: fadeUp 1s var(--ease) both; animation-delay: calc(var(--intro, 0s) + .6s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } }

/* ---------- category photo cards ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat { position: relative; padding: 18px; border-radius: 22px; background: #0B1F3A; overflow: hidden; aspect-ratio: 4 / 5; max-height: 340px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: var(--white); isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s; }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,26,64,0) 35%, rgba(4,26,64,.55) 65%, rgba(4,26,64,.92) 100%); }
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat b { display: block; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.03em; line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.cat small { display: block; font-size: .76rem; font-weight: 700; opacity: .85; margin-top: 4px; }
.cat img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); will-change: transform; }
.cat:hover img { transform: scale(1.08); }
.cat .go { width: 36px; height: 36px; border-radius: 12px; background: var(--white); color: #0B3E91; display: grid; place-items: center; flex-shrink: 0; transform: translateX(-6px); opacity: 0; transition: all .35s var(--ease); }
.cat:hover .go, .cat:focus-visible .go { opacity: 1; transform: none; }
.cat .go svg { width: 16px; }

/* ---------- promo banners ---------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo { border-radius: var(--r); padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; color: var(--white); min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; isolation: isolate; }
.promo h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 800; max-width: 14ch; margin-top: 14px; color: var(--white); }
.promo p { opacity: .88; margin-top: 8px; max-width: 32ch; font-size: .92rem; }
.promo.basket { background: linear-gradient(135deg, #5B2BD9, #8B3FE0 55%, #C04BD8); }
.promo.fresh { background: linear-gradient(135deg, #0B3E91, #1660D4); }
.promo.vmix { grid-column: 1 / -1; background: linear-gradient(120deg, #0E7A55, #12A36B 55%, #3CC48A); min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.promo.vmix h3 { max-width: none; }
.vmix-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 560px; justify-content: flex-end; }
.vmix-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); font-weight: 700; font-size: .84rem; transition: background .2s; }
.vmix-chip:hover { background: rgba(255,255,255,.28); }
.promo .pimgs { position: absolute; right: 18px; bottom: 18px; display: flex; z-index: -1; transform: translateY(var(--py, 0px)); transition: transform .1s linear; }
.promo .pimgs img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.85); margin-left: -26px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .5s var(--spring); background: var(--white); }
.promo:hover .pimgs img:nth-child(1) { transform: translateY(-10px) rotate(-8deg); }
.promo:hover .pimgs img:nth-child(2) { transform: translateY(-16px); transition-delay: .05s; }
.promo:hover .pimgs img:nth-child(3) { transform: translateY(-10px) rotate(8deg); transition-delay: .1s; }
.promo .ring { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); right: -110px; top: -140px; z-index: -1; animation: spin 30s linear infinite; }
.promo .temp { position: absolute; right: 26px; top: 26px; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.05em; line-height: 1; display: grid; justify-items: end; gap: 4px; }
.promo .temp small { font-size: .74rem; letter-spacing: .14em; font-family: var(--f-body); opacity: .8; }
.promo .temp .flake { width: 30px; opacity: .85; animation: spin 14s linear infinite; }

/* ---------- responsive ---------- */
@media (min-width: 1600px) {
  .slide h2 { font-size: clamp(3rem, 1.5rem + 2vw, 4rem); }
}
@media (max-width: 1200px) {
  .bento { grid-template-columns: 1.3fr 1fr 1fr; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flash-img { width: 42%; }
  .flash-info .pr { font-size: 1.6rem; }
}
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 230px 210px; }
  .car { grid-column: span 2; grid-row: auto; }
  .feat { grid-column: span 2; }
  .bento.no-feat { grid-template-rows: 380px 230px; }
  .bento.no-feat .flash, .bento.no-feat .coupon-t { grid-row: auto; }
  .promos { grid-template-columns: 1fr; }
  .promo.vmix { flex-direction: column; align-items: flex-start; }
  .vmix-row { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .bento { grid-template-rows: 400px auto 200px; gap: 10px; }
  .bento.no-feat { grid-template-rows: 400px auto; }
  .slide > div:first-of-type { max-width: 100%; }
  .slide .cta-row { margin-bottom: 22px; }
  .slide .art { width: 36%; right: -3%; top: auto; bottom: 24%; translate: 0 0; }
  .slide h2 { font-size: 1.9rem; max-width: 12ch; }
  .slide p.sub { font-size: .9rem; max-width: 22ch; }
  .car-nav { right: clamp(22px, 3vw, 40px); }
  .off-disc { width: 74px; height: 74px; top: 6%; right: 5%; }
  .off-disc b { font-size: 1.5rem; }
  .car-arrows { display: none; }
  .flash { padding: 14px; }
  .flash-body { flex-direction: column; align-items: flex-start; gap: 8px; }
  .flash-img { width: 70%; }
  .flash-info { padding-bottom: 30px; }
  .flash-info .pr { font-size: 1.5rem; }
  .flash-top b span { display: none; }
  .flash-top { flex-wrap: wrap; gap: 6px; }
  .timer span { min-width: 26px; height: 26px; font-size: .8rem; }
  .tile .add-mini { right: 12px; bottom: 12px; }
  .coupon-t { padding: 14px; gap: 12px; }
  .coupon-t .pct { font-size: 3.2rem; }
  .coupon-t .pct-eta { font-size: 2rem; }
  .ticket { padding-left: 10px; }
  .ticket b { font-size: .8rem; letter-spacing: .06em; }
  .ticket button, .ticket .ticket-go { padding: 0 8px; }
  .feat-in { max-width: 80%; padding: 18px; }
  .feat h3 { font-size: 1.35rem; }
  .feat .pr b { font-size: 1.5rem; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { aspect-ratio: 1; padding: 14px; }
  .cat .go { opacity: 1; transform: none; width: 30px; height: 30px; }
  .promo .pimgs img { width: 64px; height: 64px; }
  .promo .temp { font-size: 1.8rem; right: 20px; top: 20px; }
  .promo.fresh h3 { max-width: 11ch; }
}
@media (max-width: 380px) {
  .slide .art { width: 32%; }
  .coupon-t .pct { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx { display: none; }
  .tile, .home-mq { animation: none; }
}

/* ---------- floating recurring basket (includes/basket_float.html) ---------- */
.hf { position: fixed; z-index: 40; right: clamp(16px, 2.4vw, 32px); bottom: 24px; }
.hf-anchor { position: relative; }
.hf-bubble { display: block; border: 1px solid var(--line); border-radius: 24px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); padding: 6px 6px 8px; cursor: pointer; transition: transform .2s ease, border-color .2s; }
.hf-bubble:hover { border-color: var(--brand); }
.hf-date { display: block; text-align: center; font-size: .7rem; font-weight: 800; color: var(--brand); margin-top: -2px; }
.hf-dismiss { position: absolute; top: -8px; left: -8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; padding: 0; }
.hf-dismiss:hover { color: var(--ink); }
.hf-dismiss svg { width: 14px; }
.hf-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); transform-origin: bottom right; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.hf-panel:focus { outline: none; }
.hf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; background: linear-gradient(160deg, var(--mint), var(--surface)); }
.hf-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; }
.hf-eyebrow svg { width: 13px; }
.hf-name { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; margin-top: 2px; }
.hf-when { font-size: .8rem; color: var(--ink-2); }
.hf-x { width: 36px; height: 36px; flex-shrink: 0; margin-right: -6px; }
.hf-list { list-style: none; margin: 0; padding: 0 16px; max-height: 260px; overflow-y: auto; }
.hf-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.hf-list li:first-child { border-top: 0; }
.hf-ph { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.hf-ph img { width: 100%; height: 100%; object-fit: cover; }
.hf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hf-txt b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-txt span { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-amt { font-weight: 800; font-size: .86rem; }
.hf-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.hf-offer { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; background: color-mix(in srgb, var(--hot) 12%, transparent); color: var(--ink); }
.hf-offer.on { background: var(--mint); color: var(--mint-ink); }
.hf-offer svg { width: 15px; flex-shrink: 0; }
.hf-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .82rem; color: var(--ink-2); }
.hf-total b { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.hf-actions { display: flex; gap: 8px; }
.hf-actions .btn-brand { flex: 1; }
@media (max-width: 767px) {
  .hf { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 12px; }
  body:has(.cart-bar:not(.hidden)) .hf { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
}
.slide h2.banner-h { font-size: clamp(1.8rem, 1rem + 2.1vw, 2.9rem); max-width: 13ch; }
@media (max-width: 767px) { .xs-hide { display: none; } }
.coupon-t p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
