/* ============================================================
   PIONEER FAMILY POOLS — ECOMMERCE STYLES
   Inherits design tokens from main.css
   Sections:
     1. Shared / layout
     2. Breadcrumb
     3. Category page
     4. Product card
     5. Sidebar filters
     6. Product detail page
     7. Gallery
     8. Tabs
     9. Related products
    10. Cart / add-to-cart feedback
    11. Responsive
   ============================================================ */

/* ── 1. Shared ─────────────────────────────────────────────── */
.ecom-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-3, 24px);
}

.ecom-not-found {
  padding-block: 80px;
  text-align: center;
}

.ecom-not-found h1 {
  font-size: 2rem;
  margin-bottom: var(--space-2, 16px);
  color: var(--color-text, #111);
}

/* ── 2. Breadcrumb ──────────────────────────────────────────── */
.ecom-breadcrumb {
  padding: var(--space-3, 24px) 0 var(--space-2, 16px);
  border-bottom: 1px solid var(--color-border, #ddd);
}

.ecom-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #555);
}

.ecom-breadcrumb__list li + li::before {
  content: '/';
  margin-right: 4px;
  color: var(--color-text-faint, #aaa);
}

.ecom-breadcrumb__list a {
  color: var(--color-text-muted, #555);
  text-decoration: none;
}

.ecom-breadcrumb__list a:hover {
  color: var(--color-primary, #1f629c);
  text-decoration: underline;
}

.ecom-breadcrumb__list [aria-current="page"] {
  color: var(--color-text, #111);
}

/* ── 3. Category page ───────────────────────────────────────── */
.ecom-category-page {
  padding: 180px 0;
}
.ecom-cat-header {
  padding: var(--space-4, 32px) 0;
}

.ecom-cat-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text, #111);
  margin: 0 0 var(--space-1, 8px);
  letter-spacing: -0.01em;
}

.ecom-cat-header__desc {
  font-size: 1rem;
  color: var(--color-text-muted, #555);
  max-width: 600px;
  margin: 0 0 var(--space-1, 8px);
  line-height: 1.6;
}

.ecom-cat-header__count {
  font-size: 0.875rem;
  color: var(--color-text-faint, #aaa);
  margin: 0;
}

.ecom-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-4, 32px);
  align-items: start;
  padding-bottom: var(--space-4, 32px) * 2;
  padding-top: var(--space-3, 24px);
}

/* ── 4. Product card ────────────────────────────────────────── */
.ecom-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3, 24px);
}

.ecom-product-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #ddd);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ecom-product-card__link {
  display: block;
  text-decoration: none;
}

.ecom-product-card__image-wrap {
  position: relative;
  background: var(--color-bg, #f8f7f4);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ecom-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-2, 16px);
  transition: transform 0.3s ease;
}

.ecom-product-card:hover .ecom-product-card__image {
  transform: scale(1.04);
}

.ecom-product-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecom-product-card__badges {
  position: absolute;
  top: var(--space-1, 8px);
  left: var(--space-1, 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ecom-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

.ecom-badge--sale     { background: #c0392b; color: #fff; }
.ecom-badge--new      { background: var(--color-primary, #1f629c); color: #fff; }
.ecom-badge--clearance{ background: var(--color-accent-gold, #c4954a); color: #fff; }
.ecom-badge--oos      { background: #888; color: #fff; }

.ecom-product-card__body {
  padding: var(--space-2, 16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ecom-product-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted, #555);
}

.ecom-product-card__name {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.ecom-product-card__name a {
  color: var(--color-text, #111);
  text-decoration: none;
}

.ecom-product-card__name a:hover {
  color: var(--color-primary, #1f629c);
}

.ecom-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.ecom-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #111);
}

.ecom-price--sale {
  color: #c0392b;
}

.ecom-price--was {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-faint, #aaa);
  text-decoration: line-through;
}

.ecom-price--call {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted, #555);
}

.ecom-product-card__cta {
  display: inline-block;
  margin-top: var(--space-1, 8px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #1f629c);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.ecom-product-card__cta:hover {
  border-color: var(--color-primary, #1f629c);
}

/* Sort bar */
.ecom-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2, 16px);
  border-bottom: 1px solid var(--color-border, #ddd);
  margin-bottom: var(--space-3, 24px);
}

.ecom-sort-bar__count {
  font-size: 0.875rem;
  color: var(--color-text-muted, #555);
}

.ecom-sort-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-2, 16px);
}

.ecom-sort-select {
  border: 1px solid var(--color-border, #ddd);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.875rem;
  background: var(--color-surface, #fff);
  color: var(--color-text, #111);
  cursor: pointer;
}

.ecom-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--color-surface, #fff);
  cursor: pointer;
  color: var(--color-text, #111);
}

.ecom-no-products,
.ecom-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4, 32px);
  color: var(--color-text-muted, #555);
  font-size: 1rem;
}

.ecom-link {
  background: none;
  border: none;
  color: var(--color-primary, #1f629c);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

/* ── 5. Sidebar filters ─────────────────────────────────────── */
.ecom-sidebar {
  position: sticky;
  top: 24px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 6px;
  padding: var(--space-3, 24px);
  background: var(--color-surface, #fff);
}

.ecom-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3, 24px);
  padding-bottom: var(--space-2, 16px);
  border-bottom: 1px solid var(--color-border, #ddd);
}

.ecom-sidebar__title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text, #111);
}

.ecom-sidebar__clear {
  background: none;
  border: none;
  font-size: 0.8125rem;
  color: var(--color-primary, #1f629c);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ecom-filter-group {
  margin-bottom: var(--space-3, 24px);
}

.ecom-filter-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0 0 var(--space-1, 8px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #111);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border, #ddd);
  margin-bottom: var(--space-1, 8px);
}

.ecom-filter-group__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.ecom-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text, #111);
  cursor: pointer;
  padding: 3px 0;
}

.ecom-filter-option--toggle {
  padding: 4px 0;
}

.ecom-filter-check {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary, #1f629c);
  flex-shrink: 0;
  cursor: pointer;
}

.ecom-price-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ecom-price-input {
  width: 70px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.875rem;
  color: var(--color-text, #111);
}

.ecom-price-apply {
  background: var(--color-primary, #1f629c);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
}

.ecom-sidebar__close {
  background: none;
  border: none;
  padding: 4px;
  margin-left: 12px;
  color: var(--color-text, #111);
  cursor: pointer;
  flex-shrink: 0;
}

.ecom-sidebar__close:hover {
  color: var(--color-primary, #1f629c);
}

/* ── 6. Product detail page ─────────────────────────────────── */
.ecom-product-page {
  padding-top: 150px;
  padding-bottom: 80px;
}

.ecom-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-block: var(--space-4, 32px);
  align-items: start;
}

.ecom-product-detail__brand {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted, #555);
  margin-bottom: var(--space-1, 8px);
}

.ecom-product-detail__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--color-text, #111);
  margin: 0 0 var(--space-1, 8px);
  letter-spacing: -0.01em;
}

.ecom-product-detail__sku {
  font-size: 0.8125rem;
  color: var(--color-text-faint, #aaa);
  margin: 0 0 var(--space-3, 24px);
}

.ecom-product-detail__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: var(--space-3, 24px);
}

.ecom-product-detail__price .ecom-price {
  font-size: 1.625rem;
}

.ecom-product-detail__short-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted, #555);
  margin-bottom: var(--space-3, 24px);
}

.ecom-product-detail__short-desc p:last-child {
  margin-bottom: 0;
}

/* Sub-products select */
.ecom-sub-products,
.ecom-bundle-group {
  margin-bottom: var(--space-3, 24px);
}

.ecom-sub-products__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #111);
  margin-bottom: 8px;
}

.ecom-select-wrap {
  position: relative;
}

.ecom-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-muted, #555);
  pointer-events: none;
}

.ecom-select {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--color-border, #ddd);
  border-radius: 2px;
  padding: 10px 36px 10px 12px;
  font-size: 0.9375rem;
  color: var(--color-text, #111);
  background: var(--color-surface, #fff);
  cursor: pointer;
  transition: border-color 0.2s;
}

.ecom-select:focus {
  outline: none;
  border-color: var(--color-primary, #1f629c);
}

/* Qty stepper */
.ecom-qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-2, 16px);
  margin-bottom: var(--space-3, 24px);
}

.ecom-qty-row__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #111);
}

.ecom-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border, #ddd);
  overflow: hidden;
}

.ecom-qty-stepper__btn {
  width: 40px;
  height: 40px;
  background: var(--color-bg, #f8f7f4);
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--color-text, #111);
  transition: background 0.15s;
  line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}

.ecom-qty-stepper__btn:hover {
  background: var(--color-border, #ddd);
}

.ecom-qty-stepper__input {
  width: 48px;
  text-align: center;
  border-top: none !important;
  border-bottom: none !important;
  border-left: 1.5px solid var(--color-border, #ddd) !important;
  border-right: 1.5px solid var(--color-border, #ddd) !important;
  border-radius: 0px !important;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0;
  height: 40px;
  color: var(--color-text, #111);
}

.ecom-qty-stepper__input::-webkit-inner-spin-button,
.ecom-qty-stepper__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Inventory */
.ecom-inventory {
  margin-bottom: var(--space-3, 24px);
  padding: var(--space-2, 16px);
  background: var(--color-bg, #f8f7f4);
  border-radius: 2px;
  border: 1px solid var(--color-border, #ddd);
}

.ecom-inventory__prompt {
  font-size: 0.875rem;
  color: var(--color-text-muted, #555);
  margin: 0;
}

.ecom-inventory__table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ecom-inventory__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.ecom-inventory__loc {
  color: var(--color-text, #111);
  font-weight: 500;
}

.ecom-inventory__status {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.ecom-inventory__status--instock {
  background: #e8f5e9;
  color: #2e7d32;
}

.ecom-inventory__status--lowstock {
  background: #fff8e1;
  color: #f57f17;
}

.ecom-inventory__oos {
  font-size: 0.875rem;
  color: #c0392b;
  margin: 0;
  font-weight: 500;
}

/* CTA buttons */
.ecom-product-detail__actions {
  display: flex;
  gap: var(--space-2, 16px);
  margin-bottom: var(--space-2, 16px);
  flex-wrap: wrap;
}

.ecom-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), gap var(--transition-fast);
  width: fit-content;
}

.ecom-btn--primary {
  background: var(--color-primary, #1f629c);
  color: #fff;
  border-color: var(--color-primary, #1f629c);
}

.ecom-btn--primary:hover {
  background: var(--color-primary-dark, #0d385e);
  border-color: var(--color-primary-dark, #0d385e);
  transform: translateY(-1px);
}

.ecom-btn--secondary {
  background: transparent;
  color: var(--color-primary, #1f629c);
  border-color: var(--color-primary, #1f629c);
}

.ecom-btn--secondary:hover {
  background: var(--color-primary, #1f629c);
  color: #fff;
}

.ecom-product-detail__disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-faint, #aaa);
  margin: 0 0 var(--space-2, 16px);
  line-height: 1.5;
}

.ecom-product-detail__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #555);
}

.ecom-product-detail__meta a {
  color: var(--color-primary, #1f629c);
  text-decoration: none;
}

.ecom-product-detail__meta a:hover {
  text-decoration: underline;
}

/* ── 7. Gallery ─────────────────────────────────────────────── */
.ecom-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 16px);
}

.ecom-gallery__main {
  background: var(--color-bg, #f8f7f4);
  border: 1px solid var(--color-border, #ddd);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.ecom-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-3, 24px);
}

.ecom-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ecom-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--color-border, #ddd);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg, #f8f7f4);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ecom-gallery__thumb:hover,
.ecom-gallery__thumb--active {
  border-color: var(--color-primary, #1f629c);
}

.ecom-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* ── 8. Tabs ────────────────────────────────────────────────── */
.ecom-tabs {
  margin-top: var(--space-4, 32px);
  padding-top: var(--space-4, 32px);
  border-top: 1px solid var(--color-border, #ddd);
}

.ecom-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border, #ddd);
  margin-bottom: var(--space-3, 24px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ecom-tabs__tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted, #555);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.ecom-tabs__tab:hover {
  color: var(--color-text, #111);
}

.ecom-tabs__tab--active {
  color: var(--color-primary, #1f629c);
  border-bottom-color: var(--color-primary, #1f629c);
  font-weight: 700;
}

.ecom-tabs__pane {
  display: none;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted, #555);
  max-width: 760px;
}

.ecom-tabs__pane--active {
  display: block;
}

.ecom-tabs__pane p {
  margin-bottom: var(--space-2, 16px);
}

.ecom-tabs__pane h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text, #111);
  margin-bottom: var(--space-1, 8px);
  margin-top: var(--space-3, 24px);
}

.ecom-tabs__pane h3:first-child {
  margin-top: 0;
}

.ecom-tabs__pane table.attachments {
  width: 100%;
  border-collapse: collapse;
}

.ecom-tabs__pane table.attachments td {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border, #ddd);
}

.ecom-tabs__pane table.attachments a {
  color: var(--color-primary, #1f629c);
  text-decoration: none;
  font-weight: 500;
}

.ecom-tabs__pane table.attachments a:hover {
  text-decoration: underline;
}

/* ── 9. Related ─────────────────────────────────────────────── */
.ecom-related {
  margin-top: var(--space-4, 32px);
  padding-top: var(--space-4, 32px);
  border-top: 1px solid var(--color-border, #ddd);
}

.ecom-related__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text, #111);
  margin: 0 0 var(--space-3, 24px);
  letter-spacing: -0.01em;
}

.ecom-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2, 16px);
}

.ecom-related__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-2, 16px);
  border: 1px solid var(--color-border, #ddd);
  border-radius: 6px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--color-surface, #fff);
}

.ecom-related__card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ecom-related__img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.ecom-related__name {
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-text, #111);
  line-height: 1.35;
}

/* ── 11. Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {

  .ecom-category-page {
    padding: 140px 0;
  }

  .ecom-product-page {
    padding-top: 100px;
  }

  .ecom-layout {
    grid-template-columns: 1fr;
  }

  .ecom-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    border-radius: 0;
    overflow-y: auto;
    padding: var(--space-4, 32px);
  }

  .ecom-sidebar--open {
    display: block;
  }

  .ecom-filter-toggle {
    display: inline-flex;
  }

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

  .ecom-product-detail__gallery {
    order: -1;
  }
}

@media (max-width: 600px) {
  .ecom-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2, 16px);
  }

  .ecom-product-detail__actions {
    flex-direction: column;
  }

  .ecom-btn {
    width: 100%;
  }

  .ecom-tabs__tab {
    padding: 10px 14px;
    font-size: 0.875rem;
  }

  .ecom-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ecom-section-heading {
  grid-column: 1 / -1;
  font-family: var(--font-display, 'Oswald', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text, #111);
  margin: 0;
}
 
/* Top-level section (e.g. "Suction Cleaners") */
.ecom-section-heading[data-depth="0"] {
  font-size: 20px;
  font-weight: 700;
  border-top: 1px solid var(--color-border, #ddd);
  padding-top: 24px;
  margin-top: 40px;
}
 
/* First section on the page shouldn't have a floating top rule */
.ecom-product-grid > .ecom-section-heading[data-depth="0"]:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
 
/* Nested sub-section (e.g. "Corded" under "Inground & Onground Robotic Cleaners") */
.ecom-section-heading[data-depth="1"] {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted, #555);
  margin-top: 20px;
  margin-left: 4px;
}
 
@media (max-width: 640px) {
  .ecom-section-heading[data-depth="0"] { font-size: 18px; margin-top: 32px; }
}


/* ============================================================
   SUPPLIES ACCORDION
   ============================================================ */

.supply-groups {
  border-top: 1px solid var(--color-border);
}

.supply-group {
  border-bottom: 1px solid var(--color-border);
}

/* ── Summary (always-visible header row) ── */
.supply-group__summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

/* Remove default disclosure markers across browsers */
.supply-group__summary::-webkit-details-marker { display: none; }
.supply-group__summary::marker { content: ''; }

.supply-group__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.supply-group__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supply-group__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
  flex: 1;
}

.supply-group__count {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Disclosure icon — same circular plus/minus language as .faq-icon */
.supply-group__icon {
  flex-shrink: 0;
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: border-color 0.2s, transform 0.3s;
}

.supply-group__icon::before,
.supply-group__icon::after {
  content: '';
  position: absolute;
  background: var(--color-text);
  border-radius: 1px;
  transition: opacity 0.2s;
}

.supply-group__icon::before {
  width: 10px; height: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.supply-group__icon::after {
  width: 1px; height: 10px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Open state — driven purely by the browser's native [open] attribute */
.supply-group[open] .supply-group__icon {
  border-color: var(--color-accent-green);
  transform: rotate(45deg);
}

.supply-group[open] .supply-group__title {
  color: var(--color-accent-green);
}

/* ── Body (revealed by the browser when [open] is set) ── */
.supply-group__body {
  padding: 0 0 32px;
}

.supply-group__links {
  column-count: 3;
  column-gap: 32px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.supply-group__links li {
  break-inside: avoid;
  padding: 6px 0;
}

.supply-group__links a {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.supply-group__links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .supply-group__links { column-count: 2; }
}

@media (max-width: 640px) {
  .supply-group__summary { gap: 14px; }
  .supply-group__thumb { width: 48px; height: 48px; }
  .supply-group__count { display: none; } /* keeps row from crowding on small screens */
  .supply-group__links { column-count: 1; }
}