/* Owner, 2026-11-28, both storefronts (legacy copy home-cards-<sha12>.css via v2/.deploy/home-fixes/publish_legacy.py).
   1. Home category row: each category is a card (picture on top, name below), bigger: 3 across on phones, 5 on tablets, 8 on desktop.
   2. Bottom (footer) banner: exactly the content container's width; 4:1 box (3:1 on phones).
   3. Flash sale page: product pictures sit square on a white pad inside the card, whole picture shown. */

/* 1. category cards */
html body .sc>.ct{--n:3}
@media (min-width:700px){html body .sc>.ct{--n:5}}
@media (min-width:1000px){html body .sc>.ct{--n:8}}
html body .ct{display:flex!important;flex-direction:column;align-items:center;gap:8px;padding:12px 8px 11px;border-radius:14px;
  background:var(--cd)!important;border:1px solid color-mix(in srgb,var(--tx) 10%,transparent);box-shadow:0 1px 3px color-mix(in srgb,var(--tx) 6%,transparent);
  color:var(--tx);font-size:13px;font-weight:700;line-height:1.25;text-align:center;transition:border-color .2s,box-shadow .2s,transform .2s}
html body .ct>div{width:100%!important;max-width:112px;height:auto!important;aspect-ratio:1;margin:0!important;border:0!important;border-radius:12px!important;box-shadow:none!important;
  background:color-mix(in srgb,var(--tx) 4%,var(--cd))!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;font-size:34px}
html body .ct>div img{object-fit:contain;border-radius:12px}
html body .ct>span,html body .ct{overflow-wrap:anywhere}
html body .ct{min-height:0}
@media (min-width:1000px){html body .sc-bcard .sc-bc-off{font-size:15px;padding:10px 6px}html body .sc-bcard .sc-bc-logo img{max-height:26px!important}}
html body .ct>div~*{display:block}
@media (hover:hover){html body .ct:hover{border-color:color-mix(in srgb,var(--rd,#e53935) 40%,transparent);box-shadow:0 6px 18px color-mix(in srgb,var(--tx) 10%,transparent);transform:translateY(-2px)}}
@media (max-width:699px){html body .ct{font-size:12.5px;gap:7px}}
/* owner, 2026-11-29: the picture fills the card up to its border (no padding); the name sits under it */
html body .ct{padding:0 0 10px!important;overflow:hidden}
html body .ct>div{max-width:none!important;border-radius:13px 13px 0 0!important;background:#fff!important}
html body .ct>div img{object-fit:cover!important;border-radius:0!important}
html body .ct>:not(div){padding:0 6px}

/* 2. bottom banner */
html body .storefront-bottom-banner{height:auto!important;padding:0!important;width:calc(100% - 2 * var(--sc-gutter,8px))!important;max-width:var(--sc-wrap,1320px)!important;margin-left:auto!important;margin-right:auto!important}
html body .storefront-bottom-banner-track{height:auto!important}
/* owner, 2026-11-29: shorter box: 4:1 from 768px (1320 x 330 at desktop), 3:1 on phones; the picture fills it (cover, centred) */
html body .storefront-bottom-banner-track{aspect-ratio:3/1}
@media (min-width:768px){html body .storefront-bottom-banner-track{aspect-ratio:4/1}}
html body .storefront-footer-banner-item{height:100%!important}
html body .storefront-bottom-banner img{height:100%!important;object-fit:cover!important;object-position:center;border-radius:12px}

/* 3. flash sale page pictures */
html body .sc-camp-flash-sale .pc .pi{position:relative!important;aspect-ratio:1!important;height:auto!important;min-height:0!important;padding:0!important;overflow:hidden;background:#fff!important;border-bottom:1px solid #f0f1f5}
/* owner, 2026-11-29: no white pad, the picture fills the box up to the card edge */
html body .sc-camp-flash-sale .pc .pi img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:0!important;transform:none}
/* timer in the middle of the title bar (bundle cdt() fills #cd every second on the old storefront; v2 Countdown) */
html body .sc-camp-flash-sale .sc-shop-head{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
html body .sc-camp-flash-sale .sc-shop-head h2{justify-self:start;min-width:0;margin:0}
html body .sc-camp-flash-sale .sc-shop-head .cdb{justify-self:center;margin:0;background:none!important;border:0!important;-webkit-backdrop-filter:none;backdrop-filter:none;color:#fff!important;font-size:17px;font-weight:800;letter-spacing:.5px;padding:0;white-space:nowrap}
html body .sc-camp-flash-sale .sc-shop-head .sc-shop-sort{justify-self:end}
@media (max-width:599px){html body .sc-camp-flash-sale .sc-shop-head{grid-template-columns:1fr auto;row-gap:6px}html body .sc-camp-flash-sale .sc-shop-head .cdb{grid-column:1/-1;grid-row:2;font-size:16px}}
[data-theme=dark] .sc-camp-flash-sale .pc .pi{border-bottom-color:transparent}

/* 4. brand cards (owner's picture, 2026-11-28): logo pill, product picture, coloured offer band. Markup: v2 app/index.tsx BrandCard,
      legacy storefront-src/brand-cards.js. 2 across on phones, 5 on tablets, 7 on desktop. */
html body .sc>.br.sc-bcard{--n:2}
@media (min-width:700px){html body .sc>.br.sc-bcard{--n:5}}
@media (min-width:1000px){html body .sc>.br.sc-bcard{--n:7}}
html body .sc-bcard{--bc-bg:#f3f4f6;--bc-band:#55575d;display:flex!important;flex-direction:column;align-items:stretch;gap:0;padding:0!important;height:auto!important;overflow:hidden;
  border-radius:14px!important;border:1px solid color-mix(in srgb,var(--bc-band) 22%,transparent)!important;background:var(--bc-bg)!important;color:#fff!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 1px 3px rgba(20,30,60,.06);transition:box-shadow .25s,transform .25s,border-color .25s;text-decoration:none}
html body .sc-bcard[data-tone="1"]{--bc-bg:#fbf6e9;--bc-band:#b5a27a}
html body .sc-bcard[data-tone="2"]{--bc-bg:#eef4fb;--bc-band:#141a33}
html body .sc-bcard[data-tone="3"]{--bc-bg:#fdf0f0;--bc-band:color-mix(in srgb,var(--rd,#e53935) 85%,#000)}
/* the old brand chip styles size every span/img to 30px: undo that inside the card */
html body .sc-bcard>span{width:auto!important;height:auto!important;border-radius:0;font-size:inherit;color:inherit}
html body .sc-bcard img{max-width:none!important;max-height:none!important}
html body .sc-bcard .sc-bc-logo{align-self:center;margin:12px 12px 0;padding:6px 14px;min-height:40px;max-width:calc(100% - 24px);box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  background:#fff;border-radius:8px!important;box-shadow:0 1px 2px rgba(20,30,60,.06)}
html body .sc-bcard .sc-bc-logo img{display:block;max-height:30px!important;max-width:120px!important;width:auto;height:auto;object-fit:contain}
html body .sc-bcard .sc-bc-logo b{color:#1a2236;font-size:15px;font-weight:800;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .sc-bcard .sc-bc-pic{display:block;aspect-ratio:4/3;margin:10px 12px 8px;position:relative}
html body .sc-bcard .sc-bc-pic img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;mix-blend-mode:multiply;transition:transform .35s}
html body .sc-bcard .sc-bc-pic i{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-size:34px;font-weight:800;color:var(--bc-band);opacity:.35}
html body .sc-bcard .sc-bc-off{display:block;background:var(--bc-band);color:#fff;font-size:17px;font-weight:800;line-height:1.2;text-align:center;padding:11px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-theme=dark] .sc-bcard{--bc-bg:#1d2538!important}
[data-theme=dark] .sc-bcard .sc-bc-pic img{mix-blend-mode:normal}
@media (max-width:699px){html body .sc-bcard .sc-bc-off{font-size:14px;padding:9px 6px}html body .sc-bcard .sc-bc-logo{min-height:34px}html body .sc-bcard .sc-bc-logo img{max-height:24px!important}}

/* 5. hover: product cards rise with the same soft shadow as brand cards (pointer devices only) */
@media (hover:hover){
  html body .pc{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
  html body .pc:hover{transform:translateY(-4px);box-shadow:0 12px 28px color-mix(in srgb,var(--tx,#1a2236) 14%,transparent);border-color:color-mix(in srgb,var(--rd,#e53935) 30%,transparent)}
  html body .sc-bcard:hover{transform:translateY(-4px);box-shadow:0 12px 28px color-mix(in srgb,var(--tx,#1a2236) 14%,transparent)}
  html body .sc-bcard:hover .sc-bc-pic img{transform:scale(1.05)}
}

/* 6. checkout: "enter your information" bar in the button colour, Apply button very dark */
html body .cd2.f>h2.oh{background:var(--rd,#e53935)!important;color:#fff!important;border-color:transparent!important}
html body .cpr .bt.b2,html body .cpr button{background:#111827!important;color:#fff!important;border-color:#111827!important}
html body .cpr .bt.b2:hover,html body .cpr button:hover{background:#000!important}
[data-theme=dark] .cpr .bt.b2,[data-theme=dark] .cpr button{background:#05070d!important;border-color:#2a3350!important}

/* 7. footer (owner's picture, 2026-11-28): compact columns, "Follow us on" under the brand, small outline social icons,
      a centred Payment Methods row, then concern / copyright / developer in one line. */
html body .sc-foot-follow{margin:14px 0 8px;font-size:14px;font-weight:700;color:var(--tx)}
html body .sc-foot-social{gap:8px}
html body .sc-foot .sc-foot-social a{width:30px;height:30px;border:1px solid color-mix(in srgb,var(--tx) 22%,transparent)!important;background:transparent!important;color:color-mix(in srgb,var(--tx) 70%,transparent)!important;transition:all .2s}
html body .sc-foot .sc-foot-social i{width:14px;height:14px}
html body .sc-foot .sc-foot-social a:hover{color:#fff!important;border-color:transparent!important;background:var(--rd,#e53935)!important;transform:translateY(-2px)}
html body .sc-foot-paybar{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 16px;padding:14px var(--sc-gutter,8px);border-top:1px solid var(--br)}
html body .sc-foot-paylabel{font-size:13px;font-weight:700;color:var(--mu)}
html body .sc-foot-paybar .sc-foot-pay{justify-content:center}
html body .sc-foot-paybar .sc-foot-pay span{min-height:30px;min-width:0;padding:3px 10px;border-radius:6px;font-size:12px;background:var(--cd)}
html body .sc-foot-copy3{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 20px;max-width:none;padding:12px max(var(--sc-gutter,8px),calc((100% - var(--sc-wrap,1320px)) / 2))!important;font-size:13px;color:var(--mu);text-align:center}
html body .sc-foot-copy3 b{color:var(--tx);font-weight:800}
html body .sc-foot-copy3 a{color:var(--tx);font-weight:800}
@media (min-width:1000px){
  html body .sc-foot-main h4{font-size:15px;margin-bottom:12px}
  html body .sc-foot-main .sc-foot-link{font-size:13.5px;color:color-mix(in srgb,var(--tx) 72%,transparent)}
  html body .sc-foot-main .sc-foot-link:hover{color:var(--rd)}
  html body .sc-foot-main .sc-foot-line{font-size:13.5px}
}
@media (max-width:999px){html body .sc-foot-copy3{flex-direction:column;justify-content:center;padding-bottom:84px!important}html body .sc-foot-brand .sc-foot-social{justify-content:center}html body .sc-foot-brand .sc-foot-follow{text-align:center;order:7;margin:8px 0 0!important}html body .sc-foot-brand .sc-foot-social{order:7}}
