/* InteriorX Auto BD V2.6.1 — storefront regression hardening
   Loaded after V2.6.0 so fixes remain isolated and easy to audit. */

/* 1) Desktop already has the permanent category panel beside the hero.
      Avoid showing the same discovery list twice. The compact category rail
      becomes the mobile/tablet discovery UI once the hero panel disappears. */
@media (min-width: 901px) {
  .ix-round-categories { display: none !important; }
}

@media (max-width: 900px) {
  .ix-round-categories { display: block; }
  .ix-round-categories .scroll-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: flex-start;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 12px;
  }
  .ix-round-categories .scroll-row::-webkit-scrollbar { display: none; }
  .ix-round-categories .scroll-row > a {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
  }
}

/* 2) Flash Deal header: V2.6 changed its panel to white while an older layer
      still forced the heading text to white. Use an intentionally dark,
      high-contrast promotion surface so heading/timer/action stay readable. */
.ix-flash-section {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 205, 86, .16), transparent 26%),
    linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}
.ix-flash-section .flash-deal-head {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 18% -35%, rgba(255, 184, 74, .42), transparent 38%),
    radial-gradient(circle at 88% 130%, rgba(229, 9, 20, .52), transparent 42%),
    linear-gradient(120deg, #17131c 0%, #37121a 48%, #9f0913 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(113, 12, 20, .20);
}
.ix-flash-section .flash-deal-head::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  top: -95px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.055);
  pointer-events: none;
}
.ix-flash-section .flash-deal-heading,
.ix-flash-section .flash-countdown,
.ix-flash-section .flash-see-all { position: relative; z-index: 1; }
.ix-flash-section .flash-deal-heading .section-kicker {
  color: #ffd28b !important;
}
.ix-flash-section .flash-deal-heading h2 {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.ix-flash-section .flash-deal-heading p {
  color: rgba(255,255,255,.78) !important;
}
.ix-flash-section .flash-countdown > div {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.94);
  color: #17131c;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
}
.ix-flash-section .flash-see-all {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  color: #fff !important;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.ix-flash-section .flash-see-all:hover {
  background: #fff;
  color: #b70710 !important;
}

/* 3) Keep compact offer header predictable at narrow widths. */
@media (max-width: 640px) {
  .ix-flash-section .flash-deal-head {
    padding: 14px !important;
    border-radius: 16px;
  }
  .ix-flash-section .flash-deal-heading h2 {
    font-size: 21px !important;
    line-height: 1.2;
  }
  .ix-flash-section .flash-deal-heading .section-kicker {
    font-size: 9px;
  }
  .ix-flash-section .flash-see-all {
    padding: 8px 10px;
    font-size: 11px;
  }
  .ix-flash-section .flash-countdown {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ix-flash-section .flash-countdown::-webkit-scrollbar { display: none; }
}
