/* ==========================================================================
   DETAIL PAGE STYLESHEET (DARK MODE)
   File: css/detail.css
   ========================================================================== */

/* --- 1. GLOBAL & TYPOGRAPHY --- */
/* Menggunakan font Poppins agar sama persis dengan index.html */
body.detail-page {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    overflow-x: hidden;
}

/* Memastikan semua heading menggunakan Poppins */
.detail-page h1, 
.detail-page h2, 
.detail-page h3, 
.detail-page h4, 
.detail-page h5, 
.detail-page h6, 
.detail-page .logo-text {
    font-family: 'Poppins', sans-serif !important;
    color: #fff;
    margin-top: 0;
}

/* --- 2. HEADER --- */
.detail-page .header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #121212;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-page .header-left, 
.detail-page .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-page .logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

.detail-page .menu-icon, 
.detail-page .cart-icon {
    font-size: 1.2rem;
    color: #e0e0e0;
    cursor: pointer;
}

.detail-page .cart-icon {
    position: relative;
}

.detail-page .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #fff;
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- 3. PRODUCT LAYOUT --- */
.detail-page .product-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- 4. MEDIA GALLERY (KOLOM KIRI) --- */
.detail-page .product-gallery {
    flex: 1.2;
    max-width: 600px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Container Media 4:3 */
.detail-page .main-media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #1a1a1a;
    overflow: hidden;
    border-radius: 4px;
}

/* Transisi Fade untuk Gambar/Video */
.detail-page .gallery-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.4s ease-in-out; 
    z-index: 1;
}

.detail-page .gallery-media.active {
    opacity: 1;
    z-index: 2;
}

/* Thumbnail Grid 4:3 */
.detail-page .thumbnail-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto; 
    padding-bottom: 5px; 
}

/* Scrollbar tipis untuk thumbnail */
.detail-page .thumbnail-grid::-webkit-scrollbar {
    height: 6px;
}
.detail-page .thumbnail-grid::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.detail-page .thumbnail-item {
    flex: 0 0 calc(25% - 7.5px); 
    aspect-ratio: 4 / 3;
    background-color: #1a1a1a;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.detail-page .thumbnail-item.active-thumb {
    border-color: #fff;
}

.detail-page .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; 
}

/* --- 5. PRODUCT INFO (KOLOM KANAN) --- */
.detail-page .product-info {
    flex: 1;
}

.detail-page .breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.detail-page .breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-page .breadcrumb a:hover {
    color: #fff;
}

.detail-page .product-title {
    margin: 10px 0;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.detail-page .price {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
}

/* Tombol Add to Cart */
.detail-page .btn-add-cart {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #121212;
    border: none;
    margin: 25px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    border-radius: 2px;
}

.detail-page .btn-add-cart:hover {
    background: #e0e0e0;
}

/* --- 6. ACCORDION (DESIGNER NOTES) --- */
.detail-page .details-accordion details summary {
    padding: 15px 0;
    border-top: 1px solid #333;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: #e0e0e0;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-page .details-accordion details:last-child summary {
    border-bottom: 1px solid #333;
}

.detail-page .accordion-content {
    padding: 10px 0 20px 0;
    color: #aaa;
    line-height: 1.8;
    font-size: 14px;
}

.detail-page .accordion-content p {
    color: #aaa;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.detail-page .accordion-content ul {
    padding-left: 20px;
    margin: 0;
}

.detail-page .accordion-content li {
    margin-bottom: 8px;
}

/* --- 7. RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 768px) {
    .detail-page .product-container {
        flex-direction: column;
        margin-top: 20px;
    }
    
    .detail-page .product-gallery {
        max-width: 100%;
    }
    
    .detail-page .header-custom {
        padding: 15px 20px;
    }
    
    .detail-page .product-title {
        font-size: 1.8rem;
    }
}