/* Both home variants use the same display and lead roles. */
h1:is(.catalogue-hero-title, .conversion-home-hero .hero_title) {
  font-size: var(--type-size-home-title);
  font-weight: var(--type-weight-bold);
  line-height: var(--type-line-display);
  letter-spacing: var(--type-track-display);
  text-wrap: balance;
}

.catalogue-hero-lead,
.conversion-home-hero .hero_paragraph,
.storefront-intro p {
  font-size: var(--type-size-lead);
  font-weight: var(--type-weight-regular);
  line-height: var(--type-line-body);
}

/* Homepage storefront layout built with the existing DFY Dave product inventory. */
.storefront-catalogue {
  background: var(--color-surface);
  color: var(--color-text);
}

.storefront-catalogue-hero-first {
  padding-block-start: 2rem;
}

.storefront-catalogue-hero-first > :is(.storefront-intro, .storefront-reviews) {
  width: min(calc(100% - 2rem), 71.25rem);
  margin-inline: auto;
  margin-block-end: 1rem;
}

.storefront-intro h2 {
  margin: 0;
  color: inherit;
  font-size: var(--type-size-section-title);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-line-heading);
  letter-spacing: var(--type-track-heading);
  text-wrap: balance;
}

.storefront-intro p {
  margin: .375rem 0 0;
  color: var(--color-text-muted);
}

.storefront-reviews {
  min-width: 0;
}

.storefront-review-window {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.storefront-review-track,
.storefront-review-group {
  display: flex;
  width: max-content;
}

.storefront-review-group {
  flex: none;
  gap: .625rem;
  margin: 0;
  padding: 0 .625rem 0 0;
  list-style: none;
}

.storefront-review-group[aria-hidden="true"] {
  display: none;
}

.storefront-review {
  display: flex;
  max-width: min(25rem, calc(100vw - 2rem));
  padding: .375rem .875rem .375rem .375rem;
  border: .0625rem solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.storefront-review figure {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-content: center;
  gap: .125rem .625rem;
  min-width: 0;
  margin: 0;
}

.storefront-review:not(:has(.storefront-review-avatar)) {
  padding-inline-start: .875rem;
}

.storefront-review figure:not(:has(.storefront-review-avatar)) {
  grid-template-columns: minmax(0, 1fr);
  min-block-size: 2.25rem;
}

.storefront-review-avatar {
  grid-row: 1 / 3;
  align-self: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-brand);
  object-fit: cover;
}

.storefront-review blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--type-size-label);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-line-card);
}

.storefront-review figcaption {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--type-size-caption);
  line-height: var(--type-line-label);
  text-align: left;
}

.storefront-review blockquote,
.storefront-review figcaption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-catalogue .inline-flex:has(> div) > span {
  position: absolute;
  width: .0625rem;
  height: .0625rem;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (prefers-reduced-motion: no-preference) {
  .storefront-review-window {
    container-type: inline-size;
    overflow: hidden;
    overflow: clip;
    mask-image: linear-gradient(to right, transparent, black .75rem, black calc(100% - .75rem), transparent);
  }

  .storefront-review-window:focus-visible {
    mask-image: none;
  }

  .storefront-review-group {
    min-inline-size: 100cqi;
    justify-content: space-around;
  }

  .storefront-review-group[aria-hidden="true"] {
    display: flex;
  }

  [data-dfyd-review-ready] > .storefront-review-track {
    animation: storefront-reviews-right 70s linear infinite;
  }

  .storefront-review-window:focus-within .storefront-review-track {
    animation-play-state: paused;
  }
}

@keyframes storefront-reviews-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.storefront-catalogue {
  padding-top: 2rem;
}

.navbar .dfy-scrollbar.test {
  width: 100%;
  inset-inline: 0;
}

/* Heading with the filters beside it, reviews across the full width, then the products. */
.storefront-catalogue .container-medium.services-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem 2rem;
  padding-top: 0;
}

.storefront-catalogue .container-medium.services-section > .w-dyn-list {
  min-width: 0;
}

.storefront-catalogue .storefront-reviews,
.storefront-catalogue .container-medium.services-section > .service-list-wrap {
  grid-column: 1 / -1;
  width: 100%;
}

.storefront-catalogue .filter-list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: .5rem;
  margin: -.25rem;
  padding: .25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.storefront-catalogue .filter-list > .w-dyn-item {
  flex: none;
}

.storefront-catalogue .filter-filed {
  padding: .4375rem .875rem;
  min-height: 2.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.storefront-catalogue .filter-filed:has(input:checked) {
  border-color: var(--color-surface-dark);
  background: var(--color-surface-soft);
  color: var(--color-surface-dark);
}

.storefront-catalogue .filter-filed:has(input:focus-visible),
.storefront-catalogue .service-item:focus-visible,
.storefront-review-window:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.storefront-catalogue .services-list.narrow-list._2-list.v1-serivce-item-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Product card: artwork, then what it is, then availability and price as the action. */
.storefront-catalogue .service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr auto;
  align-items: center;
  gap: 0 .75rem;
  height: 100%;
  min-width: 0;
  padding: .5rem .5rem .875rem;
  border: .0625rem solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.storefront-catalogue .service-item:hover {
  border-color: var(--color-brand-strong);
  box-shadow: var(--shadow-raised);
}

.storefront-catalogue .service-video-image-wrap {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  margin-bottom: .875rem;
  border-radius: var(--radius-md);
}

.storefront-catalogue .service-image.service-logo {
  width: auto;
  max-width: 78%;
  max-height: 62%;
  padding: 0;
}

.storefront-catalogue .service-card_main-text-wrap,
.storefront-catalogue .stock-text-wrap {
  display: contents;
}

.storefront-catalogue .pricing-card-text {
  grid-row: 2;
  grid-column: 1 / -1;
  padding-inline: .5rem;
  color: var(--color-text-muted);
  font-size: var(--type-size-badge);
  font-weight: var(--type-weight-medium);
  line-height: var(--type-line-label);
  letter-spacing: var(--type-track-eyebrow);
  text-transform: uppercase;
}

.storefront-catalogue .pricing-card-title {
  grid-row: 3;
  grid-column: 1 / -1;
  align-self: start;
  margin: .25rem 0 0;
  padding-inline: .5rem;
  font-size: var(--type-size-card-title);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-line-card);
  letter-spacing: var(--type-track-card);
  overflow-wrap: anywhere;
}

.storefront-catalogue .conversion-card-summary {
  grid-row: 4;
  grid-column: 1 / -1;
  align-self: start;
  margin: .375rem 0 0;
  padding-inline: .5rem;
  color: var(--color-text-muted);
  font-size: var(--type-size-ui);
  line-height: var(--type-line-ui);
}

.storefront-catalogue .stock-wrapper {
  grid-row: 5;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  width: auto;
  min-height: 2.25rem;
  margin-top: 1rem;
  padding-inline-start: .5rem;
}

.storefront-catalogue .stock-option {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--type-size-caption);
  line-height: var(--type-line-label);
}

.storefront-catalogue .stock-option::before {
  content: '';
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: var(--color-brand-strong);
}

.storefront-catalogue .stock-option.low-stock::before {
  background: var(--status-low-stock-background);
}

.storefront-catalogue [dfy-stock="Sold Out"] .stock-option::before {
  background: var(--color-text-muted);
}

.storefront-catalogue .service-item .button {
  grid-row: 5;
  grid-column: 2;
  justify-self: end;
  gap: .375rem;
  max-width: 100%;
  min-height: 2.25rem;
  margin: 1rem .125rem 0 0;
  padding: .375rem .875rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  box-shadow: none;
  color: var(--color-surface-dark);
  font-size: var(--type-size-ui);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-line-ui);
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.storefront-catalogue .service-item:hover .button {
  background: var(--color-brand);
}

.storefront-catalogue .service-item .button .icon-1x1-tiny {
  display: flex;
  width: .75rem;
  height: .75rem;
}

/* Sold-out products keep their page link; the status line already says so. */
.storefront-catalogue [dfy-stock="Sold Out"] .button,
.storefront-catalogue .sold-out-cover {
  display: none;
}

.storefront-catalogue [dfy-stock="Sold Out"] .service-video-image-wrap {
  filter: grayscale(1);
}

.storefront-catalogue a[dfy-stock="Sold Out"]:hover {
  border-color: color-mix(in srgb, var(--color-text-muted) 45%, var(--color-border));
  box-shadow: none;
}

/* The channels strip belongs to the catalogue above it: no gap, no scroll-in. */
.storefront-catalogue {
  padding-bottom: 1.5rem;
}

.w-form:has(.storefront-catalogue) + .scroller-section {
  padding-block: 1.5rem 3rem;
}

.w-form:has(.storefront-catalogue) + .scroller-section .yt-acc-grid {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .storefront-catalogue .service-item,
  .storefront-catalogue .service-item .button {
    transition: none;
  }
}

@media (max-width: 991px) {
  .storefront-catalogue {
    padding-top: 1.5rem;
  }

  .storefront-catalogue .container-medium.services-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .storefront-catalogue .services-list.narrow-list._2-list.v1-serivce-item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .storefront-catalogue .services-list.narrow-list._2-list.v1-serivce-item-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .storefront-catalogue .filter-list {
    gap: .25rem;
  }

  .storefront-catalogue .filter-filed {
    padding-inline: .4375rem;
  }

  .storefront-catalogue .filter-label {
    font-size: var(--type-size-caption);
  }
}
