/*
 * Live mobile audit fixes, 2026-09-02.
 *
 * This file loads last. It deliberately consolidates the shared mobile hero
 * contract instead of adding another page-specific art-direction exception.
 */

@media (max-width: 47.99rem) {
  /* One baseline for every editorial and collection hero. Content can grow
   * beyond it, but short pages no longer start from unrelated heights. */
  .dy26-page-hero,
  .dy26-editorial-hero,
  .dy26-page-hero--compact,
  /* final-polish targets the compact modifier with two class selectors.
   * Match that specificity here so category heroes keep the shared mobile
   * rhythm instead of dropping to the old 20rem height. */
  .dy26-page-hero.dy26-page-hero--compact,
  .dy26-editorial-hero--article,
  .dy26-editorial-hero--about,
  .dy26-editorial-hero--journal,
  .dy26-editorial-hero--process,
  .dy26-editorial-hero--contact,
  .dy26-editorial-hero--cart,
  .dy26-editorial-hero--account,
  .dy26-shop-hero {
    height: auto !important;
    min-height: 31rem !important;
    max-height: none !important;
  }

  .dy26-page-hero__inner,
  .dy26-page-hero--compact .dy26-page-hero__inner,
  .dy26-editorial-hero--article .dy26-page-hero__inner {
    align-items: start !important;
    min-height: inherit !important;
    padding-block: calc(var(--dy26-header-height, 4rem) + 1.1rem) 1.5rem !important;
  }

  /* Breadcrumbs and copy share the same left edge, including Process. */
  .dy26-page-hero__copy,
  .dy26-editorial-hero--article .dy26-page-hero__copy,
  .dy26-editorial-hero--process .dy26-page-hero__copy,
  .dy26-page-hero--compact .dy26-page-hero__copy {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline-start: 0 !important;
  }

  /* Never slice a word merely to preserve a dramatic narrow column. */
  .dy26-page-hero__copy .dy26-page-hero__title,
  .dy26-editorial-hero--article .dy26-page-hero__copy .dy26-page-hero__title,
  .dy26-page-hero--compact .dy26-page-hero__copy .dy26-page-hero__title {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    /* A family name must move as a whole, never as “mâ-choire”. */
    hyphens: none !important;
    text-wrap: balance;
  }

  /* Long article words such as “signification” should move as a whole. */
  .dy26-editorial-hero--article .dy26-page-hero__copy .dy26-page-hero__title {
    font-size: clamp(1.95rem, 8.4vw, 2.25rem) !important;
    hyphens: none !important;
    text-wrap: wrap;
  }

  /* The compact header leaves a real centre column for the wordmark and its
   * promise. It must stay readable rather than collapse into three tiny lines. */
  .dy26-site-header__inner {
    grid-template-columns: 3rem minmax(0, 1fr) 3.6rem !important;
  }

  .dy26-site-header .dy26-brand__wordmark {
    min-height: 1.65rem;
    font-size: 1.34rem !important;
    letter-spacing: 0.31em;
  }

  .dy26-site-header .dy26-brand__seal {
    display: grid !important;
    width: 2.25rem;
    height: 2.25rem;
    left: calc(100% + 0.55rem);
  }

  .dy26-site-header .dy26-brand__tagline {
    display: block !important;
    width: max-content;
    max-width: none;
    margin-block-start: 0.18rem;
    color: var(--dy26-muted);
    font-size: 0.58rem !important;
    letter-spacing: 0.075em;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

  /* WooCommerce may fail to initialise FlexSlider on a translated product.
   * Keep every supplied image available as a main image plus an explicit
   * thumbnail strip even when that external script never creates controls. */
  .single-product .woocommerce-product-gallery[style*="opacity: 0"]:not(.dy26-gallery-is-enhanced) .woocommerce-product-gallery__wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  .single-product .woocommerce-product-gallery[style*="opacity: 0"]:not(.dy26-gallery-is-enhanced) .woocommerce-product-gallery__image {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    border: 1px solid var(--dy26-border) !important;
    overflow: hidden !important;
  }

  .single-product .woocommerce-product-gallery[style*="opacity: 0"]:not(.dy26-gallery-is-enhanced) .woocommerce-product-gallery__image:first-child {
    grid-column: 1 / -1;
  }

  .single-product .woocommerce-product-gallery[style*="opacity: 0"]:not(.dy26-gallery-is-enhanced) .woocommerce-product-gallery__image:not(:first-child) a {
    display: block !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
  }

  .single-product .woocommerce-product-gallery[style*="opacity: 0"]:not(.dy26-gallery-is-enhanced) .woocommerce-product-gallery__image:not(:first-child) img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
  }

  .single-product .woocommerce-product-gallery.dy26-gallery-is-enhanced > .woocommerce-product-gallery__wrapper {
    display: none !important;
  }

  .single-product .dy26-color-gallery__label {
    grid-column: 1 / -1;
    margin: 0 0 0.1rem;
    color: var(--dy26-ivory-strong);
    font-family: var(--dy26-font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .single-product .dy26-color-gallery {
    grid-auto-flow: row !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Homepage, category names and descriptions must remain whole at every
 * desktop density. The five-card row is reserved for sufficiently wide
 * canvases; intermediate widths use three generous cards instead. */
@media (min-width: 48rem) {
  .dy26-home .dy26-section--categories .dy26-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dy26-home .dy26-section--categories .dy26-category-card,
  .dy26-home .dy26-section--categories .dy26-category-card:nth-child(n + 4) {
    min-height: clamp(15.25rem, 20vw, 16.5rem);
  }

  .dy26-home .dy26-section--categories .dy26-category-card__content {
    display: flex;
    width: 80%;
    max-width: 80%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .dy26-home .dy26-section--categories .dy26-category-card__content small {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .dy26-home .dy26-section--categories .dy26-category-card__content > span:last-child {
    margin-top: auto;
  }
}

@media (min-width: 75rem) {
  .dy26-home .dy26-section--categories .dy26-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dy26-home .dy26-section--categories .dy26-category-card__content {
    width: 76%;
    max-width: 76%;
  }
}

/* At tablet desktop widths the three Journal cards are more balanced than two
 * oversized panels, without changing the one-column mobile reading flow. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .dy26-home-journal .dy26-article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dy26-site-footer__studio {
    align-items: baseline;
  }
}

/* A 960 px desktop still has room for a useful product comparison. Keep the
 * gallery and purchase panel side by side, then leave the details directly
 * below the gallery as on the full editorial product layout. */
@media (min-width: 54rem) and (max-width: 63.99rem) {
  .single-product .dy26-single-product__primary {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
  }

  .single-product .dy26-product-media-column,
  .single-product .dy26-product-summary-column {
    display: block;
  }

  .single-product .dy26-product-media-column .woocommerce-product-gallery,
  .single-product .dy26-product-summary,
  .single-product .dy26-product-editorial__details,
  .single-product .dy26-product-key-info {
    order: initial;
  }

  .single-product div.product div.images.dy26-gallery-is-enhanced {
    grid-template-columns: clamp(5.75rem, 7vw, 6.5rem) minmax(0, 1fr);
    gap: 0.9rem;
  }

  .single-product .dy26-gallery-is-enhanced .flex-control-thumbs {
    gap: 0.65rem;
  }
}

/* Product thumbnail strips need to be useful image selectors, not a row of
 * decorative dots. Keep the same readable rail at full desktop width too. */
@media (min-width: 64rem) {
  .single-product div.product div.images.dy26-gallery-is-enhanced {
    grid-template-columns: clamp(5.75rem, 7.5vw, 7rem);
    gap: 0.9rem;
  }

  .single-product .dy26-gallery-is-enhanced .flex-control-thumbs {
    gap: 0.65rem;
  }

  /* The older product-experience stylesheet switches this rail back to a
   * five-column grid and gives each item an automatic 12 px width. Override
   * it explicitly so the gallery remains a readable vertical selector. */
  body.single-product.dy-product-experience .woocommerce-product-gallery.dy26-gallery-is-enhanced > .flex-control-thumbs {
    display: flex !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: auto !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.single-product.dy-product-experience .woocommerce-product-gallery.dy26-gallery-is-enhanced > .flex-control-thumbs li {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 1;
    float: none !important;
  }

  body.single-product.dy-product-experience .woocommerce-product-gallery.dy26-gallery-is-enhanced > .flex-control-thumbs li[hidden] {
    display: none !important;
  }
}

/* The product panel belongs to the same dark editorial composition as the
 * gallery. The legacy experience sheet was still forcing a cream checkout
 * card and a purple CTA, which breaks that hierarchy. */
body.single-product.dy-product-experience .dy26-product-summary {
  background:
    linear-gradient(145deg, rgba(29, 24, 19, 0.96), rgba(8, 10, 9, 0.98)) !important;
  color: var(--dy26-ivory-soft) !important;
  border-color: var(--dy26-border-strong) !important;
  box-shadow: none !important;
}

body.single-product.dy-product-experience .dy26-product-summary :is(h1, h2, h3, .product_title, .price, .price *, .woocommerce-Price-amount, .woocommerce-product-details__short-description, label, legend) {
  color: var(--dy26-ivory-strong) !important;
}

body.single-product.dy-product-experience .dy26-product-summary :is(.variations, .variations th, .variations td, form.cart) {
  color: var(--dy26-ivory-soft) !important;
  border-color: var(--dy26-border) !important;
}

body.single-product.dy-product-experience .dy26-product-summary .single_add_to_cart_button {
  background: var(--dy26-red-bright) !important;
  color: #fffaf1 !important;
  border-color: var(--dy26-red-bright) !important;
}

/* The desktop navigation is part of the hero composition in the approved
 * mockups. Keep the sticky header in normal order after the shipping notice,
 * then pull only real heroes underneath it. Product and utility pages without
 * a hero are left untouched. */
@media (min-width: 64rem) {
  .dy26-home-hero,
  .dy26-editorial-hero,
  .dy26-shop-hero {
    margin-block-start: calc(var(--dy26-header-height) * -1);
  }

  body:has(.dy26-home-hero, .dy26-editorial-hero, .dy26-shop-hero) > .dy26-site-header,
  body:has(.dy26-home-hero, .dy26-editorial-hero, .dy26-shop-hero) > .dy26-site-header.is-scrolled,
  body:has(.dy26-home-hero, .dy26-editorial-hero, .dy26-shop-hero) > .dy26-site-header:focus-within {
    height: var(--dy26-header-height);
  }

  .dy26-editorial-hero--journal .dy26-page-hero__media {
    background: var(--dy26-ink-deep);
  }

  .dy26-editorial-hero--journal .dy26-page-hero__media img {
    position: absolute;
    top: -10%;
    right: clamp(3rem, 8vw, 9rem);
    width: auto;
    max-width: none;
    height: 120%;
    object-fit: contain;
    object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
  }

  .dy26-editorial-hero--journal .dy26-page-hero__copy {
    width: min(36rem, 48%);
  }

  .dy26-editorial-hero--journal .dy26-page-hero__copy h1 {
    max-width: none;
    font-size: clamp(3.7rem, 5.8vw, 5.6rem);
    line-height: 0.9;
  }
}

/* The complete Journal filter set must stay visible on compact desktop and
 * landscape-tablet widths. Tighten the rail before the existing 1024 px grid
 * breakpoint instead of exposing a clipped last label and a native scrollbar. */
@media (min-width: 64.01rem) and (max-width: 80rem) {
  .dy26-journal-categories .dy26-container {
    justify-content: space-between;
    gap: clamp(0.55rem, 1.1vw, 1rem);
    overflow: visible;
  }

  .dy26-journal-categories__label {
    position: static;
    padding-inline-end: 0.2rem;
    background: transparent;
    font-size: 0.92rem;
  }

  .dy26-journal-categories a {
    padding-block: 0.9rem;
    font-size: clamp(0.62rem, 0.82vw, 0.72rem);
    letter-spacing: 0.065em;
    white-space: nowrap;
  }
}

/* Keep the Journal breadcrumb subordinate to the title, as in the approved
 * mockup. The link regains contrast only when it is deliberately targeted. */
.dy26-editorial-hero--journal .dy26-breadcrumbs,
.dy26-editorial-hero--journal .dy26-breadcrumbs a,
.dy26-editorial-hero--journal .dy26-breadcrumbs [aria-current="page"],
.dy26-editorial-hero--journal .dy26-breadcrumbs li:not(:last-child)::after {
  color: var(--dy26-muted-deep);
}

.dy26-editorial-hero--journal .dy26-breadcrumbs a:hover,
.dy26-editorial-hero--journal .dy26-breadcrumbs a:focus-visible {
  color: var(--dy26-ivory-soft);
}

/* Balance the featured Journal card without forcing centred long-form copy on
 * the stacked tablet and mobile layouts. */
@media (min-width: 64.01rem) {
  .dy26-journal .dy26-article-card--featured .dy26-article-card__body {
    align-items: stretch;
    text-align: center;
  }

  .dy26-journal .dy26-article-card--featured .dy26-article-card__meta {
    justify-content: center;
  }

  .dy26-journal .dy26-article-card--featured .dy26-button {
    align-self: center;
  }
}

/* WordPress changes its mobile toolbar from 32 to 46 pixels. Match that real
 * offset so the sticky header is never clipped for an authenticated editor. */
@media (max-width: 48.875rem) {
  .admin-bar .dy26-site-header {
    inset-block-start: 46px;
  }
}

/* Page heroes now use the Journal composition as their shared reference.
 * The main shop and category archives share the same height and typography.
 * Article covers keep their own long-title layout. */
@media (min-width: 48rem) {
  body .dy26-shop-hero,
  body .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) {
    box-sizing: border-box;
    height: 29rem !important;
    min-height: 29rem !important;
    max-height: 29rem !important;
    overflow: hidden;
  }

  .dy26-shop-hero__content {
    box-sizing: border-box;
    width: min(38rem, 52%) !important;
    max-width: 52% !important;
    height: 29rem !important;
    min-height: 29rem !important;
    max-height: 29rem !important;
    align-content: start !important;
    padding: 3.9rem 0 0.75rem var(--dy26-gutter) !important;
  }

  .dy26-shop-hero__title {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(3.35rem, 5.8vw, 4rem) !important;
    line-height: 0.9 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  .dy26-shop-hero .dy26-breadcrumbs {
    margin-bottom: 0.9rem !important;
  }

  .dy26-shop-hero .dy26-eyebrow {
    margin-bottom: 0.45rem !important;
  }

  .dy26-shop-hero__intro {
    max-width: 34rem !important;
    margin-block: 0.55rem 0.75rem !important;
    font-size: clamp(0.92rem, 1.25vw, 1.05rem) !important;
    line-height: 1.5 !important;
  }

  .dy26-shop-hero__count {
    margin-block-start: 0.65rem !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__inner {
    box-sizing: border-box;
    height: 29rem !important;
    min-height: 29rem !important;
    max-height: 29rem !important;
    align-items: start !important;
    padding-block: 3.9rem 0.75rem !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__copy {
    box-sizing: border-box !important;
    width: min(38rem, 52%) !important;
    max-width: 52% !important;
    min-width: 0 !important;
    padding-inline-start: 0 !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__title {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(3.35rem, 5.8vw, 4rem) !important;
    line-height: 0.9 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-breadcrumbs {
    margin-bottom: 0.9rem !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-eyebrow {
    margin-bottom: 0.45rem !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__accent {
    margin-block: 0.55rem 0 !important;
    font-size: clamp(1rem, 1.45vw, 1.25rem) !important;
    line-height: 1.25 !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__intro {
    max-width: 34rem !important;
    margin-block: 0.55rem 0.75rem !important;
    font-size: clamp(0.92rem, 1.25vw, 1.05rem) !important;
    line-height: 1.5 !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-button {
    min-height: 2.75rem;
    padding-block: 0.72rem !important;
  }
}

@media (max-width: 47.99rem) {
  body .dy26-shop-hero,
  body .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) {
    box-sizing: border-box;
    height: 31rem !important;
    min-height: 31rem !important;
    max-height: 31rem !important;
    overflow: hidden !important;
  }

  body .dy26-shop-hero__content,
  body .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__inner {
    box-sizing: border-box;
    height: 31rem !important;
    min-height: 31rem !important;
    max-height: 31rem !important;
  }

  .dy26-shop-hero__title,
  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__title {
    font-size: clamp(2.35rem, 12.25vw, 3.15rem) !important;
    line-height: 0.9 !important;
  }

  .dy26-shop-hero .dy26-breadcrumbs {
    margin-bottom: 1rem !important;
  }

  .dy26-shop-hero .dy26-eyebrow {
    margin-bottom: 0.5rem !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-breadcrumbs {
    margin-bottom: 1rem !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-eyebrow {
    margin-bottom: 0.5rem !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__accent {
    margin-block: 0.6rem 0 !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-page-hero__intro {
    margin-block: 0.65rem 0.85rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .dy26-page-hero.dy26-editorial-hero:not(.dy26-editorial-hero--article) .dy26-button {
    min-height: 2.75rem;
    padding-block: 0.72rem !important;
  }
}

/* Product pages, one useful media rail and one source of measurements. */
.single-product .dy26-product-key-info-row {
  width: 100%;
  margin: 0 0 1.35rem;
}

.single-product .dy26-product-key-info-row .dy26-product-key-info {
  margin: 0;
}

.single-product .dy26-product-key-info-row .dy26-product-key-info dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.single-product .dy26-product-key-info-row .dy26-product-key-info dl > div,
.single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:nth-child(odd),
.single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:last-child {
  display: block;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-inline-start: 1px solid var(--dy26-border);
}

.single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:first-child,
.single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:nth-child(5) {
  border-inline-start: 0;
}

.single-product .dy26-product-key-info-row .dy26-product-key-info dl > div::before {
  display: none;
}

.single-product .dy26-product-key-info-row .dy26-product-key-info dt {
  margin-bottom: 0.24rem;
}

.single-product .dy26-product-details__short-description,
.single-product .dy26-product-summary .woocommerce-product-details__short-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.single-product .woocommerce-product-gallery.dy26-gallery-has-versions > .flex-control-thumbs {
  display: none !important;
}

.single-product .dy26-product-summary > .ppcp-messages {
  display: none !important;
}

.single-product div.product div.images.dy26-gallery-is-enhanced.dy26-gallery-has-versions {
  grid-template-columns: clamp(5.75rem, 7.5vw, 7rem) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 0.9rem !important;
}

.single-product .dy26-gallery-has-versions > .dy26-gallery-stage {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.single-product .dy26-gallery-has-versions > .dy26-color-gallery--versions {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem !important;
  padding: 0 !important;
  overflow: visible !important;
}

.single-product .dy26-color-gallery--versions .dy26-color-gallery__label {
  display: none;
}

.single-product .dy26-color-gallery--versions .dy26-color-gallery__item {
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 1;
}

.single-product .dy26-color-gallery--versions .dy26-color-gallery__item.is-active {
  box-shadow: inset 2px 0 0 var(--dy26-red-bright);
}

.single-product .dy26-gallery-has-versions > .dy26-detail-gallery {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: 0;
}

.single-product .dy26-detail-gallery__item {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--dy26-border);
  background: #090908;
  cursor: pointer;
}

.single-product .dy26-detail-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product .dy26-detail-gallery__item:is(:hover, :focus-visible),
.single-product .dy26-detail-gallery__item.is-active {
  border-color: var(--dy26-red-bright);
}

.single-product .dy26-product-payment-note {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dy26-border);
}

@media (min-width: 64rem) {
  .single-product .dy26-single-product__primary {
    grid-template-columns: minmax(0, 1.08fr) minmax(23.5rem, 0.92fr) !important;
    gap: clamp(1.2rem, 2vw, 2rem) !important;
  }
}

@media (min-width: 54rem) and (max-width: 63.99rem) {
  .single-product .dy26-single-product__primary {
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr) !important;
  }

  .single-product .dy26-product-key-info-row .dy26-product-key-info dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:nth-child(odd) {
    border-inline-start: 0;
  }

  .single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:nth-child(even) {
    border-inline-start: 1px solid var(--dy26-border);
  }
}

@media (max-width: 53.99rem) {
  .single-product .dy26-product-key-info-row .dy26-product-key-info dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:nth-child(odd) {
    border-inline-start: 0;
  }

  .single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:nth-child(even) {
    border-inline-start: 1px solid var(--dy26-border);
  }
}

@media (max-width: 47.99rem) {
  body.single-product div.product div.images.dy26-gallery-is-enhanced.dy26-gallery-has-versions {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 0.55rem !important;
  }

  .single-product .dy26-gallery-has-versions > .dy26-gallery-stage {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.single-product .woocommerce-product-gallery.dy26-gallery-has-versions > .dy26-color-gallery--versions {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 0.5rem !important;
  }

  .single-product .dy26-color-gallery--versions .dy26-color-gallery__item {
    aspect-ratio: 4 / 3;
  }

  body.single-product .woocommerce-product-gallery.dy26-gallery-has-versions > .dy26-detail-gallery {
    grid-column: 1 !important;
    grid-row: 3 !important;
    gap: 0.5rem;
  }
}

@media (max-width: 34rem) {
  .single-product .dy26-product-key-info-row .dy26-product-key-info dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-product .dy26-product-key-info-row .dy26-product-key-info dl > div,
  .single-product .dy26-product-key-info-row .dy26-product-key-info dl > div:nth-child(even) {
    border-inline-start: 0;
  }
}
