/* Reuse the existing archive header footprint and visual treatment. */
.tm-store-header .tm-product-archive-hero__content { max-width: none; }
.tm-store-header__slides { display: grid; margin-top: 18px; }
.tm-store-header__slide { grid-area: 1 / 1; min-width: 0; }
/* Reserve the tallest slide's space to prevent layout jumps when navigating. */
.tm-store-header.is-enhanced .tm-store-header__slide[hidden] { display: block; visibility: hidden; pointer-events: none; }
.tm-store-header__slide h2 { max-width: 40ch; margin: 0; color: #fff; font-family: var(--tm-font-heading); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; }
.tm-store-header__copy { max-width: 65ch; margin: 10px 0 0; color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.6; }
.tm-store-header__controls { display: flex; align-items: center; gap: 4px; margin-top: 16px; }
.tm-store-header__controls[hidden] { display: none; }
.tm-store-header__controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid transparent; border-radius: var(--tm-radius-sm); background: var(--tm-color-surface); color: var(--tm-color-text); cursor: pointer; font-size: 18px; }
.tm-store-header__controls button[aria-pressed="true"] { color: var(--tm-color-primary); border-color: var(--tm-color-primary); }
.tm-store-header__controls button:hover { background: var(--tm-color-surface-raised); }
.tm-store-header__controls button:focus-visible { outline: 2px solid var(--tm-color-focus); outline-offset: 3px; }
.tm-shop-page-builder { margin-bottom: var(--tm-space-xl,48px); }
#shop-products { scroll-margin-top: calc(var(--tm-visible-sticky-header-height,124px) + 24px); }
@media(max-width:767px) { .tm-store-header__copy { font-size: 15px; } .tm-store-header__controls { flex-wrap: wrap; } }

/* Image-led Shop tiles; keep the homepage carousel unchanged. */
.page-section.tm-shop-category-top { background: var(--tm-color-bg); padding-top: 0; }
.tm-shop-category-top .tm-shop-breadcrumbs { margin-bottom: 20px; }
.tm-shop-category-top .tm-shop-section__header { max-width: none; margin: 0 0 24px; text-align: left; }
.tm-shop-category-top .tm-shop-section__heading-group { align-items: flex-start; }
.tm-shop-category-top .tm-shop-section__header h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.15; letter-spacing: -.035em; }
.tm-shop-category-top .tm-shop-section__intro { max-width: 65ch; color: var(--tm-color-text-muted); }
.tm-shop-category-top .tm-category-carousel__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.tm-shop-category-top .tm-shop-term-card,
.tm-shop-category-top .tm-shop-term-card:hover { display: flex; flex-direction: column; min-height: 0; gap: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.tm-shop-category-top .tm-shop-term-card__media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.15; padding: 16px; overflow: hidden; border-radius: var(--tm-radius-xs); background: var(--tm-color-surface); }
.tm-shop-category-top .tm-shop-term-card__image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tm-shop-category-top .tm-shop-term-card:hover .tm-shop-term-card__image { transform: none; }
.tm-shop-category-top .tm-shop-term-card__fallback { width: 100%; min-height: 100%; }
.tm-shop-category-top .tm-shop-term-card__content { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 2px 0; }
.tm-shop-category-top .tm-shop-term-card__icon,
.tm-shop-category-top .tm-shop-term-card__count { display: none; }
.tm-shop-category-top .tm-shop-term-card__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.tm-shop-category-top .tm-shop-term-card__arrow,
.tm-shop-category-top .tm-shop-term-card:hover .tm-shop-term-card__arrow { position: static; flex-shrink: 0; width: 24px; height: 24px; border: 0; border-radius: 0; background: transparent; color: var(--tm-color-primary); transform: none; }
.tm-shop-category-top .tm-shop-term-card__arrow i::before { content: "\f061"; }
.tm-shop-category-top .tm-shop-term-card:hover .tm-shop-term-card__title { color: var(--tm-color-primary); }
.tm-shop-category-top .tm-shop-term-card:focus-visible { outline: 2px solid var(--tm-color-focus); outline-offset: 5px; }
.tm-shop-category-toggle { display: flex; width: 100%; min-height: 44px; margin-top: 24px; }
.tm-shop-category-toggle[hidden],
.tm-shop-category-top .tm-shop-term-card[hidden] { display: none; }
@media (max-width: 1180px) {
  .tm-shop-category-top .tm-category-carousel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tm-shop-category-top .tm-category-carousel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .tm-shop-category-top .tm-shop-term-card__media { padding: 12px; }
  .tm-shop-category-top .tm-shop-term-card__title { font-size: 14px; }
}

/* Shop category description alignment */
.tm-shop-category-top.tm-product-category-grid .tm-shop-section__intro {
  margin-inline: 0;
  text-align: left;
}
