body { font-family: 'Montserrat', sans-serif; color: #333; }

.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Kutu 1: Intro (Üst Kısım) */
.hero-box {
    display: flex;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.hero-img-col {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-img-col img#main-product-img { 
    width: 280px; 
    height: 280px;
    object-fit: contain;
    mix-blend-mode: multiply; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GALERİ STİLLERİ */
.thumbnails-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    width: 100%;
    margin-top: 15px;
    scrollbar-width: none; /* Firefox */
}
.thumbnails-strip::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.thumbnail-item {
    flex: 0 0 60px;
    height: 60px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.thumbnail-item img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumbnail-item.active { border: 2px solid #2f483c; transform: scale(1.05); }

.set-primary-btn {
    margin-top: 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.set-primary-btn:hover { background: #2f483c; color: #fff; border-color: #2f483c; }

.hero-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-name {
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}
.product-title {
    font-size: 2rem;
    color: #111;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Hemen Al Butonu */
.buy-button {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.buy-button:hover {
    transform: scale(1.05);
    background: #2f483c;
}

/* Adresses These Concerns */
.concerns-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.concerns-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; }
.concerns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.c-pill {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Ratings & Attributes */
.ratings-attrs-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.ratings-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.r-score { font-size: 3rem; font-weight: 700; color: #111; line-height: 1; margin-bottom: 8px; }
.r-stars { color: #f39c12; font-size: 1.2rem; letter-spacing: 2px; }
.r-count { font-size: 0.85rem; color: #888; margin-top: 5px; }

.attrs-col {
    flex: 1;
}
.attrs-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; }
.attrs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.a-pill {
    border: 1px solid #eef0f2;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
    background: #fdfdfd;
}

/* Picky Analysis Widget */
.analysis-superbox {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.a-left { flex: 1; min-width: 350px; }
.a-right { flex: 1; min-width: 300px; }

.section-head { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.section-sub { font-size: 0.85rem; color: #888; margin-bottom: 25px; }

.donut-flex {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* SVG DOUGHNUT */
.svg-donut {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}
.donut-ring { stroke: #f0f0f0; stroke-width: 15; fill: transparent; }
.donut-segment {
    stroke-width: 15;
    fill: transparent;
    transition: stroke-dashoffset 1s ease-in-out;
}
.d-green { stroke: #4caf50; }
.d-yellow { stroke: #ffc107; }
.d-red { stroke: #f44336; }
.d-grey { stroke: #e0e0e0; }

.legend-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.lg-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.lg-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top:2px; }
.lg-p.green { background: #4caf50; }
.lg-p.yellow { background: #ffc107; }
.lg-p.red { background: #f44336; }
.lg-p.grey { background: #e0e0e0; }

.lg-text { font-size: 0.9rem; font-weight: 600; color: #444; cursor: pointer; display: flex; flex-direction: column; }
.lg-text:hover { color: #000; }
.lg-count { margin-right: 5px; font-weight: 700; }

.lg-expandable {
    display: none;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
    line-height: 1.4;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 6px;
    width: 250px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}
.lg-text.open .lg-expandable { display: block; }

/* Compatibility Accordions */
.compat-acc { display: flex; flex-direction: column; gap: 10px; }
.ca-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
}
.ca-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ca-title {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ca-icon { font-size: 1.2rem; }
.ca-badges { display: flex; gap: 10px; }
.bdg { font-size: 0.8rem; padding: 4px 10px; border-radius: 12px; font-weight: 600; }
.bdg.good { color: #0d6efd; background: #e6f2ff; }
.bdg.bad { color: #dc3545; background: #fceced; }

.ca-body {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
}
.ca-item.open .ca-body { display: block; }

.ing-row { margin-bottom: 10px; }
.ing-row strong { display: block; margin-bottom: 4px; }
.ing-r-good { color: #0d6efd; }
.ing-r-bad { color: #dc3545; }

/* Horizontal Scrollbar Styling */
.horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}
.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

@media(max-width: 768px) {
    .product-container {
        overflow-x: hidden !important;
    }
    .hero-box, .ratings-attrs-box, .analysis-superbox { 
        flex-direction: column; 
        padding: 20px !important; 
        gap: 20px !important;
    }
    /* Donut ve Legend mobilde de yan yana kalsın */
    .donut-flex { 
        flex-direction: row !important; 
        align-items: center; 
        gap: 15px !important;
        justify-content: flex-start !important;
    }
    .svg-donut {
        width: 90px !important;
        height: 90px !important;
        flex-shrink: 0;
    }
    .legend-list {
        gap: 8px !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    .lg-item {
        max-width: 100%;
        overflow: hidden;
    }
    .lg-text {
        font-size: 0.8rem !important;
        max-width: 100%;
        overflow: hidden;
    }
    .lg-expandable {
        width: auto !important;
        max-width: calc(100vw - 80px) !important;
        overflow-y: auto;
        max-height: 250px;
    }
    .a-left, .a-right {
        min-width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    
    .hero-img-col { flex: 0 0 auto; width: 100%; height: auto; margin-bottom: 20px; }
    
    .concerns-col, .attrs-col {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .muadiller-section > div {
        /* Slider yapısı için grid yerine flex kullandığımızdan burayı güncelliyoruz */
        display: flex !important;
    }

    /* Mobil alt menü arkasına gizlenmesin */
    .product-container {
        padding-bottom: 100px !important;
    }

    /* Rating popup ve Satın Al dropdown mobil tab bar üstünde olsun */
    #rating-popup {
        z-index: 10001 !important;
    }
    #buy-dropdown-menu {
        z-index: 10001 !important;
    }
}

@media(max-width: 480px) {
    .concerns-list {
        grid-template-columns: 1fr !important;
    }
    .a-pill, .c-pill {
        font-size: 0.8rem !important;
        padding: 8px !important;
    }
    .product-title {
        font-size: 1.5rem !important;
    }
}
