/*cài đặt chung*/
:root {
    --primary-color: #1a1a1a;
    --accent-color: #d4af37;
    --bg-color: #ffffff;
    --text-color: #f2f2f2;
    --muted-color: #cccccc;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #111111;
    background-image: url('https://i.pinimg.com/originals/2f/10/ce/2f10ce69b96c0611989308b0abc68e70.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    z-index: 9999;
    border-radius: 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 8px;
}

button,
a {
    font-family: inherit;
}

:focus-visible {
    outline: 2px dashed var(--accent-color);
    outline-offset: 2px;
}

.main-navbar,
.scroll-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
}

.main-navbar {
    background-color: transparent;
}

.scroll-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.4s ease-in-out;
}

.scroll-navbar.show {
    top: 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

.main-navbar .logo {
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a,
.popup-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover,
nav a:focus-visible,
.popup-link:hover,
.popup-link:focus-visible {
    color: var(--accent-color);
}

.banner-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.banner-content.glass-box {
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.avatar-col {
    flex: 1;
}

.avatar-img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.text-col {
    flex: 2;
    text-align: justify;
    color: #ffffff;
}

.text-col h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
    color: var(--accent-color);
}

.text-col p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border: 1px solid var(--primary-color);
    transition: all 0.4s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
    background-color: transparent;
    color: var(--primary-color);
}

.showcase-section {
    padding: 100px 50px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--accent-color);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 70px;
}

.carousel-view {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 40px;
    transition: transform 0.6s ease-in-out;
}

.product-img {
    width: 100%;
    height: 400px; 
    object-fit: cover; 
    border-radius: 8px; 
    display: block;
}

.product-card {
    min-width: calc((100% - 80px) / 3);
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 25px;
    transition: transform 0.5s ease;
}

.product-card:hover .img-placeholder {
    transform: scale(1.02);
}

.buy-btn {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 3px;
    transition: opacity 0.3s ease;
}

.buy-btn:hover,
.buy-btn:focus-visible {
    opacity: 0.7;
}

.carousel-btn,
button,
.popup-link {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 26, 26, 0.8);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.popup-link {
    color: #ffffff;
    text-align: left;
    width: 100%;
    padding: 6px 20px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.5px;
    display: block;
}

.popup-link:hover,
.popup-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 0;
    background-color: var(--primary-color);
    white-space: nowrap;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a,
.dropdown-menu button {
    display: block;
    padding: 6px 20px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu button:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 30px 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 650px;
    color: #ffffff;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--accent-color);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #cccccc;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus-visible {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .main-navbar,
    .scroll-navbar {
        padding: 16px 20px;
    }

    .banner-section {
        padding: 40px 20px;
    }

    .banner-content.glass-box {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .avatar-img {
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }

    .text-col h1 {
        font-size: 2rem;
    }

    .carousel-container {
        padding: 12px 20px;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-track {
        gap: 16px;
    }

    .product-card {
        min-width: 260px;
    }

    body {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .main-navbar,
    .scroll-navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a,
    .popup-link {
        font-size: 0.75rem;
    }

    .logo,
    .main-navbar .logo {
        font-size: 1.4rem;
        text-align: center;
    }

    .banner-section {
        padding: 140px 15px 50px;
    }

    .banner-content.glass-box {
        padding: 30px 20px;
        gap: 30px;
    }

    .avatar-img {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }

    .text-col h1 {
        text-align: center;
    }

    .showcase-section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .carousel-container {
        padding: 10px 40px;
    }

    .product-card {
        min-width: 100%;
    }

    .img-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-navbar .logo,
    .logo {
        font-size: 1.1rem;
    }

    .banner-content.glass-box {
        padding: 18px;
        border-radius: 12px;
    }

    .text-col h1 {
        font-size: 1.6rem;
    }

    .cta-btn {
        padding: 10px 18px;
    }

    .img-placeholder {
        height: 220px;
    }

    .showcase-section {
        padding: 40px 16px;
    }
}
