/**
 * Shop archive shell — TC-B07 (hero, categories strip, catalog head).
 */

.category-hero--shop .category-hero__content .lead {
  max-width: none;
}

.category-hero--shop .category-hero__content h1 {
  max-width: none;
}

.section--shop-categories .section-head h2 {
  font-size: var(--fs-section);
}

.section--shop-categories .shop-categories-grid {
  grid-template-columns: repeat(var(--shop-category-cols, 6), minmax(0, 1fr));
}

.section--shop-categories .shop-categories-marquee {
  overflow: visible;
  cursor: default;
  touch-action: auto;
  user-select: auto;
  mask-image: none;
  -webkit-mask-image: none;
}

.section--shop-categories .shop-categories-track {
  animation: none;
  transform: none;
  width: auto;
  max-width: none;
}

.section--shop-categories .shop-categories-track > .is-marquee-clone {
  display: none !important;
}

.section--shop .catalog-main__head .section-head h2 {
  font-size: var(--fs-section);
}

.section--shop .catalog-main {
  min-width: 0;
}

.category-hero__media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  border-radius: var(--radius-lg, 12px);
  background: linear-gradient(145deg, var(--brand-soft, #eef4ff), var(--surface-2, #f5f5f5));
}

.section--shop .woocommerce {
  margin-top: 0;
}

.section--shop .shop-toolbar {
  margin-bottom: 14px;
}

.section--shop .shop-toolbar .pills {
  align-items: center;
}

.section--shop .asc-shop-layout {
  margin-top: 0;
}

.section--shop .products.grid--products {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.section--shop .products.grid--products > li {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.section--shop .products.grid--products .product-card,
.section--category .products.grid--products .product-card,
.asc-shop-products ul.products.grid--products .product-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Catalog pagination — spaced brand pills (D33 / H11d).
   Reset WC default contiguous ul/li borders (woocommerce-rtl.css). */
.section--shop nav.woocommerce-pagination {
  margin-top: 18px;
  text-align: center;
}

.section--shop nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: auto;
  max-width: 100%;
  clear: none;
  float: none;
  white-space: normal;
  border: 0;
  background: transparent;
}

.section--shop nav.woocommerce-pagination ul.page-numbers li {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.section--shop nav.woocommerce-pagination a.page-numbers,
.section--shop nav.woocommerce-pagination span.page-numbers {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease, .2s ease), border-color var(--ease, .2s ease), background var(--ease, .2s ease);
}

.section--shop nav.woocommerce-pagination a.page-numbers:hover,
.section--shop nav.woocommerce-pagination a.page-numbers:focus-visible {
  color: var(--brand);
  border-color: var(--brand-line-strong, var(--brand));
  background: var(--brand-soft);
  outline: none;
}

.section--shop nav.woocommerce-pagination span.page-numbers.current {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.section--shop nav.woocommerce-pagination span.page-numbers.dots {
  min-width: auto;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted, #6b727c);
  font-weight: 700;
}

.section--shop .catalog-empty-state {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .section--shop-categories .shop-categories-grid {
    grid-template-columns: repeat(var(--shop-category-cols-tablet, 3), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section--shop-categories .shop-categories-marquee {
    overflow: hidden;
    container-type: inline-size;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    margin-inline: -11px;
    padding-inline: 11px;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }

  .section--shop-categories .shop-categories-marquee:hover .shop-categories-track,
  .section--shop-categories .shop-categories-marquee:focus-within .shop-categories-track {
    animation-play-state: paused;
  }

  .section--shop-categories .shop-categories-grid,
  .section--shop-categories .shop-categories-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0 0 4px;
    overflow: visible;
    animation: shop-categories-marquee-scroll var(--shop-category-marquee-duration, 36s) linear infinite;
    will-change: transform;
  }

  .section--shop-categories .shop-categories-track > .is-marquee-clone {
    display: grid !important;
  }

  .section--shop-categories .shop-categories-track .category-card {
    flex: 0 0 calc((100cqi - 10px) / 2);
    width: calc((100cqi - 10px) / 2);
    min-width: calc((100cqi - 10px) / 2);
    max-width: calc((100cqi - 10px) / 2);
    min-height: 0;
  }

  .section--shop-categories .shop-categories-track .category-card__content {
    padding: 9px 8px 8px;
  }

  .section--shop .catalog-sidebar {
    order: 2;
  }

  .section--shop .catalog-main {
    order: 1;
  }
  .category-band .category-hero--shop {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .category-hero--shop .category-hero__content {
    gap: 18px;
  }

  .category-hero--shop .category-hero__content h1 {
    padding-block: 0;
  }

  .category-hero--shop .category-hero__meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }

  .category-hero--shop .category-hero__meta .hero-actions,
  .category-hero--shop .category-hero__meta .btn {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .category-hero--shop .category-hero__meta .price-update-banner {
    width: max-content;
    max-width: 100%;
    min-height: 40px;
    margin: 0;
    white-space: nowrap;
  }

  .category-hero--shop .category-hero__meta .hero-actions {
    display: grid;
  }

  .category-hero--shop .category-hero__meta .btn {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12.5px;
    white-space: nowrap;
    justify-content: center;
  }

  .category-hero--shop .category-hero__media {
    display: none;
  }

  .section--shop nav.woocommerce-pagination {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 14px;
    padding-inline: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .section--shop nav.woocommerce-pagination::-webkit-scrollbar {
    display: none;
  }

  .section--shop nav.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
    overflow: visible;
  }

  .section--shop nav.woocommerce-pagination ul.page-numbers li {
    display: block;
    flex: 0 0 auto;
  }

  .section--shop nav.woocommerce-pagination a.page-numbers,
  .section--shop nav.woocommerce-pagination span.page-numbers {
    min-width: 36px;
    min-height: 40px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 900;
    touch-action: manipulation;
  }

  .section--shop nav.woocommerce-pagination span.page-numbers.dots {
    min-width: 14px;
    min-height: 40px;
    padding: 0;
  }

  .section--shop nav.woocommerce-pagination a.page-numbers.prev,
  .section--shop nav.woocommerce-pagination a.page-numbers.next {
    min-width: 52px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 900;
    background: var(--soft, #f3f5f7);
  }
}

@keyframes shop-categories-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section--shop-categories .shop-categories-track {
    animation: none !important;
  }

  .section--shop-categories .shop-categories-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

