/* assets/css/style.css - FINAL CLEAN VERSION */

/* =========================================
   1. GLOBAL LAYOUT & RESET
   ========================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    background-color: var(--soft-cream);
    color: var(--primary-black);
    overflow-x: hidden;
}

footer {
    margin-top: auto; /* Sticky Footer Logic */
}

/* =========================================
   2. VARIABLES & TYPOGRAPHY
   ========================================= */
:root {
    --primary-black: #1a1a1a;
    --primary-gold: #d4af37;
    --hover-gold: #b39028;
    --soft-cream: #f9f7f2;
    --text-grey: #555;
}

h1, h2, h3, h4, h5, .brand-font, 
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Cinzel', serif;
}

.tracking-widest { letter-spacing: 5px; }
.tracking-wide { letter-spacing: 2px; }
.hover-gold:hover { color: var(--primary-gold) !important; transition: 0.3s; }

/* =========================================
   3. NAVBAR (GLASSMORPHISM)
   ========================================= */
.navbar-zyra {
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* =========================================
   4. HERO SECTION (PARALLAX BANNER)
   ========================================= */
.hero-section {
    height: 85vh;
    background: url('../img/baground.jpeg'); /* Pastikan nama file benar */
    background-color: #1a1a1a; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay Gelap */
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* =========================================
   5. BUTTONS & UI ELEMENTS
   ========================================= */
.btn-gold {
    background-color: var(--primary-gold);
    color: white;
    border: 1px solid var(--primary-gold);
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-gold:hover {
    background-color: var(--hover-gold);
    border-color: var(--hover-gold);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
    border: 1px solid var(--primary-gold);
    color: var(--primary-black);
    border-radius: 50px;
    padding: 8px 25px;
}
.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: white;
}

/* Override Bootstrap Colors */
.text-primary { color: var(--primary-black) !important; }
.text-warning { color: var(--primary-gold) !important; }

/* =========================================
   6. PRODUCT CARD (KATALOG & BEST SELLER)
   ========================================= */
.product-card, .product-card-premium {
    border: 1px solid transparent; /* Premium border diatur hover */
    background: white;
    transition: all 0.4s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

/* Efek Hover Kartu */
.product-card:hover, .product-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.product-card-premium { border: 1px solid #eee; } /* Border awal premium */
.product-card-premium:hover { border-color: #d4af37; } /* Border emas hover */

/* --- [CRITICAL] GAMBAR PRODUK FIX --- */
.product-img-wrapper {
    height: 300px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #f8f8f8 !important;
    border-radius: 8px 8px 0 0;
}

.product-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.product-card:hover img, .product-card-premium:hover img {
    transform: scale(1.1) !important; /* Zoom In Effect */
}

.stretched-link::after {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: "";
}

/* Badge Best Seller */
.badge-bestseller {
    position: absolute; top: 15px; left: 15px;
    background: #1a1a1a; color: #d4af37;
    padding: 5px 12px; font-size: 0.7rem; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px;
    z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Overlay Tombol (Mata & Tas) */
.card-action-overlay, .hover-overlay {
    position: absolute; bottom: -60px; left: 0; right: 0;
    padding: 15px; background: rgba(255, 255, 255, 0.95);
    display: flex; justify-content: center; gap: 10px;
    transition: bottom 0.4s ease; z-index: 2;
}
.product-card:hover .hover-overlay, .product-card-premium:hover .card-action-overlay {
    bottom: 0;
}

/* Judul Dekorasi Emas */
.section-title-decor {
    display: inline-block; position: relative;
    padding-bottom: 15px; margin-bottom: 30px;
}
.section-title-decor::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 60px; height: 3px;
    background-color: #d4af37;
}

/* Category Pills (Filter) */
.nav-pills .nav-link {
    color: #555; border: 1px solid #eee; border-radius: 30px;
    padding: 8px 20px; margin: 0 5px; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.nav-pills .nav-link.active, .nav-pills .nav-link:hover {
    background-color: #1a1a1a; color: #d4af37; border-color: #1a1a1a;
}

/* =========================================
   7. PRODUCT DETAIL PAGE (HALAMAN DETAIL)
   ========================================= */
.product-showcase-card {
    background-color: #f8f8f8;
    border-radius: 20px; padding: 40px;
    display: flex; align-items: center; justify-content: center;
    height: 500px; position: sticky; top: 100px;
}
.product-showcase-card img {
    max-height: 100%; max-width: 100%; object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}
.product-showcase-card:hover img { transform: scale(1.05); }

.variant-btn {
    border: 1px solid #e0e0e0; background: white; color: #555;
    padding: 10px 25px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    transition: all 0.3s ease; min-width: 80px;
}
.variant-btn:hover { border-color: #d4af37; color: #d4af37; }
.variant-btn.active {
    background-color: #1a1a1a; color: #d4af37;
    border-color: #1a1a1a; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.qty-input-group {
    border: 1px solid #e0e0e0; border-radius: 50px; overflow: hidden;
    width: 120px; display: flex;
}
/* --- FIX TAMPILAN INPUT JUMLAH --- */
.qty-input-group {
    border: 1px solid #ccc;
    border-radius: 50px; /* Bentuk Kapsul */
    overflow: hidden;
    width: 140px; /* Sedikit diperlebar agar angka tidak sempit */
    display: flex;
    align-items: center; /* Pastikan vertikal di tengah */
    background-color: #fff;
}

/* Tombol + dan - */
.qty-input-group button {
    background: none;
    border: none;
    width: 40px;
    height: 45px; /* Tinggi disamakan */
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.qty-input-group button:hover {
    background-color: #f0f0f0;
}

/* Input Angka di Tengah */
.qty-input-group input.form-control {
    border: none !important;
    background-color: transparent !important; /* KUNCI: Transparan agar menyatu */
    text-align: center;
    font-weight: bold;
    padding: 0;
    height: 45px;
    width: 100%;
    box-shadow: none !important; /* Hilangkan border biru saat diklik */
    margin: 0;
    font-size: 1rem;
    color: #000;
}

/* Hilangkan panah kecil (spinner) di input number pada Chrome/Safari */
.qty-input-group input::-webkit-outer-spin-button,
.qty-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.note-card {
    background: #fff; border: 1px solid #f0f0f0; padding: 15px;
    border-radius: 12px; margin-bottom: 10px; transition: 0.3s;
}
.note-card:hover { border-color: #d4af37; transform: translateX(5px); }
.note-icon {
    width: 40px; height: 40px; background: #fff9e6; color: #d4af37;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin-right: 15px; font-size: 1.2rem;
}
/* --- USER PROFILE & AVATAR --- */
.user-avatar {
    width: 35px;
    height: 35px;
    background-color: #1a1a1a; /* Hitam Elegan */
    color: #d4af37; /* Emas */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    border: 2px solid #f8f9fa;
    transition: 0.3s;
}

/* Efek Hover pada Avatar */
.dropdown:hover .user-avatar {
    background-color: #d4af37;
    color: #fff;
    transform: scale(1.1);
}

/* Style Dropdown Menu agar tidak kaku */
/* Style Dropdown Menu agar tidak kaku */
.dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px); /* Wajib untuk Safari/Chrome */
    backdrop-filter: blur(10px);          /* Standar modern */
    border: 1px solid rgba(0,0,0,0.05);   /* Tambahan border tipis biar rapi */
}

.dropdown-item {
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-item:hover {
    background-color: #fffcf5; /* Warna emas sangat muda */
    color: #d4af37;
    transform: translateX(5px); /* Gerak sedikit ke kanan saat hover */
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
}