/* --- 1. CẤU HÌNH MÀU SẮC CHUNG --- */
:root {
    --aqua-gold: #d8a546;
    --aqua-teal: #0f4c5c;
    --bg-body: #010101;
    --bg-nav: rgba(1, 1, 1, 0.98);
    --bg-section-1: #0e0e0e;    
    --bg-section-2: #111111;    
    --bg-section-3: #000000;    
    --bg-box: rgba(0, 0, 0, 0.85);
    --text-main: #ffffff;
    --text-sub: #b3b3b3;
    --border-color: #333;
}

[data-theme="light"] {
    --bg-body: #f8f9fa;
    --bg-nav: rgba(255, 255, 255, 0.98);
    --bg-section-1: #eaeaea;    
    --bg-section-2: #ffffff;    
    --bg-section-3: #f4f4f4;    
    --bg-box: rgba(255, 255, 255, 0.95); 
    --text-main: #212529;       
    --text-sub: #555555;
    --border-color: #ddd;
}

body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-body); color: var(--text-main); transition: 0.3s; }

/* --- 2. HEADER & TOP BAR --- */
.top-bar { background-color: #000; border-bottom: 1px solid #222; padding: 8px 0; font-size: 0.85rem; color: #fff; }
.navbar { background-color: var(--bg-nav); padding: 10px 0; border-bottom: 1px solid var(--aqua-gold); transition: 0.3s; }
.navbar-brand img { height: 55px; width: auto; object-fit: contain; }
.nav-link { color: var(--text-main) !important; text-transform: uppercase; font-weight: 600; font-size: 0.85rem; margin-left: 20px; transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--aqua-gold) !important; }

@media (min-width: 992px) { .navbar-nav .dropdown:hover .dropdown-menu { display: block; margin-top: 0; } }
.dropdown-menu { background-color: var(--bg-nav); border: 1px solid var(--border-color); border-top: 3px solid var(--aqua-gold); border-radius: 0; padding: 0; min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.dropdown-item { color: var(--text-main); padding: 15px 20px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.dropdown-item:hover { background-color: rgba(216, 165, 70, 0.15); color: var(--aqua-gold); padding-left: 25px; border-left: 4px solid var(--aqua-gold); }

/* --- BUTTONS --- */
.theme-toggle-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 15px; }
.theme-toggle-btn:hover { border-color: var(--aqua-gold); color: var(--aqua-gold); }
.btn-gold { background-color: var(--aqua-gold); color: #000; padding: 10px 30px; font-weight: 700; border: none; transition: 0.3s; }
.btn-gold:hover { background-color: var(--text-main); color: var(--bg-body); transform: translateY(-3px); }
.btn-outline-gold { color: var(--aqua-gold); border: 1px solid var(--aqua-gold); padding: 10px 30px; font-weight: 600; background: transparent; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-outline-gold:hover { background-color: var(--aqua-gold); color: #000; }

/* --- 3. DÙNG CHUNG CHO CÁC TRANG SẢN PHẨM --- */
.product-header { height: 60vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: -76px; padding-top: 76px; position: relative; }
.product-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.header-content { position: relative; z-index: 2; }
.page-title { font-size: 3.5rem; font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.page-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); letter-spacing: 2px; text-transform: uppercase; }

.product-intro { padding: 80px 0; background-color: var(--bg-body); text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--aqua-gold); text-transform: uppercase; margin-bottom: 20px; }
.intro-text { max-width: 800px; margin: 0 auto; color: var(--text-sub); line-height: 1.6; }

.category-section { padding: 60px 0; border-top: 1px solid var(--border-color); background-color: var(--bg-section-1); }
.product-card { background: var(--bg-section-2); border: 1px solid var(--border-color); transition: 0.4s; margin-bottom: 24px; height: 100%; }
.product-card:hover { transform: translateY(-5px); border-color: var(--aqua-gold); box-shadow: 0 5px 20px rgba(216, 165, 70, 0.15); }
.product-img-box { position: relative; overflow: hidden; aspect-ratio: 1/1; border-bottom: 1px solid var(--border-color); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.product-card:hover .product-img { transform: scale(1.1); }
.product-info { padding: 15px; text-align: center; }
.product-name { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 5px; text-transform: uppercase; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.product-tag { font-size: 0.75rem; color: var(--text-sub); display: block; margin-bottom: 8px; }
.product-code { font-size: 0.85rem; color: #000; background-color: var(--aqua-gold); font-weight: 700; padding: 4px 12px; display: inline-block; }

/* --- 4. FOOTER --- */
footer { background-color: var(--bg-section-3); padding: 80px 0 30px; border-top: 1px solid var(--aqua-gold); color: var(--text-sub); }
footer h5 { color: var(--text-main); font-weight: 700; margin-bottom: 25px; }
footer a { color: var(--text-sub); text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--aqua-gold); padding-left: 5px; }