.summary-title {
    align-items: flex-start;
    display: flex;
    gap: 16px;
}

.product-brand-row {
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 0;
    min-width: 90px;
}

.product-brand-row-left {
    align-items: center;
    display: flex;
    max-width: 120px;
    min-height: 34px;
}

.product-brand-row-left .brand {
    display: block;
    height: auto;
    max-width: 100%;
}

.summary-title-content {
    flex: 1;
    min-width: 0;
}

.product-title-row {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.summary-title-content p {
    margin: 0;
}

.favorite-product-btn {
    align-items: center;
    background: transparent;
    border: 0;
    color: #9ea7b3;
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    transition: color 0.2s ease;
}

.favorite-product-btn:hover,
.favorite-product-btn:focus {
    color: #ffbf00;
    outline: none;
}

.favorite-product-btn.active {
    color: #ffbf00;
}

.favorite-product-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.icon-btn.purchased-icon {
    align-items: center;
    background: transparent;
    border: 0;
    color: #657180;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    transition: color 0.2s ease;
}

.icon-btn.purchased-icon:hover,
.icon-btn.purchased-icon:focus {
    color: #1f7a8c;
    outline: none;
}

.icon-btn.purchased-icon:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.summary-block.block-buy .buy-actions .purchase-history-button.is-loading {
    color: #9ea7b3;
    opacity: 0.8;
}

.summary-block.block-buy .buy-actions .purchase-history-button.has-purchases {
    color: #2f9e44;
    opacity: 1;
}

.summary-block.block-buy .buy-actions .purchase-history-button.has-purchases:hover,
.summary-block.block-buy .buy-actions .purchase-history-button.has-purchases:focus {
    color: #237a35;
}

.summary-block.block-buy .buy-actions .purchase-history-button.no-purchases {
    color: #b8bec7;
    opacity: 0.85;
}

.summary-block.block-buy .buy-actions .purchase-history-button {
    margin-left: 8px;
}

.product-360-swiper-slide {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding: 10px 12px 14px;
}

.product-360-viewer {
    background: #f5f7fb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    user-select: none;
    width: 100%;
}

.product-360-stage {
    background-color: white;
    align-items: center;
    aspect-ratio: 1 / 1;
    cursor: grab;
    display: flex;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
    padding: 0.5vh;
    touch-action: pan-y;
    width: 100%;
}

.product-360-viewer.is-dragging .product-360-stage {
    cursor: grabbing;
}

.product-360-image {
    display: block;
    height: auto;
    max-height: calc(100% - 24px);
    max-width: calc(100% - 24px);
    object-fit: contain;
    pointer-events: none;
}

.product-360-overlay {
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.4) 100%);
    bottom: 0;
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 10px 12px;
    position: absolute;
    right: 0;
}

.product-360-badge {
    border-radius: 999px;
    color: rgb(91, 91, 91);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 5px 8px;
    text-transform: uppercase;
}

.product-360-thumb-badge {
    border-radius: 999px;
    display: inline-flex;
    line-height: 1;
    padding: 2px;
}

.product-360-thumb-badge-img {
    display: block;
    width: 6vh !important;
}

.product-360-hint {
    color: black;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.product-360-thumb-slide {
    position: relative;
}

.product-360-thumb-slide .product-360-thumb-badge {
    bottom: 1px;
    position: absolute;
    right: 2px;
}

.gallery .swiper-slide,
.variant-gallery-swiper .swiper-slide {
    cursor: pointer;
}

@media (max-width: 767px) {
    .summary-title {
        flex-direction: column;
        gap: 10px;
    }

    .product-brand-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 8px;
        min-width: 0;
        width: 100%;
    }

    .summary-block.block-buy .buy-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .summary-block.block-buy .buy-actions .purchase-history-button {
        margin-left: 0;
    }

    .product-360-stage {
        min-height: 190px;
    }

    .product-360-hint {
        font-size: 11px;
    }
}

/* === THUMBS POSITION CONTROL (.env THUMBS_POSITION: h=below, v=right) === */

/* Vertical thumbs (right side) - single product */
html.nosso-theme .product-detail .product-layout.thumbs-v .gallery {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery {
    flex: 1;
    min-width: 0;
}
html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery-thumbnails {
    width: 110px;
    height: 340px;
    flex-shrink: 0;
    padding: 0;
}
html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery-thumbnails .swiper-slide {
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    background: transparent;
    border: 2px solid transparent;
    opacity: 0.55;
    border-radius: 6px;
}
html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery-thumbnails .swiper-slide img {
    opacity: 1;
}
html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery-thumbnails .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--tienda-color-boton, #C10E1A);
}

/* Horizontal thumbs (below) - multi-variant */
html.nosso-theme .product-detail .product-layout.thumbs-h .product-summary .summary-block.block-variable.block-variable-horizontal .variant-media .variant-gallery-wrapper {
    flex-direction: column;
}
html.nosso-theme .product-detail .product-layout.thumbs-h .product-summary .summary-block.block-variable.block-variable-horizontal .variant-media .variant-gallery-wrapper .swiper.variant-gallery-swiper {
    height: 360px;
    flex: none;
}
html.nosso-theme .product-detail .product-layout.thumbs-h .product-summary .summary-block.block-variable.block-variable-horizontal .variant-media .variant-gallery-wrapper .swiper.variant-gallery-thumbs {
    width: 100%;
    height: 110px;
    flex-shrink: 0;
}
html.nosso-theme .product-detail .product-layout.thumbs-h .product-summary .summary-block.block-variable.block-variable-horizontal .variant-media .variant-gallery-wrapper .variant-gallery-thumbs .swiper-slide {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    padding: 8px;
    border: 1px solid #fff;
    opacity: 1;
}
html.nosso-theme .product-detail .product-layout.thumbs-h .product-summary .summary-block.block-variable.block-variable-horizontal .variant-media .variant-gallery-wrapper .variant-gallery-thumbs .swiper-slide img {
    opacity: 0.6;
    aspect-ratio: auto;
    height: 100%;
}
html.nosso-theme .product-detail .product-layout.thumbs-h .product-summary .summary-block.block-variable.block-variable-horizontal .variant-media .variant-gallery-wrapper .variant-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #D9D9D9;
}

@media (max-width: 767px) {
    html.nosso-theme .product-detail .product-layout.thumbs-v .gallery {
        flex-direction: column;
    }
    html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery-thumbnails {
        width: 100%;
        height: 160px;
        padding: 10px 0;
    }
    html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery-thumbnails .swiper-slide {
        width: 33%;
        height: 100%;
        padding: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        background-color: #fff;
        border: 1px solid #fff;
        opacity: 1;
        border-radius: 8px;
    }
    html.nosso-theme .product-detail .product-layout.thumbs-v .gallery .swiper.product-gallery-thumbnails .swiper-slide-thumb-active {
        border-color: #D9D9D9;
    }
}
