/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
:root {
    --primary-pink: #EC4899;
    --hover-pink: #d63384;
    --light-bg: #fff0f6;
    --ribbon-green: #00e676;
    --text-dark: #333;
    --text-gray: #777;
    --border-color: #eee;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

body { 
    background-color: #f9f9f9; 
    color: var(--text-dark); 
    padding-top: 80px; /* Sesuaikan dengan tinggi navbar baru */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==========================================================================
   2. NAVBAR (DESKTOP - FIXED & MATCHING VARIABLES)
   ========================================================================== */
.navbar {
    background: white;
    position: fixed; /* Agar tetap di atas saat scroll */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1250px; /* Samakan dengan layout bawah */
    margin: 0 auto;
    padding: 0 30px;
}

/* KIRI: LOGO */
.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px; /* Ukuran logo disesuaikan */
    width: auto;
    object-fit: contain;
}

/* TENGAH: SEARCH & KATALOG */
.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.search-bar {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 20px;
    padding-right: 45px;
    border-radius: 12px; /* Dibuat rounded biar modern */
    border: 1px solid #E2E8F0;
    background: #f9f9f9;
    outline: none;
    transition: 0.3s;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.search-input:focus {
    background: white;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-pink);
    font-size: 1rem;
    cursor: pointer;
}

.nav-catalog {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-catalog:hover {
    background: var(--light-bg);
    color: var(--primary-pink);
}

.icon-catalog {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* KANAN: CART & PROFILE */
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-btn {
    position: relative;
    font-size: 1.4rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    margin-right: 10px;
}

.cart-btn:hover {
    transform: scale(1.1);
    color: var(--primary-pink);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-pink);
    color: white;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

/* =========================================
   3. LAYOUT CATALOG (SIDEBAR + 3 KOLOM)
   ========================================= */
.main-layout-wrapper {
    max-width: 1250px; 
    margin: 40px auto; 
    padding: 0 30px; 
    display: flex; 
    gap: 40px; 
    align-items: flex-start; /* Pastikan sidebar sejajar atas */
}

/* SIDEBAR (Kiri) */
.sidebar-section { 
    width: 250px; /* Lebar Sidebar */
    flex-shrink: 0; 
    position: sticky; 
    top: 110px; 
    z-index: 900; 
}
.category-card { background: white; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.cat-header { background: #F7F8FD; padding: 15px; font-weight: 600; text-align: center; border-bottom: 1px solid var(--border-color); }
.cat-list li a { display: block; padding: 12px 15px; font-size: 13px; color: var(--text-gray); border-bottom: 1px solid var(--border-color); transition: 0.2s; }
.cat-list li a:hover { color: var(--primary-pink); background: var(--light-bg); padding-left: 20px; }

/* PRODUCT SECTION (Kanan) */
.product-section { flex: 1; }

.filter-bar {
    display: flex; justify-content: flex-end; align-items: center;
    background: #F7F8FD; padding: 15px 30px; border: 1px solid var(--border-color);
    border-bottom: none; border-radius: 8px 8px 0 0; color: var(--text-gray); font-size: 13px; margin-bottom: 0;
}
.filter-left, .filter-right { display: none; } /* Hanya muncul di mobile */

/* GRID 3 KOLOM */
.product-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    background: white; 
    padding: 30px; 
    border: 1px solid var(--border-color); border-top: none;
    border-radius: 0 0 8px 8px; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.02);
}

/* KARTU PRODUK */
.product-card {
    background: white; 
    border: 1px solid var(--border-color); 
    border-radius: 10px;
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s ease-in-out;
    width: 100%; 
    height: 511px; /* Tinggi Fix */
}
.product-card:hover { transform: scale(1.03); box-shadow: 0 0 15px 5px #e88bb9; z-index: 10; border-color: white; }

.ribbon-new {
    position: absolute; top: 15px; left: -30px; background: var(--ribbon-green);
    color: white; width: 100px; text-align: center; transform: rotate(-45deg);
    font-size: 10px; font-weight: bold; padding: 4px 0; z-index: 5; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* GAMBAR */
.p-image { 
    width: 100%; 
    height: 334px; 
    background: #f0f0f0; 
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.product-img { 
    width: auto; 
    max-width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.pink-bg { background: #ffccbc; } .blue-bg { background: #bbdefb; } .brown-bg { background: #d7ccc8; } .orange-bg { background: #ffe0b2; }

/* Detail Produk */
.p-details { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.p-details h4 { font-size: 16px; font-weight: 600; margin-bottom: 5px; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-details .author { font-size: 12px; color: #999; margin-bottom: 10px; }
.p-details .price { color: var(--primary-pink); font-weight: 700; font-size: 16px; margin-bottom: 15px; }
.p-actions { display: flex; gap: 10px; margin-top: auto; }

.btn-detail { 
    flex: 1; background: #EC4899; color: white; border: none; padding: 10px; border-radius: 5px; 
    font-size: 13px; cursor: pointer; transition: 0.2s; text-align: center; display: flex; align-items: center; justify-content: center;
}
.btn-detail:hover { background: var(--hover-pink); }
.btn-cart { width: 40px; height: 40px; background: #FFECF6; color: var(--primary-pink); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Pagination */
.pagination { margin-top: 50px; display: flex; justify-content: center; gap: 10px; }
.page-num { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-weight: 500; color: #888; transition: 0.2s; }
.page-num.active, .page-num:hover { background: var(--primary-pink); color: white; border-color: var(--primary-pink); box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3); }

/* =========================================
   4. CSS HALAMAN DETAIL BUKU
   ========================================= */
.detail-page-wrapper { max-width: 1250px; margin: 40px auto; display: flex; flex-direction: column; gap: 30px; align-items: center; }
.page-title-section { width: 100%; max-width: 1230px; border-bottom: 2px solid var(--primary-pink); padding-bottom: 10px; margin-bottom: 20px; width: fit-content; align-self: flex-start; margin-left: 10px; }
.page-title { font-size: 24px; font-weight: 700; color: var(--text-dark); }

.book-hero-card {
    width: 1230px; height: 420px; background: white; border: 1px solid var(--primary-pink);
    border-radius: 4px; display: flex; padding: 30px; gap: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.hero-image { width: 250px; height: 100%; display: flex; align-items: center; justify-content: center; background: #f9f9f9; }
.hero-image img { max-width: 100%; max-height: 100%; object-fit: cover; box-shadow: 5px 5px 15px rgba(0,0,0,0.2); }
.hero-info { flex: 1; display: flex; flex-direction: column; }
.book-title-main { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.book-price-main { font-size: 24px; font-weight: 700; color: var(--primary-pink); margin-bottom: 20px; }
.book-meta-table { width: 100%; margin-bottom: auto; }
.book-meta-table td { padding: 5px 0; font-size: 15px; }
.meta-label { width: 150px; color: var(--text-gray); font-weight: 500; }
.meta-value { color: var(--text-dark); font-weight: 600; }
.hero-buttons { display: flex; gap: 20px; margin-top: 20px; }
.btn-hero-outline, .btn-hero-fill { width: 417px; height: 41px; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
.btn-hero-outline { background: white; border: 1px solid var(--primary-pink); color: var(--primary-pink); }
.btn-hero-outline:hover { background: var(--light-bg); }
.btn-hero-fill { background: var(--primary-pink); border: none; color: white; }
.btn-hero-fill:hover { background: var(--hover-pink); }

/* --- STYLE TABS SINOPSIS --- */
.synopsis-wrapper { width: 1230px; display: flex; flex-direction: column; }
.synopsis-tabs { display: flex; gap: 0; }
.tab-btn { padding: 12px 40px; border: 1px solid #eee; background: white; font-size: 14px; font-weight: 500; color: #777; cursor: pointer; transition: 0.3s; font-family: 'Poppins', sans-serif; }
.tab-btn.active { background: var(--primary-pink); color: white; border-color: var(--primary-pink); }
.synopsis-content-box { width: 1230px; min-height: 400px; background: white; padding: 40px; border: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.synopsis-content-box h3, .review-heading, .author-name { font-family: 'Times New Roman', serif; font-weight: 700; color: #333; }
.synopsis-content-box h3 { font-size: 18px; margin-bottom: 20px; }
.synopsis-content-box p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 15px; text-align: justify; }

/* --- STYLE AUTHOR & REVIEW --- */
.author-layout { display: flex; gap: 40px; align-items: flex-start; }
.author-image-col { flex-shrink: 0; }
.author-img-placeholder { width: 200px; height: 180px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ccc; }
.author-info-col { flex: 1; }
.author-name { font-size: 24px; margin-bottom: 5px; }
.author-birth { font-size: 14px; color: #888; margin-bottom: 25px; }
.author-section { margin-bottom: 20px; }
.author-section h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.author-list { list-style: disc; padding-left: 20px; font-size: 14px; color: #555; line-height: 1.6; }
.author-links a { color: #007bff; text-decoration: underline; margin-right: 5px; }

.review-heading { font-size: 20px; margin-bottom: 25px; }
.review-card { border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 20px; display: flex; gap: 20px; background: white; }
.review-avatar i { font-size: 45px; color: #888; }
.review-content { flex: 1; }
.reviewer-name { font-size: 15px; font-weight: 700; margin-bottom: 5px; font-family: 'Poppins', sans-serif; }
.review-stars { color: #FFC107; font-size: 12px; margin-bottom: 10px; }
.review-text { font-style: italic; color: #555; margin-bottom: 0; }

/* =========================================
   UPDATE: BUKU SERUPA (DESKTOP)
   ========================================= */
.related-section { width: 100%; max-width: 1250px; margin-top: 40px; }
.related-section .section-heading { margin-bottom: 20px; font-size: 24px; font-weight: 700; }
.related-section .pink-text { color: #EC4899; }
.related-section .product-grid { display: flex; overflow-x: auto; gap: 25px; padding: 10px 5px 30px 5px; grid-template-columns: none; scrollbar-width: thin; scrollbar-color: var(--primary-pink) #eee; }
.related-section .product-grid::-webkit-scrollbar { height: 8px; }
.related-section .product-grid::-webkit-scrollbar-track { background: #eee; border-radius: 10px; }
.related-section .product-grid::-webkit-scrollbar-thumb { background: var(--primary-pink); border-radius: 10px; }
.related-section .product-card { min-width: 265px; max-width: 265px; height: 511px; flex-shrink: 0; }
.related-section .p-image { height: 334px; }
.view-all-container { display: flex; justify-content: center; margin-top: 30px; margin-bottom: 40px; }
.btn-view-all { width: 250px; height: 40px; background: var(--primary-pink); color: white; border: none; border-radius: 50px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
.btn-view-all:hover { background: var(--hover-pink); transform: scale(1.05); }

/* =========================================
   5. FOOTER (DEFAULT)
   ========================================= */
.footer-section { margin-top: 80px; background: white; border-top: 1px solid var(--border-color); }
.footer-container { padding: 50px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: 1250px; margin: 0 auto; }
.footer-logo img { width: 125px; margin-bottom: 10px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; color: var(--text-gray); }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 35px; height: 35px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #555; }
.footer-bottom { background: var(--primary-pink); color: white; text-align: center; padding: 15px; font-size: 12px; }

/* =========================================
   6. RESPONSIVE TABLET (769px - 1024px)
   ========================================= */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body { padding-top: 100px; }
    .navbar-wrapper { height: 80px; padding: 0 30px; } /* Reset navbar tablet if necessary */
    .nav-container { padding: 0 30px; max-width: 896px; } 
    /* Sisanya sama seperti sebelumnya... */
    
    .sidebar-section { display: none; }
    .main-layout-wrapper { flex-direction: column; align-items: center; padding: 0 30px; margin-top: 20px; }
    .product-section { width: 100%; max-width: 896px; }
    .filter-bar { width: 100%; height: 60px; border-radius: 12px; background: #F8F9FD; border: 1px solid #eee; margin-bottom: 20px; padding: 0 25px; display: flex; justify-content: space-between; align-items: center; }
    .filter-left, .filter-right { display: flex; gap: 10px; }
    
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 0; border: none; background: transparent; box-shadow: none; }
    .product-card { height: auto; min-height: 480px; }
    .p-image { height: 220px; } 
    .product-img { max-width: 100%; width: 100%; }

    .detail-page-wrapper { padding: 0 30px; align-items: center; }
    .page-title-section { width: 100%; max-width: 896px; border-bottom-width: 3px; }
    .page-title { font-size: 28px; }
    .book-hero-card { width: 100%; max-width: 896px; height: auto; min-height: 420px; border: 1px solid #eee; padding: 30px; gap: 30px; }
    .hero-image { width: 250px; height: 356px; flex-shrink: 0; }
    .hero-info { justify-content: center; }
    .book-title-main { font-size: 24px; }
    .btn-hero-outline, .btn-hero-fill { height: 41px; width: auto; flex: 1; font-size: 13px; }
    .synopsis-wrapper, .synopsis-content-box { width: 100%; max-width: 896px; }
    .synopsis-content-box { height: auto; min-height: 400px; }
    
    .related-section { width: 100%; max-width: 896px; }
    .related-section .section-heading { color: black; font-size: 20px; }
    .related-section .product-grid { display: flex; overflow-x: auto; gap: 20px; grid-template-columns: none; scrollbar-width: none; }
    .related-section .product-grid::-webkit-scrollbar { display: none; }
    .related-section .product-card { min-width: 200px; max-width: 200px; flex-shrink: 0; border: none; background: transparent; box-shadow: none; height: auto; }
    .related-section .ribbon-new, .related-section .p-actions { display: none; }
    .related-section .p-image { height: 250px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .view-all-container { display: flex; justify-content: center; margin-bottom: 40px; }

    .footer-section { margin-top: 50px; }
    .footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr; grid-template-rows: auto auto; width: 100%; max-width: 896px; margin: 0 auto; padding: 50px 0; gap: 20px; text-align: left; }
    .footer-col:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
    .footer-col:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
    .footer-col:nth-child(3) { grid-column: 3; grid-row: 1; }
    .footer-col:nth-child(4) { grid-column: 3; grid-row: 2; margin-top: -10px; }
    .footer-logo img { width: 125px; height: 114.46px; object-fit: contain; margin-bottom: 15px; }
    .tagline p { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
    .footer-col h4 { font-family: 'Times New Roman', serif; font-size: 18px; margin-bottom: 15px; }
    .footer-col ul li { font-size: 14px; }
    .contact-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; margin-bottom: 10px; color: #444; }
    .contact-list li i { font-size: 14px; margin: 0; }
    .footer-bottom { height: 45px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 13px; }
    .footer-bottom p { margin: 0; }
}

/* =========================================
   7. RESPONSIVE MOBILE (MAX 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    body { padding-top: 80px; }
    
    /* --- NAVBAR MOBILE 1 BARIS --- */
    .navbar { 
        height: 70px; 
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .nav-container { 
        flex-wrap: nowrap; /* Tetap 1 Baris */
        gap: 8px;          /* Jarak diperkecil agar muat */
        padding: 0 10px;   /* Padding diperkecil sedikit */
        width: 100%;
    }
    
    /* 1. LOGO (KIRI) */
    .nav-left { 
        flex: 0 0 auto; 
        width: auto;
    }
    .logo-img { height: 32px; } /* Logo diperkecil sedikit lagi */
    
    /* 2. CENTER: SEARCH + KATALOG ICON */
    .nav-center { 
        flex: 1; /* Mengambil sisa ruang di tengah */
        width: auto;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px; /* Jarak antara Search dan Ikon Katalog */
        justify-content: flex-end; /* Rata kanan agar search nempel ke cart jika search pendek, atau full */
    }
    
    /* Kotak Search (Fleksibel) */
    .search-bar { 
        display: block; 
        flex: 1; /* Ambil semua ruang sisa */
        width: auto; 
        max-width: 100%; 
    }
    
    .search-input { 
        height: 36px;           /* Tinggi compact */
        font-size: 12px; 
        padding: 0 30px 0 10px; 
        width: 100%;
        border-radius: 8px;
    }
    
    .search-icon {
        font-size: 0.8rem;
        right: 8px;
    }
    
    /* TOMBOL KATALOG (Muncul sebagai Ikon Saja) */
    .nav-catalog { 
        display: flex;       /* UPDATE: Dimunculkan kembali */
        align-items: center;
        justify-content: center;
        padding: 0;
        background: transparent;
    }
    
    .nav-catalog span { 
        display: none;       /* UPDATE: Teks "Katalog" disembunyikan */
    }
    
    .icon-catalog {
        width: 22px;         /* Ukuran Ikon Buku */
        height: 22px;
        object-fit: contain;
        filter: grayscale(100%); /* Opsional: Biar warnanya netral (abu) */
        opacity: 0.7;
    }

    /* 3. CART (KANAN) */
    .nav-right { 
        flex: 0 0 auto; 
        width: auto;
    }
    
    .cart-btn { 
        font-size: 1.3rem; 
        margin-right: 0; 
    }
    .badge-count {
        width: 14px; height: 14px; font-size: 8px; top: -2px; right: -5px;
    }

    /* --- LAYOUT KONTEN LAINNYA (TETAP) --- */
    .main-layout-wrapper { flex-direction: column; padding: 0 15px; margin-top: 10px; gap: 15px; }
    .sidebar-section { display: none; }
    
    .filter-bar { display: flex; justify-content: space-between; width: 100%; height: 50px; padding: 0 15px; margin-top: 5px; margin-bottom: 10px; border-radius: 0; border: none; border-bottom: 1px solid #eee; }
    .filter-left, .filter-right { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
    .product-card { height: auto; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
    .p-image { height: 180px; }
    .product-img { max-width: 100%; width: 100%; } 
    .ribbon-new { width: 80px; font-size: 8px; top: 10px; left: -25px; }
    .p-details { padding: 10px; }
    .p-details h4 { font-size: 13px; line-height: 1.4; height: 38px; margin-bottom: 4px; }
    .p-details .author { font-size: 10px; margin-bottom: 5px; }
    .p-details .price { font-size: 14px; margin-bottom: 10px; }
    .p-actions { gap: 5px; }
    .btn-detail { font-size: 10px; padding: 8px 5px; }
    .btn-cart { width: 32px; height: 32px; flex-shrink: 0; }
    .page-num { width: 30px; height: 30px; font-size: 12px; }

    .detail-page-wrapper { width: 100%; padding: 0 15px; border: none; box-shadow: none; }
    .book-hero-card { flex-direction: column; height: auto; padding: 20px; width: 100%; border: 1px solid #eee; }
    .hero-image { width: 100%; height: auto; margin-bottom: 20px; }
    .hero-image img { max-width: 160px; }
    .hero-buttons { flex-direction: column; width: 100%; margin-top: 20px; }
    .btn-hero-outline, .btn-hero-fill { width: 100%; height: 45px; }
    .synopsis-wrapper { width: 100%; margin-top: 30px; }
    .synopsis-tabs { gap: 5px; }
    .tab-btn { flex: 1; padding: 12px 0; font-size: 13px; border-radius: 8px 8px 0 0; border-bottom: none; }
    .synopsis-content-box { width: 100%; height: auto; overflow-y: visible; padding: 25px 20px; border-radius: 0 0 10px 10px; }
    .author-layout { flex-direction: column; align-items: center; gap: 25px; }
    .author-image-col { width: 100%; display: flex; justify-content: center; }
    .author-img-placeholder { width: 140px; height: 140px; font-size: 40px; }
    .review-card { flex-direction: column; gap: 15px; }
    .related-section { width: 100%; }
    .related-section .product-grid { display: flex; overflow-x: auto; gap: 15px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }
    .related-section .product-card { min-width: 150px; max-width: 150px; margin-bottom: 5px; height: auto; }
    .related-section .p-image { height: 160px; }
    .view-all-container { margin: 20px 0 30px 0; }
    .btn-view-all { width: auto !important; min-width: 180px; }

    .footer-section { margin-top: 0; }
    .footer-container { grid-template-columns: 1fr; text-align: left; padding: 40px 25px; gap: 30px; }
    .tagline p { margin-left: 5px; font-size: 14px; white-space: normal; }
    .footer-col h4 { font-family: 'Times New Roman', serif; font-size: 18px; }
    .contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; white-space: normal; }
    .contact-list li i { margin-top: 3px; }
    .social-icons { justify-content: flex-start; }
    .footer-bottom { background: #F44995; padding: 25px 20px; height: auto; display: block; }
}
/* =========================================
   8. FIX: GLOBAL MODAL STYLE (MENCEGAH BOCOR)
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 9999;
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: white; width: 80%; max-width: 400px; border-radius: 15px;
    overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header { background: #F8F9FD; padding: 15px; text-align: center; font-size: 16px; font-weight: 600; color: #333; border-bottom: 1px solid #eee; }
.modal-list { padding: 10px 0; }
.modal-list li a { display: block; padding: 12px 20px; font-size: 14px; color: #555; transition: 0.2s; border-bottom: 1px solid #f9f9f9; }
.modal-list li a:hover { background: #fff0f6; color: #ff4081; padding-left: 25px; }