﻿/* =====================================================
   DETAIL SAYFASI İÇİN KALAN CSS
   Ana style.css dosyasından sonra ekle.
   Ortak layout, header, footer, topbar, menü, floating ve trust CSS'leri tekrar edilmedi.
===================================================== */

/* =====================================================
   01. DETAIL SAYFASINA GEREKLİ EK BUTON
===================================================== */
.btn-outline {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

    .btn-outline:hover {
        background: var(--soft);
    }

/* =====================================================
   02. ÜRÜN DETAY SAYFASI ANA ALAN
===================================================== */
.product-detail-section {
    background: linear-gradient(180deg, #fff 0%, #f7f3ed 100%);
    padding: 42px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
}

    .breadcrumb a:hover {
        color: var(--brand-dark);
    }

    .breadcrumb strong {
        color: var(--text);
    }

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, .75fr);
    gap: 46px;
    align-items: start;
}

/* =====================================================
   03. ÜRÜN GALERİ
===================================================== */
.product-gallery {
    display: grid;
    gap: 16px;
}

.product-main-image {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

    .product-main-image img {
        width: 100%;
        aspect-ratio: 1.18 / 1;
        object-fit: cover;
    }

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumb-btn {
    border: 1px solid var(--line);
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    opacity: .72;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

    .thumb-btn:hover,
    .thumb-btn.is-active {
        opacity: 1;
        border-color: var(--brand);
        transform: translateY(-2px);
    }

    .thumb-btn img {
        width: 100%;
        aspect-ratio: 1.18 / 1;
        object-fit: cover;
    }

/* =====================================================
   04. ÜRÜN SAĞ BİLGİ PANELİ
   Not: Ana sayfadaki .product-meta / .product-actions ile çakışmasın diye scoped yazıldı.
===================================================== */
.product-info {
    position: sticky;
    top: 128px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    padding: 34px;
}

.product-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f4eee4;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.product-info h1 {
    margin: 0;
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.product-summary {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.product-detail-section .product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
}

    .product-detail-section .product-meta div {
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        padding: 14px;
    }

    .product-detail-section .product-meta span,
    .product-price-box span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 6px;
    }

    .product-detail-section .product-meta strong {
        display: block;
        font-size: 14px;
        line-height: 1.3;
    }

.product-price-box {
    margin-top: 18px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    padding: 20px;
}

    .product-price-box strong {
        display: block;
        font-size: 28px;
        line-height: 1;
    }

    .product-price-box small {
        display: block;
        margin-top: 10px;
        color: rgba(255,255,255,.72);
        line-height: 1.45;
    }

.product-detail-section .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.product-benefits {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

    .product-benefits div {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .product-benefits span {
        width: 23px;
        height: 23px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        background: var(--brand);
        color: #fff;
        font-size: 13px;
        font-weight: 900;
    }

    .product-benefits p {
        margin: 0;
        color: #333;
        font-size: 14px;
        line-height: 1.45;
    }

/* =====================================================
   05. TAB ALANI
===================================================== */
.product-tabs-section {
    background: #fff;
    padding: 0 0 72px;
}

.product-tabs {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: #fbfaf7;
}

.tab-btn {
    min-height: 62px;
    padding: 0 26px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: #222;
    font-weight: 900;
    cursor: pointer;
}

    .tab-btn.is-active {
        background: #111;
        color: #fff;
    }

.tab-panel {
    display: none;
    padding: 34px;
}

    .tab-panel.is-active {
        display: block;
    }

    .tab-panel h2 {
        margin: 0;
        font-size: 30px;
        letter-spacing: -.035em;
    }

    .tab-panel p {
        max-width: 980px;
        color: var(--muted);
        font-size: 16px;
        line-height: 1.75;
    }

.spec-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--line);
}

    .spec-table div {
        background: #fff;
        padding: 18px;
    }

    .spec-table span {
        display: block;
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 6px;
    }

    .spec-table strong {
        font-size: 16px;
    }

.delivery-list {
    margin: 22px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

/* =====================================================
   06. BENZER ÜRÜNLER
===================================================== */
.related-products {
    background: var(--soft);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.related-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .related-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

.related-img img {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
}

.related-body {
    padding: 16px;
}

    .related-body h3 {
        margin: 0;
        font-size: 17px;
        line-height: 1.2;
    }

    .related-body p {
        margin: 7px 0 0;
        color: var(--muted);
        font-size: 13px;
    }

    .related-body span {
        display: inline-flex;
        margin-top: 14px;
        font-size: 14px;
        font-weight: 900;
    }

/* =====================================================
   07. ÜRÜN SEO BLOĞU
===================================================== */
.product-seo-area {
    background: linear-gradient(180deg, #fff 0%, #f7f3ed 100%);
    padding: 72px 0;
}

.product-seo-box {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
}

    .product-seo-box > span {
        display: inline-flex;
        margin-bottom: 12px;
        color: var(--brand-dark);
        font-weight: 900;
    }

    .product-seo-box h2 {
        margin: 0;
        font-size: clamp(30px, 3vw, 46px);
        letter-spacing: -.045em;
    }

    .product-seo-box p {
        margin: 18px 0 0;
        max-width: 1050px;
        color: var(--muted);
        line-height: 1.75;
        font-size: 16px;
    }

.product-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

    .product-seo-links a {
        padding: 9px 13px;
        border-radius: 999px;
        background: #f4f0e8;
        color: #222;
        font-size: 13px;
        font-weight: 800;
    }

        .product-seo-links a:hover {
            background: var(--brand);
            color: #fff;
        }

/* =====================================================
   08. DETAIL RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-info {
        position: static;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .product-detail-section {
        padding: 28px 0 54px;
    }

    .product-detail-layout {
        gap: 24px;
    }

    .product-info {
        padding: 24px;
        border-radius: 20px;
    }

    .product-detail-section .product-meta {
        grid-template-columns: 1fr;
    }

    .product-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .tab-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tab-btn {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .tab-panel {
        padding: 24px;
    }

    .spec-table {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-seo-box {
        padding: 24px;
        border-radius: 20px;
    }
}
