/* ===== Home page — kitchen storefront layout =====
   Loaded on the front page only (see denim_store_enqueue).
   Every new class is prefixed `hx-` so nothing here can collide with the
   shared card / popup styles in main.css. */

.hx-wrap{max-width:var(--page-max);margin:0 auto;padding:0 var(--page-pad)}

/* ---------- Section heading ---------- */
.hx-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 18px}
.hx-head-text{min-width:0}
.hx-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--primary);margin:0 0 4px}
.hx-eyebrow::before{content:"";width:16px;height:2px;border-radius:2px;background:var(--primary)}
.hx-head h2{margin:0;font-family:'Roboto',system-ui,sans-serif;font-style:normal;font-weight:700;font-size:20px;line-height:25px;letter-spacing:normal;color:rgb(34,34,34)}

.hx-more{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;font-size:13px;font-weight:700;color:var(--primary);background:none;border:0;padding:6px 0;font-family:inherit;cursor:pointer;white-space:nowrap}
.hx-more svg{width:15px;height:15px;transition:transform .2s ease}
.hx-more:hover{text-decoration:underline}
.hx-more:hover svg{transform:translateX(3px)}

/* ---------- Buttons ---------- */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease;
}
.hx-btn svg { width: 16px; height: 16px; }
.hx-btn-primary {
  background: linear-gradient(135deg, #03A8B9 0%, #02818E 100%);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px -4px rgba(3, 168, 185, 0.45);
}
.hx-btn-primary:hover {
  background: linear-gradient(135deg, #04B9CC 0%, #02717D 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(3, 168, 185, 0.6);
}
.hx-btn-ghost {
  background: var(--card);
  color: var(--foreground);
  border-color: #CBD5E1;
}
.hx-btn-ghost:hover {
  border-color: #03A8B9;
  color: #02818E;
  transform: translateY(-2px);
}

/* ---------- Hero: slider + promo stack ---------- */
@media (min-width:1024px){ :root{--hx-hero-h:430px} }

.hx-hero{padding:18px 0 0}
.hx-hero-grid{max-width:var(--page-max);margin:0 auto;padding:0 var(--page-pad);display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
.hx-hero-deptspace{display:none !important}

@media (min-width:1024px){
  .hx-hero{padding:18px 0 0}
  .hx-hero-grid{grid-template-columns:minmax(0,1fr) 300px;gap:18px;padding-top:0}
  .hx-hero-grid.no-promos{grid-template-columns:minmax(0,1fr)}
  .hx-hero-grid.no-slider{grid-template-columns:minmax(0,1fr)}
}

/* Slider — the fixed desktop height is what the open departments panel is
   sized against (see header.css), so the two line up exactly. */
.hx-slider{position:relative;min-width:0;overflow:hidden;border-radius:12px;background:var(--muted);box-shadow:var(--shadow-sm)}
.hx-slides{position:relative;aspect-ratio:16/9}
@media (min-width:1024px){ .hx-slides{aspect-ratio:auto;height:var(--hx-hero-h,430px)} }
@media (max-width:640px){ .hx-slides{aspect-ratio:4/3} }
/* Slides carry no markup text — any wording lives inside the artwork. */
.hx-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .55s ease}
.hx-slide.is-active{opacity:1;visibility:visible}
.hx-slide > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hx-slide-cover{position:absolute;inset:0;z-index:3}

/* Stand-in slides borrow a product photo, which is a packshot on white rather
   than a wide banner. Centre it, contained, over a tinted ground so it reads
   as deliberate instead of a badly cropped background. */
.hx-slide.is-auto{
  background:
    radial-gradient(58% 84% at 50% 46%, hsl(var(--tint,168) 58% 96%), transparent 72%),
    linear-gradient(115deg, hsl(var(--tint,168) 42% 96%) 0%, hsl(var(--tint,168) 38% 90%) 100%);
}
.hx-slide.is-auto > img{
  inset:0;margin:auto;width:auto;max-width:62%;height:auto;max-height:80%;
  object-fit:contain;mix-blend-mode:multiply;
  filter:drop-shadow(0 18px 26px rgba(0,0,0,.18))
}
@media (max-width:640px){ .hx-slide.is-auto > img{max-width:74%;max-height:76%} }

.hx-slide-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:40px;height:40px;border:0;border-radius:50%;
  background:color-mix(in srgb,var(--card) 88%,transparent);color:var(--foreground);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:var(--shadow-sm);opacity:0;transition:opacity .25s,background .2s,transform .2s
}
.hx-slider:hover .hx-slide-nav,
.hx-slide-nav:focus-visible{opacity:1}
.hx-slide-nav:hover{background:var(--primary);color:var(--primary-foreground,#fff)}
.hx-slide-prev{left:12px}
.hx-slide-next{right:12px}
@media (max-width:640px){ .hx-slide-nav{opacity:1;width:34px;height:34px} .hx-slide-prev{left:8px} .hx-slide-next{right:8px} }

.hx-slide-dots{position:absolute;left:0;right:0;bottom:12px;z-index:3;display:flex;justify-content:center;gap:7px}
.hx-slide-dot{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--foreground) 30%,transparent);cursor:pointer;transition:all .25s}
.hx-slide-dot.is-active{background:var(--primary);width:24px;border-radius:5px}

/* Promo stack beside the slider */
.hx-hero-promos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
/* Three equal rows summing to the shared hero height, so this column ends
   level with the slider and the departments panel. */
@media (min-width:1024px){
  .hx-hero-promos{grid-template-columns:1fr;grid-template-rows:repeat(3,1fr);gap:14px;height:var(--hx-hero-h,430px)}
}
.hx-hero-promo{position:relative;display:block;overflow:hidden;border-radius:10px;line-height:0;box-shadow:var(--shadow-sm);transition:box-shadow .28s,transform .28s}
.hx-hero-promo:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.hx-hero-promo img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transition:transform .45s ease}
.hx-hero-promo:hover img{transform:scale(1.04)}
@media (min-width:1024px){
  .hx-hero-promo img{height:100%;aspect-ratio:auto}
}
@media (max-width:1023px){ .hx-hero-promo:nth-child(3){grid-column:span 2} }

/* Department cards standing in for un-uploaded promo artwork — image only,
   contained on a soft ground so the packshot isn't cropped through. */
.hx-hero-promo.is-auto{background:linear-gradient(135deg,var(--muted),color-mix(in srgb,var(--muted) 55%,var(--card)))}
.hx-hero-promo.is-auto img{object-fit:contain;padding:12px;mix-blend-mode:multiply}

/* ---------- Deals block: badge + 2 banners + 3×2 compact rows ---------- */
.hx-deals{padding:calc(var(--section-gap) + 20px) 0 0}
.hx-deals-card{
  position:relative;background:var(--card);
  border:1px solid var(--border);border-radius:14px;
  /* The badge is centred on the top border, so it eats roughly half its own
     height out of this padding. 56px leaves real air beneath it. */
  padding:56px 22px 14px
}
.hx-deals-badge{
  position:absolute;top:0;left:50%;transform:translate(-50%,-50%);
  background:var(--primary);color:var(--primary-foreground,#fff);
  padding:9px 30px;border-radius:999px;white-space:nowrap;
  font-size:13.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  box-shadow:0 8px 18px -8px color-mix(in srgb,var(--primary) 90%,transparent)
}

.hx-deals-banners{display:grid;grid-template-columns:1fr;gap:16px;margin:0 0 10px}
@media (min-width:768px){ .hx-deals-banners{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px} }
.hx-deals-banner{position:relative;display:block;overflow:hidden;border-radius:8px;line-height:0;background:var(--muted)}
.hx-deals-banner img{width:100%;height:100%;aspect-ratio:1000/240;object-fit:cover;transition:transform .45s ease}
.hx-deals-banner:hover img{transform:scale(1.03)}
/* Stand-in artwork is a packshot, not a wide banner. Contained and centred in
   a 1000:240 box it becomes a speck, and cover-cropping slices it in half — so
   sit it on one side of a tinted ground, the same treatment as the hero slides. */
.hx-deals-banner.is-auto{
  background:
    radial-gradient(52% 92% at 76% 50%, hsl(var(--tint,168) 55% 96%), transparent 72%),
    linear-gradient(110deg, hsl(var(--tint,168) 40% 95%) 0%, hsl(var(--tint,168) 34% 89%) 100%);
}
.hx-deals-banner.is-auto img{
  position:absolute;top:50%;right:6%;transform:translateY(-50%);
  width:auto;max-width:38%;height:auto;max-height:80%;
  object-fit:contain;mix-blend-mode:multiply;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.16))
}
.hx-deals-banner.is-auto:hover img{transform:translateY(-50%) scale(1.05)}
/* keeps the anchor at banner height even though the image is absolute */
.hx-deals-banner.is-auto::before{content:"";display:block;aspect-ratio:1000/240}
.hx-deals-banner.is-auto:nth-child(2){--tint:28}

/* Three divided columns, two rows each */
.hx-deals-grid{display:grid;grid-template-columns:1fr;margin-top:22px}
@media (min-width:768px){ .hx-deals-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
.hx-deal-col{min-width:0;padding:0 22px}
.hx-deal-col:first-child{padding-left:0}
.hx-deal-col:last-child{padding-right:0}
@media (min-width:768px){
  .hx-deal-col + .hx-deal-col{border-left:1px solid var(--border)}
}
@media (max-width:767px){ .hx-deal-col{padding:0} .hx-deal-col + .hx-deal-col{border-top:1px solid var(--border)} }

.hx-deal-item{position:relative;min-width:0}
.hx-deal-item + .hx-deal-item{border-top:1px solid var(--border)}
.hx-deal-link{display:flex;align-items:center;gap:14px;padding:16px 0;min-width:0;text-decoration:none}

/* Make room so the buttons never sit on top of the product name. */
.hx-deal-item:hover .hx-deal-info,
.hx-deal-item:focus-within .hx-deal-info{padding-right:46px}
.hx-deal-info{transition:padding-right .22s ease}
@media (hover:none){ .hx-deal-info{padding-right:46px} }
.hx-deal-thumb{
  flex-shrink:0;width:88px;height:88px;display:flex;align-items:center;justify-content:center;
  border-radius:8px;background:var(--card);overflow:hidden
}
.hx-deal-thumb img{width:100%;height:100%;object-fit:contain;transition:transform .35s ease}
.hx-deal-item:hover .hx-deal-thumb img{transform:scale(1.07)}
.hx-deal-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.hx-deal-name{
  font-size:14px;font-weight:500;line-height:1.35;color:var(--foreground);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  transition:color .18s
}
.hx-deal-item:hover .hx-deal-name{color:var(--primary)}
.hx-deal-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;line-height:1}
.hx-deal-price ins{text-decoration:none;font-size:16px;font-weight:700;color:var(--primary)}
.hx-deal-price del{font-size:12.5px;color:var(--muted-foreground);opacity:.85}
.hx-deal-meta{display:flex;align-items:center;gap:6px}
.hx-deal-off{
  display:inline-flex;align-items:center;background:color-mix(in srgb,var(--accent) 18%,transparent);
  color:color-mix(in srgb,var(--accent) 70%,var(--foreground));
  font-size:11px;font-weight:700;padding:2px 7px;border-radius:4px;letter-spacing:.02em
}

/* Star row — only rendered when a product actually has a rating */
.hx-stars{display:inline-flex;gap:2px}
.hx-star{position:relative;width:13px;height:13px;background:var(--border);
  -webkit-mask:var(--star) center/contain no-repeat;mask:var(--star) center/contain no-repeat}
.hx-star i{display:block;height:100%;background:var(--accent)}
:root{--star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E")}
.hx-star-count{font-size:11.5px;color:var(--muted-foreground)}

@media (max-width:640px){
  .hx-deals{padding:calc(var(--section-gap) + 18px) 0 0}
  .hx-deals-card{padding:48px 16px 10px}
  .hx-deals-badge{font-size:12px;padding:8px 22px}
  .hx-deal-thumb{width:72px;height:72px}
}

/* ---------- USP strip ---------- */
.hx-usp {
  margin-top: clamp(48px, 5vw, 64px);
  margin-bottom: clamp(48px, 5vw, 64px);
  padding: 0;
}
.hx-usp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 992px) {
  .hx-usp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 576px) {
  .hx-usp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.hx-usp-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hx-usp-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #03A8B9 0%, #02818E 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hx-usp-item:hover {
  transform: translateY(-3px);
  border-color: rgba(3, 168, 185, 0.4);
  box-shadow: 0 12px 24px -6px rgba(3, 168, 185, 0.16), 0 4px 10px rgba(15, 23, 42, 0.04);
}
.hx-usp-item:hover::before {
  opacity: 1;
}

/* Icon Squircle Badge */
.hx-usp-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #03A8B9 0%, #02818E 100%);
  color: #FFFFFF !important;
  box-shadow: 0 6px 14px -3px rgba(3, 168, 185, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hx-usp-ico svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF !important;
  transition: transform 0.3s ease;
}
.hx-usp-item:hover .hx-usp-ico {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px -2px rgba(3, 168, 185, 0.55);
}

/* Text */
.hx-usp-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hx-usp-txt strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: inherit;
  transition: color 0.2s ease;
}
.hx-usp-item:hover .hx-usp-txt strong {
  color: #02818E;
}
.hx-usp-txt span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #64748B;
  line-height: 1.35;
  margin-top: 3px;
}

/* ---------- Categories: image card + translucent hue panel + CTA bar ---------- */
.hx-cats{padding-top:var(--section-gap);padding-bottom:0}

.hx-cats-head{text-align:center;margin:0 0 32px}
.hx-cats-head h2{
  margin:0 0 10px;
  font-family:'Poppins',system-ui,sans-serif;
  font-weight:800;
  font-size:clamp(24px, 2.5vw, 32px);
  line-height:1.25;
  letter-spacing:-0.02em;
  color:#0F172A;
}
.hx-cats-rule{
  display:inline-block;width:60px;height:4px;border-radius:4px;
  background:linear-gradient(90deg,#03A8B9,#FBACB6,#FABB07)
}

.hx-cat-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
@media (min-width:900px){ .hx-cat-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px} }
@media (max-width:560px){ .hx-cat-cards{grid-template-columns:1fr} }

.hx-cat-card{
  display:flex;flex-direction:column;min-width:0;overflow:hidden;
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  transition:border-color .3s ease,box-shadow .3s ease,transform .3s ease
}
.hx-cat-card:hover{
  border-color:hsl(var(--card-h,168) 45% 62%);
  box-shadow:0 18px 38px -20px hsl(var(--card-h,168) 50% 32% / .55);
  transform:translateY(-4px)
}

/* Image sits in its own tinted frame, contained rather than cropped, and never
   underneath the text. These are packshots — several with marketing text baked
   into them — so overlaying type on the photo made both unreadable. */
.hx-cat-media{
  position:relative;display:block;aspect-ratio:4/3;overflow:hidden;
  background:
    radial-gradient(65% 70% at 50% 45%, hsl(var(--card-h,168) 46% 97%), transparent 72%),
    linear-gradient(150deg, hsl(var(--card-h,168) 40% 96%), hsl(var(--card-h,168) 30% 92%));
  border-bottom:1px solid var(--border)
}
.hx-cat-media img{
  position:absolute;inset:0;margin:auto;
  max-width:78%;max-height:78%;width:auto;height:auto;
  object-fit:contain;mix-blend-mode:multiply;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.16));
  transition:transform .5s cubic-bezier(.2,.7,.3,1)
}
.hx-cat-card:hover .hx-cat-media img{transform:scale(1.06)}

.hx-cat-count{
  position:absolute;top:12px;right:12px;z-index:2;
  min-width:30px;padding:5px 10px;border-radius:999px;text-align:center;
  background:hsl(var(--card-h,168) 62% 34%);color:#fff;
  font-size:11.5px;font-weight:700;line-height:1.1;letter-spacing:.02em;
  box-shadow:0 4px 10px hsl(var(--card-h,168) 50% 25% / .35)
}

.hx-cat-body{display:flex;flex-direction:column;flex:1;padding:16px 18px 6px}
.hx-cat-name{
  display:block;margin:0 0 12px;padding-bottom:12px;
  border-bottom:1px solid var(--border);
  font-size:17px;font-weight:700;line-height:1.25;letter-spacing:-.01em;
  color:var(--foreground);text-decoration:none;transition:color .2s
}
.hx-cat-name:hover{color:hsl(var(--card-h,168) 62% 34%)}

.hx-cat-links{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:2px;flex:1}
.hx-cat-links a{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:6px 8px;margin:0 -8px;border-radius:7px;
  font-size:13.5px;line-height:1.35;color:var(--muted-foreground);
  text-decoration:none;transition:background .18s,color .18s
}
.hx-cat-links a:hover{background:hsl(var(--card-h,168) 45% 96%);color:hsl(var(--card-h,168) 62% 30%)}
.hx-cat-link-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.hx-cat-link-count{
  flex-shrink:0;font-size:11px;font-weight:700;color:var(--muted-foreground);
  background:var(--muted);padding:2px 7px;border-radius:999px;transition:background .18s,color .18s
}
.hx-cat-links a:hover .hx-cat-link-count{background:hsl(var(--card-h,168) 55% 88%);color:hsl(var(--card-h,168) 62% 28%)}

.hx-cat-cta{
  display:flex;align-items:center;gap:7px;margin:auto -18px 0;padding:14px 18px;
  border-top:1px solid var(--border);
  color:hsl(var(--card-h,168) 62% 32%);text-decoration:none;
  font-size:13.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
  transition:background .2s
}
.hx-cat-cta svg{transition:transform .25s ease}
.hx-cat-card:hover .hx-cat-cta{background:hsl(var(--card-h,168) 45% 97%)}
.hx-cat-card:hover .hx-cat-cta svg{transform:translateX(5px)}

@media (prefers-reduced-motion:reduce){
  .hx-cat-card,.hx-cat-media img,.hx-cat-cta svg{transition:none !important}
  .hx-cat-card:hover{transform:none}
  .hx-cat-card:hover .hx-cat-media img{transform:none}
}

/* ---------- Full-width promo banner ---------- */
.hx-pb{padding:var(--section-gap) 0 0}
.hx-pb-inner{
  position:relative;overflow:hidden;border-radius:16px;
  display:flex;align-items:center;min-height:230px;
  background:var(--muted);box-shadow:0 2px 12px rgba(27,36,34,.08)
}
@media (min-width:900px){ .hx-pb-inner{min-height:300px} }
.hx-pb-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hx-pb-cover{position:absolute;inset:0;z-index:3}

/* Banner whose wording is part of the artwork: show it whole, at its own
   ratio, instead of cover-cropping it to a fixed height and slicing the text. */
.hx-pb-inner.no-copy{min-height:0;display:block}
.hx-pb-inner.no-copy .hx-pb-bg{position:static;width:100%;height:auto;object-fit:contain}

/* No artwork yet — a branded gradient so the block still reads as designed. */
.hx-pb-inner.no-image{
  background:
    radial-gradient(70% 120% at 82% 20%, color-mix(in srgb,var(--accent) 26%,transparent), transparent 62%),
    linear-gradient(115deg, color-mix(in srgb,var(--primary) 16%,var(--card)) 0%, var(--card) 62%);
}

.hx-pb-copy{
  position:relative;z-index:2;max-width:min(620px,72%);
  padding:26px clamp(18px,4vw,48px)
}
.hx-pb-inner.align-center{justify-content:center}
.hx-pb-inner.align-center .hx-pb-copy{text-align:center;max-width:min(660px,84%)}
.hx-pb-inner.align-right{justify-content:flex-end}
.hx-pb-inner.align-right .hx-pb-copy{text-align:right}

/* Legibility scrim sized to the copy, so photos stay visible either side.
   Only drawn when there is a photo to sit on. */
.hx-pb-inner:not(.no-image) .hx-pb-copy::before{
  content:"";position:absolute;inset:-8% -6%;z-index:-1;
  background:radial-gradient(60% 70% at 50% 50%, color-mix(in srgb,var(--card) 88%,transparent) 0%, transparent 76%)
}
.hx-pb-copy h2{
  margin:0 0 8px;font-size:clamp(21px,3vw,38px);font-weight:700;line-height:1.15;
  letter-spacing:-.01em;text-transform:uppercase;color:var(--foreground)
}
.hx-pb-copy h2 em{font-style:normal;color:var(--primary)}
.hx-pb-copy p{
  margin:0 0 18px;font-size:clamp(12.5px,1.3vw,16px);line-height:1.5;
  letter-spacing:.04em;text-transform:uppercase;font-weight:600;color:var(--muted-foreground)
}
.hx-pb-cta{
  display:inline-flex;align-items:center;justify-content:center;
  height:44px;padding:0 30px;border-radius:999px;
  background:var(--accent);color:var(--accent-foreground,#fff);
  font-size:14.5px;font-weight:700;text-decoration:none;
  box-shadow:0 8px 20px -8px color-mix(in srgb,var(--accent) 85%,transparent);
  transition:transform .2s ease,filter .2s ease
}
.hx-pb-cta:hover{transform:translateY(-2px);filter:brightness(1.06)}

/* Round "Super Deal!" style stamp */
.hx-pb-badge{
  position:absolute;top:50%;right:clamp(14px,3.5vw,54px);transform:translateY(-50%) rotate(-8deg);
  z-index:2;display:flex;align-items:center;justify-content:center;text-align:center;
  width:clamp(76px,9vw,116px);aspect-ratio:1;border-radius:50%;padding:10px;
  background:var(--primary);color:var(--primary-foreground,#fff);
  font-size:clamp(12px,1.35vw,18px);font-weight:700;line-height:1.1;letter-spacing:-.01em;
  box-shadow:0 10px 24px -8px rgba(0,0,0,.45)
}
@media (max-width:820px){ .hx-pb-badge{display:none} }

@media (max-width:640px){
  .hx-pb-inner{min-height:200px}
  .hx-pb-inner.align-left,.hx-pb-inner.align-right{justify-content:center}
  .hx-pb-copy{max-width:92%;text-align:center;padding:22px 16px}
  .hx-pb-inner.align-right .hx-pb-copy{text-align:center}
}

/* ---------- Dual category panels ---------- */
.hx-dual{padding:var(--section-gap) 0 0}
.hx-dual-grid{display:grid;grid-template-columns:1fr;gap:22px}
@media (min-width:900px){ .hx-dual-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px} }

.hx-dual-panel{
  min-width:0;background:var(--card);
  border:1px solid var(--border);border-top:3px solid hsl(var(--panel-h,355) 78% 50%);
  border-radius:6px;overflow:hidden
}
.hx-dual-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 20px;border-bottom:1px solid var(--border)
}
.hx-dual-head h3{
  margin:0;font-size:clamp(17px,1.8vw,21px);font-weight:500;line-height:1.2;
  letter-spacing:.04em;text-transform:uppercase;color:hsl(var(--panel-h,355) 78% 46%)
}
.hx-dual-head a{
  display:inline-flex;align-items:center;gap:3px;flex-shrink:0;
  font-size:13.5px;font-weight:500;color:var(--muted-foreground);text-decoration:none;
  transition:color .2s
}
.hx-dual-head a:hover{color:hsl(var(--panel-h,355) 78% 46%)}
.hx-dual-head a svg{transition:transform .2s}
.hx-dual-head a:hover svg{transform:translateX(3px)}

.hx-dual-body{display:grid;grid-template-columns:1fr}
@media (min-width:560px){ .hx-dual-body{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)} }

/* Feature product */
.hx-dual-feature{
  position: relative;
  display:flex;flex-direction:column;min-width:0;padding:20px;
  border-bottom:1px solid var(--border)
}
@media (min-width:560px){ .hx-dual-feature{border-bottom:0;border-right:1px solid var(--border)} }
.hx-dual-feature-link{display:flex;flex-direction:column;flex:1;min-width:0;text-decoration:none}

.hx-dual-feature-img{
  position: relative;
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:1;margin-bottom:16px;overflow:hidden
}
.hx-dual-feature-img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:transform .45s ease}
.hx-dual-feature:hover .hx-dual-feature-img img{transform:scale(1.06)}

/* Compact rows */
.hx-dual-list{display:flex;flex-direction:column;min-width:0}
.hx-dual-item{position:relative;display:flex;min-width:0;flex:1}
.hx-dual-item + .hx-dual-item{border-top:1px solid var(--border)}
.hx-dual-item-link{
  display:flex;align-items:center;gap:14px;min-width:0;flex:1;
  padding:16px 20px;text-decoration:none
}
/* Hover actions sit inside the row padding, so nudge them off the edge. */
.hx-dual-item .hx-row-actions{right:14px}
.hx-dual-item:hover .hx-row-actions,
.hx-dual-item:focus-within .hx-row-actions{opacity:1;pointer-events:auto}
.hx-dual-item-info{transition:padding-right .22s ease}
.hx-dual-item:hover .hx-dual-item-info,
.hx-dual-item:focus-within .hx-dual-item-info{padding-right:46px}
@media (hover:none){ .hx-dual-item-info{padding-right:46px} }
.hx-dual-item-img{
  position: relative;
  flex-shrink:0;width:78px;height:78px;display:flex;align-items:center;justify-content:center;overflow:hidden
}
.hx-dual-item-img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:transform .35s ease}
.hx-dual-item:hover .hx-dual-item-img img{transform:scale(1.07)}
.hx-dual-item-info{display:flex;flex-direction:column;gap:7px;min-width:0}

/* Shared text bits */
.hx-dual-name{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:14.5px;font-weight:500;line-height:1.35;color:var(--foreground);
  transition:color .18s
}
.hx-dual-feature .hx-dual-name{margin-bottom:8px}
.hx-dual-feature:hover .hx-dual-name,
.hx-dual-item:hover .hx-dual-name{color:hsl(var(--panel-h,355) 78% 44%)}
.hx-dual-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;line-height:1}
.hx-dual-price ins{text-decoration:none;font-size:17px;font-weight:700;color:hsl(var(--panel-h,355) 78% 46%)}
.hx-dual-price del{font-size:12.5px;color:var(--muted-foreground);opacity:.85}
.hx-dual-meta{display:flex;align-items:center;gap:6px;margin-top:7px}

@media (max-width:559px){
  .hx-dual-feature{padding:18px}
  .hx-dual-item{padding:14px 18px}
  .hx-dual-item-img{width:64px;height:64px}
}

/* ---------- Three-across banner row ---------- */
.hx-br{padding:var(--section-gap) 0 0}
.hx-br-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:640px){ .hx-br-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px} }
@media (min-width:960px){ .hx-br-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px} }
/* An odd banner left alone on the last row spans it rather than sitting half-width */
@media (min-width:640px) and (max-width:959px){
  .hx-br-grid[data-count="3"] .hx-br-item:nth-child(3){grid-column:span 2}
}
.hx-br-item{
  display:block;overflow:hidden;border-radius:8px;line-height:0;background:var(--muted);
  box-shadow:0 1px 6px rgba(27,36,34,.07);
  transition:box-shadow .3s ease,transform .3s ease
}
.hx-br-item:hover{box-shadow:0 14px 28px -14px rgba(27,36,34,.4);transform:translateY(-3px)}
/* Artwork shown whole at its own ratio — cropping would cut the baked-in text */
.hx-br-item img{width:100%;height:auto;display:block;transition:transform .5s ease}
.hx-br-item:hover img{transform:scale(1.03)}

/* ---------- Best sellers with category tabs ---------- */
.hx-bs{padding:var(--section-gap) 0 0}
.hx-bs-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 26px}
.hx-bs-tab{
  padding:10px 22px;border:0;border-radius:999px;cursor:pointer;font-family:inherit;
  background:var(--muted);color:var(--muted-foreground);
  /* Uppercase runs wider, so the size drops a touch and the tracking opens up
     to keep long labels like "Small Electronics & Accessories" readable. */
  font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;
  text-transform:uppercase;letter-spacing:.04em;
  transition:background .2s,color .2s,transform .2s
}
.hx-bs-tab:hover{background:color-mix(in srgb,var(--primary) 12%,var(--muted));color:var(--primary)}
.hx-bs-tab.is-active{background:var(--primary);color:var(--primary-foreground,#fff)}
.hx-bs-tab:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

.hx-bs-panel[hidden]{display:none}
.hx-bs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (min-width:640px){ .hx-bs-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px} }
@media (min-width:1024px){ .hx-bs-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px} }

.hx-bs-card{
  display:flex;flex-direction:column;min-width:0;padding:14px;
  background:var(--card);border:1px solid var(--border);border-radius:10px;
  transition:border-color .25s,box-shadow .25s,transform .25s
}
.hx-bs-link{display:flex;flex-direction:column;flex:1;min-width:0;text-decoration:none}
.hx-bs-card:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--border));box-shadow:0 14px 26px -16px rgba(27,36,34,.5);transform:translateY(-3px)}
.hx-bs-img{
  position:relative;display:flex;align-items:center;justify-content:center;
  aspect-ratio:1;margin-bottom:14px;overflow:hidden
}
.hx-bs-img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:transform .45s ease}
.hx-bs-card:hover .hx-bs-img img{transform:scale(1.07)}
.hx-bs-off{
  position:absolute;top:0;left:0;
  background:var(--accent);color:var(--accent-foreground,#fff);
  font-size:10.5px;font-weight:700;padding:3px 7px;border-radius:5px;line-height:1
}
.hx-bs-name{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  margin-bottom:8px;min-height:2.7em;
  font-size:13.5px;font-weight:500;line-height:1.35;color:var(--foreground);transition:color .18s
}
.hx-bs-card:hover .hx-bs-name{color:var(--primary)}
.hx-bs-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-top:auto;line-height:1}
.hx-bs-price ins{text-decoration:none;font-size:16px;font-weight:700;color:var(--primary)}
.hx-bs-price del{font-size:12px;color:var(--muted-foreground);opacity:.85}
.hx-bs-meta{display:flex;align-items:center;gap:6px;margin-top:8px}

@media (max-width:520px){
  .hx-bs-tab{padding:8px 14px;font-size:11.5px;letter-spacing:.03em}
  .hx-bs-card{padding:11px}
}

/* ---------- Pair of wide banners (reuses .hx-br-item card styles) ---------- */
.hx-bp {
  padding: 0 0 clamp(40px, 4vw, 60px);
}
.hx-usp + .hx-bp {
  padding-top: 0;
}
.hx-bp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width:768px){ .hx-bp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px} }

/* ---------- Product sections ---------- */
.home-bestsellers .products.product-grid,
.home-featured .products.product-grid,
.home-allproducts .products.product-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
@media (min-width:768px){
  .home-bestsellers .products.product-grid,
  .home-featured .products.product-grid,
  .home-allproducts .products.product-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media (min-width:1024px){
  .home-bestsellers .products.product-grid,
  .home-featured .products.product-grid,
  .home-allproducts .products.product-grid{grid-template-columns:repeat(5,minmax(0,1fr)) !important}
}
/* Best sellers: cap to 2 rows, same breakpoints as featured (2/3/5 cols) */
@media (max-width:767px){ .home-bestsellers .products.product-grid > .product-card:nth-child(n+5){display:none} }
@media (min-width:768px) and (max-width:1023px){ .home-bestsellers .products.product-grid > .product-card:nth-child(n+7){display:none} }
@media (min-width:1024px){ .home-bestsellers .products.product-grid > .product-card:nth-child(n+11){display:none} }
.home-bestsellers .woocommerce-result-count,
.home-bestsellers .woocommerce-ordering{display:none !important}

/* Rank chips on the best-seller cards */
.home-bestsellers .products.product-grid{counter-reset:hxrank}
.home-bestsellers .product-card{position:relative;counter-increment:hxrank}
.home-bestsellers .product-card::before{
  content:"#" counter(hxrank);
  position:absolute;top:10px;right:10px;z-index:3;
  background:var(--foreground);color:var(--background);
  font-size:10px;font-weight:700;letter-spacing:.02em;
  padding:3px 8px;border-radius:999px;box-shadow:var(--shadow-sm)
}
/* Never sit on top of a "Stock out" badge, which uses the same corner */
.home-bestsellers .product-card:has(.badge.out)::before{display:none}

/* ---------- Promo banners ---------- */
.promo-banners{padding-top:14px;padding-bottom:14px}
.promo-banner{border-radius:16px;box-shadow:var(--shadow-sm);transition:box-shadow .3s,transform .3s}
.promo-banner:hover{box-shadow:var(--shadow-md);transform:translateY(-3px)}

/* ---------- Mobile tightening ---------- */
@media (max-width:640px){
  .hx-hero{padding:12px 0 0}
  .hx-hero-grid{padding:20px 18px}
  .hx-hero-cta .hx-btn{flex:1;padding:0 14px}
  .hx-usp{padding:36px 0}
  .hx-cats{padding-top:var(--section-gap)}
}

/* Last section needs the gap below it too, or it butts into the footer. */
.home-allproducts{padding-bottom:var(--section-gap)}

