@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary: #D4AF37;       /* Màu Vàng Kim nguyên bản */
    --primary-dark: #B8860B;
    --secondary: #1A1A1A;     /* Màu Đen Obsidian */
    --accent: #D4AF37;
    --bg-cream: #ffffff;      /* Nền Trắng tinh khiết */
    --text-dark: #222;
    --text-light: #FFFFFF;
    --text-muted: #666;
    --white: #ffffff;
    --shadow-soft: 0 5px 25px rgba(0,0,0,0.05);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.08);
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Navbar - CHỈNH SỬA TƯƠNG PHẢN CỰC ĐẠI */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    /* Tạo lớp phủ mờ phía trên để Menu luôn rõ */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
}

nav .logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav .nav-links a {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.2rem 5%;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(15px);
}

nav.scrolled .logo { color: var(--accent); text-shadow: none; }
nav.scrolled .nav-links a { color: var(--text-dark); text-shadow: none; }

/* Hero Upgrade - PHÔNG CHỮ & MÀU SẮC */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    letter-spacing: 1px;
    font-weight: 300;
    max-width: 800px;
    margin-inline: auto;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Buttons - NÂNG CẤP HIỆU ỨNG */
.btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(197, 160, 35, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(197, 160, 35, 0.5);
}

/* Nút phụ - Glassmorphism */
.btn-outline {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--white) !important;
}

.btn-outline:hover {
    background: var(--white) !important;
    color: var(--accent) !important;
}

/* Sections & Cards */
section { padding: 8rem 10%; }

.btn-discover {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    margin-top: 1.5rem;
    white-space: nowrap; /* NGĂN XUỐNG DÒNG */
    border-radius: 2px;
}

.btn-discover:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 35, 0.3);
}

.section-title {
    text-align: center;
    margin: 0 auto 5rem;
    width: 100%;
}

.section-title p, .section-title h2 {
    text-align: center;
    width: 100%;
}

.section-title h2 {
    font-size: 3.8rem;
    color: var(--secondary);
    letter-spacing: 2px;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 2rem auto; /* Căn giữa divider */
}

/* Product Grid - NGĂN NẮP HƠN */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.product-card {
    transition: var(--transition);
    max-width: 360px; /* Tăng nhẹ để tiêu đề đủ chỗ nằm ngang */
    margin: 0 auto;
}

.product-image {
    width: 100%;
    height: 550px; /* Tăng mạnh chiều cao để khớp với khổ tranh đứng */
    overflow: hidden;
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px; /* Giảm nhẹ padding để tranh to hơn */
    transition: var(--transition);
}

.product-info {
    padding: 2rem 1.5rem;
    background: var(--white);
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-strong);
    border-top: 3px solid var(--primary);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; /* CĂN GIỮA CÁC THÀNH PHẦN CON */
    text-align: center;   /* CĂN GIỮA CHỮ */
}

.product-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Hiệu ứng mạ Vàng Gradient */
    background: linear-gradient(to right, #B8860B, #D4AF37, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
    display: inline-block;
}

.product-card:hover .product-info h3 {
    letter-spacing: 2px;
    transform: scale(1.05);
    text-shadow: 0 10px 20px rgba(197, 160, 35, 0.2);
}

/* An Lac Section - TINH CHỈNH SANG TRỌNG */
#an-lac {
    height: 850px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#an-lac .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-attachment: fixed; /* Hiệu ứng Parallax nhẹ */
}

#an-lac .content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 5rem;
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    text-align: center;
    color: var(--white);
}

#an-lac h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#an-lac p.quote {
    font-size: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section - THIẾT KẾ LẠI CHUYÊN NGHIỆP */
#about {
    background: #fdfbf7; /* Màu kem Ivory cao cấp */
    padding: 10rem 10%;
    position: relative;
    overflow: hidden;
}

#about:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: #f7f3ed; /* Mảng màu trang trí nhẹ bên phải */
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Tăng diện tích cho ảnh */
    gap: 10rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border: 0; /* Bỏ viền cũ, dùng bóng đổ hiện đại */
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
    border-radius: 2px;
}

.about-image:after {
    content: '';
    position: absolute;
    bottom: -3rem;
    right: -3rem;
    width: 70%;
    height: 70%;
    border: 1px solid var(--primary);
    z-index: -1;
    opacity: 0.5;
}

.about-text h2 {
    font-size: 2.8rem; /* Giảm nhẹ để cân đối 2 dòng */
    color: var(--secondary);
    margin-bottom: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 2;
    text-align: justify;
}

.about-text .btn {
    margin-top: 2rem;
    padding: 1.2rem 3.5rem;
    background: var(--primary);
}

footer {
    background: var(--secondary);
    padding: 8rem 10% 4rem;
    text-align: center;
    color: var(--white);
}

/* RESPONSIVE - TỐI ƯU MOBILE */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 5%;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav .logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .nav-icons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-icons .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.7rem !important;
    }

    .section-title {
        margin-bottom: 3rem;
        padding: 0 5%;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 5%;
        gap: 2.5rem;
    }

    .product-image {
        height: 400px !important;
    }

    .hero {
        height: 65vh;
        padding: 0 5%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        display: flex;
        flex-direction: column !important;
        padding: 4rem 5%;
        text-align: center;
    }

    .about-image {
        width: 100% !important;
        margin-bottom: 3rem;
    }

    .about-text {
        width: 100% !important;
        padding: 0 !important;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none; 
    }

    .mobile-menu-btn {
        display: block !important; 
    }

    .filter-tabs {
        gap: 0.5rem;
        padding: 0 5%;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .product-info h3 {
        font-size: 1.15rem;
        white-space: normal;
    }

    .btn-discover {
        width: 100%;
        text-align: center;
    }
    
    footer {
        padding: 4rem 5% 2rem;
    }
}
