/* ==========================================================================
   Ionix — home.css
   Home page-specific styles. Shared ionix.css is linked before it (header.twig).
   ========================================================================== */
/* ionix.css is linked from header.twig (versioned), not @import-ed here. */

/* ==========================================================================
   HERO — main feature banner + two side cards
   ========================================================================== */
.st-hero__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  min-height: 500px;
}
@media (max-width: 1199px) { .st-hero__layout { grid-template-columns: 1fr 320px; min-height: 460px; } }
@media (max-width: 767px)  { .st-hero__layout { grid-template-columns: 1fr; min-height: 0; } }

.st-hero__banner {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  border: 0;
  text-decoration: none;
  color: var(--c-text);
}

/* Feature (large left) banner */
.st-hero__banner--feature {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: oklch(0.24 0.005 240);
}
@media (max-width: 1199px) { .st-hero__banner--feature { min-height: 460px; } }
@media (max-width: 767px)  { .st-hero__banner--feature { min-height: 0; aspect-ratio: 16/10; } }
.st-hero__banner--feature .st-hero__banner-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; min-height: 0;
}
.st-hero__banner--feature .st-hero__banner-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  transition: transform 0.8s ease;
}
.st-hero__banner--feature:hover .st-hero__banner-media img { transform: scale(1.03); }
.st-hero__banner--feature .st-hero__banner-panel {
  position: absolute; inset: 0; z-index: 1;
  padding: 44px 52px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(100deg,
    oklch(0.24 0.005 240) 0%, oklch(0.24 0.005 240) 28%,
    oklch(0.24 0.005 240 / 0.55) 60%, transparent 88%);
  color: #fff;
}
@media (max-width: 1199px) { .st-hero__banner--feature .st-hero__banner-panel { padding: 36px 40px; } }
@media (max-width: 767px)  { .st-hero__banner--feature .st-hero__banner-panel { padding: 28px 24px 32px; } }
.st-hero__banner--feature .st-hero__banner-title { max-width: 480px; }
.st-hero__banner--feature .st-hero__banner-sub   { max-width: 420px; }

/* Side stack of two smaller cards */
.st-hero__side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 500px;
}
@media (max-width: 1199px) { .st-hero__side-stack { min-height: 460px; grid-template-columns: 1fr; } }
@media (max-width: 767px)  {
  .st-hero__side-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; min-height: 0; }
}
@media (max-width: 575px) { .st-hero__side-stack { grid-template-columns: 1fr; } }

.st-hero__banner--card {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: oklch(0.24 0.005 240);
}
@media (max-width: 767px) { .st-hero__banner--card { aspect-ratio: 4/3; } }
.st-hero__banner--card .st-hero__banner-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; min-height: 0;
}
.st-hero__banner--card .st-hero__banner-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transition: transform 0.8s ease;
}
.st-hero__banner--card:hover .st-hero__banner-media img { transform: scale(1.03); }

/* Shared banner text elements */
.st-hero__banner-kicker {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 10px;
  border-radius: var(--r-xs);
  margin-bottom: 14px;
  display: inline-block;
  align-self: flex-start;
}
.st-hero__banner-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
}
@media (max-width: 1199px) { .st-hero__banner-title { font-size: 28px; } }
.st-hero__banner-title em { font-style: normal; color: oklch(0.92 0.13 90); }
.st-hero__banner-title--small { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.st-hero__banner-sub {
  font-size: 13.5px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px; max-width: 360px;
}
.st-hero__banner-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.st-hero__banner-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--c-text);
  font-family: var(--f-body); font-weight: 700; font-size: 13px;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.st-hero__banner-cta:hover { background: oklch(0.74 0.14 30); color: #fff; transform: translateY(-1px); }
.st-hero__banner-cta .st-icon { font-size: 16px; }
.st-hero__banner-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-weight: 600; font-size: 13px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  transition: background 0.15s, border-color 0.15s;
}
.st-hero__banner-secondary:hover { background: rgba(255, 255, 255, 0.10); border-color: #fff; color: #fff; }
.st-hero__banner-secondary .st-icon { font-size: 13px; }

/* Compact side panel */
.st-hero__banner-panel--compact {
  position: absolute; inset: 0; z-index: 1;
  padding: 22px 24px;
  background: linear-gradient(100deg,
    oklch(0.24 0.005 240) 0%, oklch(0.24 0.005 240) 32%,
    oklch(0.24 0.005 240 / 0.55) 62%, transparent 92%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.st-hero__banner-panel--compact .st-hero__banner-kicker { font-size: 10px; padding: 4px 8px; margin-bottom: 10px; }
.st-hero__banner-panel--compact .st-hero__banner-title--small {
  font-family: var(--f-heading);
  font-weight: 800; font-size: 18px; line-height: 1.15;
  letter-spacing: -0.015em; color: #fff; margin: 0 0 14px; max-width: 70%;
}
.st-hero__banner-panel--compact .st-hero__banner-title--small em { font-style: normal; color: oklch(0.92 0.13 90); }
.st-hero__banner-panel--compact .st-hero__banner-secondary { font-size: 12px; padding: 7px 12px; }
.st-hero__banner-panel--compact .st-hero__banner-secondary .st-icon { font-size: 11px; }

/* Slide indicators */
.st-hero__banner-marks { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.st-hero__banner-mark {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  border: 0; cursor: pointer; padding: 0;
  transition: background 0.15s, width 0.2s, border-radius 0.2s;
}
.st-hero__banner-mark:hover { background: rgba(255, 255, 255, 0.55); }
.st-hero__banner-mark--active { background: #fff; width: 24px; border-radius: 4px; }

/* ==========================================================================
   USP STRIP
   ========================================================================== */
.st-usp { margin-top: 36px; }
.st-usp__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 767px) { .st-usp__list { grid-template-columns: repeat(2, 1fr); } }
.st-usp__item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border-right: 1px solid var(--c-border-soft);
}
.st-usp__item:last-child { border-right: 0; }
.st-usp__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: oklch(0.91 0.025 78);
  color: var(--c-text);
  display: grid; place-items: center; flex-shrink: 0;
}
.st-usp__icon .st-icon { font-size: 20px; }
.st-usp__title { font-size: 14px; font-weight: 600; color: var(--c-text); }
.st-usp__sub { font-size: 12.5px; color: var(--c-text-soft); margin-top: 2px; }

/* ==========================================================================
   TODAY'S DEALS + COUNTDOWN
   ========================================================================== */
.st-deals {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px 28px 32px;
}
.st-deals {
  background: linear-gradient(180deg, #FFF6F2 0%, #FFFFFF 70%);
  border-color: var(--c-sale-soft);
  border-width: 2px;
}
.st-deals__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border-soft);
}
.st-deals__head { border-bottom-color: var(--c-sale-soft); }
.st-deals__title-wrap { display: flex; align-items: center; gap: 18px; }
.st-deals__title { font-size: 24px; letter-spacing: -0.02em; color: var(--c-text); }
.st-deals__title { font-size: 28px; font-weight: 800; }
.st-deals__fire {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--c-sale-soft);
  color: var(--c-sale);
  display: grid; place-items: center;
}
.st-deals__fire { background: var(--c-sale); color: #fff; }
.st-deals__sub { font-size: 13px; color: var(--c-text-muted); margin-top: 2px; }

.st-countdown { display: inline-flex; align-items: center; gap: 6px; }
.st-countdown__label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-text-soft); margin-right: 8px;
}
.st-countdown__cell {
  background: var(--c-sale);
  color: #fff;
  font-family: var(--f-mono); font-weight: 600; font-size: 15px;
  padding: 9px 11px;
  border-radius: var(--r-xs);
  min-width: 40px; text-align: center;
  font-feature-settings: "tnum" 1;
}
.st-countdown__sep { font-family: var(--f-mono); color: var(--c-text-soft); }

.st-deals__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* Module setting "Products per row" (desktop): 4 | 5 | 6; tablets cap at 4. */
@media (min-width: 1200px) {
  .st-deals__grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .st-deals__grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 991px) { .st-deals__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .st-deals__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CATEGORY CIRCLES
   ========================================================================== */
.st-cat-circles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  padding: 28px 24px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
@media (max-width: 991px) { .st-cat-circles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .st-cat-circles { grid-template-columns: repeat(2, 1fr); } }

.st-cat-circle {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 8px; transition: transform 0.15s;
}
.st-cat-circle:hover { transform: translateY(-2px); color: var(--c-text); }
.st-cat-circle__media {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 12px;
  color: var(--c-text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.st-cat-circle:hover .st-cat-circle__media { transform: scale(1.06); box-shadow: 0 8px 24px rgba(15, 18, 22, 0.10); }
.st-cat-circle__media .st-icon { font-size: 26px; }
.st-cat-circle__name { font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 1px; }
.st-cat-circle__count { font-family: var(--f-mono); font-size: 11px; color: var(--c-text-soft); }

.st-cat-circle__media--coral    { background: oklch(0.80 0.12 30); }
.st-cat-circle__media--yellow   { background: oklch(0.85 0.14 90); }
.st-cat-circle__media--mint     { background: oklch(0.82 0.10 165); }
.st-cat-circle__media--sky      { background: oklch(0.80 0.10 240); }
.st-cat-circle__media--lavender { background: oklch(0.80 0.10 290); }
.st-cat-circle__media--peach    { background: oklch(0.82 0.12 50); }
.st-cat-circle__media--sage     { background: oklch(0.80 0.10 135); }
.st-cat-circle__media--pink     { background: oklch(0.82 0.11 10); }

/* OpenCart module st_category_circles */
.st-cat-circle__media { overflow: hidden; flex-shrink: 0; }
.st-cat-circle__media img { width: 100%; height: 100%; object-fit: cover; }
.st-cat-circle__name { line-height: 1.3; }
/* Section heading is a div (module headings never take h2) — weight from the class. */
.st-cat-circles__title { font-family: var(--f-heading); font-weight: 800; margin: 0; color: var(--c-text); }
/* Phones: a swipeable row (like the big stores) instead of 2 columns × 4 rows. */
@media (max-width: 575px) {
  .st-cat-circles {
    display: flex; gap: 4px; padding: 16px 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .st-cat-circles::-webkit-scrollbar { display: none; }
  .st-cat-circle { flex: 0 0 26%; padding: 4px; scroll-snap-align: start; }
  .st-cat-circle__media { width: 64px; height: 64px; margin-bottom: 8px; }
  .st-cat-circle__media .st-icon { font-size: 26px; }
  .st-cat-circle__name { font-size: 12px; }
}

/* ==========================================================================
   PROMO STRIP (3-column)
   ========================================================================== */
.st-promo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 767px) { .st-promo-strip { grid-template-columns: 1fr; } }

.st-promo-strip__item {
  position: relative;
  border-radius: var(--r-md); overflow: hidden;
  padding: 26px 28px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: center;
  isolation: isolate; color: #fff;
}
.st-promo-strip__cutout {
  position: absolute; z-index: 0;
  right: -10%; bottom: -10%;
  width: 50%; height: 110%;
  background-size: contain; background-repeat: no-repeat; background-position: bottom right;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  -webkit-mask-image: radial-gradient(circle at 80% 80%, #000 50%, transparent 75%);
          mask-image: radial-gradient(circle at 80% 80%, #000 50%, transparent 75%);
  transition: transform 0.8s ease;
  transform-origin: bottom right;
}
.st-promo-strip__item:hover .st-promo-strip__cutout { transform: scale(1.06); }
.st-promo-strip__kicker {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 9px; border-radius: var(--r-xs);
  display: inline-block; align-self: flex-start; margin-bottom: 10px;
}
.st-promo-strip__title {
  font-family: var(--f-heading); font-weight: 800; font-size: 22px;
  line-height: 1.1; letter-spacing: -0.02em; color: #fff;
  margin-bottom: 14px; max-width: 65%; position: relative; z-index: 1;
}
.st-promo-strip__title em { font-style: normal; color: oklch(0.92 0.13 90); }
.st-promo-strip__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-weight: 700; font-size: 12.5px;
  color: var(--c-text); background: #fff;
  padding: 9px 16px; border-radius: var(--r-sm);
  align-self: flex-start; position: relative; z-index: 1;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.st-promo-strip__cta:hover { background: var(--c-text); color: #fff; transform: translateY(-1px); }
.st-promo-strip__cta .st-icon { font-size: 14px; }
.st-promo-strip__item--coral    { background: linear-gradient(135deg, oklch(0.60 0.11 25) 0%, oklch(0.72 0.13 45) 100%); }
.st-promo-strip__item--lavender { background: linear-gradient(135deg, oklch(0.54 0.10 290) 0%, oklch(0.64 0.13 308) 100%); }
.st-promo-strip__item--sage     { background: linear-gradient(135deg, oklch(0.57 0.09 178) 0%, oklch(0.68 0.10 198) 100%); }

/* ==========================================================================
   MEGA BANNER (full-width clearance)
   ========================================================================== */
.st-mega-banner {
  position: relative;
  display: flex; align-items: center;
  border-radius: var(--r-md); overflow: hidden;
  padding: 56px 60px;
  background: linear-gradient(120deg, oklch(0.42 0.14 25) 0%, oklch(0.62 0.11 40) 55%, oklch(0.82 0.05 72) 100%);
  color: #fff; min-height: 260px;
}
.st-mega-banner:hover, .st-mega-banner:focus { color: #fff; }
.st-mega-banner__content { position: relative; z-index: 1; flex: 1; max-width: 60%; }
.st-mega-banner__label {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px; border-radius: var(--r-xs);
  display: inline-block; margin-bottom: 14px;
}
.st-mega-banner__title {
  font-size: 48px; line-height: 1.02; letter-spacing: -0.02em; font-weight: 800;
  color: #fff; margin-bottom: 10px;
}
.st-mega-banner__title em { font-style: normal; color: oklch(0.92 0.12 90); }
.st-mega-banner__sub { font-size: 15px; color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; max-width: 480px; }
.st-mega-banner__cta { background: #fff; color: oklch(0.42 0.14 25); font-weight: 700; }
.st-mega-banner__cta:hover { background: var(--c-text); color: #fff; }
.st-mega-banner__art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background-size: cover; background-position: center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  transition: transform 0.8s ease;
}
.st-mega-banner:hover .st-mega-banner__art { transform: scale(1.04); }
.st-mega-banner__price { display: inline-flex; flex-direction: column; font-family: var(--f-mono); margin-top: 6px; margin-bottom: 18px; }
.st-mega-banner__price-from { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.st-mega-banner__price-val { font-size: 28px; font-weight: 700; line-height: 1.1; }
.st-mega-banner__price-old { font-size: 14px; text-decoration: line-through; opacity: 0.6; }

/* ==========================================================================
   BANNER 2-UP (gaming + camera)
   ========================================================================== */
.st-banner-2up { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
@media (max-width: 767px) { .st-banner-2up { grid-template-columns: 1fr; } }
.st-banner {
  position: relative;
  border-radius: var(--r-md); overflow: hidden;
  min-height: 280px;
  display: flex; align-items: center; padding: 40px;
}
.st-banner__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0; transition: transform 0.8s ease;
}
.st-banner:hover .st-banner__media { transform: scale(1.03); }
.st-banner__inner { position: relative; z-index: 1; max-width: 360px; }
.st-banner__kicker {
  font-family: var(--f-mono); font-size: 11px;
  background: rgba(255, 255, 255, 0.18); padding: 4px 9px;
  border-radius: var(--r-xs); color: #fff; letter-spacing: 0.08em;
  display: inline-block; margin-bottom: 8px;
}
.st-banner__title { font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin: 8px 0 10px; }
.st-banner__title { font-weight: 800; font-size: 32px; }
.st-banner__sub { font-size: 14px; color: #D7D2C8; margin-bottom: 18px; }
.st-banner__cta { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   BRANDS STRIP
   ========================================================================== */
.st-brands {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); overflow: hidden;
}
@media (max-width: 991px) { .st-brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .st-brands { grid-template-columns: repeat(2, 1fr); } }
.st-brands__item {
  display: grid; place-items: center;
  padding: 30px 20px;
  border-right: 1px solid var(--c-border-soft);
  font-family: var(--f-heading); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; color: var(--c-text-soft);
  transition: color 0.15s;
}
.st-brands__item:hover { color: var(--c-text); }
.st-brands__item:last-child { border-right: 0; }

/* ==========================================================================
   NEWSLETTER BAR
   ========================================================================== */
.st-newsletter-bar {
  background: linear-gradient(135deg, oklch(0.95 0.04 250) 0%, oklch(0.90 0.07 255) 100%);
  border-radius: var(--r-md);
  padding: 32px 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
}
@media (max-width: 767px) { .st-newsletter-bar { grid-template-columns: 1fr; padding: 28px 24px; } }
.st-newsletter-bar__head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.st-newsletter-bar__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm); background: var(--c-text); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.st-newsletter-bar__icon .st-icon { font-size: 24px; }
.st-newsletter-bar__title { font-family: var(--f-heading); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.st-newsletter-bar__sub { font-size: 14px; color: var(--c-text-muted); max-width: 480px; }
.st-newsletter-bar__form { display: flex; gap: 8px; }
.st-newsletter-bar__form input {
  flex: 1; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 13px 18px;
  font-family: inherit; font-size: 14px; min-width: 0;
}
.st-newsletter-bar__form input:focus { border-color: var(--c-text); outline: none; }
.st-newsletter-bar__incentive {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--c-text-soft);
  margin-top: 10px; letter-spacing: 0.04em;
}
.st-newsletter-bar__incentive strong { color: var(--c-sale); font-weight: 700; }
