/* ====================================================
   ÜRÜN DETAY SAYFASI - "PREMIUM SHOWROOM" KONSEPTİ
   ==================================================== */

.showroom-detail-wrapper {
    background-color: #f8fafc; /* Temiz ana zemin */
    min-height: 100vh;
}

/* --- BREADCRUMB --- */
.showroom-breadcrumb .breadcrumb {
    font-size: 0.85rem;
    font-weight: 600;
}
.showroom-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}
.showroom-breadcrumb a:hover {
    color: #05a0d4;
}
.breadcrumb-item.active {
    color: #0f172a;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #cbd5e1;
}

/* --- SOL: GÖRSEL SAHNESİ (SHOWROOM STAGE) --- */
.showroom-stage-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    cursor: zoom-in;
}

.stage-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(5,160,212,0.06) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathingGlow 4s infinite alternate ease-in-out;
}

@keyframes breathingGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.stage-glass-panel {
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* --- MODAL ZOOM STYLES --- */
.zoom-modal-stage {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: crosshair;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

#zoomModalImage {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.zoom-modal-stage:hover #zoomModalImage {
    transform: scale(2.5);
}

.fallback-hero-image {
    opacity: 0.05;
    filter: grayscale(100%);
    width: 50%;
}

/* --- SAĞ: BİLGİ ALANI --- */
.showroom-product-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Glass Pill Badge */
.glass-pill {
    background: rgba(5, 160, 212, 0.08);
    backdrop-filter: blur(10px);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(5, 160, 212, 0.15);
    display: inline-flex;
    align-items: center;
}

/* --- TEKNİK KODLAR (GLASS CARDS) --- */
.showroom-codes-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.code-glass-card {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.code-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.code-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.oem-card .code-icon-box {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

.stock-card .code-icon-box {
    background: rgba(5, 160, 212, 0.1);
    color: #05a0d4;
}

.code-text-box {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.c-val {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
    color: #0f172a;
}

/* --- AÇIKLAMA METNİ --- */
.showroom-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 14px;
}

.showroom-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #05a0d4;
    border-radius: 4px;
}

.recommendation-section-title {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
}

.glass-box-light {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.desc-content p {
    font-size: 1.05rem;
}

/* --- UYUMLULUK KAPSÜLLERİ (INTERACTIVE CAPSULES) --- */
.compatibility-capsules-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

.car-capsule {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.car-capsule:hover {
    border-color: #05a0d4;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 160, 212, 0.08);
}

.car-logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-right: 12px;
    transition: all 0.3s;
}

.car-capsule:hover .car-logo-circle {
    background: #05a0d4;
    color: #ffffff;
}

.car-info {
    display: flex;
    flex-direction: column;
}

.c-brand {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.c-model {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* İnce Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ====================================================
   MOBİL OPTİMİZASYON
   ==================================================== */
@media (max-width: 991px) {
    .showroom-stage-container {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-width: 320px !important;
        margin-bottom: 1.5rem;
    }

    .showroom-product-title {
        font-size: 1.45rem !important;
    }

    .showroom-section-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }

    .recommendation-section-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    .showroom-codes-grid {
        flex-direction: column;
        gap: 15px;
    }

    .code-glass-card {
        width: 100%;
    }

    .compatibility-capsules-container {
        grid-template-columns: 1fr;
    }
}

/* ====================================================
   FLUID CONTAINER VE BÜYÜK EKRAN OPTİMİZASYONU
   ==================================================== */
.showroom-fluid-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* Yalnızca 1600px ve üzeri (Gerçek Geniş Monitörler - Ölçeği Büyütülmemiş Geniş Ekranlar) */
@media (min-width: 1600px) {
    .showroom-fluid-container {
        max-width: 1540px !important;
    }
    .showroom-stage-container {
        max-width: 360px !important;
        max-height: 360px !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
    }
    .product-hero-image {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
    }
    .showroom-product-title {
        font-size: 2.15rem !important;
    }
    .showroom-section-title {
        font-size: 1.35rem !important;
    }
}

/* ====================================================
   ÖNERİLEN ÜRÜNLER İÇİN KİBAR VE KOMPAKT KARTLAR
   ==================================================== */
.product-recommendations-section .clean-product-card {
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
}

.product-recommendations-section .clean-img-box {
    aspect-ratio: 1 / 1 !important;
}

.product-recommendations-section .clean-info-box {
    padding: 10px 12px !important;
}

.product-recommendations-section .clean-product-name {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 2 !important;
}

.product-recommendations-section .product-codes-row {
    gap: 6px !important;
}

.product-recommendations-section .code-box {
    padding: 3px 6px !important;
}

.product-recommendations-section .code-label {
    font-size: 0.58rem !important;
}

.product-recommendations-section .code-value {
    font-size: 0.72rem !important;
}

.product-recommendations-section .category-badge {
    display: none !important;
}

/* ====================================================
   MOBİLDE YATAY KAYDIRMA (HORIZONTAL SCROLL / SWIPE)
   ==================================================== */
@media (max-width: 991px) {
    .product-recommendations-section .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding-bottom: 20px !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        -ms-overflow-style: none !important; /* IE ve Edge için gizle */
        scrollbar-width: none !important; /* Firefox için gizle */
    }

    .product-recommendations-section .row::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera için gizle */
    }

    .product-recommendations-section .row > .col {
        flex: 0 0 auto !important;
        width: 230px !important; /* Mobilde her bir kartın ideal dokunmatik genişliği */
        max-width: 75vw !important; /* Küçük ekranlarda taşmasın, yandaki kart da gözüksün */
        scroll-snap-align: start !important;
        padding: 0 !important; /* Gap kullandığımız için col paddinglerini sıfırlıyoruz */
    }
}

/* ====================================================
   KÜÇÜK TELEFON EKRANLARI İÇİN BAŞLIK BOYUTLANDIRMASI (MAX 575PX)
   ==================================================== */
@media (max-width: 575px) {
    .showroom-product-title {
        font-size: 1.25rem !important;
    }

    .showroom-section-title {
        font-size: 1.05rem !important;
    }

    .recommendation-section-title {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
    }
}
