/* 
    PAPIRA BasÄ±mevi - ÜRÜNLER SAYFASI PREMİUM VE MİNİMALİST TASARIM
    PRODUCT PAGE - 2026 DESIGN SYSTEM
*/

.products-layout {
    padding: 80px 0;
    background: var(--white);
}

html,
body {
    overflow-x: clip !important;
}

.product-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    background: var(--white);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    align-self: flex-start;
}

.product-sidebar h5 {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 20px;
    padding-left: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-nav-item {
    margin-bottom: 4px;
}

.product-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #555555;
    text-decoration: none;
    font-weight: 400;
    font-size: 13.5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: transparent;
}

.product-nav-link:hover,
.product-nav-link.active {
    background: var(--light-cyan);
    color: var(--accent);
    padding-left: 18px;
}

.product-nav-link i {
    font-size: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.product-nav-link:hover i,
.product-nav-link.active i {
    opacity: 0.8;
    color: var(--accent);
    transform: translateX(2px);
}

.col-12.col-lg-9>div[id] {
    scroll-margin-top: 140px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f3f4f6;
}

.col-12.col-lg-9>div[id]:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-category-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.product-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.product-category-title span {
    display: none;
}

.product-overlay-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    height: auto;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    text-decoration: none;
    border: 1px solid #f3f4f6;
}

.product-overlay-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 180, 230, 0.15);
}

.product-overlay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-overlay-card:hover img {
    transform: scale(1.05);
}

.product-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 65%, transparent 100%);
    color: var(--white);
    z-index: 2;
}

.product-overlay-content h4 {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    color: var(--white);
    transition: all 0.3s ease;
}

.product-overlay-card:hover .product-overlay-content h4 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-detail-grid {
    padding: 80px 0;
}

.product-long-text {
    margin-top: 60px;
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    background: #fafafa;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
}

.product-single-detail {
    padding: 80px 0;
    background: var(--white);
}

.product-single-detail .product-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    width: 500px;
    max-width: 100%;
}

.product-single-detail .product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Single Detail Typography Hierarchy */
.product-single-detail .product-sticky-info > h2,
.product-single-detail .product-sticky-info > .display-6 {
    font-size: 1.65rem !important;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.product-single-detail h2,
.product-single-detail .product-description-content h2 {
    font-size: 1.35rem !important;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-single-detail h3,
.product-single-detail .product-description-content h3 {
    font-size: 1.15rem !important;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-single-detail h4,
.product-single-detail .product-description-content h4 {
    font-size: 1.02rem !important;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-single-detail h5,
.product-single-detail h6 {
    font-size: 0.95rem !important;
    font-weight: 600;
    margin-top: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.product-single-detail .lead {
    font-size: 1.15rem;
    color: #6b7280;
    line-height: 1.7;
}

.product-single-detail .product-description {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

@media (max-width: 991px) {
    .products-layout {
        padding: 50px 0;
    }

    .product-sidebar {
        margin-bottom: 30px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .product-sidebar h5 {
        display: none;
    }

    .product-nav-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
        white-space: normal;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .product-nav-item {
        margin-bottom: 0;
        width: 100%;
    }

    .product-nav-link {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        background: transparent;
        font-size: 14.5px;
        font-weight: 400;
        border-radius: 8px;
        border: none;
        color: #4b5563;
        transition: all 0.2s ease;
    }

    .product-nav-link i {
        display: none;
    }

    .product-nav-link:hover,
    .product-nav-link.active {
        background: rgba(0, 180, 230, 0.05);
        color: var(--accent) !important;
        padding-left: 18px;
    }
}

@media (max-width: 767px) {
    .product-category-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    .product-long-text {
        padding: 20px !important;
        font-size: 14.5px !important;
        line-height: 1.7 !important;
        margin-top: 40px !important;
    }

    .product-overlay-content {
        padding: 16px 15px !important;
    }

    .product-overlay-content h4 {
        font-size: 15px !important;
    }
}

/* Large screen and 4K optimizations for product detail pages */
@media (min-width: 1200px) {
    .product-single-detail .container-xl {
        max-width: 1140px !important;
    }

    .product-single-detail .product-img-wrapper {
        margin: 0 auto;
    }
}

@media (min-width: 1440px) {
    .product-single-detail .container-xl {
        max-width: 1280px !important;
    }
}

@media (min-width: 2560px) {
    .product-single-detail .container-xl {
        max-width: 1440px !important;
    }
}

/* Sticky Product Info and Image Gallery on Desktop */
@media (min-width: 992px) {
    .product-single-detail .row {
        align-items: stretch !important;
    }

    .product-single-detail .row > .col-lg-6 {
        display: flex;
        flex-direction: column;
    }
    
    .product-sticky-info,
    .product-img-gallery {
        position: -webkit-sticky;
        position: sticky;
        top: 130px;
        bottom: 30px;
        align-self: flex-start;
        width: 100%;
        height: fit-content !important;
    }
}