/* Detail parfému – Nový layout detailu parfému (preview pro testovací IP) */
body.detail3-v2-page .page-wrapper,
body.detail3-v2-page .page-wrapper > *,
body.detail3-v2-page .container.detail3-v2 {
    overflow: visible !important;
}

.detail3-v2 {
    overflow: visible;
}

/* Flex: vlevo galerie + popis, vpravo sticky panel (DOM: main → sidebar) */
.detail3-v2__layout {
    display: block;
    overflow: visible;
}

.detail3-v2__main {
    min-width: 0;
}

.detail3-v2__gallery {
    min-width: 0;
}

@media (min-width: 992px) {
    .detail3-v2__layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .detail3-v2__main {
        flex: 1 1 0;
        min-width: 0;
        order: 1;
    }

    .detail3-v2__right {
        flex: 0 0 36%;
        width: 36%;
        max-width: 400px;
        min-width: 260px;
        order: 2;
        position: -webkit-sticky;
        position: sticky;
        top: var(--detail3-v2-sticky-top, 5.75rem);
        align-self: flex-start;
        overflow-anchor: none;
        max-height: calc(100vh - var(--detail3-v2-sticky-top, 5.75rem) - 1rem);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        border-left: 1px solid #e3e9ef;
        padding: 1rem 0 1.5rem 2rem;
        box-sizing: border-box;
    }
}

.detail3-v2__right {
    min-width: 0;
}

.detail3-v2__breadcrumbs {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #7d879c;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
}

.detail3-v2__breadcrumbs a {
    color: #4b566b;
    text-decoration: none;
}

.detail3-v2__breadcrumbs a:hover {
    color: #2b3445;
    text-decoration: underline;
}

.detail3-v2__crumb-sep {
    color: #aeb4be;
    margin: 0 0.2rem;
}

.detail3-v2__breadcrumbs-inner {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.detail3-v2__breadcrumbs-inner::-webkit-scrollbar {
    display: none;
}

.detail3-v2__head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f3f7;
}

.detail3-v2__brand {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #2b3445;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 0.35rem;
}

.detail3-v2__brand:hover {
    color: #fe696a;
}

.detail3-v2__title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2b3445;
}

.detail3-v2__subtitle {
    font-size: 0.9375rem;
}

.detail3-v2__desc {
    color: #373f50;
    margin-top: 2rem;
}

.detail3-v2__desc .detail3-v2__desc-body,
.detail3-v2__desc-body {
    font-size: 0.9375rem;
    line-height: 1.65;
}

.detail3-v2__desc h2.h4 {
    font-size: 1.15rem;
    margin-top: 0;
    padding-top: 0.5rem;
    border-bottom: 0;
}

.detail3-v2__desc-body h2,
.detail3-v2__desc-body h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
}

.detail3-v2 .gallery-desktop > div:first-child {
    text-align: center;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem 1rem 0.5rem;
}

.detail3-v2 .gallery-desktop img#main,
.detail3-v2 .gallery-desktop #hlavni_obrazek {
    max-height: 520px;
    width: auto !important;
    margin: 0 auto;
}

.detail3-v2 .product-details {
    max-width: 100%;
    margin-left: 0 !important;
    padding-top: 0.25rem;
}

.detail3-v2 .change-group-product {
    min-width: 4.5rem;
}

.detail3-v2 .atc .btn-success2 {
    flex: 1;
    min-height: 48px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .detail3-v2__layout {
        display: flex;
        flex-direction: column;
    }

    /* Pořadí na mobilu: galerie → nákupní panel → popis */
    .detail3-v2__main {
        display: contents;
    }

    .detail3-v2__gallery {
        order: 1;
    }

    .detail3-v2__right {
        order: 2;
        position: static;
        max-height: none;
        overflow: visible;
        width: 100%;
        max-width: none;
        border-left: 0;
        padding: 0;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e3e9ef;
    }

    .detail3-v2__desc {
        order: 3;
        margin-top: 1.5rem !important;
        padding-top: 1.25rem !important;
        border-top: 1px solid #e3e9ef;
    }

    .detail3-v2__head {
        border-bottom: 0;
        padding-bottom: 0;
    }
}
