/* Detail Produk Page Styles */

/* Container untuk bagian header */
.container-fluid {
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    font-size: 1.2rem;
    margin-right: 20px;
}

.back-btn a {
    color: var(--dark-brown);
}

.spacer {
    width: 20px;
}

/* Ubah warna navbar */
.katalog-page .navbar {
    background-color: #D9D9D9;
}

/* Detail Produk Section */
.detail-produk {
    padding: 30px 0;
    margin-top: 20;
    padding-top: 100px; /* Memberikan ruang agar konten tidak tertutup navbar */
    background-color: #D9D9D9;
}

.detail-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

/* Produk Gallery */
.produk-gallery {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 600px;
}

.gallery-main {
    flex: 1;
    width: 100%;
    position: relative;
}

.gallery-image {
    background-color: #222;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-icon:hover {
    background-color: white;
}

.zoom-icon i {
    font-size: 1.2rem;
    color: var(--dark-brown);
}

/* Produk Info */
.produk-info {
    flex: 1;
    padding-top: 20px;
}

.produk-info h1 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-weight: 700;
}

.produk-ukuran {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 30px;
}

.produk-action {
    margin-top: 30px;
}

.btn-order {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--medium-brown);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background-color: var(--dark-brown);
}

.btn-order i {
    margin-left: 10px;
}

/* Produk Terkait Section */
.produk-terkait {
    padding: 50px 0;
    background-color: #D9D9D9;
}

.produk-terkait h2 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--dark-brown);
}

.terkait-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.terkait-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.terkait-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.terkait-image {
    height: 180px;
    overflow: hidden;
}

.terkait-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terkait-item:hover .terkait-image img {
    transform: scale(1.05);
}

.terkait-info {
    padding: 15px;
    text-align: center;
}

.terkait-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark-brown);
}

.terkait-info p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Modal untuk zoom gambar */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.zoom-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Sesuaikan ukuran logo agar proporsional dengan navbar yang lebih lebar */
.navbar .logo img {
    height: 45px; /* Sedikit lebih besar dari ukuran aslinya */
}

/* Media Queries */
@media (max-width: 992px) {
    .detail-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .produk-gallery,
    .produk-info {
        width: 100%;
        max-width: 100%;
    }
    
    .terkait-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-produk {
        padding-top: 70px; /* Sedikit lebih kecil untuk mobile */
        padding-bottom: 30px;
    }
    
    .container-fluid {
        padding: 0 25px;
    }
    
    .produk-info h1 {
        font-size: 1.8rem;
    }
    
    .produk-ukuran {
        font-size: 1.1rem;
    }
    
    .terkait-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .terkait-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    .detail-produk {
        padding-top: 65px;
        padding-bottom: 20px;
    }
    
    .produk-info h1 {
        font-size: 1.5rem;
    }
    
    .produk-ukuran {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn-order {
        width: 100%;
        justify-content: center;
        padding: 12px 15px;
    }
    
    .zoom-icon {
        width: 35px;
        height: 35px;
        bottom: 10px;
        right: 10px;
    }
    
    .zoom-icon i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .terkait-items {
        grid-template-columns: 1fr;
    }
    
    .terkait-image {
        height: 200px;
    }
}

/* Footer Custom untuk halaman kontak */
footer#katalog {
    background-color: #94704952;
}

/* Override footer color hanya di halaman kontak */
.katalog-page footer {
    background-color: #94704952;
}