/* =========================================================
   PRODUCT CATALOG REDESIGN
   Scoped to the product catalogue so the homepage and other
   storefront pages keep their existing layout.
   ========================================================= */

.storefront-catalog {
  --catalog-canvas: #f7f9f6;
  --catalog-surface: #ffffff;
  --catalog-surface-soft: #eef3ee;
  --catalog-surface-muted: #e6eee8;
  --catalog-text: #19241f;
  --catalog-text-soft: #405148;
  --catalog-text-muted: #5e6d64;
  --catalog-primary: #2f674f;
  --catalog-primary-hover: #24513f;
  --catalog-border: #dbe3dc;
  --catalog-border-strong: #c9d5cc;
  --catalog-display: 'Source Serif 4', Georgia, serif;
  --catalog-sans: 'Manrope', sans-serif;

  color: var(--catalog-text);
  background: var(--catalog-canvas);
  font-family: var(--catalog-sans);
}

.storefront-catalog main {
  overflow: clip;
  background: var(--catalog-canvas);
}

.storefront-catalog .font-display {
  font-family: var(--catalog-display);
  font-style: normal;
}

.storefront-catalog .font-figures,
.storefront-catalog button,
.storefront-catalog input,
.storefront-catalog a,
.storefront-catalog small,
.storefront-catalog p {
  font-family: var(--catalog-sans);
}

/* Header follows the homepage system. */






































.storefront-catalog .storefront-header-whatsapp {
  display: none;
}

/* Compact catalogue intro. */
.storefront-catalog .catalog-page {
  min-height: 100vh;
  color: var(--catalog-text);
  background: var(--catalog-canvas);
}

.storefront-catalog .catalog-hero,
.storefront-catalog .catalog-top {
  position: relative;
  overflow: visible;
  padding: 2.35rem 1.5rem 1.7rem;
  border-bottom: 1px solid var(--catalog-border);
  background:
    radial-gradient(circle at 86% 22%, rgba(204, 224, 211, 0.48), transparent 25rem),
    linear-gradient(180deg, #fbfcfa 0%, #f5f8f5 100%);
}

.storefront-catalog .catalog-hero-inner,
.storefront-catalog .catalog-top-inner {
  width: min(100%, 72rem);
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(28rem, 1.28fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4.75rem);
  margin: 0 auto;
}

.storefront-catalog .catalog-heading,
.storefront-catalog .catalog-copy-column {
  min-width: 0;
  max-width: none;
}

.storefront-catalog .catalog-eyebrow,
.storefront-catalog .catalog-result-eyebrow {
  display: inline-flex;
  color: var(--catalog-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.storefront-catalog .catalog-title {
  max-width: 34rem;
  margin: 0.45rem 0 0;
  color: var(--catalog-text);
  font-size: clamp(2.4rem, 4.4vw, 4.15rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.storefront-catalog .catalog-title span {
  color: inherit;
  font-style: normal;
}

.storefront-catalog .catalog-description {
  max-width: 33rem;
  margin: 0.75rem 0 0;
  color: var(--catalog-text-soft);
  font-size: 0.87rem;
  line-height: 1.68;
}

.storefront-catalog .catalog-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  color: var(--catalog-text-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.storefront-catalog .catalog-summary i {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--catalog-primary);
}

/* Premium search. */
.storefront-catalog .catalog-search-panel {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.storefront-catalog .catalog-search {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.25rem;
  padding: 0.45rem 0.48rem 0.45rem 1rem;
  border: 1px solid var(--catalog-border-strong);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 42px rgba(31, 64, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.storefront-catalog .catalog-search::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(47, 103, 79, 0), rgba(47, 103, 79, 0.16), rgba(47, 103, 79, 0));
  opacity: 0;
  transition: opacity 220ms ease;
}

.storefront-catalog .catalog-search:focus-within {
  border-color: rgba(47, 103, 79, 0.64);
  box-shadow:
    0 20px 48px rgba(31, 64, 48, 0.12),
    0 0 0 4px rgba(47, 103, 79, 0.08);
  transform: translateY(-1px);
}

.storefront-catalog .catalog-search:focus-within::before {
  opacity: 1;
}

.storefront-catalog .catalog-search-icon {
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  border-radius: 0.68rem;
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
}

.storefront-catalog .catalog-search-icon svg {
  width: 1rem;
  height: 1rem;
}

.storefront-catalog .catalog-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--catalog-text);
  background: transparent;
  font-size: 0.91rem;
  font-weight: 600;
}

.storefront-catalog .catalog-search input::placeholder {
  color: #7a887f;
  opacity: 1;
}

.storefront-catalog .catalog-search-clear {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--catalog-text-muted);
  background: transparent;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.storefront-catalog .catalog-search-clear:hover {
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
  transform: rotate(4deg);
}

.storefront-catalog .catalog-search-clear svg {
  width: 0.9rem;
  height: 0.9rem;
}

.storefront-catalog .catalog-search-submit {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--catalog-primary);
  border-radius: 0.86rem;
  color: #fff;
  background: var(--catalog-primary);
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 800;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    box-shadow 240ms ease;
}

.storefront-catalog .catalog-search-submit:hover {
  background: var(--catalog-primary-hover);
  box-shadow: 0 10px 22px rgba(31, 64, 48, 0.16);
  transform: translateY(-2px);
}

.storefront-catalog .catalog-search-submit svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 220ms ease;
}

.storefront-catalog .catalog-search-submit:hover svg {
  transform: translateX(2px);
}

.storefront-catalog .catalog-search-status {
  position: absolute;
  right: 5.9rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid transparent;
  border-top-color: var(--catalog-primary);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.storefront-catalog .catalog-search-status.is-loading {
  opacity: 1;
  animation: catalog-redesign-spin 0.65s linear infinite;
}

.storefront-catalog .catalog-search-hint {
  margin: 0.55rem 0 0 0.2rem;
  color: var(--catalog-text-muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

/* Results and custom dropdown controls. */
.storefront-catalog .catalog-shell {
  scroll-margin-top: 5.5rem;
  width: min(100% - 3rem, 72rem);
  margin: 0 auto;
  padding: 1.55rem 0 5rem;
}

.storefront-catalog .catalog-panel {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.storefront-catalog .catalog-panel::before {
  display: none;
}

.storefront-catalog .catalog-panel-header {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--catalog-border);
}

.storefront-catalog .catalog-result-copy {
  min-width: 0;
}

.storefront-catalog .catalog-panel-header h2 {
  margin: 0.28rem 0 0;
  color: var(--catalog-text);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.storefront-catalog .catalog-panel-header p {
  margin: 0.32rem 0 0;
  color: var(--catalog-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.storefront-catalog .catalog-filter-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.storefront-catalog .catalog-custom-select {
  position: relative;
  min-width: 11.75rem;
}

.storefront-catalog .catalog-filter-trigger {
  width: 100%;
  min-height: 3.3rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.62rem;
  padding: 0.52rem 0.65rem;
  border: 1px solid var(--catalog-border-strong);
  border-radius: 0.9rem;
  color: var(--catalog-text);
  background: var(--catalog-surface);
  box-shadow: none;
  text-align: left;
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.storefront-catalog .catalog-filter-trigger:hover,
.storefront-catalog .catalog-custom-select.is-open .catalog-filter-trigger {
  border-color: rgba(47, 103, 79, 0.45);
  background: #fbfdfb;
  box-shadow: 0 10px 24px rgba(31, 64, 48, 0.07);
  transform: translateY(-1px);
}

.storefront-catalog .catalog-filter-trigger-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
}

.storefront-catalog .catalog-filter-trigger-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

.storefront-catalog .catalog-filter-trigger-copy {
  min-width: 0;
}

.storefront-catalog .catalog-filter-trigger-copy small,
.storefront-catalog .catalog-filter-trigger-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-catalog .catalog-filter-trigger-copy small {
  color: var(--catalog-text-muted);
  font-size: 0.52rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.storefront-catalog .catalog-filter-trigger-copy strong {
  margin-top: 0.12rem;
  color: var(--catalog-text);
  font-size: 0.68rem;
  font-weight: 800;
}

.storefront-catalog .catalog-filter-chevron {
  width: 0.92rem;
  height: 0.92rem;
  color: var(--catalog-text-muted);
  transition: transform 220ms ease;
}

.storefront-catalog .catalog-custom-select.is-open .catalog-filter-chevron {
  transform: rotate(180deg);
}

.storefront-catalog .catalog-filter-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  max-height: min(21rem, 55vh);
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--catalog-border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(31, 64, 48, 0.14);
  backdrop-filter: blur(16px);
}

.storefront-catalog .catalog-filter-option {
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.68rem;
  border-radius: 0.65rem;
  color: var(--catalog-text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.storefront-catalog .catalog-filter-option:hover,
.storefront-catalog .catalog-filter-option:focus-visible,
.storefront-catalog .catalog-filter-option.is-selected {
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
  outline: none;
  transform: translateX(2px);
}

.storefront-catalog .catalog-filter-option small {
  min-width: 1.6rem;
  min-height: 1.35rem;
  display: grid;
  place-items: center;
  padding-inline: 0.35rem;
  border-radius: 999px;
  color: var(--catalog-text-muted);
  background: rgba(47, 103, 79, 0.07);
  font-size: 0.55rem;
}

.storefront-catalog .catalog-filter-option svg {
  width: 0.95rem;
  height: 0.95rem;
}

.storefront-catalog .catalog-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding: 0.78rem 0 0;
}

.storefront-catalog .catalog-active-filters span,
.storefront-catalog .catalog-active-filters a {
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 750;
}

.storefront-catalog .catalog-active-filters span {
  color: var(--catalog-text-soft);
  background: var(--catalog-surface-soft);
}

.storefront-catalog .catalog-active-filters a {
  color: var(--catalog-primary);
  background: rgba(47, 103, 79, 0.08);
}

.storefront-catalog .catalog-products-stage {
  min-height: 18rem;
  margin-top: 1rem;
  transition: opacity 180ms ease;
}

.storefront-catalog .catalog-shell.is-loading .catalog-products-stage {
  opacity: 0.42;
  pointer-events: none;
}

/* Two-row horizontal product catalogue. */
.storefront-catalog .catalog-carousel {
  position: relative;
  padding-inline: 3.15rem;
}

.storefront-catalog .catalog-carousel-viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

.storefront-catalog .catalog-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.storefront-catalog .catalog-grid {
  --catalog-card-gap: 0.9rem;
  display: grid;
  grid-template-columns: none;
  grid-template-rows: repeat(2, 24.2rem);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (3 * var(--catalog-card-gap))) / 4);
  gap: var(--catalog-card-gap);
  width: 100%;
  margin: 0;
  padding: 0.15rem 0.05rem 0.4rem;
}

.storefront-catalog .catalog-grid > .product-showcase-card:nth-child(odd) {
  scroll-snap-align: start;
}

.storefront-catalog .catalog-product-card.product-showcase-card {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--catalog-border);
  border-radius: 1.05rem;
  color: var(--catalog-text);
  background: var(--catalog-surface);
  box-shadow: none;
  isolation: isolate;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    box-shadow 320ms ease;
}

.storefront-catalog .catalog-product-card.product-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.48) 45%, transparent 62%);
  opacity: 0;
  transform: translateX(-120%);
}

.storefront-catalog .catalog-product-card.product-showcase-card::after {
  content: '';
  position: absolute;
  z-index: 5;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--catalog-primary);
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: center;
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-product-card .product-showcase-card-media,
.storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
  position: relative;
  flex: 0 0 12.25rem;
  width: 100%;
  display: block;
  aspect-ratio: auto;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--catalog-surface-soft);
}

.storefront-catalog .catalog-product-card .product-showcase-card-media::after,
.storefront-catalog .catalog-product-card .product-showcase-card-spotlight,
.storefront-catalog .catalog-product-card .product-showcase-card-stage {
  display: none;
}

.storefront-catalog .catalog-product-card .product-showcase-card-image-wrap {
  width: 100%;
  height: 100%;
  display: block;
  transform: none;
}

.storefront-catalog .catalog-product-card .product-showcase-card-image-wrap img,
.storefront-catalog .catalog-product-card .product-showcase-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-product-card .product-card-v2-placeholder,
.storefront-catalog .catalog-product-card .catalog-product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(47, 103, 79, 0.35);
  background: var(--catalog-surface-soft);
  font-size: 3rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-badges {
  position: absolute;
  z-index: 5;
  top: 0.68rem;
  left: 0.68rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-fulfillment {
  min-height: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(201, 213, 204, 0.85);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(31, 64, 48, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storefront-catalog .catalog-product-card .product-showcase-card-fulfillment.is-instant {
  color: #2f674f;
  background: rgba(238, 248, 241, 0.94);
}

.storefront-catalog .catalog-product-card .product-showcase-card-fulfillment.is-manual {
  color: #8a632b;
  border-color: rgba(224, 195, 144, 0.82);
  background: rgba(255, 247, 230, 0.95);
}

.storefront-catalog .catalog-product-card .product-showcase-card-fulfillment svg {
  width: 0.76rem;
  height: 0.76rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-body,
.storefront-catalog .catalog-product-card .product-card-v2-body.product-showcase-card-body {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0.92rem 0.92rem;
  background: var(--catalog-surface);
}

.storefront-catalog .catalog-product-card .product-showcase-card-copy {
  min-height: 0;
}

.storefront-catalog .catalog-product-card .product-showcase-card-title,
.storefront-catalog .catalog-product-card .product-card-v2-title.product-showcase-card-title {
  min-height: 2.35rem;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--catalog-text);
  font-family: var(--catalog-sans);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storefront-catalog .catalog-product-card .product-showcase-card-description,
.storefront-catalog .catalog-product-card .product-card-v2-description.product-showcase-card-description {
  min-height: 2rem;
  display: -webkit-box;
  overflow: hidden;
  margin: 0.35rem 0 0;
  color: var(--catalog-text-muted);
  font-size: 0.63rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storefront-catalog .catalog-product-card .product-showcase-card-footer,
.storefront-catalog .catalog-product-card .product-card-v2-footer.product-showcase-card-footer {
  margin-top: auto;
  padding-top: 0.72rem;
  border-top: 1px solid var(--catalog-border);
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-label {
  color: var(--catalog-text-muted);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price,
.storefront-catalog .catalog-product-card .product-card-v2-price.product-showcase-card-price {
  color: var(--catalog-primary);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.storefront-catalog .catalog-product-card .product-showcase-card-actions,
.storefront-catalog .catalog-product-card .product-card-v2-actions.product-showcase-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.68rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail,
.storefront-catalog .catalog-product-card .product-showcase-card-buy,
.storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
  min-width: 0;
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.58rem 0.55rem;
  border-radius: 0.72rem;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail {
  border: 1px solid var(--catalog-border-strong);
  color: var(--catalog-text-soft);
  background: var(--catalog-surface);
}

.storefront-catalog .catalog-product-card .product-showcase-card-buy {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--catalog-primary);
  color: #fff;
  background: var(--catalog-primary);
}

.storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
  border: 1px solid #ead0d0;
  color: #a95b5b;
  background: #fbf1f1;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail-icon {
  width: 0.85rem;
  height: 0.85rem;
  display: inline-flex;
  transition: transform 220ms ease;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail-icon svg {
  width: 100%;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .storefront-catalog .catalog-product-card.product-showcase-card:hover {
    z-index: 3;
    border-color: rgba(47, 103, 79, 0.42);
    box-shadow:
      0 22px 44px rgba(31, 64, 48, 0.14),
      0 6px 16px rgba(31, 64, 48, 0.07);
    transform: translateY(-6px) scale(1.012);
  }

  .storefront-catalog .catalog-product-card.product-showcase-card:hover::before {
    opacity: 1;
    animation: catalog-card-sheen 760ms ease forwards;
  }

  .storefront-catalog .catalog-product-card.product-showcase-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .storefront-catalog .catalog-product-card:hover .product-showcase-card-image-wrap img {
    transform: scale(1.075);
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-detail:hover {
    color: var(--catalog-primary);
    border-color: rgba(47, 103, 79, 0.48);
    background: var(--catalog-surface-soft);
    transform: translateY(-2px);
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-detail:hover .product-showcase-card-detail-icon {
    transform: translateX(2px);
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-buy:hover {
    border-color: var(--catalog-primary-hover);
    background: var(--catalog-primary-hover);
    box-shadow: 0 10px 22px rgba(31, 64, 48, 0.18);
    transform: translateY(-3px);
  }
}

.storefront-catalog .catalog-carousel-arrow {
  position: absolute;
  z-index: 8;
  top: calc(50% - 1.9rem);
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--catalog-border-strong);
  border-radius: 999px;
  color: var(--catalog-primary);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(31, 64, 48, 0.12);
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 220ms ease,
    opacity 180ms ease;
}

.storefront-catalog .catalog-carousel-arrow.is-prev {
  left: 0;
}

.storefront-catalog .catalog-carousel-arrow.is-next {
  right: 0;
}

.storefront-catalog .catalog-carousel-arrow svg {
  width: 1rem;
  height: 1rem;
}

.storefront-catalog .catalog-carousel-arrow:hover:not(:disabled) {
  color: #fff;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
  transform: translateY(-50%) scale(1.06);
}

.storefront-catalog .catalog-carousel-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.storefront-catalog .catalog-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2rem;
  margin-top: 0.9rem;
}

.storefront-catalog .catalog-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.storefront-catalog .catalog-carousel-dot {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--catalog-border-strong);
  transition:
    width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    transform 180ms ease;
}

.storefront-catalog .catalog-carousel-dot:hover {
  transform: scale(1.15);
}

.storefront-catalog .catalog-carousel-dot.is-active {
  width: 1.35rem;
  background: var(--catalog-primary);
}

.storefront-catalog .catalog-carousel-counter {
  color: var(--catalog-text-muted);
  font-size: 0.58rem;
  font-weight: 750;
}

.storefront-catalog .catalog-server-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
  color: var(--catalog-text-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.storefront-catalog .catalog-server-pagination a,
.storefront-catalog .catalog-server-pagination .is-disabled {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--catalog-border);
  border-radius: 0.7rem;
}

.storefront-catalog .catalog-server-pagination a {
  color: var(--catalog-primary);
  background: var(--catalog-surface);
}

.storefront-catalog .catalog-server-pagination .is-disabled {
  opacity: 0.42;
}

.storefront-catalog .catalog-empty {
  margin: 0;
  padding: 3rem 1rem;
  border: 1px dashed var(--catalog-border-strong);
  border-radius: 1rem;
  background: var(--catalog-surface);
  text-align: center;
}

.storefront-catalog .catalog-empty-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
}

.storefront-catalog .catalog-empty-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.storefront-catalog .catalog-empty h2 {
  margin: 0.85rem 0 0;
  font-size: 1.65rem;
  font-weight: 500;
}

.storefront-catalog .catalog-empty p {
  margin: 0.45rem 0 0;
  color: var(--catalog-text-muted);
  font-size: 0.72rem;
}

.storefront-catalog .catalog-empty a {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.68rem 0.9rem;
  border-radius: 0.72rem;
  color: #fff;
  background: var(--catalog-primary);
  font-size: 0.68rem;
  font-weight: 800;
}





@keyframes catalog-redesign-spin {
  to { transform: rotate(360deg); }
}

@keyframes catalog-card-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* Dark catalogue, using the same tone as the homepage. */
html[data-theme='dark'] body.storefront-catalog {
  --catalog-canvas: #0d1511;
  --catalog-surface: #142019;
  --catalog-surface-soft: #19271f;
  --catalog-surface-muted: #213229;
  --catalog-text: #edf4ef;
  --catalog-text-soft: #c2d0c6;
  --catalog-text-muted: #93a69a;
  --catalog-primary: #9bc8aa;
  --catalog-primary-hover: #acd5b8;
  --catalog-border: #293a30;
  --catalog-border-strong: #395044;

  color: var(--catalog-text);
  background: var(--catalog-canvas);
}

html[data-theme='dark'] body.storefront-catalog main,
html[data-theme='dark'] body.storefront-catalog .catalog-page {
  background: var(--catalog-canvas);
}





















html[data-theme='dark'] body.storefront-catalog .catalog-hero,
html[data-theme='dark'] body.storefront-catalog .catalog-top {
  border-bottom-color: var(--catalog-border);
  background:
    radial-gradient(circle at 85% 20%, rgba(71, 111, 86, 0.22), transparent 26rem),
    linear-gradient(180deg, #101a14 0%, #0d1511 100%);
}

html[data-theme='dark'] body.storefront-catalog .catalog-title,
html[data-theme='dark'] body.storefront-catalog .catalog-panel-header h2,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-trigger,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-trigger-copy strong,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-title {
  color: var(--catalog-text);
}

html[data-theme='dark'] body.storefront-catalog .catalog-description,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-description {
  color: var(--catalog-text-soft);
}

html[data-theme='dark'] body.storefront-catalog .catalog-search,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-trigger,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-menu,
html[data-theme='dark'] body.storefront-catalog .catalog-empty,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow,
html[data-theme='dark'] body.storefront-catalog .catalog-server-pagination a {
  border-color: var(--catalog-border-strong);
  color: var(--catalog-text);
  background: rgba(20, 32, 25, 0.98);
  box-shadow: none;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search input {
  color: var(--catalog-text);
}

html[data-theme='dark'] body.storefront-catalog .catalog-search input::placeholder {
  color: #84968b;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search-icon,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-trigger-icon {
  border-color: var(--catalog-border);
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
}

html[data-theme='dark'] body.storefront-catalog .catalog-filter-option:hover,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-option:focus-visible,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-option.is-selected {
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card.product-showcase-card,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-body {
  border-color: var(--catalog-border);
  color: var(--catalog-text);
  background: var(--catalog-surface);
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-media {
  background: #111a15;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-footer {
  border-top-color: var(--catalog-border);
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-detail {
  border-color: var(--catalog-border-strong);
  color: var(--catalog-text-soft);
  background: var(--catalog-surface);
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
  border-color: rgba(170, 88, 88, 0.44);
  color: #e6a2a2;
  background: rgba(107, 43, 43, 0.28);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-dot {
  background: #395044;
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-dot.is-active {
  background: var(--catalog-primary);
}



/* Shared product preview, dark only while opened from catalogue. */
html[data-theme='dark'] body.storefront-catalog .product-preview-modal-panel,
html[data-theme='dark'] body.storefront-catalog .product-preview-clean,
html[data-theme='dark'] body.storefront-catalog .product-preview-clean-header,
html[data-theme='dark'] body.storefront-catalog .product-preview-clean-body,
html[data-theme='dark'] body.storefront-catalog .product-preview-clean-footer {
  color: var(--catalog-text);
  background: var(--catalog-surface);
}

html[data-theme='dark'] body.storefront-catalog .product-preview-clean-divider,
html[data-theme='dark'] body.storefront-catalog .product-preview-clean-footer {
  border-color: var(--catalog-border);
}

html[data-theme='dark'] body.storefront-catalog .product-preview-clean-title {
  color: var(--catalog-text);
}

html[data-theme='dark'] body.storefront-catalog .product-preview-clean-description-list,
html[data-theme='dark'] body.storefront-catalog .product-preview-clean-description-list li {
  color: var(--catalog-text-soft);
}

/* Responsive catalogue. */
@media (max-width: 1023px) {
  .storefront-catalog .catalog-hero-inner,
  .storefront-catalog .catalog-top-inner {
    grid-template-columns: minmax(15rem, 0.76fr) minmax(23rem, 1.24fr);
    gap: 2rem;
  }

  .storefront-catalog .catalog-grid {
    grid-auto-columns: calc((100% - (2 * var(--catalog-card-gap))) / 3);
  }
}

@media (max-width: 767px) {












  .storefront-catalog .storefront-header-whatsapp {
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--catalog-primary);
    border-radius: 999px;
    color: #fff;
    background: var(--catalog-primary);
    box-shadow: none;
  }

  .storefront-catalog .storefront-header-whatsapp svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .storefront-catalog #storefront-mobile-whatsapp {
    display: none;
  }

  .storefront-catalog .catalog-hero,
  .storefront-catalog .catalog-top {
    padding: 1.55rem 1.2rem 1.25rem;
  }

  .storefront-catalog .catalog-hero-inner,
  .storefront-catalog .catalog-top-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .storefront-catalog .catalog-title {
    max-width: 26rem;
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .storefront-catalog .catalog-description {
    max-width: 32rem;
    margin-top: 0.55rem;
    font-size: 0.78rem;
  }

  .storefront-catalog .catalog-summary {
    margin-top: 0.65rem;
  }

  .storefront-catalog .catalog-search {
    min-height: 3.9rem;
  }

  .storefront-catalog .catalog-search-hint {
    display: none;
  }

  .storefront-catalog .catalog-shell {
    width: min(100% - 1.5rem, 72rem);
    padding-top: 1.15rem;
  }

  .storefront-catalog .catalog-panel-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .storefront-catalog .catalog-filter-group {
    width: min(100%, 24rem);
  }

  .storefront-catalog .catalog-custom-select {
    min-width: 0;
    flex: 1 1 0;
  }

  .storefront-catalog .catalog-filter-menu {
    position: fixed;
    z-index: 70;
    top: auto;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    max-height: min(25rem, 68vh);
    border-radius: 1rem;
  }

  .storefront-catalog .catalog-grid {
    --catalog-card-gap: 0.7rem;
    grid-template-rows: repeat(2, 22.1rem);
    grid-auto-columns: calc((100% - var(--catalog-card-gap)) / 2);
  }

  .storefront-catalog .catalog-carousel {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr) 2.55rem;
    grid-template-areas:
      'viewport viewport viewport'
      'previous footer next';
    align-items: center;
    gap: 0.8rem 0.65rem;
    padding-inline: 0;
    padding-bottom: 0.1rem;
  }

  .storefront-catalog .catalog-carousel-viewport {
    grid-area: viewport;
  }

  .storefront-catalog .catalog-carousel-arrow {
    position: static;
    width: 2.55rem;
    height: 2.55rem;
    margin: 0;
    transform: none;
  }

  .storefront-catalog .catalog-carousel-arrow:hover:not(:disabled) {
    transform: scale(1.04);
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev {
    grid-area: previous;
  }

  .storefront-catalog .catalog-carousel-arrow.is-next {
    grid-area: next;
  }

  .storefront-catalog .catalog-carousel-footer {
    grid-area: footer;
    margin-top: 0;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-media {
    flex-basis: 10.3rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-body {
    padding: 0.72rem 0.72rem 0.75rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-title {
    min-height: 2.2rem;
    font-size: 0.74rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-description {
    min-height: 1.8rem;
    font-size: 0.59rem;
    -webkit-line-clamp: 2;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-price-panel {
    display: block;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-price {
    display: block;
    margin-top: 0.16rem;
    font-size: 0.86rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-actions {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 0.4rem;
    margin-top: 0.55rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-detail,
  .storefront-catalog .catalog-product-card .product-showcase-card-buy,
  .storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
    min-height: 2.45rem;
    padding-inline: 0.35rem;
    font-size: 0.56rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-detail-icon {
    display: none;
  }
}

@media (max-width: 639px) {
  .storefront-catalog .catalog-panel-header {
    display: block;
  }

  .storefront-catalog .catalog-filter-group {
    width: 100%;
    margin-top: 0.85rem;
  }

  .storefront-catalog .catalog-filter-trigger {
    min-height: 3.05rem;
  }

  .storefront-catalog .catalog-search {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.48rem;
    padding-left: 0.72rem;
  }

  .storefront-catalog .catalog-search-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .storefront-catalog .catalog-search-submit {
    min-width: 2.85rem;
    min-height: 2.85rem;
    padding-inline: 0.8rem;
  }

  .storefront-catalog .catalog-search-submit span {
    display: none;
  }

  .storefront-catalog .catalog-search-status {
    right: 4.4rem;
  }


  .storefront-catalog .catalog-server-pagination {
    gap: 0.45rem;
    font-size: 0.56rem;
  }

  .storefront-catalog .catalog-server-pagination a,
  .storefront-catalog .catalog-server-pagination .is-disabled {
    padding-inline: 0.58rem;
  }
}

@media (max-width: 359px) {




  .storefront-catalog .catalog-hero,
  .storefront-catalog .catalog-top {
    padding-inline: 0.85rem;
  }

  .storefront-catalog .catalog-shell {
    width: min(100% - 0.9rem, 72rem);
  }

  .storefront-catalog .catalog-filter-trigger-copy strong {
    font-size: 0.61rem;
  }

  .storefront-catalog .catalog-grid {
    --catalog-card-gap: 0.55rem;
    grid-template-rows: repeat(2, 21.2rem);
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-media {
    flex-basis: 9.4rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-body {
    padding: 0.62rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-actions {
    gap: 0.3rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-detail,
  .storefront-catalog .catalog-product-card .product-showcase-card-buy,
  .storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog *,
  .storefront-catalog *::before,
  .storefront-catalog *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   PRODUCT CATALOG V2
   Signature hero, live filtering, quick fulfillment filters,
   and a clearer hierarchy between intro, controls, and cards.
   ========================================================= */
.storefront-catalog .catalog-hero {
  padding: 2.15rem 1.5rem 1.8rem;
  overflow: hidden;
}

.storefront-catalog .catalog-hero-inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(27rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.storefront-catalog .catalog-heading {
  max-width: 36rem;
}

.storefront-catalog .catalog-title {
  max-width: 36rem;
  font-size: clamp(2.75rem, 4.25vw, 4.35rem);
  line-height: 0.99;
}

.storefront-catalog .catalog-description {
  max-width: 34rem;
  font-size: 0.86rem;
}

.storefront-catalog .catalog-search-panel {
  margin-top: 1.15rem;
}

.storefront-catalog .catalog-search {
  min-height: 4.35rem;
  border-radius: 1.25rem;
  box-shadow:
    0 20px 46px rgba(31, 64, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.storefront-catalog .catalog-search::after {
  content: '';
  position: absolute;
  inset: auto 1.05rem 0.36rem;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(47, 103, 79, 0.28), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-search:focus-within::after {
  opacity: 1;
  transform: scaleX(1);
}

.storefront-catalog .catalog-search-hint {
  margin-top: 0.48rem;
  font-size: 0.64rem;
}

.storefront-catalog .catalog-hero-visual {
  position: relative;
  min-height: 21rem;
  isolation: isolate;
}

.storefront-catalog .catalog-hero-visual::before,
.storefront-catalog .catalog-hero-visual::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.storefront-catalog .catalog-hero-visual::before {
  inset: 2rem 3.4rem 1.5rem 4.2rem;
  z-index: -2;
  border: 1px solid rgba(47, 103, 79, 0.12);
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.88), transparent 35%),
    rgba(221, 234, 224, 0.66);
  filter: blur(0.2px);
}

.storefront-catalog .catalog-hero-visual::after {
  right: 10%;
  bottom: 4%;
  z-index: -1;
  width: 8rem;
  height: 8rem;
  background: rgba(47, 103, 79, 0.08);
  filter: blur(24px);
}

.storefront-catalog .catalog-hero-visual-orbit {
  position: absolute;
  inset: 3.2rem 5.2rem 3rem 5.2rem;
  z-index: -1;
  border: 1px dashed rgba(47, 103, 79, 0.18);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.storefront-catalog .catalog-floating-card {
  position: absolute;
  width: min(18rem, 62%);
  min-height: 7.25rem;
  display: grid;
  grid-template-columns: 6.3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem;
  border: 1px solid rgba(201, 213, 204, 0.88);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 26px 52px rgba(31, 64, 48, 0.14),
    0 7px 18px rgba(31, 64, 48, 0.07);
  backdrop-filter: blur(16px);
  transform-origin: center;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    border-color 240ms ease;
}

.storefront-catalog .catalog-floating-card-1 {
  top: 0.7rem;
  left: 7%;
  z-index: 3;
  transform: rotate(-6deg);
  animation: catalog-floating-card-one 6.6s ease-in-out infinite;
}

.storefront-catalog .catalog-floating-card-2 {
  top: 7.3rem;
  right: 2%;
  z-index: 2;
  transform: rotate(6deg);
  animation: catalog-floating-card-two 7.2s ease-in-out infinite;
}

.storefront-catalog .catalog-floating-card-3 {
  bottom: 0.5rem;
  left: 16%;
  z-index: 4;
  transform: rotate(-1.5deg);
  animation: catalog-floating-card-three 7.8s ease-in-out infinite;
}

.storefront-catalog .catalog-floating-card-media {
  width: 6.3rem;
  height: 5.8rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.9rem;
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
  font-size: 2rem;
}

.storefront-catalog .catalog-floating-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-catalog .catalog-floating-card-copy {
  min-width: 0;
}

.storefront-catalog .catalog-floating-card-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--catalog-border);
  border-radius: 999px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storefront-catalog .catalog-floating-card-badge.is-instant {
  color: var(--catalog-primary);
  background: var(--catalog-surface-soft);
}

.storefront-catalog .catalog-floating-card-badge.is-manual {
  color: #8a632b;
  border-color: rgba(224, 195, 144, 0.82);
  background: rgba(255, 247, 230, 0.96);
}

.storefront-catalog .catalog-floating-card-copy strong,
.storefront-catalog .catalog-floating-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-catalog .catalog-floating-card-copy strong {
  margin-top: 0.55rem;
  color: var(--catalog-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.storefront-catalog .catalog-floating-card-copy small {
  margin-top: 0.24rem;
  color: var(--catalog-primary);
  font-size: 0.75rem;
  font-weight: 850;
}

@media (hover: hover) and (pointer: fine) {
  .storefront-catalog .catalog-hero-visual:hover .catalog-floating-card-1 {
    transform: translate(-0.35rem, -0.35rem) rotate(-7deg) scale(1.025);
  }

  .storefront-catalog .catalog-hero-visual:hover .catalog-floating-card-2 {
    transform: translate(0.4rem, -0.2rem) rotate(7deg) scale(1.025);
  }

  .storefront-catalog .catalog-hero-visual:hover .catalog-floating-card-3 {
    transform: translateY(0.35rem) rotate(-2deg) scale(1.025);
  }
}

.storefront-catalog .catalog-shell {
  padding-top: 1.25rem;
}

.storefront-catalog .catalog-panel-header {
  align-items: center;
  padding-bottom: 0.9rem;
  border-bottom: 0;
}

.storefront-catalog .catalog-panel-header h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.storefront-catalog .catalog-panel-header p {
  margin-top: 0.25rem;
}

.storefront-catalog .catalog-filter-trigger {
  min-height: 3.15rem;
}

.storefront-catalog .catalog-quick-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0;
  border-top: 1px solid var(--catalog-border);
  border-bottom: 1px solid var(--catalog-border);
}

.storefront-catalog .catalog-quick-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.storefront-catalog .catalog-quick-filters::-webkit-scrollbar {
  display: none;
}

.storefront-catalog .catalog-quick-chip,
.storefront-catalog .catalog-reset-filter {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  border: 1px solid var(--catalog-border-strong);
  border-radius: 999px;
  color: var(--catalog-text-soft);
  background: transparent;
  font-size: 0.62rem;
  font-weight: 800;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.storefront-catalog .catalog-quick-chip {
  padding: 0.52rem 0.72rem;
}

.storefront-catalog .catalog-quick-chip svg,
.storefront-catalog .catalog-reset-filter svg {
  width: 0.84rem;
  height: 0.84rem;
}

.storefront-catalog .catalog-quick-chip small {
  min-width: 1.3rem;
  min-height: 1.3rem;
  display: grid;
  place-items: center;
  padding-inline: 0.3rem;
  border-radius: 999px;
  color: var(--catalog-text-muted);
  background: rgba(47, 103, 79, 0.07);
  font-size: 0.5rem;
}

.storefront-catalog .catalog-quick-chip.is-active {
  color: #fff;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
  box-shadow: 0 10px 22px rgba(31, 64, 48, 0.14);
}

.storefront-catalog .catalog-quick-chip.is-active small {
  color: var(--catalog-primary);
  background: rgba(255, 255, 255, 0.88);
}

.storefront-catalog .catalog-reset-filter {
  padding: 0.52rem 0.68rem;
  color: var(--catalog-primary);
  border-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .storefront-catalog .catalog-quick-chip:hover,
  .storefront-catalog .catalog-reset-filter:hover {
    border-color: rgba(47, 103, 79, 0.42);
    color: var(--catalog-primary);
    background: var(--catalog-surface-soft);
    box-shadow: 0 8px 18px rgba(31, 64, 48, 0.08);
    transform: translateY(-2px);
  }

  .storefront-catalog .catalog-quick-chip.is-active:hover {
    color: #fff;
    border-color: var(--catalog-primary-hover);
    background: var(--catalog-primary-hover);
  }
}

.storefront-catalog .catalog-products-stage {
  margin-top: 1.1rem;
}

.storefront-catalog .catalog-shell.is-loading .catalog-products-stage {
  opacity: 0.36;
  transform: translateY(2px);
}

html[data-theme='dark'] body.storefront-catalog .catalog-floating-card {
  border-color: var(--catalog-border-strong);
  background: rgba(20, 32, 25, 0.94);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.34),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] body.storefront-catalog .catalog-hero-visual::before {
  border-color: rgba(155, 200, 170, 0.12);
  background:
    radial-gradient(circle at 38% 30%, rgba(155, 200, 170, 0.08), transparent 35%),
    rgba(25, 39, 31, 0.82);
}

html[data-theme='dark'] body.storefront-catalog .catalog-hero-visual-orbit {
  border-color: rgba(155, 200, 170, 0.2);
}

html[data-theme='dark'] body.storefront-catalog .catalog-floating-card-badge.is-manual {
  color: #e1bd7c;
  border-color: rgba(184, 143, 76, 0.42);
  background: rgba(111, 78, 28, 0.24);
}

html[data-theme='dark'] body.storefront-catalog .catalog-quick-filter-bar {
  border-color: var(--catalog-border);
}

html[data-theme='dark'] body.storefront-catalog .catalog-quick-chip,
html[data-theme='dark'] body.storefront-catalog .catalog-reset-filter {
  border-color: var(--catalog-border-strong);
  color: var(--catalog-text-soft);
}

html[data-theme='dark'] body.storefront-catalog .catalog-quick-chip small {
  color: var(--catalog-text-muted);
  background: rgba(155, 200, 170, 0.08);
}

html[data-theme='dark'] body.storefront-catalog .catalog-quick-chip.is-active {
  color: #0f1b14;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
}

html[data-theme='dark'] body.storefront-catalog .catalog-quick-chip.is-active small {
  color: #0f1b14;
  background: rgba(255, 255, 255, 0.45);
}

@keyframes catalog-floating-card-one {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-0.45rem) rotate(-5.3deg); }
}

@keyframes catalog-floating-card-two {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(0.4rem) rotate(5.2deg); }
}

@keyframes catalog-floating-card-three {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-0.35rem) rotate(-2.2deg); }
}

@media (max-width: 1023px) {
  .storefront-catalog .catalog-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .storefront-catalog .catalog-heading {
    max-width: 43rem;
  }

  .storefront-catalog .catalog-hero-visual {
    display: none;
  }
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-hero {
    padding: 1.4rem 1.2rem 1.15rem;
  }

  .storefront-catalog .catalog-title {
    max-width: 31rem;
    font-size: clamp(2.2rem, 9.5vw, 3.05rem);
    line-height: 1;
  }

  .storefront-catalog .catalog-description {
    max-width: 31rem;
    font-size: 0.76rem;
    line-height: 1.58;
  }

  .storefront-catalog .catalog-search-panel {
    margin-top: 0.9rem;
  }

  .storefront-catalog .catalog-search {
    min-height: 3.75rem;
    border-radius: 1rem;
  }

  .storefront-catalog .catalog-panel-header {
    display: block;
    padding-bottom: 0.75rem;
  }

  .storefront-catalog .catalog-filter-group {
    width: 100%;
    margin-top: 0.8rem;
  }

  .storefront-catalog .catalog-quick-filter-bar {
    align-items: stretch;
    gap: 0.55rem;
    padding-block: 0.7rem;
  }

  .storefront-catalog .catalog-quick-filters {
    margin-right: -0.2rem;
    padding-right: 0.2rem;
  }

  .storefront-catalog .catalog-quick-chip,
  .storefront-catalog .catalog-reset-filter {
    min-height: 2.2rem;
    font-size: 0.58rem;
  }

  .storefront-catalog .catalog-reset-filter {
    align-self: center;
  }
}

@media (max-width: 479px) {
  .storefront-catalog .catalog-description {
    margin-top: 0.48rem;
  }

  .storefront-catalog .catalog-summary {
    margin-top: 0.58rem;
  }

  .storefront-catalog .catalog-search-hint {
    display: none;
  }

  .storefront-catalog .catalog-quick-filter-bar {
    display: block;
  }

  .storefront-catalog .catalog-reset-filter {
    margin-top: 0.4rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .storefront-catalog .catalog-hero-visual:hover .catalog-floating-card {
    animation-play-state: paused;
  }
}

/* =========================================================
   PRODUCT CATALOG V3
   Stronger hierarchy, fewer tertiary labels, and restrained
   two-tone emphasis without adding fonts or colour tokens.
   ========================================================= */
.storefront-catalog .catalog-hero {
  padding-block: 1.75rem 1.45rem;
}

.storefront-catalog .catalog-hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

.storefront-catalog .catalog-heading {
  max-width: 39rem;
}

.storefront-catalog .catalog-eyebrow {
  align-items: center;
  min-height: 1.9rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(47, 103, 79, 0.2);
  border-radius: 999px;
  color: var(--catalog-primary);
  background: rgba(47, 103, 79, 0.06);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.storefront-catalog .catalog-title {
  max-width: 39rem;
  margin-top: 0.7rem;
  font-size: clamp(2.75rem, 3.85vw, 3.95rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.storefront-catalog .catalog-title-accent {
  position: relative;
  display: inline-block;
  color: var(--catalog-primary);
  isolation: isolate;
}

.storefront-catalog .catalog-title-accent::after {
  content: '';
  position: absolute;
  right: -0.08em;
  bottom: 0.08em;
  left: -0.04em;
  z-index: -1;
  height: 0.22em;
  border-radius: 999px;
  background: rgba(47, 103, 79, 0.12);
  transform: rotate(-1deg);
}

.storefront-catalog .catalog-description {
  max-width: 35rem;
  margin-top: 0.72rem;
  color: var(--catalog-text-soft);
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.58;
}

.storefront-catalog .catalog-search-panel {
  margin-top: 1rem;
}

.storefront-catalog .catalog-summary {
  gap: 0.42rem;
  margin-top: 0.65rem;
  color: var(--catalog-text-soft);
}

.storefront-catalog .catalog-summary-number {
  color: var(--catalog-primary);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.storefront-catalog .catalog-summary-label {
  font-size: 0.7rem;
  font-weight: 760;
}

.storefront-catalog .catalog-search input {
  color: var(--catalog-text);
  font-size: 0.95rem;
  font-weight: 680;
}

.storefront-catalog .catalog-search input::placeholder {
  color: var(--catalog-text-muted);
}

.storefront-catalog .catalog-hero-visual {
  min-height: 18.75rem;
}

.storefront-catalog .catalog-floating-card {
  min-height: 6.65rem;
  grid-template-columns: 5.7rem minmax(0, 1fr);
}

.storefront-catalog .catalog-floating-card-media {
  width: 5.7rem;
  height: 5.25rem;
}

.storefront-catalog .catalog-floating-card-1 {
  top: 0.35rem;
}

.storefront-catalog .catalog-floating-card-2 {
  top: 6.15rem;
}

.storefront-catalog .catalog-floating-card-3 {
  bottom: 0.15rem;
}

.storefront-catalog .catalog-shell {
  padding-top: 1rem;
}

.storefront-catalog .catalog-panel-header {
  min-height: 4.2rem;
  padding-bottom: 0.72rem;
}

.storefront-catalog .catalog-result-title,
.storefront-catalog .catalog-panel-header h2 {
  margin: 0;
  color: var(--catalog-text);
  font-family: var(--catalog-sans);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.storefront-catalog .catalog-result-title span {
  color: var(--catalog-primary);
}

.storefront-catalog .catalog-filter-trigger-copy small {
  color: var(--catalog-primary);
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.storefront-catalog .catalog-filter-trigger-copy strong {
  color: var(--catalog-text);
  font-size: 0.72rem;
  font-weight: 820;
}

.storefront-catalog .catalog-quick-filter-bar {
  padding-block: 0.68rem;
}

.storefront-catalog .catalog-quick-chip,
.storefront-catalog .catalog-reset-filter {
  font-size: 0.65rem;
}

.storefront-catalog .catalog-quick-chip small {
  color: var(--catalog-text-soft);
  font-weight: 850;
}

.storefront-catalog .catalog-products-stage {
  margin-top: 0.85rem;
}

.storefront-catalog .catalog-empty h2 {
  font-family: var(--catalog-sans);
  font-weight: 850;
  letter-spacing: -0.025em;
}

html[data-theme='dark'] body.storefront-catalog .catalog-eyebrow {
  border-color: rgba(155, 200, 170, 0.22);
  background: rgba(155, 200, 170, 0.08);
}

html[data-theme='dark'] body.storefront-catalog .catalog-title-accent::after {
  background: rgba(155, 200, 170, 0.14);
}

html[data-theme='dark'] body.storefront-catalog .catalog-description,
html[data-theme='dark'] body.storefront-catalog .catalog-summary-label {
  color: var(--catalog-text-soft);
}

@media (max-width: 1023px) {
  .storefront-catalog .catalog-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-catalog .catalog-heading {
    max-width: 44rem;
  }
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-hero {
    padding-block: 1.2rem 1rem;
  }

  .storefront-catalog .catalog-title {
    max-width: 31rem;
    margin-top: 0.55rem;
    font-size: clamp(2.15rem, 9vw, 2.9rem);
    line-height: 1.02;
  }

  .storefront-catalog .catalog-description {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .storefront-catalog .catalog-search-panel {
    margin-top: 0.78rem;
  }

  .storefront-catalog .catalog-summary {
    margin-top: 0.52rem;
  }

  .storefront-catalog .catalog-panel-header {
    min-height: 0;
  }

  .storefront-catalog .catalog-result-title,
  .storefront-catalog .catalog-panel-header h2 {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .storefront-catalog .catalog-filter-group {
    margin-top: 0.65rem;
  }
}

@media (max-width: 479px) {
  .storefront-catalog .catalog-eyebrow {
    min-height: 1.75rem;
    padding: 0.32rem 0.58rem;
    font-size: 0.56rem;
  }

  .storefront-catalog .catalog-title {
    font-size: clamp(2rem, 10.5vw, 2.65rem);
  }

  .storefront-catalog .catalog-description {
    font-size: 0.76rem;
  }
}

/* =========================================================
   PRODUCT CATALOG V4
   Single-row showcase, responsive expand/collapse, stronger
   card hierarchy, precise short-query behavior, and unified
   catalogue dark surfaces.
   ========================================================= */
.storefront-catalog .catalog-products-stage {
  min-height: 0;
  margin-top: 0.8rem;
}

.storefront-catalog .catalog-carousel {
  --catalog-columns: 5;
  --catalog-card-gap: 0.85rem;
  --catalog-card-width: calc((100% - 3.4rem) / 5);
  padding-inline: 3.05rem;
}

.storefront-catalog .catalog-carousel-viewport {
  transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-grid {
  display: grid;
  grid-template-columns: none;
  grid-template-rows: minmax(0, 23.35rem);
  grid-auto-flow: column;
  grid-auto-columns: var(--catalog-card-width);
  gap: var(--catalog-card-gap);
  width: 100%;
  padding: 0.2rem 0.05rem 0.45rem;
}

.storefront-catalog .catalog-grid > .product-showcase-card,
.storefront-catalog .catalog-grid > .product-showcase-card:nth-child(odd) {
  scroll-snap-align: start;
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-viewport {
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: none;
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-grid {
  grid-template-columns: repeat(var(--catalog-columns), minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-flow: row;
  grid-auto-columns: unset;
}

.storefront-catalog .catalog-product-card.product-showcase-card {
  height: 23.35rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-media,
.storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
  flex-basis: 11.35rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-body,
.storefront-catalog .catalog-product-card .product-card-v2-body.product-showcase-card-body {
  padding: 0.82rem 0.84rem 0.86rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-copy {
  min-height: 3.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-title,
.storefront-catalog .catalog-product-card .product-card-v2-title.product-showcase-card-title {
  min-height: 0;
  margin: 0;
  color: var(--catalog-text);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.018em;
  -webkit-line-clamp: 2;
}

.storefront-catalog .catalog-product-card .product-showcase-card-description,
.storefront-catalog .catalog-product-card .product-card-v2-description.product-showcase-card-description {
  min-height: 0;
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--catalog-text-soft);
  font-size: 0.62rem;
  font-weight: 570;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-catalog .catalog-product-card .product-showcase-card-footer,
.storefront-catalog .catalog-product-card .product-card-v2-footer.product-showcase-card-footer {
  padding-top: 0.62rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-label {
  color: var(--catalog-text-soft);
}

.storefront-catalog .catalog-carousel-arrow {
  top: 11.65rem;
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-arrow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.storefront-catalog .catalog-carousel-footer {
  justify-content: space-between;
  min-height: 2.75rem;
  margin-top: 0.8rem;
}

.storefront-catalog .catalog-carousel-navigation {
  min-width: 6.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-navigation {
  display: none;
}

.storefront-catalog .catalog-carousel.is-single-page .catalog-carousel-navigation {
  opacity: 0.56;
}

.storefront-catalog .catalog-expand-toggle {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--catalog-border-strong);
  border-radius: 0.78rem;
  color: var(--catalog-primary);
  background: var(--catalog-surface);
  box-shadow: 0 8px 20px rgba(31, 64, 48, 0.06);
  font-size: 0.64rem;
  font-weight: 820;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-expand-toggle[hidden] {
  display: none;
}

.storefront-catalog .catalog-expand-toggle svg {
  width: 0.92rem;
  height: 0.92rem;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-expand-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .storefront-catalog .catalog-expand-toggle:hover {
    color: #fff;
    border-color: var(--catalog-primary);
    background: var(--catalog-primary);
    box-shadow: 0 12px 26px rgba(31, 64, 48, 0.16);
    transform: translateY(-2px);
  }
}

/* Final dark hierarchy: one canvas, one raised surface, one accent. */
html[data-theme='dark'] body.storefront-catalog {
  --catalog-canvas: #0b120e;
  --catalog-surface: #132019;
  --catalog-surface-soft: #192920;
  --catalog-surface-muted: #203229;
  --catalog-text: #edf5ef;
  --catalog-text-soft: #c3d2c8;
  --catalog-text-muted: #93a69a;
  --catalog-primary: #9bc8aa;
  --catalog-primary-hover: #afd8bb;
  --catalog-border: #263a2e;
  --catalog-border-strong: #385342;
}

html[data-theme='dark'] body.storefront-catalog .catalog-hero,
html[data-theme='dark'] body.storefront-catalog .catalog-top {
  border-bottom: 1px solid var(--catalog-border);
  background:
    radial-gradient(circle at 83% 18%, rgba(95, 145, 111, 0.15), transparent 27rem),
    linear-gradient(180deg, #101a14 0%, var(--catalog-canvas) 100%);
}

html[data-theme='dark'] body.storefront-catalog .catalog-shell {
  border-top: 1px solid rgba(56, 83, 66, 0.56);
  background: var(--catalog-canvas);
}

html[data-theme='dark'] body.storefront-catalog .catalog-panel-header,
html[data-theme='dark'] body.storefront-catalog .catalog-quick-filter-bar {
  border-color: var(--catalog-border);
  background: transparent;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card.product-showcase-card,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-body {
  border-color: var(--catalog-border);
  background: var(--catalog-surface);
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-description,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-price-label,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-counter {
  color: var(--catalog-text-soft);
}

html[data-theme='dark'] body.storefront-catalog .catalog-expand-toggle {
  border-color: var(--catalog-border-strong);
  color: var(--catalog-primary);
  background: var(--catalog-surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme='dark'] body.storefront-catalog .catalog-expand-toggle:hover {
    color: #102016;
    border-color: var(--catalog-primary);
    background: var(--catalog-primary);
  }
}

@media (max-width: 1279px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 4;
    --catalog-card-width: calc((100% - 2.55rem) / 4);
  }
}

@media (max-width: 1023px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 3;
    --catalog-card-width: calc((100% - 1.7rem) / 3);
  }
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 2;
    --catalog-card-gap: 0.7rem;
    --catalog-card-width: calc((100% - 0.7rem) / 2);
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr) 2.55rem;
    grid-template-areas:
      'viewport viewport viewport'
      'previous footer next';
    gap: 0.75rem 0.6rem;
    padding-inline: 0;
  }

  .storefront-catalog .catalog-carousel.is-expanded {
    grid-template-areas:
      'viewport viewport viewport'
      'footer footer footer';
  }

  .storefront-catalog .catalog-grid {
    grid-template-rows: minmax(0, 21.6rem);
  }

  .storefront-catalog .catalog-product-card.product-showcase-card {
    height: 21.6rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-media,
  .storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
    flex-basis: 9.8rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-copy {
    min-height: 3.35rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-title,
  .storefront-catalog .catalog-product-card .product-card-v2-title.product-showcase-card-title {
    font-size: 0.72rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-description,
  .storefront-catalog .catalog-product-card .product-card-v2-description.product-showcase-card-description {
    font-size: 0.58rem;
  }

  .storefront-catalog .catalog-carousel-arrow {
    top: auto;
  }

  .storefront-catalog .catalog-carousel-footer {
    grid-area: footer;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0;
  }

  .storefront-catalog .catalog-carousel-navigation {
    min-width: 0;
  }

  .storefront-catalog .catalog-expand-toggle {
    min-height: 2.5rem;
    font-size: 0.58rem;
  }
}

@media (max-width: 359px) {
  .storefront-catalog .catalog-grid {
    grid-template-rows: minmax(0, 20.9rem);
  }

  .storefront-catalog .catalog-product-card.product-showcase-card {
    height: 20.9rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-media,
  .storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
    flex-basis: 9.15rem;
  }
}


/* =========================================================
   PRODUCT CATALOG V5
   Premium peek carousel, mobile swipe-only exploration,
   stable card hierarchy, guarded history, and unified dark UI.
   ========================================================= */
.storefront-catalog .catalog-carousel {
  --catalog-columns: 4;
  --catalog-card-gap: 1rem;
  --catalog-card-peek: 6.5rem;
  --catalog-card-width: calc((100% - (3 * var(--catalog-card-gap)) - var(--catalog-card-peek)) / 4);
  position: relative;
  padding-inline: 3.45rem;
  isolation: isolate;
}

.storefront-catalog .catalog-carousel::before,
.storefront-catalog .catalog-carousel::after {
  content: '';
  position: absolute;
  z-index: 6;
  top: 0.15rem;
  bottom: 3.7rem;
  width: 4.2rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms ease;
}

.storefront-catalog .catalog-carousel::before {
  left: 3.45rem;
  background: linear-gradient(90deg, var(--catalog-canvas) 4%, transparent 100%);
}

.storefront-catalog .catalog-carousel::after {
  right: 3.45rem;
  background: linear-gradient(270deg, var(--catalog-canvas) 4%, transparent 100%);
}

.storefront-catalog .catalog-carousel.is-at-start::before,
.storefront-catalog .catalog-carousel.is-at-end::after,
.storefront-catalog .catalog-carousel.is-expanded::before,
.storefront-catalog .catalog-carousel.is-expanded::after {
  opacity: 0;
}

.storefront-catalog .catalog-carousel-viewport {
  position: relative;
  padding: 0.22rem 0 0.72rem;
  cursor: grab;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

.storefront-catalog .catalog-carousel-viewport:active {
  cursor: grabbing;
}

.storefront-catalog .catalog-grid {
  grid-template-rows: minmax(0, 24.15rem);
  grid-auto-columns: var(--catalog-card-width);
  gap: var(--catalog-card-gap);
  padding: 0.1rem 0.05rem 0.5rem;
}

.storefront-catalog .catalog-grid > .product-showcase-card,
.storefront-catalog .catalog-grid > .product-showcase-card:nth-child(odd) {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-grid {
  grid-template-columns: repeat(var(--catalog-columns), minmax(0, 1fr));
  grid-auto-columns: unset;
  gap: 1rem;
}

.storefront-catalog .catalog-product-card.product-showcase-card {
  height: 24.15rem;
  border-radius: 1.1rem;
  box-shadow: 0 12px 28px rgba(31, 64, 48, 0.055);
}

.storefront-catalog .catalog-product-card .product-showcase-card-media,
.storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
  flex-basis: 12.15rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-body,
.storefront-catalog .catalog-product-card .product-card-v2-body.product-showcase-card-body {
  padding: 0.92rem 0.95rem 0.95rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-copy {
  min-height: 3.25rem;
  gap: 0.16rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-title,
.storefront-catalog .catalog-product-card .product-card-v2-title.product-showcase-card-title {
  min-height: 1.25rem;
  color: var(--catalog-text);
  font-family: var(--catalog-sans) !important;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -0.024em;
  -webkit-line-clamp: 2;
}

.storefront-catalog .catalog-product-card .product-showcase-card-description,
.storefront-catalog .catalog-product-card .product-card-v2-description.product-showcase-card-description {
  min-height: 1.05rem;
  margin-top: 0.12rem;
  color: var(--catalog-text-soft);
  font-family: var(--catalog-sans);
  font-size: 0.7rem;
  font-weight: 540;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-catalog .catalog-product-card .product-showcase-card-footer,
.storefront-catalog .catalog-product-card .product-card-v2-footer.product-showcase-card-footer {
  padding-top: 0.68rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-panel {
  min-height: 3.05rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--catalog-border);
  border-radius: 0.82rem;
  background: var(--catalog-surface-soft);
}

.storefront-catalog .catalog-product-card .product-showcase-card-actions,
.storefront-catalog .catalog-product-card .product-card-v2-actions.product-showcase-card-actions {
  grid-template-columns: minmax(7.2rem, 1.08fr) minmax(6.35rem, 0.92fr);
  gap: 0.55rem;
  margin-top: 0.62rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail,
.storefront-catalog .catalog-product-card .product-showcase-card-buy,
.storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
  min-height: 2.72rem;
  padding-inline: 0.65rem;
  font-size: 0.67rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail-label {
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.storefront-catalog .catalog-carousel-arrow {
  z-index: 10;
  top: 12.15rem;
  width: 3.15rem;
  height: 3.15rem;
  border-width: 1px;
  box-shadow:
    0 16px 34px rgba(31, 64, 48, 0.16),
    0 0 0 5px rgba(247, 249, 246, 0.76);
}

.storefront-catalog .catalog-carousel-arrow.is-prev {
  left: 0.25rem;
  color: var(--catalog-primary);
  background: var(--catalog-surface);
}

.storefront-catalog .catalog-carousel-arrow.is-next {
  right: 0.25rem;
  color: #fff;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
}

.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  border-color: var(--catalog-primary-hover);
  background: var(--catalog-primary-hover);
}

.storefront-catalog .catalog-carousel:not(.has-interacted) .catalog-carousel-arrow.is-next:not(:disabled) {
  animation: catalog-carousel-next-cue 2.8s ease-in-out 2;
}

.storefront-catalog .catalog-carousel-footer {
  margin-top: 0.68rem;
}

.storefront-catalog .catalog-carousel.is-single-page .catalog-carousel-navigation {
  display: none;
}

.storefront-catalog .catalog-carousel:not(.has-navigation):not(.has-expand) .catalog-carousel-footer {
  display: none;
}

.storefront-catalog .catalog-carousel-navigation {
  min-height: 2.65rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--catalog-border);
  border-radius: 999px;
  background: var(--catalog-surface);
  box-shadow: 0 8px 20px rgba(31, 64, 48, 0.055);
}

.storefront-catalog .catalog-carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
}

.storefront-catalog .catalog-carousel-dot.is-active {
  width: 1.65rem;
}

@keyframes catalog-carousel-next-cue {
  0%, 62%, 100% {
    box-shadow:
      0 16px 34px rgba(31, 64, 48, 0.16),
      0 0 0 5px rgba(247, 249, 246, 0.76);
  }
  76% {
    box-shadow:
      0 18px 38px rgba(31, 64, 48, 0.22),
      0 0 0 9px rgba(47, 103, 79, 0.12);
  }
}

/* Dark catalogue uses one canvas and clearly separated raised controls/cards. */
html[data-theme='dark'] body.storefront-catalog {
  --catalog-canvas: #08100b;
  --catalog-surface: #111b15;
  --catalog-surface-soft: #17241c;
  --catalog-surface-muted: #1d2d23;
  --catalog-text: #f1f6f2;
  --catalog-text-soft: #c8d6cc;
  --catalog-text-muted: #9bad9f;
  --catalog-primary: #9fd0ae;
  --catalog-primary-hover: #b5dec0;
  --catalog-border: #24372b;
  --catalog-border-strong: #385441;
  color: var(--catalog-text);
  background: var(--catalog-canvas) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-page,
html[data-theme='dark'] body.storefront-catalog main,
html[data-theme='dark'] body.storefront-catalog .catalog-shell {
  background: var(--catalog-canvas) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-panel,
html[data-theme='dark'] body.storefront-catalog .catalog-products-stage,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-panel-header,
html[data-theme='dark'] body.storefront-catalog .catalog-quick-filter-bar {
  border-color: var(--catalog-border) !important;
  background: transparent !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-trigger,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-menu,
html[data-theme='dark'] body.storefront-catalog .catalog-quick-chip,
html[data-theme='dark'] body.storefront-catalog .catalog-reset-filter,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-navigation,
html[data-theme='dark'] body.storefront-catalog .catalog-expand-toggle {
  color: var(--catalog-text);
  border-color: var(--catalog-border-strong) !important;
  background: var(--catalog-surface) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] body.storefront-catalog .catalog-filter-trigger:hover,
html[data-theme='dark'] body.storefront-catalog .catalog-custom-select.is-open .catalog-filter-trigger,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-option:hover,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-option:focus-visible,
html[data-theme='dark'] body.storefront-catalog .catalog-filter-option.is-selected,
html[data-theme='dark'] body.storefront-catalog .catalog-quick-chip:hover {
  color: var(--catalog-text);
  border-color: var(--catalog-primary) !important;
  background: var(--catalog-surface-soft) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-quick-chip.is-active {
  color: #0d1b12;
  border-color: var(--catalog-primary) !important;
  background: var(--catalog-primary) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card.product-showcase-card {
  color: var(--catalog-text);
  border-color: var(--catalog-border) !important;
  background: var(--catalog-surface) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-media,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
  background: #0c1510 !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-body,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-card-v2-body.product-showcase-card-body {
  background: var(--catalog-surface) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-title {
  color: var(--catalog-text) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-price {
  color: var(--catalog-primary) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-description,
html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-price-label {
  color: var(--catalog-text-soft) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-price-panel {
  border-color: var(--catalog-border) !important;
  background: var(--catalog-surface-soft) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-detail {
  color: var(--catalog-text);
  border-color: var(--catalog-border-strong) !important;
  background: transparent !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-buy {
  color: #0d1b12;
  border-color: var(--catalog-primary) !important;
  background: var(--catalog-primary) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow {
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(8, 16, 11, 0.82);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev {
  color: var(--catalog-primary);
  border-color: var(--catalog-border-strong);
  background: var(--catalog-surface);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next {
  color: #0d1b12;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel::before {
  background: linear-gradient(90deg, var(--catalog-canvas) 4%, transparent 100%);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel::after {
  background: linear-gradient(270deg, var(--catalog-canvas) 4%, transparent 100%);
}

@media (max-width: 1279px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 3;
    --catalog-card-peek: 5.5rem;
    --catalog-card-width: calc((100% - (2 * var(--catalog-card-gap)) - var(--catalog-card-peek)) / 3);
  }
}

@media (max-width: 1023px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 2;
    --catalog-card-peek: 4.75rem;
    --catalog-card-width: calc((100% - var(--catalog-card-gap) - var(--catalog-card-peek)) / 2);
  }

  .storefront-catalog .catalog-expand-toggle {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 1;
    --catalog-card-gap: 0.78rem;
    --catalog-card-peek: 3.45rem;
    --catalog-card-width: calc(100% - var(--catalog-card-peek));
    display: block;
    padding-inline: 0;
  }

  .storefront-catalog .catalog-carousel::before,
  .storefront-catalog .catalog-carousel::after {
    top: 0.1rem;
    bottom: 3.55rem;
    width: 2.2rem;
  }

  .storefront-catalog .catalog-carousel::before {
    left: 0;
  }

  .storefront-catalog .catalog-carousel::after {
    right: 0;
  }

  .storefront-catalog .catalog-carousel-viewport {
    padding-bottom: 0.62rem;
  }

  .storefront-catalog .catalog-grid {
    grid-template-rows: minmax(0, 24rem);
  }

  .storefront-catalog .catalog-product-card.product-showcase-card {
    height: 24rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-media,
  .storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
    flex-basis: 12rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-title,
  .storefront-catalog .catalog-product-card .product-card-v2-title.product-showcase-card-title {
    font-size: 0.95rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-description,
  .storefront-catalog .catalog-product-card .product-card-v2-description.product-showcase-card-description {
    font-size: 0.71rem;
  }

  .storefront-catalog .catalog-carousel-arrow {
    display: none !important;
  }

  .storefront-catalog .catalog-carousel-footer {
    justify-content: center;
    margin-top: 0.58rem;
  }

  .storefront-catalog .catalog-carousel-navigation {
    min-width: 0;
  }
}

@media (max-width: 359px) {
  .storefront-catalog .catalog-carousel {
    --catalog-card-peek: 2.85rem;
  }

  .storefront-catalog .catalog-grid {
    grid-template-rows: minmax(0, 23.45rem);
  }

  .storefront-catalog .catalog-product-card.product-showcase-card {
    height: 23.45rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-media,
  .storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
    flex-basis: 11.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog .catalog-carousel:not(.has-interacted) .catalog-carousel-arrow.is-next:not(:disabled) {
    animation: none;
  }
}

/* =========================================================
   PRODUCT CATALOG V6
   Consistent carousel controls, unobstructed product teaser,
   vertical card actions, animated layout changes, mobile
   swipe + controls, and final dark search refinement.
   ========================================================= */
.storefront-catalog .catalog-result-title,
.storefront-catalog .catalog-panel-header h2 {
  max-width: 38rem;
  font-family: var(--catalog-display);
  font-size: clamp(1.9rem, 2.65vw, 2.65rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.storefront-catalog .catalog-result-title span {
  display: inline-block;
  margin-left: 0.08em;
  color: var(--catalog-primary);
  font-family: var(--catalog-sans);
  font-size: 0.84em;
  font-weight: 900;
  letter-spacing: -0.052em;
}

.storefront-catalog .catalog-carousel {
  --catalog-columns: 4;
  --catalog-visible-cards: 4;
  --catalog-card-gap: 1rem;
  --catalog-card-peek: clamp(4.8rem, 7vw, 6.5rem);
  --catalog-card-width: calc((100% - (3 * var(--catalog-card-gap)) - var(--catalog-card-peek)) / 4);
}

/* The real next card is the cue. No white/opaque veil over product content. */
.storefront-catalog .catalog-carousel::before,
.storefront-catalog .catalog-carousel::after {
  display: none !important;
}

.storefront-catalog .catalog-grid {
  grid-template-rows: minmax(0, 27.15rem);
}

.storefront-catalog .catalog-product-card.product-showcase-card {
  height: 27.15rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-media,
.storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
  flex-basis: 11.65rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-body,
.storefront-catalog .catalog-product-card .product-card-v2-body.product-showcase-card-body {
  padding: 0.92rem 0.95rem 0.98rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-copy {
  min-height: 3.05rem;
  gap: 0.12rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-title,
.storefront-catalog .catalog-product-card .product-card-v2-title.product-showcase-card-title {
  color: var(--catalog-text);
  font-family: var(--catalog-sans) !important;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.032em;
}

.storefront-catalog .catalog-product-card .product-showcase-card-description,
.storefront-catalog .catalog-product-card .product-card-v2-description.product-showcase-card-description {
  margin-top: 0.08rem;
  color: var(--catalog-text-soft);
  font-size: 0.69rem;
  font-weight: 590;
  line-height: 1.38;
}

.storefront-catalog .catalog-product-card .product-showcase-card-footer,
.storefront-catalog .catalog-product-card .product-card-v2-footer.product-showcase-card-footer {
  padding-top: 0.58rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-actions,
.storefront-catalog .catalog-product-card .product-card-v2-actions.product-showcase-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(2.55rem, auto));
  gap: 0.46rem;
  margin-top: 0.55rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-buy,
.storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
  order: 1;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail {
  order: 2;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail,
.storefront-catalog .catalog-product-card .product-showcase-card-buy,
.storefront-catalog .catalog-product-card .product-showcase-card-stock-out {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding-inline: 0.85rem;
  font-size: 0.7rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-detail-label {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

/* Both controls share one visual language. Disabled state—not direction—changes emphasis. */
.storefront-catalog .catalog-carousel-arrow.is-prev,
.storefront-catalog .catalog-carousel-arrow.is-next {
  color: #fff;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
  box-shadow:
    0 14px 30px rgba(31, 64, 48, 0.18),
    0 0 0 4px rgba(247, 249, 246, 0.84);
  transition:
    color 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 220ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-carousel-arrow.is-prev:hover:not(:disabled),
.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  color: #fff;
  border-color: var(--catalog-primary-hover);
  background: var(--catalog-primary-hover);
  box-shadow:
    0 18px 36px rgba(31, 64, 48, 0.22),
    0 0 0 6px rgba(47, 103, 79, 0.1);
}

.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-surface);
  box-shadow:
    0 8px 18px rgba(31, 64, 48, 0.06),
    0 0 0 3px rgba(247, 249, 246, 0.7);
  opacity: 0.48;
}

.storefront-catalog .catalog-carousel.is-layout-animating {
  pointer-events: none;
}

.storefront-catalog .catalog-carousel.is-layout-animating .catalog-product-card.product-showcase-card {
  will-change: transform, opacity;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search {
  border-color: #31483a !important;
  background: #111c16 !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search::before {
  background: linear-gradient(110deg, transparent, rgba(159, 208, 174, 0.13), transparent);
}

html[data-theme='dark'] body.storefront-catalog .catalog-search::after {
  background: linear-gradient(90deg, transparent, rgba(159, 208, 174, 0.5), transparent);
}

html[data-theme='dark'] body.storefront-catalog .catalog-search:focus-within {
  border-color: var(--catalog-primary) !important;
  background: #142119 !important;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.36),
    0 0 0 4px rgba(159, 208, 174, 0.09) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search-icon {
  color: var(--catalog-primary) !important;
  border: 1px solid var(--catalog-border) !important;
  background: var(--catalog-surface-soft) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search input,
html[data-theme='dark'] body.storefront-catalog .catalog-search input:-webkit-autofill {
  color: var(--catalog-text) !important;
  -webkit-text-fill-color: var(--catalog-text) !important;
  caret-color: var(--catalog-primary);
  box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 9999s ease-out 0s;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search input::placeholder {
  color: #a5b6aa !important;
  opacity: 1;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search-clear {
  color: var(--catalog-text-soft);
}

html[data-theme='dark'] body.storefront-catalog .catalog-search-submit {
  color: #0d1b12 !important;
  border-color: var(--catalog-primary) !important;
  background: var(--catalog-primary) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next {
  color: #0d1b12;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(8, 16, 11, 0.84);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-surface);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(8, 16, 11, 0.72);
}

@media (max-width: 1279px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 3;
    --catalog-visible-cards: 3;
    --catalog-card-width: calc((100% - (2 * var(--catalog-card-gap)) - var(--catalog-card-peek)) / 3);
  }
}

@media (max-width: 1023px) {
  .storefront-catalog .catalog-carousel {
    --catalog-columns: 2;
    --catalog-visible-cards: 2;
    --catalog-card-width: calc((100% - var(--catalog-card-gap) - var(--catalog-card-peek)) / 2);
  }

  .storefront-catalog .catalog-expand-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-result-title,
  .storefront-catalog .catalog-panel-header h2 {
    font-size: clamp(1.72rem, 8.8vw, 2.1rem);
  }

  .storefront-catalog .catalog-carousel {
    --catalog-columns: 2;
    --catalog-visible-cards: 1;
    --catalog-card-gap: 0.72rem;
    --catalog-card-peek: clamp(3.25rem, 14vw, 4.35rem);
    --catalog-card-width: calc(100% - var(--catalog-card-peek));
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) 2.65rem;
    grid-template-areas:
      'viewport viewport viewport'
      'previous footer next';
    gap: 0.7rem 0.58rem;
    padding-inline: 0;
  }

  .storefront-catalog .catalog-carousel-viewport {
    grid-area: viewport;
  }

  .storefront-catalog .catalog-grid {
    grid-template-rows: minmax(0, 26.2rem);
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  .storefront-catalog .catalog-product-card.product-showcase-card {
    height: 26.2rem;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card.product-showcase-card {
    height: 24.6rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-media,
  .storefront-catalog .catalog-product-card .catalog-product-media.product-showcase-card-media {
    flex-basis: 11.1rem;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-showcase-card-media,
  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .catalog-product-media.product-showcase-card-media {
    flex-basis: 8.8rem;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-showcase-card-body,
  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-card-v2-body.product-showcase-card-body {
    padding: 0.72rem;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-showcase-card-title,
  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-card-v2-title.product-showcase-card-title {
    font-size: 0.76rem;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-showcase-card-description,
  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-card-v2-description.product-showcase-card-description {
    font-size: 0.59rem;
  }

  .storefront-catalog .catalog-carousel-arrow {
    position: static;
    top: auto;
    width: 2.65rem;
    height: 2.65rem;
    transform: none;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev {
    grid-area: previous;
    justify-self: start;
  }

  .storefront-catalog .catalog-carousel-arrow.is-next {
    grid-area: next;
    justify-self: end;
  }

  .storefront-catalog .catalog-carousel-footer {
    grid-area: footer;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.48rem;
    min-width: 0;
    margin-top: 0;
  }

  .storefront-catalog .catalog-carousel-navigation {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .storefront-catalog .catalog-expand-toggle {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.52rem 0.65rem;
    font-size: 0.58rem;
  }

  .storefront-catalog .catalog-carousel.is-expanded {
    grid-template-areas:
      'viewport viewport viewport'
      'footer footer footer';
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-arrow {
    display: none !important;
  }
}

@media (max-width: 359px) {
  .storefront-catalog .catalog-grid {
    grid-template-rows: minmax(0, 25.55rem);
  }

  .storefront-catalog .catalog-product-card.product-showcase-card {
    height: 25.55rem;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card.product-showcase-card {
    height: 24.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog .catalog-carousel.is-sliding .catalog-product-card.product-showcase-card,
  .storefront-catalog .catalog-carousel.is-layout-animating .catalog-product-card.product-showcase-card {
    transition: none !important;
  }
}

/* V6 runtime animation owns height; avoid competing CSS transitions. */
.storefront-catalog .catalog-carousel-viewport {
  transition: none;
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel-arrow {
    display: grid !important;
    place-items: center;
  }
}

.storefront-catalog .catalog-expand-toggle[hidden] {
  display: none !important;
}

/* =========================================================
   PRODUCT CATALOG V7
   Aligned showcase geometry, integrated dark search,
   editorial price hierarchy, animated teaser/slide/expand,
   and native browser history without forced reloads.
   ========================================================= */
.storefront-catalog .catalog-products-stage {
  overflow: visible;
}

/* Keep the section heading, filter bar, and first product on one visual axis. */
.storefront-catalog .catalog-carousel {
  padding-inline: 0;
}

.storefront-catalog .catalog-carousel-viewport {
  overflow-clip-margin: 1.25rem;
}

/* Navigation sits outside the product rail, not on top of the cards. */
.storefront-catalog .catalog-carousel-arrow.is-prev,
.storefront-catalog .catalog-carousel-arrow.is-next {
  width: 3rem;
  height: 3rem;
  color: var(--catalog-primary);
  border-color: var(--catalog-border-strong);
  background: var(--catalog-surface);
  box-shadow: 0 10px 24px rgba(31, 64, 48, 0.1);
  backdrop-filter: blur(12px);
}

.storefront-catalog .catalog-carousel-arrow.is-prev {
  left: -3.85rem;
}

.storefront-catalog .catalog-carousel-arrow.is-next {
  right: -3.85rem;
}

.storefront-catalog .catalog-carousel-arrow.is-prev:hover:not(:disabled),
.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  color: #fff;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
  box-shadow: 0 14px 30px rgba(31, 64, 48, 0.18);
}

.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-canvas);
  box-shadow: none;
  opacity: 0.42;
}

/* Price reads as information, not a third button. */
.storefront-catalog .catalog-product-card .product-showcase-card-footer,
.storefront-catalog .catalog-product-card .product-card-v2-footer.product-showcase-card-footer {
  padding-top: 0.62rem;
  border-top-color: var(--catalog-border);
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-panel {
  min-height: 2.45rem;
  padding: 0.1rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-label {
  color: var(--catalog-text-muted);
  font-size: 0.49rem;
  font-weight: 820;
  letter-spacing: 0.085em;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price,
.storefront-catalog .catalog-product-card .product-card-v2-price.product-showcase-card-price {
  color: var(--catalog-primary);
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

/* The partially visible next card becomes an intentional, living cue. */
.storefront-catalog .catalog-product-card.is-teaser {
  transform-origin: left center;
  animation: catalog-teaser-breathe 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.storefront-catalog .catalog-product-card.is-teaser::before {
  opacity: 0.48;
  animation: catalog-teaser-sheen 3.2s ease-in-out infinite;
}

.storefront-catalog .catalog-carousel.has-interacted .catalog-product-card.is-teaser {
  animation-duration: 4.6s;
}

@keyframes catalog-teaser-breathe {
  0%, 58%, 100% { transform: translateX(0) scale(0.985); }
  72% { transform: translateX(-0.42rem) scale(0.995); }
  84% { transform: translateX(-0.15rem) scale(0.99); }
}

@keyframes catalog-teaser-sheen {
  0%, 56%, 100% { transform: translateX(-125%); opacity: 0; }
  70% { opacity: 0.42; }
  86% { transform: translateX(125%); opacity: 0; }
}

/* Premium directional cue while the rail is moving. */
/* Expand/collapse gets a visible depth transition in addition to FLIP movement. */
.storefront-catalog .catalog-carousel.is-layout-animating .catalog-carousel-viewport {
  border-radius: 1.15rem;
  box-shadow: 0 24px 48px rgba(31, 64, 48, 0.09);
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-expand-toggle,
.storefront-catalog .catalog-carousel.is-collapsing .catalog-expand-toggle {
  border-color: var(--catalog-primary);
  box-shadow: 0 0 0 5px rgba(47, 103, 79, 0.08);
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-expand-toggle svg,
.storefront-catalog .catalog-carousel.is-collapsing .catalog-expand-toggle svg {
  transform: rotate(180deg) scale(1.12);
}

/* Dark search uses the hero surface instead of looking like a separate black panel. */
html[data-theme='dark'] body.storefront-catalog .catalog-search {
  border-color: rgba(159, 208, 174, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(159, 208, 174, 0.055), rgba(159, 208, 174, 0.025)),
    rgba(8, 16, 11, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 26px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search::before,
html[data-theme='dark'] body.storefront-catalog .catalog-search::after {
  display: none !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search:focus-within {
  border-color: rgba(159, 208, 174, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(159, 208, 174, 0.08), rgba(159, 208, 174, 0.035)),
    rgba(8, 16, 11, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 0 4px rgba(159, 208, 174, 0.075) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search-icon {
  color: var(--catalog-primary) !important;
  border-color: transparent !important;
  background: transparent !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search-submit {
  color: #0d1b12 !important;
  border-color: var(--catalog-primary) !important;
  background: var(--catalog-primary) !important;
  box-shadow: none !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-search-submit:hover {
  border-color: var(--catalog-primary-hover) !important;
  background: var(--catalog-primary-hover) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-product-card .product-showcase-card-price-panel {
  border: 0 !important;
  background: transparent !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next {
  color: var(--catalog-primary);
  border-color: var(--catalog-border-strong);
  background: rgba(17, 27, 21, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev:hover:not(:disabled),
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  color: #0d1b12;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-canvas);
  box-shadow: none;
}

@media (max-width: 1399px) {
  .storefront-catalog .catalog-carousel-arrow.is-prev {
    left: -2.4rem;
  }

  .storefront-catalog .catalog-carousel-arrow.is-next {
    right: -2.4rem;
  }
}

@media (max-width: 1023px) {
  .storefront-catalog .catalog-carousel-arrow.is-prev {
    left: -1.15rem;
  }

  .storefront-catalog .catalog-carousel-arrow.is-next {
    right: -1.15rem;
  }
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) 2.65rem;
    grid-template-areas:
      'viewport viewport viewport'
      'previous footer next';
    gap: 0.7rem 0.58rem;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev,
  .storefront-catalog .catalog-carousel-arrow.is-next {
    position: static;
    width: 2.65rem;
    height: 2.65rem;
    transform: none;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev {
    grid-area: previous;
    justify-self: start;
  }

  .storefront-catalog .catalog-carousel-arrow.is-next {
    grid-area: next;
    justify-self: end;
  }

  .storefront-catalog .catalog-carousel-footer {
    grid-area: footer;
  }

  .storefront-catalog .catalog-carousel.is-expanded {
    grid-template-areas:
      'viewport viewport viewport'
      'footer footer footer';
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-arrow {
    display: none !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog .catalog-product-card.is-teaser,
  .storefront-catalog .catalog-product-card.is-teaser::before,
  .storefront-catalog .catalog-carousel.is-sliding::after,
  .storefront-catalog .catalog-carousel.is-settling .catalog-product-card.is-slide-focus {
    animation: none !important;
  }
}


/* =========================================================
   PRODUCT CATALOG V8
   Stable footer navigation, visible slide/expand motion,
   integrated dark search, premium checkout icon, and tighter
   editorial price hierarchy.
   ========================================================= */
.storefront-catalog .catalog-carousel {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  grid-template-areas:
    'viewport viewport viewport'
    'previous footer next';
  gap: 0.78rem 0.72rem;
  padding-inline: 0 !important;
  overflow: visible;
}

.storefront-catalog .catalog-carousel-viewport {
  grid-area: viewport;
  min-width: 0;
  border-radius: 1.15rem;
}

/* Navigation is always discoverable and never covers a product card. */
.storefront-catalog .catalog-carousel-arrow.is-prev,
.storefront-catalog .catalog-carousel-arrow.is-next {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 2.85rem;
  height: 2.85rem;
  display: grid !important;
  place-items: center;
  align-self: center;
  margin: 0;
  color: var(--catalog-primary);
  border: 1px solid var(--catalog-border-strong);
  background: var(--catalog-surface);
  box-shadow: 0 8px 18px rgba(31, 64, 48, 0.08);
  backdrop-filter: none;
  transform: none !important;
}

.storefront-catalog .catalog-carousel-arrow.is-prev {
  grid-area: previous;
  justify-self: start;
}

.storefront-catalog .catalog-carousel-arrow.is-next {
  grid-area: next;
  justify-self: end;
}

.storefront-catalog .catalog-carousel-arrow.is-prev:hover:not(:disabled),
.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  color: #fff;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
  box-shadow: 0 10px 22px rgba(31, 64, 48, 0.16);
  transform: translateY(-2px) scale(1.035) !important;
}

.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-surface-soft);
  box-shadow: none;
  opacity: 0.44;
}

.storefront-catalog .catalog-carousel-footer {
  grid-area: footer;
  min-width: 0;
  min-height: 2.85rem;
  margin-top: 0;
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-arrow {
  display: grid !important;
  visibility: visible;
  opacity: 0.34;
  pointer-events: none;
}

/* Make horizontal movement readable instead of looking like a content swap. */
/* Expand/collapse uses a measured height transition plus card FLIP. */
.storefront-catalog .catalog-carousel.is-layout-animating .catalog-carousel-viewport {
  overflow: hidden !important;
  transition: height 760ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 22px 48px rgba(31, 64, 48, 0.09);
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-grid,
.storefront-catalog .catalog-carousel.is-collapsing .catalog-grid {
  animation: catalog-v8-grid-depth 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes catalog-v8-grid-depth {
  0% { opacity: 0.78; filter: blur(2px); }
  52% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); }
}

/* The peek card is a deliberate affordance, not a static cut-off card. */
.storefront-catalog .catalog-product-card.is-teaser {
  z-index: 2;
  border-color: rgba(47, 103, 79, 0.38);
  box-shadow:
    -10px 0 28px rgba(31, 64, 48, 0.08),
    0 16px 34px rgba(31, 64, 48, 0.1);
  animation: catalog-v8-teaser-cue 3.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes catalog-v8-teaser-cue {
  0%, 58%, 100% { transform: translateX(0) scale(0.985); }
  70% { transform: translateX(-0.75rem) scale(0.997); }
  82% { transform: translateX(-0.32rem) scale(0.99); }
}

/* Tighter content rhythm: description and price belong to one hierarchy. */
.storefront-catalog .catalog-product-card .product-showcase-card-copy {
  min-height: 2.55rem;
  gap: 0.08rem;
}

.storefront-catalog .catalog-product-card .product-showcase-card-footer,
.storefront-catalog .catalog-product-card .product-card-v2-footer.product-showcase-card-footer {
  padding-top: 0.46rem;
  border-top-color: var(--catalog-border-strong);
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-panel {
  min-height: 2.15rem;
  align-items: baseline;
  padding: 0;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price-label {
  color: var(--catalog-text-soft);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.095em;
}

.storefront-catalog .catalog-product-card .product-showcase-card-price,
.storefront-catalog .catalog-product-card .product-card-v2-price.product-showcase-card-price {
  color: var(--catalog-primary);
  font-size: 1.18rem;
  font-weight: 920;
  line-height: 1;
  letter-spacing: -0.04em;
}

.storefront-catalog .catalog-product-card .product-showcase-card-buy-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-product-card .product-showcase-card-buy-icon svg {
  width: 100%;
  height: 100%;
}

.storefront-catalog .catalog-product-card .product-showcase-card-buy-label {
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .storefront-catalog .catalog-product-card .product-showcase-card-buy:hover .product-showcase-card-buy-icon {
    transform: translateX(2px) rotate(-4deg) scale(1.08);
  }
}

/* Final dark search: one calm raised surface, no legacy nested panel. */
html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search {
  color: var(--catalog-text) !important;
  border: 1px solid var(--catalog-border-strong) !important;
  background: var(--catalog-surface) !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search::before,
html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search::after {
  display: none !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search:focus-within {
  border-color: var(--catalog-primary) !important;
  background: var(--catalog-surface-soft) !important;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(159, 208, 174, 0.09) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search-icon {
  color: var(--catalog-primary) !important;
  border: 1px solid var(--catalog-border) !important;
  background: var(--catalog-surface-muted) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search input {
  color: var(--catalog-text) !important;
  background: transparent !important;
  -webkit-text-fill-color: var(--catalog-text) !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search input::placeholder {
  color: var(--catalog-text-soft) !important;
  opacity: 0.82;
}

html[data-theme='dark'] body.storefront-catalog .catalog-heading .catalog-search-submit {
  color: #0d1b12 !important;
  border-color: var(--catalog-primary) !important;
  background: var(--catalog-primary) !important;
  box-shadow: none !important;
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next {
  color: var(--catalog-primary);
  border-color: var(--catalog-border-strong);
  background: var(--catalog-surface);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev:hover:not(:disabled),
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  color: #0d1b12;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel {
    grid-template-columns: 2.65rem minmax(0, 1fr) 2.65rem;
    gap: 0.65rem 0.55rem;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev,
  .storefront-catalog .catalog-carousel-arrow.is-next {
    width: 2.65rem;
    height: 2.65rem;
  }

  .storefront-catalog .catalog-carousel-footer {
    min-height: 2.65rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-copy {
    min-height: 2.4rem;
  }

  .storefront-catalog .catalog-product-card .product-showcase-card-price {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog .catalog-carousel.is-sliding .catalog-product-card.product-showcase-card,
  .storefront-catalog .catalog-carousel.is-sliding .product-showcase-card-image-wrap img,
  .storefront-catalog .catalog-product-card.is-teaser,
  .storefront-catalog .catalog-carousel.is-expanding .catalog-grid,
  .storefront-catalog .catalog-carousel.is-collapsing .catalog-grid {
    animation: none !important;
  }
}

/* =========================================================
   PRODUCT CATALOG V9
   Mid-rail navigation, unmistakable expand affordance,
   slower directional motion, and animated teaser discovery.
   ========================================================= */
.storefront-catalog .catalog-carousel {
  --catalog-rail-height: 24.15rem;
  position: relative;
  display: block !important;
  padding-inline: 0 !important;
  overflow: visible;
}

.storefront-catalog .catalog-carousel-viewport {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 1.15rem;
  transform-origin: center;
}

/* Arrows sit at the visual center of the rail, in dedicated gutters. */
.storefront-catalog .catalog-carousel-arrow.is-prev,
.storefront-catalog .catalog-carousel-arrow.is-next {
  position: absolute !important;
  z-index: 24;
  top: calc(var(--catalog-rail-height) / 2 + 0.2rem) !important;
  width: 3.2rem;
  height: 3.2rem;
  display: grid !important;
  place-items: center;
  margin: 0;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--catalog-primary) 78%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--catalog-primary);
  box-shadow:
    0 14px 28px rgba(31, 64, 48, 0.18),
    0 0 0 0.42rem color-mix(in srgb, var(--catalog-canvas) 88%, transparent);
  transform: translateY(-50%) !important;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 240ms ease,
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-catalog .catalog-carousel-arrow.is-prev {
  left: -1.8rem !important;
  right: auto !important;
}

.storefront-catalog .catalog-carousel-arrow.is-next {
  right: -1.8rem !important;
  left: auto !important;
}

.storefront-catalog .catalog-carousel-arrow svg {
  width: 1.18rem;
  height: 1.18rem;
  stroke-width: 2.15;
}

.storefront-catalog .catalog-carousel-arrow.is-prev:hover:not(:disabled),
.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  color: #fff;
  border-color: var(--catalog-primary-hover);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.25), transparent 42%),
    var(--catalog-primary-hover);
  box-shadow:
    0 18px 34px rgba(31, 64, 48, 0.24),
    0 0 0 0.42rem color-mix(in srgb, var(--catalog-canvas) 90%, transparent);
  transform: translateY(-50%) scale(1.085) !important;
}

.storefront-catalog .catalog-carousel-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.94) !important;
}

.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-surface);
  box-shadow:
    0 8px 20px rgba(31, 64, 48, 0.06),
    0 0 0 0.36rem color-mix(in srgb, var(--catalog-canvas) 90%, transparent);
  opacity: 0.46;
}

.storefront-catalog .catalog-carousel:not(.has-interacted) .catalog-carousel-arrow.is-next:not(:disabled) {
  animation: catalog-v9-next-cue 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes catalog-v9-next-cue {
  0%, 60%, 100% { transform: translateY(-50%) translateX(0) scale(1); }
  72% { transform: translateY(-50%) translateX(0.38rem) scale(1.07); }
  84% { transform: translateY(-50%) translateX(0.12rem) scale(1.02); }
}

/* Footer is only status + expand; arrows no longer compete for attention here. */
.storefront-catalog .catalog-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  margin-top: 0.95rem;
}

.storefront-catalog .catalog-carousel-navigation {
  min-height: 2.7rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--catalog-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--catalog-surface) 94%, transparent);
  box-shadow: 0 8px 20px rgba(31, 64, 48, 0.055);
}

/* Expand must look like a deliberate second mode, not a quiet utility link. */
.storefront-catalog .catalog-expand-toggle {
  min-height: 3.05rem;
  gap: 0.62rem;
  padding: 0.72rem 1.05rem;
  color: #fff;
  border-color: var(--catalog-primary);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--catalog-primary) 92%, #fff 8%), var(--catalog-primary));
  box-shadow:
    0 14px 28px rgba(31, 64, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.storefront-catalog .catalog-expand-toggle::before {
  content: '';
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border-radius: 0.3rem;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 0.45rem 0.45rem no-repeat,
    linear-gradient(currentColor 0 0) 100% 0 / 0.45rem 0.45rem no-repeat,
    linear-gradient(currentColor 0 0) 0 100% / 0.45rem 0.45rem no-repeat,
    linear-gradient(currentColor 0 0) 100% 100% / 0.45rem 0.45rem no-repeat;
  opacity: 0.92;
}

.storefront-catalog .catalog-expand-toggle:hover {
  color: #fff;
  border-color: var(--catalog-primary-hover);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--catalog-primary-hover) 94%, #fff 6%), var(--catalog-primary-hover));
  box-shadow:
    0 18px 36px rgba(31, 64, 48, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.storefront-catalog .catalog-expand-toggle[aria-expanded='true'] {
  color: var(--catalog-primary);
  border-color: var(--catalog-border-strong);
  background: var(--catalog-surface);
  box-shadow: 0 10px 24px rgba(31, 64, 48, 0.08);
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-expand-toggle,
.storefront-catalog .catalog-carousel.is-collapsing .catalog-expand-toggle {
  animation: catalog-v9-expand-button 980ms cubic-bezier(0.65, 0, 0.35, 1) both;
  pointer-events: none;
}

@keyframes catalog-v9-expand-button {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-4px) scale(0.965); }
  72% { transform: translateY(-2px) scale(1.035); }
  100% { transform: translateY(0) scale(1); }
}

/* A visible directional sweep makes slide motion readable. */
.storefront-catalog .catalog-carousel::before {
  content: '';
  position: absolute;
  z-index: 18;
  top: 0.2rem;
  bottom: 4.25rem;
  left: 0;
  width: 24%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--catalog-primary) 18%, transparent), transparent);
  filter: blur(10px);
}

/* Teaser continuously communicates that the rail continues. */
.storefront-catalog .catalog-product-card.is-teaser {
  transform-origin: left center;
  animation: catalog-v9-teaser-breathe 3.1s cubic-bezier(0.16, 1, 0.3, 1) infinite !important;
}

.storefront-catalog .catalog-product-card.is-teaser .product-showcase-card-media {
  position: relative;
  overflow: hidden;
}

.storefront-catalog .catalog-product-card.is-teaser .product-showcase-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.22) 48%, transparent 76%);
  transform: translateX(-130%);
  animation: catalog-v9-teaser-shine 3.1s ease-in-out infinite;
}

@keyframes catalog-v9-teaser-breathe {
  0%, 52%, 100% { transform: translateX(0) scale(0.97); filter: saturate(0.94); }
  68% { transform: translateX(-0.72rem) scale(0.992); filter: saturate(1.03); }
  82% { transform: translateX(-0.24rem) scale(0.982); filter: saturate(0.98); }
}

@keyframes catalog-v9-teaser-shine {
  0%, 54% { transform: translateX(-130%); opacity: 0; }
  68% { opacity: 0.72; }
  86%, 100% { transform: translateX(130%); opacity: 0; }
}

/* Expansion reveal is intentionally visible, but remains composed. */
.storefront-catalog .catalog-carousel.is-layout-animating .catalog-carousel-viewport {
  transform-origin: top center;
  will-change: height, transform, filter;
  box-shadow: 0 24px 54px rgba(31, 64, 48, 0.12);
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-grid,
.storefront-catalog .catalog-carousel.is-collapsing .catalog-grid {
  animation: catalog-v9-grid-reveal 980ms cubic-bezier(0.65, 0, 0.35, 1) both !important;
}

@keyframes catalog-v9-grid-reveal {
  0% { opacity: 0.62; filter: blur(3px) brightness(0.94); }
  48% { opacity: 0.88; filter: blur(1px) brightness(0.98); }
  78% { opacity: 1; filter: blur(0) brightness(1.02); }
  100% { opacity: 1; filter: blur(0) brightness(1); }
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-arrow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next {
  color: #0d1b12;
  border-color: var(--catalog-primary);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.14), transparent 42%),
    var(--catalog-primary);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.36),
    0 0 0 0.42rem color-mix(in srgb, var(--catalog-canvas) 92%, transparent);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-surface);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    0 0 0 0.36rem color-mix(in srgb, var(--catalog-canvas) 92%, transparent);
}

html[data-theme='dark'] body.storefront-catalog .catalog-expand-toggle {
  color: #0d1b12;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
}

html[data-theme='dark'] body.storefront-catalog .catalog-expand-toggle[aria-expanded='true'] {
  color: var(--catalog-primary);
  border-color: var(--catalog-border-strong);
  background: var(--catalog-surface);
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel {
    --catalog-rail-height: 21.6rem;
    padding-inline: 2.9rem !important;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev,
  .storefront-catalog .catalog-carousel-arrow.is-next {
    top: calc(var(--catalog-rail-height) / 2 + 0.1rem) !important;
    width: 2.65rem;
    height: 2.65rem;
    box-shadow:
      0 12px 24px rgba(31, 64, 48, 0.16),
      0 0 0 0.3rem color-mix(in srgb, var(--catalog-canvas) 90%, transparent);
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev {
    left: 0 !important;
  }

  .storefront-catalog .catalog-carousel-arrow.is-next {
    right: 0 !important;
  }

  .storefront-catalog .catalog-carousel-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.68rem;
  }

  .storefront-catalog .catalog-carousel-navigation {
    align-self: center;
  }

  .storefront-catalog .catalog-expand-toggle {
    width: 100%;
    min-height: 2.85rem;
  }

  .storefront-catalog .catalog-carousel::before {
    left: 2.9rem;
    bottom: 7.5rem;
  }

}

@media (max-width: 359px) {
  .storefront-catalog .catalog-carousel {
    --catalog-rail-height: 20.9rem;
    padding-inline: 2.65rem !important;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev,
  .storefront-catalog .catalog-carousel-arrow.is-next {
    width: 2.45rem;
    height: 2.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog .catalog-carousel:not(.has-interacted) .catalog-carousel-arrow.is-next:not(:disabled),
  .storefront-catalog .catalog-product-card.is-teaser,
  .storefront-catalog .catalog-product-card.is-teaser .product-showcase-card-media::after,
  .storefront-catalog .catalog-carousel.is-sliding::before,
  .storefront-catalog .catalog-carousel.is-expanding .catalog-grid,
  .storefront-catalog .catalog-carousel.is-collapsing .catalog-grid,
  .storefront-catalog .catalog-carousel.is-expanding .catalog-expand-toggle,
  .storefront-catalog .catalog-carousel.is-collapsing .catalog-expand-toggle {
    animation: none !important;
  }
}

/* =========================================================
   PRODUCT CATALOG V10
   Dedicated arrow gutters and deterministic FLIP motion.
   ========================================================= */
.storefront-catalog .catalog-carousel {
  padding-inline: 0 !important;
  overflow: visible;
}

.storefront-catalog .catalog-carousel-rail {
  position: relative;
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) 3.75rem;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  transition:
    grid-template-columns 620ms cubic-bezier(0.16, 1, 0.3, 1),
    gap 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.storefront-catalog .catalog-carousel-viewport {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.storefront-catalog .catalog-carousel-arrow.is-prev,
.storefront-catalog .catalog-carousel-arrow.is-next {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 8;
  align-self: center;
  justify-self: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  transform: none !important;
  color: #fff;
  border: 1px solid var(--catalog-primary);
  background: var(--catalog-primary);
  box-shadow: 0 12px 24px rgba(31, 64, 48, 0.16);
}

.storefront-catalog .catalog-carousel-arrow.is-prev {
  grid-column: 1;
}

.storefront-catalog .catalog-carousel-arrow.is-next {
  grid-column: 3;
}

.storefront-catalog .catalog-carousel-arrow.is-prev:hover:not(:disabled),
.storefront-catalog .catalog-carousel-arrow.is-next:hover:not(:disabled) {
  color: #fff;
  border-color: var(--catalog-primary-hover);
  background: var(--catalog-primary-hover);
  box-shadow: 0 16px 30px rgba(31, 64, 48, 0.24);
  transform: translateY(-2px) scale(1.055) !important;
}

.storefront-catalog .catalog-carousel-arrow:active:not(:disabled) {
  transform: scale(0.94) !important;
}

.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-surface);
  box-shadow: none;
  opacity: 0.38;
}

.storefront-catalog .catalog-carousel:not(.has-interacted) .catalog-carousel-arrow.is-next:not(:disabled) {
  animation: catalog-v10-arrow-cue 2.9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes catalog-v10-arrow-cue {
  0%, 58%, 100% { transform: translateX(0) scale(1); }
  72% { transform: translateX(0.42rem) scale(1.08); }
  84% { transform: translateX(0.12rem) scale(1.025); }
}

/* When expanded, gutters collapse so the full-width grid remains symmetrical. */
.storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-rail {
  grid-template-columns: 0 minmax(0, 1fr) 0;
  gap: 0;
}

.storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-arrow {
  width: 0;
  height: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

/* Motion state is intentionally obvious and independent of native smooth-scroll. */
.storefront-catalog .catalog-carousel.is-layout-animating .catalog-carousel-rail {
  filter: drop-shadow(0 22px 34px rgba(31, 64, 48, 0.12));
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-expand-toggle,
.storefront-catalog .catalog-carousel.is-collapsing .catalog-expand-toggle {
  animation: catalog-v10-expand-pulse 980ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes catalog-v10-expand-pulse {
  0% { transform: translateY(0) scale(1); }
  34% { transform: translateY(-5px) scale(0.965); }
  68% { transform: translateY(-2px) scale(1.045); }
  100% { transform: translateY(0) scale(1); }
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-prev,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow.is-next {
  color: #0d1b12;
  border-color: var(--catalog-primary);
  background: var(--catalog-primary);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel-arrow:disabled {
  color: var(--catalog-text-muted);
  border-color: var(--catalog-border);
  background: var(--catalog-surface);
  box-shadow: none;
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel {
    padding-inline: 0 !important;
  }

  .storefront-catalog .catalog-carousel-rail {
    grid-template-columns: 2.7rem minmax(0, 1fr) 2.7rem;
    gap: 0.38rem;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev,
  .storefront-catalog .catalog-carousel-arrow.is-next {
    width: 2.55rem;
    height: 2.55rem;
  }

  .storefront-catalog .catalog-carousel::before,
  .storefront-catalog .catalog-carousel[data-slide-direction='previous'].is-sliding::before {
    left: 2.95rem;
    right: auto;
  }

}

@media (max-width: 359px) {
  .storefront-catalog .catalog-carousel-rail {
    grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem;
    gap: 0.25rem;
  }

  .storefront-catalog .catalog-carousel-arrow.is-prev,
  .storefront-catalog .catalog-carousel-arrow.is-next {
    width: 2.3rem;
    height: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog .catalog-carousel:not(.has-interacted) .catalog-carousel-arrow.is-next:not(:disabled),
  .storefront-catalog .catalog-carousel.is-expanding .catalog-expand-toggle,
  .storefront-catalog .catalog-carousel.is-collapsing .catalog-expand-toggle {
    animation: none !important;
  }
}

/* =========================================================
   PRODUCT CATALOG V11
   Readable carousel choreography and shape-stable expansion.
   ========================================================= */
.storefront-catalog .catalog-carousel-rail,
.storefront-catalog .catalog-carousel-viewport,
.storefront-catalog .catalog-grid {
  transform-style: preserve-3d;
}

/* The rail now visibly travels: outgoing, shared, and incoming
   cards each receive a distinct role during one slide. */
/* Expansion keeps the collapsed card geometry. Only the number of rows changes. */
@media (min-width: 768px) {
  .storefront-catalog .catalog-carousel.is-expanded .catalog-grid {
    grid-template-columns: repeat(auto-fill, var(--catalog-card-width)) !important;
    grid-auto-columns: unset !important;
    grid-auto-flow: row !important;
    grid-template-rows: none !important;
    grid-auto-rows: 27.15rem;
    justify-content: start;
    align-items: start;
    gap: var(--catalog-card-gap) !important;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card.product-showcase-card {
    width: auto;
    height: 27.15rem !important;
  }

  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .product-showcase-card-media,
  .storefront-catalog .catalog-carousel.is-expanded .catalog-product-card .catalog-product-media.product-showcase-card-media {
    flex-basis: 11.65rem !important;
  }
}

/* A visible unfolding wave follows the measured height animation. */
.storefront-catalog .catalog-carousel.is-layout-animating .catalog-carousel-viewport {
  position: relative;
  transform-origin: top center;
  box-shadow:
    0 28px 62px rgba(31, 64, 48, 0.15),
    inset 0 0 0 1px color-mix(in srgb, var(--catalog-primary) 20%, transparent);
}

.storefront-catalog .catalog-carousel.is-layout-animating .catalog-carousel-viewport::after {
  content: '';
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5.5rem;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--catalog-primary) 18%, transparent));
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-carousel-viewport::after {
  animation: catalog-v11-unfold-wave 1.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.storefront-catalog .catalog-carousel.is-collapsing .catalog-carousel-viewport::after {
  animation: catalog-v11-fold-wave 1.08s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.storefront-catalog .catalog-carousel.is-expanding .catalog-carousel-rail,
.storefront-catalog .catalog-carousel.is-collapsing .catalog-carousel-rail {
  animation: catalog-v11-stage-unfold 1.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes catalog-v11-unfold-wave {
  0% { opacity: 0; transform: translateY(-60%) scaleY(0.35); }
  34% { opacity: 0.72; }
  100% { opacity: 0; transform: translateY(110%) scaleY(1); }
}

@keyframes catalog-v11-fold-wave {
  0% { opacity: 0; transform: translateY(110%) scaleY(1); }
  38% { opacity: 0.58; }
  100% { opacity: 0; transform: translateY(-60%) scaleY(0.35); }
}

@keyframes catalog-v11-stage-unfold {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  42% { transform: translateY(-5px) scale(0.994); filter: brightness(0.965); }
  78% { transform: translateY(2px) scale(1.004); filter: brightness(1.018); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

html[data-theme='dark'] body.storefront-catalog .catalog-carousel.is-sliding .catalog-carousel-viewport,
html[data-theme='dark'] body.storefront-catalog .catalog-carousel.is-layout-animating .catalog-carousel-viewport {
  box-shadow:
    0 30px 66px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px color-mix(in srgb, var(--catalog-primary) 24%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalog .catalog-carousel.is-sliding .catalog-product-card.is-slide-outgoing,
  .storefront-catalog .catalog-carousel.is-sliding .catalog-product-card.is-slide-shared,
  .storefront-catalog .catalog-carousel.is-sliding .catalog-product-card.is-slide-incoming,
  .storefront-catalog .catalog-carousel.is-sliding .catalog-product-card.is-slide-incoming .product-showcase-card-media,
  .storefront-catalog .catalog-carousel.is-sliding .catalog-product-card.is-slide-incoming .product-showcase-card-body,
  .storefront-catalog .catalog-carousel.is-expanding .catalog-carousel-viewport::after,
  .storefront-catalog .catalog-carousel.is-collapsing .catalog-carousel-viewport::after,
  .storefront-catalog .catalog-carousel.is-expanding .catalog-carousel-rail,
  .storefront-catalog .catalog-carousel.is-collapsing .catalog-carousel-rail {
    animation: none !important;
  }
}

/* Keep the viewport width identical before and after expansion so percentage-based
   card widths never jump. The arrow gutters remain as symmetrical breathing room. */
@media (min-width: 768px) {
  .storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-rail {
    grid-template-columns: 3.75rem minmax(0, 1fr) 3.75rem;
    gap: 0.78rem;
  }
}

@media (max-width: 767px) {
  .storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-rail {
    grid-template-columns: 2.7rem minmax(0, 1fr) 2.7rem;
    gap: 0.38rem;
  }
}

@media (max-width: 359px) {
  .storefront-catalog .catalog-carousel.is-expanded .catalog-carousel-rail {
    grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem;
    gap: 0.25rem;
  }
}
