/* assets/css/pages/products.css */

/* =========================================================
   Layout
   ========================================================= */
.page-products main {
  padding: 34px 0 60px;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   Hero
   ========================================================= */
.hero-product {
  padding: 40px 0 18px;
}

.hero-product .container {
  max-width: 1320px;
}

.hero-product h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  max-width: 18ch;
}

/* =========================================================
   Featured carousel section
   ========================================================= */
.wrap[aria-labelledby="kits-carousel-heading"] {
  margin-top: 10px;
}

.carousel-heading {
  text-align: center;
  margin: 10px 0 6px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.carousel-shell {
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(12, 14, 20, 0.75));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  padding: 18px 18px 14px;
}

.carousel-viewport {
  position: relative;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8px 14px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
}

.carousel:active {
  cursor: grabbing;
}

.slide {
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(20, 26, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.slide:hover,
.slide:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(166, 255, 181, 0.3);
  filter: saturate(1.03);
  outline: none;
}

.slide-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  background: rgba(5, 7, 11, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: rgba(11, 13, 18, 0.95);
  background: linear-gradient(90deg, rgba(142, 153, 251, 0.95), rgba(166, 255, 181, 0.95));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.badge-part {
  background: linear-gradient(90deg, rgba(166, 255, 181, 0.95), rgba(255, 255, 255, 0.9));
}

.slide-body {
  padding: 14px 14px 16px;
}

.slide-title {
  font-weight: 760;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.slide-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.slide-price {
  font-weight: 800;
  color: var(--mint);
}

/* Nav buttons */
.car-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.car-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 18, 0.65);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.car-btn:hover {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(166, 255, 181, 0.35);
  background: rgba(10, 12, 18, 0.78);
}

.car-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.car-btn[data-dir="-1"] {
  left: 10px;
}

.car-btn[data-dir="1"] {
  right: 10px;
}

/* Dots */
.car-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 0 2px;
}

.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.car-dot[aria-selected="true"] {
  transform: scale(1.25);
  border-color: rgba(166, 255, 181, 0.75);
  background: rgba(166, 255, 181, 0.42);
}

/* =========================================================
   Choose your path
   ========================================================= */
.shop-paths {
  margin: 0 auto;
  padding: 2.2rem 0 1.2rem;
}

.shop-paths-head {
  max-width: 760px;
  margin: 0 auto 1.9rem;
  text-align: center;
}

.shop-paths-head .section-title {
  margin-bottom: 10px;
}

.shop-paths-head .section-body {
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.55;
}

.shop-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.shop-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(12, 14, 20, 0.82));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.shop-path-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(166, 255, 181, 0.28),
    rgba(142, 153, 251, 0.28),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.shop-path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 255, 181, 0.24);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(166, 255, 181, 0.05);
  filter: saturate(1.03);
}

.shop-path-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.94);
}

.shop-path-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.52;
}

.shop-path-card .shop-path-btn {
  margin-top: auto;
}

.shop-path-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.shop-path-btn {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Guided preset banner
   ========================================================= */
.preset-banner {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(166, 255, 181, 0.16);
  background:
    linear-gradient(135deg, rgba(166, 255, 181, 0.08), rgba(142, 153, 251, 0.06)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.preset-banner[hidden] {
  display: none !important;
}

.preset-banner__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
}

.preset-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.preset-banner__actions {
  margin-top: 12px;
}

/* =========================================================
   Products layout
   ========================================================= */
.product-gallery {
  padding-top: 12px;
}

.products-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

.products-main {
  min-width: 0;
  padding-top: 4px;
}

@media (min-width: 1200px) {
  .products-layout {
    grid-template-columns: 300px 1fr;
  }
}

/* =========================================================
   Sidebar / filters
   ========================================================= */
.filters {
  position: sticky;
  top: calc(var(--header-safe, 76px) + 12px);
}

.filters-stack {
  display: grid;
  gap: 18px;
}

.fcard {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(12, 14, 20, 0.82));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  padding: 18px;
}

.fcard-title {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 13px;
  font-size: 0.98rem;
}

.fsearch {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 11, 0.45);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.fsearch:focus {
  border-color: rgba(166, 255, 181, 0.45);
  box-shadow: 0 0 0 3px rgba(166, 255, 181, 0.1);
}

.cat-all {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.cat-all:hover {
  border-color: rgba(166, 255, 181, 0.35);
  transform: translateY(-1px);
}

.cat-all.active {
  border-color: rgba(166, 255, 181, 0.55);
  box-shadow: 0 0 0 1px rgba(166, 255, 181, 0.12);
}

.cat-list {
  display: grid;
  gap: 10px;
}

.cat-row {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.cat-row.selected {
  border-color: rgba(166, 255, 181, 0.22);
}

.cat-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.chev {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}

.count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-body {
  padding: 10px 12px 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: none;
}

.cat-row.open .cat-body {
  display: grid;
  gap: 10px;
}

.cat-row.open .chev {
  transform: rotate(180deg);
}

.subcat {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.subcat:hover {
  border-color: rgba(166, 255, 181, 0.35);
  transform: translateY(-1px);
}

.subcat.active {
  border-style: solid;
  border-color: rgba(166, 255, 181, 0.55);
  box-shadow: 0 0 0 1px rgba(166, 255, 181, 0.12);
}

.price-slider {
  position: relative;
  height: 34px;
  margin-top: 2px;
}

.price-track {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.price-range {
  position: absolute;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(142, 153, 251, 0.95), rgba(166, 255, 181, 0.95));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.price-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-thumb::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.price-thumb::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.price-readout {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

.fhint {
  margin-top: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

.flabel {
  display: block;
  margin: 12px 0 7px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.fselect {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 11, 0.45);
  color: rgba(255, 255, 255, 0.92);
  padding: 11px 12px;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.fselect:focus {
  border-color: rgba(166, 255, 181, 0.45);
  box-shadow: 0 0 0 3px rgba(166, 255, 181, 0.1);
}

.factions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}

.fbtn {
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
}

.fbtn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.fbtn.ghost:hover {
  border-color: rgba(166, 255, 181, 0.35);
  transform: translateY(-1px);
}

.fbtn.primary {
  background: linear-gradient(90deg, rgba(142, 153, 251, 0.95), rgba(166, 255, 181, 0.95));
  color: rgba(11, 13, 18, 0.95);
  box-shadow: 0 16px 34px rgba(142, 153, 251, 0.18);
}

.fbtn.primary:hover {
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.tags-panel {
  margin-top: 10px;
}

.tags-panel summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.filter-tags {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.tag-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.tag-check input {
  accent-color: #a6ffb5;
}

.tag-check span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
  font-size: 0.92rem;
}

/* =========================================================
   Results bar
   ========================================================= */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.results-left {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  font-weight: 700;
}

.results-muted {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 650;
  font-size: 0.92rem;
}

.sort-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 750;
  margin-right: 8px;
}

.sort-select {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 11, 0.45);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* =========================================================
   Product grid
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: start;
}

.scroll-sentinel {
  height: 1px;
}

.products-loading {
  grid-column: 1 / -1;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.72);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

/* =========================================================
   Product tiles
   ========================================================= */
.panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(20, 26, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.product-tile {
  display: grid;
  grid-template-columns: 1fr;
}

.product-tile.is-recommended {
  border-color: rgba(166, 255, 181, 0.28);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(166, 255, 181, 0.08);
}

.product-tile .gallery {
  padding: 16px 16px 0;
}

.gallery-main {
  border-radius: 18px;
  background: rgba(5, 7, 11, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  aspect-ratio: 16 / 12;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(11, 13, 18, 0.95);
  background: linear-gradient(90deg, rgba(142, 153, 251, 0.95), rgba(166, 255, 181, 0.95));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.recommended-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(166, 255, 181, 0.28);
  background: rgba(10, 16, 22, 0.74);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.product-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 2px 10px;
  overflow: auto;
  scrollbar-width: thin;
}

.product-thumbs .thumb {
  width: 74px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(5, 7, 11, 0.55);
  cursor: pointer;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.product-thumbs .thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(166, 255, 181, 0.55);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.product-thumbs .thumb.active {
  border-color: rgba(166, 255, 181, 0.95);
  box-shadow: 0 0 0 1px rgba(166, 255, 181, 0.18), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.buybox {
  padding: 20px;
}

.product-guidance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.product-recommendation-line,
.product-modal__recommendation-line {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.confidence-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.confidence-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.5);
}

.confidence-tag[data-tone="easy"]::before {
  background: #a6ffb5;
}

.confidence-tag[data-tone="fit"]::before {
  background: #ffd76a;
}

.confidence-tag[data-tone="scale"]::before {
  background: #8e99fb;
}

.confidence-tag[data-tone="neutral"]::before {
  background: rgba(255, 255, 255, 0.55);
}

.product-title {
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0 0 10px;
  background: linear-gradient(120deg, #ffffff, #d5e4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-tagline {
  margin: 0 0 12px;
  color: rgba(154, 164, 173, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 2.8em;
}

.product-best-for {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-best-for strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 760;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.price {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--mint);
}

.tiny {
  font-size: 0.85rem;
  color: rgba(154, 164, 173, 0.95);
}

.product-specs {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: grid;
  gap: 7px;
}

.product-specs li {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.9rem;
}

.product-specs strong {
  color: rgba(154, 164, 173, 0.95);
  font-weight: 650;
}

.cta-row {
  margin-top: 14px;
}

.cta-row--stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cta-row .btn,
.product-cta-primary,
.product-cta-secondary {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.product-cta-primary {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
}

.product-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(99, 102, 241, 0.48);
  filter: saturate(1.06);
}

.product-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.product-cta-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 255, 181, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  align-items: center;
}

/* =========================================================
   Product modal
   ========================================================= */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(7, 10, 16, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.product-modal__dialog {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(18, 24, 32, 0.96), rgba(10, 14, 22, 0.96));
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.46);
}

.product-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 18, 0.88);
  color: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  touch-action: manipulation;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.product-modal__close:hover {
  border-color: rgba(166, 255, 181, 0.35);
  transform: scale(1.04);
}

.product-modal__close:active {
  transform: scale(0.98);
}

.product-modal__media {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.product-modal__main-image {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 11, 0.6);
  aspect-ratio: 16 / 12;
}

.product-modal__main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-modal__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-modal__thumbs .thumb {
  width: 78px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.product-modal__thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal__thumbs .thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 255, 181, 0.35);
}

.product-modal__thumbs .thumb.active {
  border-color: rgba(166, 255, 181, 0.9);
  box-shadow: 0 0 0 1px rgba(166, 255, 181, 0.18);
}

.product-modal__content {
  padding: 28px 28px 32px;
}

.product-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-modal__guidance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.product-modal__content h3 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.product-modal__tagline {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.product-modal__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-modal__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--mint);
}

.product-modal__sku {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

.product-modal__section {
  margin-top: 28px;
}

.product-modal__section h4 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 12px;
}

.product-modal__section p,
.product-modal__section li {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.product-modal__section ul {
  margin: 0;
  padding-left: 18px;
}

.product-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.product-modal__actions .btn {
  min-width: 180px;
  margin-top: 18px;
}

/* =========================
   CONFIGURATOR — MODAL
   ========================= */

.product-addon-group {
  margin-top: 18px;
}

.product-addon-group:first-child {
  margin-top: 0;
}

.product-addon-group__title {
  margin-bottom: 8px;
  font-weight: 700;
}

.product-addon-group__items {
  display: grid;
  gap: 10px;
}

.product-addon-group .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05),
      rgba(12, 14, 20, 0.85)
    );

  transform-origin: center;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.product-addon-group .btn:hover {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07),
      rgba(12, 14, 20, 0.9)
    );

  border-color: rgba(166, 255, 181, 0.25);
  transform: translateY(-1px);
}

.product-addon-group .btn.is-selected {
  background:
    linear-gradient(
      135deg,
      rgba(166, 255, 181, 0.18),
      rgba(142, 153, 251, 0.08)
    );

  border-color: rgba(166, 255, 181, 0.6);

  box-shadow:
    0 0 0 1px rgba(166, 255, 181, 0.25),
    0 14px 40px rgba(166, 255, 181, 0.08);

  animation: addonSelectPulse 220ms ease;
}

@keyframes addonSelectPulse {
  0% {
    transform: scale(0.985);
  }
  60% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

.product-addon-group__text {
  display: grid;
  gap: 4px;
  text-align: left;
}

.product-addon-group__item-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product-addon-group__item-tagline {
  font-size: 0.9rem;
  opacity: 0.7;
}

.product-addon-group__price {
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

#productModalSetupSummary {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-setup-summary__lines {
  display: grid;
  gap: 8px;
}

.product-setup-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.product-setup-summary__notes {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  opacity: 0.7;
  font-size: 0.88rem;
}

#productModalSetupTotal {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .filters {
    position: relative;
    top: auto;
  }

  .hero-product {
    padding: 30px 0 14px;
  }

  .shop-paths {
    padding: 1.8rem 0 1rem;
  }

  .product-grid {
    gap: 22px;
  }

  .product-modal__dialog {
    grid-template-columns: 1fr;
  }

  .product-modal__media {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 900px) {
  .shop-path-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-products main {
    padding-top: 22px;
  }

  .hero-product h1 {
    max-width: 12ch;
  }

  .carousel-shell {
    padding: 14px 14px 12px;
  }

  .shop-path-card {
    padding: 1.2rem;
  }

  .product-grid {
    gap: 18px;
  }

  .results-bar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .buybox {
    padding: 16px;
  }

  .product-modal__content,
  .product-modal__media {
    padding: 20px;
  }

  .product-modal__content h3 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .product-modal__close {
    top: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
  }
}

 .page-products .product-gallery.reveal,
 .page-products .shop-link.reveal {
    opacity: 1;
    transform: none;
  }


@media (max-width: 520px) {
  .car-nav {
    display: none;
  }

  .carousel {
    grid-auto-columns: minmax(250px, 1fr);
  }

  .factions {
    grid-template-columns: 1fr;
  }

  .product-modal__dialog {
    width: min(100% - 16px, 1100px);
    max-height: calc(100dvh - 16px);
    margin: 8px auto;
    border-radius: 22px;
  }

  .product-modal__actions .btn {
    width: 100%;
  }

  .product-guidance,
  .product-modal__guidance {
    gap: 6px;
  }

  .product-recommendation-line,
  .product-modal__recommendation-line,
  .confidence-tag {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Support Bundles (Fly More Pack, etc.)
   ========================================================= */

.product-support-bundle {
  border-radius: 16px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(135deg, rgba(166, 255, 181, 0.08), rgba(142, 153, 251, 0.06)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(166, 255, 181, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.product-support-bundle .product-recommendation-line {
  background: rgba(166, 255, 181, 0.12);
  border-color: rgba(166, 255, 181, 0.3);
  color: rgba(166, 255, 181, 0.95);
}

/* =========================================================
   Feature Chips (used in cards + modal + carousel)
   ========================================================= */

.product-feature-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

/* =========================================================
   Fly More Pack Special Lift (subtle, not loud)
   ========================================================= */

.product-addon-group [data-item-id="fly-more-pack"] {
  border-color: rgba(166,255,181,0.28);
  background:
    linear-gradient(135deg, rgba(166,255,181,0.10), rgba(142,153,251,0.06)),
    rgba(255,255,255,0.02);
}

.product-addon-group [data-item-id="fly-more-pack"]:hover {
  border-color: rgba(166,255,181,0.5);
  box-shadow: 0 16px 42px rgba(166,255,181,0.12);
}