/* Ajustes recuperados de la ficha de producto. */
.dh-detail .dh-detail__back-short {
    display: none;
}

.dh-detail .dh-detail-category-slider__controls {
    display: none;
}

@media (max-width: 575px) {
    .dh-detail .dh-detail__breadcrumbs ol {
        flex-wrap: nowrap;
        gap: .4rem;
        overflow: hidden;
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .dh-detail .dh-detail__breadcrumbs li {
        flex: none;
    }

    .dh-detail .dh-detail__breadcrumbs li[aria-current] {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dh-detail .dh-detail__gallery--brand-above {
        row-gap: .7rem;
    }

    .dh-detail .dh-detail__gallery--brand-above > .dh-detail__brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        justify-items: end;
        width: min(12rem, 45%);
        margin-bottom: .2rem;
    }

    .dh-detail .dh-detail__gallery--brand-above .dh-detail__image {
        grid-row: 2;
    }

    .dh-detail .dh-detail__gallery--brand-above .dh-detail__thumbnails {
        grid-row: 3;
    }

    .dh-detail .dh-detail__brand-logo {
        object-position: right center;
    }

    .dh-detail .dh-detail__brand-name {
        text-align: right;
    }

    .dh-detail .dh-detail__image {
        border: 0;
    }

    .dh-detail .dh-detail__purchase-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
        gap: .8rem;
    }

    .dh-detail .dh-detail__quantity {
        min-width: 0;
    }

    .dh-detail .dh-detail__quantity-control {
        max-width: 100%;
        height: 3.8rem;
    }

    .dh-detail .dh-detail__quantity-control button {
        flex: 0 0 3.2rem;
        width: 3.2rem;
    }

    .dh-detail .dh-detail__quantity-control input {
        width: 4rem;
    }

    .dh-detail .dh-detail__subtotal {
        min-width: 0;
        text-align: right;
    }

    .dh-detail .dh-detail__subtotal-value {
        justify-content: flex-end;
        gap: .25rem;
        white-space: nowrap;
    }

    .dh-detail .dh-detail__subtotal-value small {
        font-size: .9rem;
    }

    .dh-detail .dh-detail__subtotal-value strong {
        font-size: clamp(1.25rem, 4vw, 1.7rem);
    }

    .dh-detail .dh-detail__footer {
        flex-wrap: nowrap;
        gap: .7rem;
    }

    .dh-detail .dh-detail__category {
        flex: 1 1 auto;
        min-width: 0;
        gap: .65rem;
    }

    .dh-detail .dh-detail__category-copy {
        min-width: 0;
    }

    .dh-detail .dh-detail__category-copy a,
    .dh-detail .dh-detail__category-copy > span {
        overflow-wrap: anywhere;
    }

    .dh-detail .dh-detail__back {
        flex: none;
        padding: .65rem .85rem;
    }

    .dh-detail .dh-detail__back-full {
        display: none;
    }

    .dh-detail .dh-detail__back-short {
        display: inline;
    }

    .dh-detail .dh-detail__category-products,
    .dh-detail .dh-detail-category-slider {
        min-width: 0;
    }

    .dh-detail .dh-detail-category-slider .dh-home-products__header {
        margin-bottom: 1.5rem;
    }

    .dh-detail .dh-detail-category-slider .dh-home-products__grid {
        display: flex;
        grid-template-columns: none;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .dh-detail .dh-detail-category-slider .dh-home-products__grid::-webkit-scrollbar {
        display: none;
    }

    .dh-detail .dh-detail-category-slider .dh-home-product {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        scroll-snap-align: start;
    }

    .dh-detail .dh-detail-category-slider .dh-home-product__media {
        height: 23rem;
        padding: 1.4rem 2.2rem .8rem;
    }

    .dh-detail .dh-detail-category-slider .dh-home-product__body {
        align-items: center;
        padding: 1rem 1.4rem 1.5rem;
        text-align: center;
    }

    .dh-detail .dh-detail-category-slider .dh-home-product__name {
        margin: .35rem 0 .6rem;
    }

    .dh-detail .dh-detail-category-slider .dh-home-product__price-line,
    .dh-detail .dh-detail-category-slider .dh-home-product__purchase-meta,
    .dh-detail .dh-detail-category-slider .dh-home-product__variants {
        justify-content: center;
    }

    .dh-detail .dh-detail-category-slider .dh-home-product__variants--color {
        justify-content: flex-start;
    }

    .dh-detail .dh-detail-category-slider .dh-home-product__actions {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .dh-detail .dh-detail-category-slider__controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-top: .9rem;
        color: #647f92;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .dh-detail .dh-detail-category-slider__controls > div {
        display: flex;
        gap: .6rem;
    }

    .dh-detail .dh-detail-category-slider__controls button {
        display: grid;
        width: 3.6rem;
        height: 3.6rem;
        place-items: center;
        border: 1px solid #d1e3ed;
        border-radius: 50%;
        background: #fff;
        color: #087db5;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }

    .dh-detail .dh-detail-category-slider__controls button:not(:disabled):hover,
    .dh-detail .dh-detail-category-slider__controls button:not(:disabled):focus-visible {
        background: #087db5;
        color: #fff;
    }

    .dh-detail .dh-detail-category-slider__controls button:disabled {
        color: #bacbd4;
        cursor: default;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-detail .dh-detail-category-slider .dh-home-products__grid {
        scroll-behavior: auto;
    }
}
