/* Ürün detay — genişletilmiş masaüstü düzen (galeri | satın al | popüler şerit) */

@media (min-width: 961px) {
    .product-detail-page--pdp .product-page-wide {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .product-detail-page--pdp .product-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    .product-detail-page--pdp .product-hero:has(.product-pdp-reco-strip) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(188px, 212px);
        gap: 1rem 1.25rem;
    }

    .product-detail-page--pdp .product-gallery-col,
    .product-detail-page--pdp .product-buy-col {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .product-detail-page--pdp .product-gallery-card {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .product-detail-page--pdp .product-buy-card {
        flex: 1 1 auto;
        width: 100%;
        padding: 1.15rem 1.25rem;
        min-height: 0;
        position: static;
        display: flex;
        flex-direction: column;
    }

    .product-detail-page--pdp .product-buy-card__main {
        flex: 1 1 auto;
        min-height: 0;
    }

    .product-detail-page--pdp .pdp-gallery-discount-badge {
        position: absolute;
        top: .85rem;
        left: .85rem;
        z-index: 2;
        background: #e42528;
        color: #fff;
        font-size: .72rem;
        font-weight: 800;
        padding: .28rem .5rem;
        border-radius: 6px;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(228, 37, 40, .35);
    }

    .product-detail-page--pdp .gallery-main {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        max-height: 520px;
        min-height: 260px;
        aspect-ratio: 1;
        margin: 0;
    }

    .product-detail-page--pdp .gallery-main img {
        padding: 1rem;
        -webkit-user-drag: none;
        user-select: none;
    }

    .product-detail-page--pdp .gallery-thumbs {
        flex-shrink: 0;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .product-detail-page--pdp .gallery-main--zoom {
        position: relative;
        cursor: zoom-in;
    }

    .product-detail-page--pdp .gallery-zoom-hint {
        position: absolute;
        right: .75rem;
        bottom: .75rem;
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 50%;
        background: rgba(15, 23, 42, .72);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .95rem;
        pointer-events: none;
        opacity: 0;
        transform: scale(.92);
        transition: opacity .2s, transform .2s;
    }

    .product-detail-page--pdp .gallery-main--zoom:hover .gallery-zoom-hint,
    .product-detail-page--pdp .gallery-main--zoom:focus-visible .gallery-zoom-hint {
        opacity: 1;
        transform: scale(1);
    }

    .product-detail-page--pdp .pdp-action-row {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
        margin-top: .25rem;
    }

    .product-detail-page--pdp .pdp-action-form {
        flex: 1 1 calc(50% - .35rem);
        min-width: 140px;
        margin: 0;
    }

    .product-detail-page--pdp .pdp-action-form .btn {
        width: 100%;
        min-height: 48px;
        font-size: .95rem;
    }

    .product-detail-page--pdp .pdp-btn-cart {
        border-width: 2px;
    }

    .product-detail-page--pdp .pdp-payment-hint {
        margin: .5rem 0 0;
        font-size: .82rem;
        color: #64748b;
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .product-detail-page--pdp .pdp-payment-hint i {
        color: var(--primary);
    }

    .product-detail-page--pdp .product-pdp-reco-strip {
        display: flex;
        flex-direction: column;
        align-self: start;
        width: 100%;
        height: clamp(380px, 52vh, 620px);
        min-height: 0;
        overflow: hidden;
        background: #fff;
        border: 1px solid #ecdcc8;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(120, 80, 40, .06);
    }

    .product-detail-page--pdp .product-pdp-reco-title {
        margin: 0;
        padding: .75rem .65rem .55rem;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .02em;
        text-transform: uppercase;
        color: #64748b;
        text-align: center;
        border-bottom: 1px solid #f1ebe3;
        flex-shrink: 0;
    }

    .product-detail-page--pdp .product-pdp-reco-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: #d4c4b0 transparent;
        padding: .35rem .4rem;
        -webkit-overflow-scrolling: touch;
    }

    .product-detail-page--pdp .product-pdp-reco-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .product-detail-page--pdp .product-pdp-reco-scroll::-webkit-scrollbar-thumb {
        background: #d4c4b0;
        border-radius: 4px;
    }

    .product-detail-page--pdp .pdp-reco-item {
        display: flex;
        flex-direction: column;
        gap: .35rem;
        padding: .45rem .35rem;
        border-radius: 10px;
        text-decoration: none;
        color: inherit;
        transition: background .15s;
    }

    .product-detail-page--pdp .pdp-reco-item:hover {
        background: #faf4eb;
    }

    .product-detail-page--pdp .pdp-reco-thumb {
        position: relative;
        display: block;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #eee;
        background: #fff;
    }

    .product-detail-page--pdp .pdp-reco-discount {
        position: absolute;
        top: .25rem;
        left: .25rem;
        z-index: 1;
        background: #e42528;
        color: #fff;
        font-size: .58rem;
        font-weight: 800;
        padding: .15rem .3rem;
        border-radius: 4px;
        line-height: 1;
    }

    .product-detail-page--pdp .pdp-reco-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: .25rem;
    }

    .product-detail-page--pdp .pdp-reco-body {
        display: flex;
        flex-direction: column;
        gap: .15rem;
    }

    .product-detail-page--pdp .pdp-reco-name {
        font-size: .68rem;
        line-height: 1.35;
        color: #334155;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-detail-page--pdp .pdp-reco-price {
        font-size: .72rem;
        font-weight: 800;
        color: var(--primary);
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: .25rem;
    }

    .product-detail-page--pdp .pdp-reco-price-old {
        font-size: .62rem;
        font-weight: 600;
        color: #94a3b8;
        text-decoration: line-through;
    }

    .product-detail-page--pdp .product-pdp-reco-more {
        flex-shrink: 0;
        width: 100%;
        border: none;
        border-top: 1px solid #f1ebe3;
        background: linear-gradient(180deg, #fffdfa, #faf4eb);
        color: var(--primary);
        padding: .55rem;
        cursor: pointer;
        font-size: .95rem;
        transition: background .15s;
    }

    .product-detail-page--pdp .product-pdp-reco-more:hover {
        background: #faf0e4;
    }
}

@media (max-width: 960px) {
    .product-detail-page--pdp .product-pdp-reco-strip {
        display: none;
    }
}

/* Lightbox */
.pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
    user-select: none;
    -webkit-user-select: none;
}

.pdp-lightbox:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.pdp-lightbox-inner {
    position: relative;
    max-width: min(960px, 96vw);
    max-height: min(90vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-lightbox-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pdp-lightbox-inner img {
    max-width: 100%;
    max-height: min(90vh, 900px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.pdp-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
    z-index: 2;
}

.pdp-lightbox-close:hover {
    background: rgba(255, 255, 255, .28);
}

.pdp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .15s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-lightbox-nav:hover {
    background: rgba(255, 255, 255, .28);
}

.pdp-lightbox-nav--prev {
    left: 1rem;
}

.pdp-lightbox-nav--next {
    right: 1rem;
}

.pdp-lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    font-weight: 600;
    z-index: 2;
}
