/* Scheda prodotto split-screen (stile boutique) */

body.pdp-page {
    background: #fff;
}

body.pdp-page .pdp-main--split {
    padding: 0;
    max-width: none;
}

/* Non sovrascrivere position:fixed dello header globale (evita doppio spazio in alto) */
body.pdp-page.sf-header-solid .pdp-main--split {
    padding-top: 0 !important;
}

.pdp-split {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--pdp-header-offset, 120px));
}

.pdp-split__gallery {
    position: relative;
    flex: 1 1 auto;
    min-height: 52vh;
    background: #fff;
}

.pdp-split__info {
    flex: 0 0 auto;
    padding: 1.35rem 1.25rem 2.5rem;
    background: #fff;
}

.pdp-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
}

.pdp-hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.pdp-hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.pdp-hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.pdp-hero-slider__zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: zoom-in;
    overflow: hidden;
}

.pdp-hero-slider__image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Override legacy .pdp-main-image rules in site.css (max-height 420px). */
body.pdp-page .pdp-hero-slider__image.pdp-main-image,
body.pdp-page .pdp-main-image.pdp-hero-slider__image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: center center;
}

/* Immagini combinate duo: mostra il prodotto per intero senza tagli */
.pdp-split--has-composite .pdp-hero-slider__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.pdp-split--has-composite .pdp-hero-slider__image,
body.pdp-page .pdp-split--has-composite .pdp-hero-slider__image.pdp-main-image,
body.pdp-page .pdp-split--has-composite .pdp-main-image.pdp-hero-slider__image {
    object-fit: contain;
    object-position: center center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.pdp-split--has-composite .pdp-split__gallery {
    min-height: 58vh;
}

@media (min-width: 992px) {
    .pdp-split--has-composite .pdp-split__gallery {
        min-height: calc(100vh - var(--pdp-header-offset, 120px));
    }
}

.pdp-hero-slider__video-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.pdp-hero-slider__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f5f5f5;
    pointer-events: none;
}

.pdp-hero-slider__video::-webkit-media-controls {
    display: none !important;
}

.pdp-hero-slider__dot.is-video {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.pdp-hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #2f2f2f;
    font-size: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.pdp-hero-slider__nav::before {
    content: "";
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.pdp-hero-slider__nav.is-prev::before {
    transform: rotate(-135deg);
    margin-left: 0.12rem;
}

.pdp-hero-slider__nav.is-next::before {
    transform: rotate(45deg);
    margin-right: 0.12rem;
}

.pdp-hero-slider__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.04);
}

.pdp-hero-slider__nav.is-prev {
    left: 1rem;
}

.pdp-hero-slider__nav.is-next {
    right: 1rem;
}

.pdp-hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pdp-hero-slider__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease, background 0.2s ease;
}

.pdp-hero-slider__dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

.pdp-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a948d;
}

.pdp-breadcrumbs__link {
    color: inherit;
    text-decoration: none;
}

.pdp-breadcrumbs__link:hover {
    color: #5c534b;
    text-decoration: underline;
}

.pdp-breadcrumbs__sep {
    color: #c8c2ba;
}

.pdp-breadcrumbs__sep::before {
    content: "/";
}

.pdp-breadcrumbs__current {
    color: #6f6860;
}

.pdp-pack-shot-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.35rem;
}

.pdp-pack-shot {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.pdp-eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b9946e;
    font-family: "Cormorant Garamond", serif;
}

body.pdp-page .pdp-title {
    margin-bottom: 0.35rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: #1f1b18;
    text-transform: none;
}

body.pdp-page .pdp-subtitle {
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    color: #8d8680;
    text-transform: lowercase;
}

body.pdp-page .pdp-reviews-summary {
    margin-bottom: 1.35rem;
}

body.pdp-page .pdp-variants-block {
    margin-bottom: 1.15rem;
}

body.pdp-page .pdp-variants-label {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
    color: #5f5953;
}

body.pdp-page .pdp-variants-label span {
    font-weight: 600;
    color: #2f2b28;
}

.pdp-variant-icons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.pdp-variant-icon-btn {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    padding: 0.25rem;
    border: 1px solid #e5ddd4;
    border-radius: 0.35rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pdp-variant-icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pdp-variant-icon-btn:hover {
    border-color: #c7aa93;
    transform: translateY(-1px);
}

.pdp-variant-icon-btn.is-active {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.pdp-size-variants-block {
    margin-bottom: 1.15rem;
}

.pdp-multi-fragrance-block {
    margin-bottom: 1.15rem;
}

.pdp-multi-fragrance-block .pdp-fragrance-slot-block + .pdp-fragrance-slot-block {
    margin-top: 1rem;
}

.pdp-size-variants-block .pdp-variant-icons {
    gap: 0.75rem;
}

.pdp-size-variants-block .pdp-variant-icon-btn {
    width: 96px;
    height: 96px;
    padding: 0.35rem;
    border-radius: 0.45rem;
}

@media (min-width: 768px) {
    .pdp-size-variants-block .pdp-variant-icon-btn {
        width: 112px;
        height: 112px;
        padding: 0.45rem;
    }
}

.pdp-price-block {
    margin-bottom: 1rem;
}

body.pdp-page .pdp-price {
    margin-bottom: 0.2rem;
    font-size: 1.55rem;
    font-weight: 500;
    color: #1f1b18;
}

.pdp-purchase {
    margin-bottom: 1.35rem;
}

.pdp-purchase-form {
    margin-bottom: 0;
}

body.pdp-page .pdp-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background: #111;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    padding: 0.85rem 1.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

body.pdp-page .pdp-cart-btn:hover {
    background: #2a2622;
    color: #fff;
}

body.pdp-page .pdp-description-brief {
    margin-bottom: 1.25rem;
    color: #5f5953;
    font-size: 0.92rem;
    line-height: 1.65;
}

@media (min-width: 992px) {
    .pdp-split {
        flex-direction: row;
        align-items: stretch;
        min-height: calc(100vh - var(--pdp-header-offset, 132px));
    }

    .pdp-split__gallery {
        flex: 1 1 50%;
        min-height: calc(100vh - var(--pdp-header-offset, 132px));
        max-width: 50%;
    }

    .pdp-split__info {
        flex: 1 1 50%;
        max-width: 50%;
        padding: 2.25rem clamp(2rem, 4vw, 3.5rem) 3rem;
        overflow-y: auto;
        max-height: calc(100vh - var(--pdp-header-offset, 132px));
    }

    .pdp-split--has-video .pdp-split__gallery,
    .pdp-split--has-video .pdp-split__info {
        transition: flex-basis 0.45s ease, max-width 0.45s ease, flex-grow 0.45s ease;
    }

    .pdp-split--has-video.is-gallery-video-active .pdp-split__gallery {
        flex: 0 0 var(--pdp-gallery-video-width, min(38vw, 420px));
        max-width: var(--pdp-gallery-video-width, min(38vw, 420px));
        min-width: 280px;
        background: #fff;
    }

    .pdp-split--has-video.is-gallery-video-active .pdp-split__info {
        flex: 1 1 auto;
        max-width: none;
    }

    .pdp-split--has-video.is-gallery-video-active .pdp-hero-slider__video-wrap {
        background: #fff;
    }

    .pdp-split--has-video.is-gallery-video-active .pdp-hero-slider__video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #fff;
    }

    .pdp-split--has-video.is-gallery-image-active .pdp-split__gallery {
        flex: 1 1 50%;
        max-width: 50%;
        min-width: 0;
        background: #fff;
    }

    .pdp-split--has-video.is-gallery-image-active .pdp-split__info {
        flex: 1 1 50%;
        max-width: 50%;
    }

    .pdp-pack-shot {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 991.98px) {
    .pdp-pack-shot-wrap {
        display: none !important;
    }

    body.pdp-page .pdp-main--split {
        padding-top: 0;
    }

    body.pdp-page .pdp-main-image {
        max-height: none;
    }

    .pdp-split__gallery {
        min-height: 58vh;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .pdp-hero-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
    }

    .pdp-split__gallery:has(.pdp-hero-slider[data-has-video="1"]) {
        min-height: min(88vh, 820px);
        background: #000;
    }

    .pdp-hero-slider[data-has-video="1"] .pdp-hero-slider__slide.is-video .pdp-hero-slider__video-wrap {
        background: #000;
    }

    .pdp-hero-slider[data-has-video="1"] .pdp-hero-slider__video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        background: #000;
    }
}

@media (max-width: 767.98px) {
    body.pdp-page .pdp-main.pdp-main--split {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Prodotti correlati — full width prima del footer */
.pdp-related {
    padding: clamp(2.5rem, 5vw, 3.75rem) 0;
    background: #fff;
    border-top: 1px solid #ece6df;
}

.pdp-related__inner {
    max-width: 1320px;
}

.pdp-related__head {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
}

.pdp-related__title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #1f1b18;
    text-transform: none;
}

body.pdp-page .pdp-related .product-card {
    height: 100%;
}
