/* Latar belakang halaman */
.product-detail-page {
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 15px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    /* --- PERBAIKAN 1: Z-INDEX NAVBAR --- */
    position: relative; 
    z-index: 1; /* Menjaga kontainer di bawah navbar */
}

/* Galeri Gambar */
.carousel-item img {
    border-radius: 10px;
    max-height: 1080px;
    width: 100%;
    object-fit: contain;
}

/* Indikator (thumbnail kecil di bawah) */
.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.carousel-indicators-custom button {
    width: 70px;
    height: 70px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: none;
    transition: 0.3s;
}
.carousel-indicators-custom button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-indicators-custom button.active {
    border: 2px solid #eab94e;
}

/* Tombol panah galeri */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* Pilihan Varian Umum */
.btn-variant {
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    font-weight: bold;
    font-size: 14px;
}
.btn-check:checked + .btn-variant {
    background-color: #eab94e;
    color: #1a1a1a;
    border-color: #eab94e;
}

/* --- PERBAIKAN 2: INPUT JUMLAH & MENGHILANGKAN PANAH BAWAAN --- */
.qty-wrapper { max-width: 120px; }
.custom-qty-input {
    display: flex;
    align-items: center;
    width: 110px;
    height: 35px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
}

/* Menghilangkan panah (spinner) di Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Menghilangkan panah (spinner) di Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
/* ------------------------------------------------------------- */

/* --- PERBAIKAN 3: WARNA TOMBOL PLUS & MINUS (TEMA EMAS/HITAM) --- */
.qty-btn {
    width: 35px;
    height: 100%;
    border: none;
    background: #1a1a1a; /* Background Hitam */
    color: #eab94e;      /* Teks/Ikon Emas */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #eab94e; /* Berubah emas saat disorot */
    color: #1a1a1a;      /* Teks berubah hitam */
}
/* ----------------------------------------------------------------- */

.qty-val {
    flex: 1;
    height: 100%;
    border: none;
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    background-color: #f1f3f5 !important;
    text-align: center;
    font-weight: bold;
    appearance: textfield;
}

/* TOMBOL AKSI (3D & STABIL) */
.btn-buy-now, .btn-add-to-cart {
    height: 45px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    position: relative;
    top: 0;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Efek Menonjol Tombol Beli */
.btn-buy-now {
    background-color: #eab94e;
    color: #fff;
    box-shadow: 0 4px #d4a742;
}

/* Efek Menonjol Tombol Keranjang */
.btn-add-to-cart {
    background-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px #000;
}

/* ANIMASI HOVER (MENONJOL SAAT DISENTUH) */
.btn-buy-now:hover, .btn-add-to-cart:hover {
    top: -2px; /* Naik sedikit */
    color: #fff;
}
.btn-buy-now:hover { box-shadow: 0 6px #d4a742; }
.btn-add-to-cart:hover { box-shadow: 0 6px #000; }

/* ANIMASI PRESS (MENDEM SAAT DIKLIK) */
.btn-buy-now:active, .btn-add-to-cart:active {
    top: 3px; /* Turun ke bawah */
    box-shadow: 0 1px #d4a742;
}
.btn-add-to-cart:active { box-shadow: 0 1px #000; }

.btn-buy-now:disabled { background-color: #ccc !important; cursor: not-allowed; box-shadow: none; top: 0; }

/* Deskripsi Box */
.product-description-container {
    background-color: #f8f9fa;
}

/* --- VARIAN TERPISAH --- */

.variant-group-label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #888;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.btn-variant-name {
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.2s;
}

/* Perbaikan Warna Emas saat dipilih */
.btn-check:checked + .btn-variant-name {
    background-color: #eab94e !important;
    color: #1a1a1a !important;
    border-color: #eab94e !important;
    box-shadow: 0 4px 10px rgba(234, 185, 78, 0.3);
}

.spec-card {
    border-radius: 12px;
    text-align: left;
    min-width: 115px;
    padding: 8px 12px;
    border: 1px solid #eee;
    background-color: #fff;
    transition: all 0.2s;
}

/* Perbaikan Warna Emas untuk Netto saat dipilih */
.btn-check:checked + .spec-card {
    background-color: #eab94e !important;
    color: #1a1a1a !important;
    border-color: #eab94e !important;
    box-shadow: 0 4px 10px rgba(234, 185, 78, 0.2);
}

.spec-card .spec-label {
    font-size: 8px;
    opacity: 0.6;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.spec-card .spec-value {
    font-weight: bold;
    font-size: 14px;
    display: block;
}

.variant-out-of-stock {
    opacity: 0.4;
    text-decoration: line-through;
    pointer-events: none;
    background-color: #f1f1f1;
}

.product-description-container .nav-tabs {
    border-bottom: 1px solid rgba(255, 193, 7, 0.3) !important; /* Garis bawah tipis warna emas transparan */
}

.product-description-container .nav-tabs .nav-link {
    color: #adb5bd !important; /* Abu-abu terang untuk tab biasa agar elegan */
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding-left: 0;
    padding-right: 0;
    margin-right: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.product-description-container .nav-tabs .nav-link:hover {
    color: #ffffff !important; /* Teks berubah putih terang saat di-hover */
    border-bottom: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.product-description-container .nav-tabs .nav-link.active {
    color: #ffc107 !important; /* Emas menyala untuk tab yang sedang AKTIF/DIKLIK */
    border-bottom: 2px solid #ffc107 !important; /* Garis bawah emas tegas */
    font-weight: 800;
}