﻿
body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none !important;
    color: black !important;
}


.temp-header{
    display:none;
}
#app {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1110;
    transition: all .1s;
    height: 4rem;
    z-index:999;
}


    #header .container {
        max-width: 1000px;
        padding-left: 2rem;
        padding-right: 2rem;
        border-radius: 30px;
        height: 4rem;
        background-color: rgba(255,255,255,0.75);
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: space-between;
        box-sizing: border-box;
        flex-wrap: nowrap;
        box-shadow: rgba(0, 0, 0, .1049607843) 0px 3px 10px;
    }

    #header.scroll {
        top: 0;
        left: 0;
        right: 0;
/*        z-index: 9999;*/
        width: 100%;
        transition: all .1s;
        height: 4rem;
        background-color: rgba(255,255,255, 0.85) !important;
        box-shadow: rgba(0, 0, 0, .1049607843) 0px 3px 10px;
    }

        #header.scroll .container {
            box-shadow: none;
            background-color: rgba(255,255,255,0) !important;
        }




    #header .header-left {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        width: fit-content;
        height: 100%;
    }

    /* --- BẮT ĐẦU CODE MỚI CHO HEADER RIGHT --- */
    #header .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
        height: 100%;
        gap: 1.5rem; /* Khoảng cách giữa User và Cart */
        position: relative;
    }

/* 1. Nút User (Trigger) */
.user-account-wrapper {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    user-select: none;
    border: 1px solid transparent;
}

    /* Hiệu ứng khi rê chuột vào vùng user */
    .user-trigger:hover {
        background-color: #FCF5EF; /* Màu kem nhạt */
        border-color: rgba(75, 48, 34, 0.1);
    }

/* Avatar tròn */
.user-avatar-circle {
    width: 32px;
    height: 32px;
    background-color: #4B3022; /* Màu nâu chủ đạo */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tên user */
.user-name-label {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nút Login (khi chưa đăng nhập) */
.login-btn-link {
    text-decoration: none;
    color: #333;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

    .login-btn-link:hover {
        background-color: #4B3022;
        color: #fff !important;
    }

/* 2. Menu Xổ Xuống (Dropdown) */
.user-dropdown-menu {
    display: none; /* Mặc định ẩn */
    position: absolute;
    top: 140%; /* Cách nút user một chút */
    right: 0;
    width: 220px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #f0f0f0;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDrop 0.2s ease-out forwards;
}

    /* Class này sẽ được JS thêm vào để hiện menu */
    .user-dropdown-menu.show {
        display: block;
    }

.dropdown-header {
    padding: 15px;
    background-color: #FCF5EF; /* Nền kem header menu */
    border-bottom: 1px solid #eee;
    font-family: 'Kanit', sans-serif;
    color: #4B3022;
}

    .dropdown-header p {
        margin: 0;
        font-size: 0.8rem;
        color: #666;
    }

    .dropdown-header strong {
        font-size: 1rem;
    }

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #555 !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Kanit', sans-serif;
    transition: 0.2s;
}

    .dropdown-item:hover {
        background-color: #f9f9f9;
        color: #4B3022 !important;
        padding-left: 25px; /* Hiệu ứng đẩy nhẹ sang phải */
    }

/* 3. Nút Giỏ Hàng */
.header-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .header-cart-btn:hover {
        background-color: #FCF5EF;
    }

    .header-cart-btn img {
        width: 24px;
        height: 24px;
    }

/* Animation */
@keyframes fadeInDrop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Thêm vào cuối file CSS */
@media (max-width: 1100px) {
    /* ... code cũ ... */

    /* Ẩn tên user trên mobile, chỉ hiện avatar tròn */
    .user-name-label {
        display: none;
    }

    /* Ẩn mũi tên nhỏ trên mobile */
    .user-trigger .fa-caret-down {
        display: none;
    }

    #header .header-right {
        gap: 10px; /* Thu nhỏ khoảng cách trên mobile */
    }

    .user-trigger {
        padding: 5px; /* Thu gọn padding */
    }
}
/* --- KẾT THÚC CODE MỚI --- */




#main {
    min-height: 500px;
}



/* MENU */


.menu-area {
    display: flex;
}

.menu {
    width: 100%;
    display: flex;
}

    .menu a {
        color: #fff;
        text-decoration: none;
        font-weight: 400;
        width: 100%;
        height: 100%;
        text-align: center;
        align-content: center;
        position: relative;
        display: inline-block;
    }
    /* Đường gạch dưới */
    .menu .menu-item a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 20%;
        width: 120%;
        height: 2px;
        background-color: #d83164;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }
    .menu .menu-item.active a {
        color: #6c584b !important;
    }
    .menu .menu-item.active a::after {
        transform: translateX(-50%) scaleX(1);
    }
    .menu .menu-item:hover a::after {
        transform: translateX(-50%) scaleX(1);
    }


        .menu a:focus,
        .menu a:focus-within {
            outline: none;
        }


    

    .menu > ol {
        display: flex;
        gap: 0.5rem;
        margin: 0 !important;
        list-style-type: none;
    }


        .menu > ol > li {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-left: 1rem;
            padding-right: 1rem;
            min-height: 4rem;
        }
            .menu > ol > li > a {
                font-family: "Pacifico", cursive;
                font-weight: bold;
                font-style: normal;
            }



    .menu .menu-item .sub-menu {
        background-color: white;
        width: fit-content;
        list-style-type: none;
        overflow: hidden;
        border-radius: 20px;
    }

#header .header-left .menu-bar {
/*    margin: 0.2rem;*/
/*    padding: 0.4rem 0;*/
    cursor: pointer;
}

.header-left .menu-bar .menu-icon {
    display: none;
}

@media (min-width: 1100px) {
    .header-left .menu-bar .menu-icon {
        display: none;
    }

    .menu > ol {
        justify-content: space-around;
        padding: 0 !important;
    }

        .menu > ol > li > a {
            font-size: 20px;
            position: relative;
            width: 100%;
            text-align: center;
            z-index: 1;
            transition: 250ms ease all;
        }

        .menu > ol > li > img {
            display: none !important;
        }

        .menu > ol > li > ol {
            position: absolute;
            top: 100%;
            width: 100%;
            visibility: hidden;
            min-width: fit-content;
            padding: 0 !important;
            border-radius: 10px;
        }

            .menu > ol > li > ol > li {
                margin-top: 0.5rem;
                transition: 250ms cubic-bezier(0.42, 0.83, 0.49, 1.35) transform;
                transform: scale(0);
            }

                .menu > ol > li > ol > li > a {
                    text-wrap: nowrap;
                    display: block;
                    text-align: center;
                    border-radius: 0.2rem;
                    padding: 1rem 0.5rem;
                    font-size: 20px;
                    background: white;
                    color: rgba(255, 255, 255, 0.6);
                    transition: 250ms ease all;
                }

                    .menu > ol > li > ol > li > a:hover,
                    .menu > ol > li > ol > li > a:focus,
                    .menu > ol > li > ol > li > a:focus-within {
                        box-shadow: inset 0 0 0 3rem rgba(0, 0, 0, 0.1);
                        color: rgba(255, 255, 255, 1);
                    }

        .menu > ol > li:hover > a,
        .menu > ol > li:focus > a,
        .menu > ol > li:focus-within > a {
            opacity: 1 !important;
        }

        .menu > ol > li:hover > ol,
        .menu > ol > li:focus > ol,
        .menu > ol > li:focus-within > ol {
            visibility: visible;
        }

            .menu > ol > li:hover > ol > li,
            .menu > ol > li:focus > ol > li,
            .menu > ol > li:focus-within > ol > li {
                transform: scale(1);
            }

                .menu > ol > li:hover > ol > li:first-child,
                .menu > ol > li:focus > ol > li:first-child,
                .menu > ol > li:focus-within > ol > li:first-child {
                    transition-delay: 150ms;
                }

    
}


/*
    RESPONSIVE FOR SMALL WIDTH
*/


@media (max-width: 1100px) {
    #header {
        top: 0;
        left: 0;
        right: 0;
/*        z-index: 9999;*/
        width: 100%;
        transition: all .1s;
        height: 4rem;
    }

    #main {
        margin-top: 4rem;
        transition: 0.5s ease;
    }

    #header > .container {
        width: 100% !important;
        min-width: 100% !important;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        align-content: center;
        border-radius: 0%;
        padding: 12px 25px;
    }

    #header .header-left {
        display: flex;
        flex: 1 !important;
        justify-content: center;
        align-content: center;
        height: 30px;
    }

        

    #header .header-left {
        position: relative;
        width: fit-content;
        display: block;
    }

        #header .header-left .menu-bar .menu-icon {
            display: block;
        }


    .menu {
        display: flex;
        position: fixed;
        left: 0;
        top: 4rem;
        bottom: 0;
        background: #fff;
        box-shadow: 0px -2px 4px rgba(0, 0, 0, .08);
        height: 100%;
        width: min(27rem, 70%);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all .3s linear;
        z-index: 999;
    }

        .menu a {
            height: auto !important;
        }

        .menu ol {
            width: 100%;
            margin: 0 !important;
            padding: 0 !important;
            gap: 0;
        }

        .menu.active {
            transform: translateX(0);
            opacity: 0.85;
            visibility: visible;
            pointer-events: inherit;
            transition: all .3s linear;
        }

        .menu a {
            font-size: 20px;
            padding: 0.5rem 0.5rem;
        }

        .menu > ol {
            top: 0;
            left: 0;
            flex-direction: column;
        }

            .menu > ol > li {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
                min-height: 1rem;
                width: 100%;
                padding: 0 !important;
            }

                .menu > ol > li > a {
                    border-bottom: 1px solid #a7a7a7;
                }

                    .menu > ol > li > a:nth-last-child(2) {
                        position: relative;
                    }

                .menu > ol > li > img {
                    display: block !important;
                    width: 30px;
                    height: 30px;
                    position: absolute;
                    right: 30px;
                    top: 3px;
                    padding: 8px;
                    width: 40px;
                    height: 40px;
                    transition: all 0.5s ease;
                    cursor: pointer;
                }

            .menu > ol > .menu-item.active > img {
                transform: rotate(90deg);
            }

            .menu > ol > .menu-item.active > ol {
                max-height: fit-content;
            }

            .menu > ol > li > ol {
                background: rgba(0, 0, 0, 0.1);
                box-shadow: inset 0.1rem 0.1rem 0.5rem rgba(0, 0, 0, 0.15);
                overflow: hidden;
                max-height: 0;
                transition: 250ms ease all;
                width: 100% !important;
                border-radius: 0 !important;
            }

                .menu > ol > li > ol > li {
                    width: 100% !important;
                }

                    .menu > ol > li > ol > li > a {
                        display: block;
                        font-size: 1.2rem;
                        width: 100% !important;
                    }
        .menu .menu-item a::after {
            width: 0;
        }
}

#main {
    width: 100%;
}



/* --- FOOTER STYLES --- */
:root {
    --footer-bg: #2c1e16; /* Màu nâu đậm (Cà phê/Socola) */
    --footer-text: #e0e0e0;
    --footer-gold: #FFD700;
    --footer-hover: #d35400;
}

#footer {
    position: relative;
    /*    background-color: var(--footer-bg);*/
    color: var(--footer-text);
    background: #FCF5EF;
}



/* 2. Main Footer */
.mainfooter {
    padding-top: 80px; /* Chừa chỗ cho sóng */
    padding-bottom: 40px;
    /* Nếu muốn dùng ảnh nền mờ */
    /* background-image: linear-gradient(rgba(44, 30, 22, 0.95), rgba(44, 30, 22, 0.95)), url('/assets/images/bg-footer.png'); */
    background-image: url('/assets/images/bg-footer.png');
    background-size: cover;
}

/* Cột 1: Brand */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

    .logo-wrapper img {
        width: 60px;
        height: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    .logo-wrapper h1 {
        font-family: "Pacifico", cursive; /* Hoặc Allura */
        font-size: 2.5rem;
        color: var(--footer-gold);
        margin: 0;
        line-height: 1;
    }

.slogan {
    font-family: "Allura", cursive;
    font-size: 1.8rem;
    color: #dcdcdc;
    margin-bottom: 15px;
}

.desc {
    font-family: "Kanit", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
    text-align: justify;
}

/* Cột 2: Links */
.footer-heading {
    font-family: "Arima", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--footer-gold);
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

    .footer-heading::after {
        content: '';
        position: absolute;
        width: 40px;
        height: 2px;
        background: var(--footer-text);
        bottom: -8px;
        left: 0;
    }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: var(--footer-text) !important;
        text-decoration: none;
        font-family: "Kanit", sans-serif;
        font-size: 1rem;
        transition: all 0.3s;
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--footer-gold);
            transform: translateX(5px);
        }

/* Cột 3: Contact & Social */
.mainfooter .contact-info .c-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-family: "Kanit", sans-serif;
    font-size: 0.95rem;
    color: #ccc;
}

.mainfooter .contact-info i {
    color: var(--footer-gold);
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

    .social-btn i {
        font-size: 1.1rem;
    }

.zalo-text {
    font-weight: bold;
    font-size: 0.8rem;
    font-family: sans-serif;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-btn.fb:hover {
    background: #3b5998;
}

.social-btn.yt:hover {
    background: #ff0000;
}

.social-btn.zl:hover {
    background: #0068ff;
}

/* 3. End Footer */
.endfooter {
    background-color: #1a120d; /* Đen nâu */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: "Kanit", sans-serif;
    font-size: 0.9rem;
    color: #888;
}

    .endfooter p {
        margin: 0;
    }

    .endfooter b {
        color: var(--footer-gold);
    }

.credit i {
    color: #e74c3c;
    animation: beat 1s infinite;
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-wave svg {
        height: 30px;
    }

    .mainfooter {
        padding-top: 50px;
        text-align: center;
    }

    .logo-wrapper, .contact-info .c-item {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .desc {
        text-align: center;
    }
}












.btn-none {
    outline: none !important;
    border: none !important;
    background: inherit;
}









/* Styles for scroll animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    scale: 0.1;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-animate-d2 {
    opacity: 0;
    transform: translateY(120px);
    scale: 0.1;
    transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.scroll-animate-bottom {
    scale: 0.1;
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-animate-succeed {
    scale: 1.0 !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}


.menu-icon {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

    .menu-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #000000;
        border-radius: 9px;
        opacity: 0.8;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }

        .menu-icon span:nth-child(1) {
            top: 0px;
        }

        .menu-icon span:nth-child(2) {
            top: 8px;
        }

        .menu-icon span:nth-child(3) {
            top: 16px;
        }

    .menu-icon.active span:nth-child(1) {
        top: 8px;
        -webkit-transform: rotate(135deg);
        -moz-transform: rotate(135deg);
        -o-transform: rotate(135deg);
        transform: rotate(135deg);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .menu-icon.active span:nth-child(3) {
        top: 8px;
        -webkit-transform: rotate(-135deg);
        -moz-transform: rotate(-135deg);
        -o-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }
