html {
    scroll-behavior: smooth;
}

/* =========================================================
   STYLE HOÀN CHỈNH CHO NÚT BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #2b2b40 !important;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* --- Reset CSS & Variables --- */
:root {
    --primary-color: #a87b61;
    --text-color: #4a4a4a;
    --light-bg: #f5f5f5;
    --border-color: #eaeaea;
    --gray: #888;
    --gray-light: #f7f7f7;
    --gray-dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}

/* --- HEADER --- */
.header {
    background-color: #fff;
    padding-top: 15px;
}

.header-main {
    padding-bottom: 15px;
}

.logo i {
    font-size: 45px;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active {
    border-bottom: 2px solid var(--primary-color);
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-radius: 4px;
    width: 260px;
}

.search-bar i {
    color: #999;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.user-actions {
    display: flex;
    gap: 25px;
    font-size: 20px;
    color: var(--primary-color);
}

.sub-nav {
    padding: 15px 0;
    overflow-x: auto;
}

.sub-nav ul {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.sub-nav li {
    flex: 0 0 auto;
}

.sub-nav a {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-transform: capitalize;
    white-space: nowrap;
}

.sub-nav a:hover {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-color: rgba(180, 150, 130, 0.2);
    background-blend-mode: multiply;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 3;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

.btn-buy {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-buy:hover {
    background-color: #8a654d;
    color: #fff;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.slider-btn:hover {
    color: var(--primary-color);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

/* --- MAIN CONTENT --- */
.main-content {
    padding: 60px 0 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 40px;
}

.about-section {
    padding: 60px 0;
    padding-left: 40px !important;
    padding-right: 20px !important;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-color);
    padding-right: 30px;
}

.about-section img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

.about-grid {
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.projects-grid {
    gap: 30px;
    overflow: hidden;
}

.project-card {
    text-align: center;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MAIN PRODUCTS SECTION --- */
.main-products-section {
    margin-top: 80px;
}

.product-category {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.cat-title {
    background-color: #f7f7f7;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.cat-title i {
    color: #666;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn,
.nav-arrows .arrow-btn,
.gallery-nav .arrow-btn,
.tips-header-nav .arrow-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.arrow-btn:hover,
.nav-arrows .arrow-btn:hover,
.gallery-nav .arrow-btn:hover,
.tips-header-nav .arrow-btn:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(168, 123, 97, 0.25);
    transform: translateY(-2px);
}

.arrow-btn:active {
    transform: translateY(0);
}

.product-category {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.product-grid::-webkit-scrollbar {
    display: none;
}

.product-item {
    flex: 0 0 calc((100% - 50px) / 3);
    min-width: 250px;
}

@media (max-width: 992px) {
    .product-item {
        flex: 0 0 calc((100% - 25px) / 2);
    }
}

@media (max-width: 576px) {
    .product-item {
        flex: 0 0 100%;
    }
}

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #f9f9f9;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item:hover .product-img-wrap img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.heart-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    color: #888;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.heart-icon:hover {
    color: #e74c3c;
}

.heart-icon.saved {
    color: #e74c3c !important;
    font-weight: 900;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-left: 8px;
    font-size: 13px;
}

.view-more-container {
    text-align: center;
    margin: 40px 0 60px 0;
}

.view-more-link {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.view-more-link:hover {
    color: var(--primary-color);
}

/* --- ĐÁNH GIÁ TỪ NGƯỜI DÙNG --- */
.reviews-section {
    margin-bottom: 60px;
}

.reviews-box {
    background-color: #eaeaea;
    display: flex;
    padding: 40px;
    gap: 40px;
    position: relative;
}

.reviews-text {
    flex: 0 0 35%;
    padding-right: 20px;
}

.reviews-text h3 {
    font-size: 20px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.reviews-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.rating-info {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.rating-info i {
    color: var(--primary-color);
}

.reviews-gallery-wrap {
    flex: 1;
    position: relative;
    overflow-x: auto;
    padding-bottom: 10px;
}

.reviews-gallery-wrap::-webkit-scrollbar {
    height: 6px;
}

.reviews-gallery-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.gallery-nav {
    position: absolute;
    top: -20px;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.reviews-gallery img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.reviews-gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-box {
        flex-direction: column;
    }
    .reviews-text {
        flex: auto;
    }
}

@media (max-width: 576px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    .reviews-gallery img {
        width: 150px;
        height: 150px;
    }
}

.reviews-gallery {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.review-item {
    width: 250px;
    flex-shrink: 0;
}

.review-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-item img:hover {
    transform: scale(1.03);
}

.review-stars {
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 10px;
}

.review-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
    text-align: justify;
}

.review-author {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-align: right;
}

/* --- ĐĂNG KÝ EMAIL --- */
.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.newsletter-content {
    flex: 0 0 50%;
}

.newsletter-content h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.newsletter-content p {
    text-align: justify;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--primary-color);
    outline: none;
    font-size: 14px;
}

.newsletter-form button {
    padding: 0 35px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #8a654d;
}

/* --- TÍNH NĂNG NỔI BẬT --- */
.features-section {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 35px;
    color: #666;
}

.feature-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.feature-info a {
    font-size: 13px;
    color: #aaa;
    text-decoration: underline;
    transition: color 0.3s;
}

.feature-info a:hover {
    color: var(--primary-color);
}

/* --- FOOTER --- */
.footer {
    background-color: #2b2b40;
    color: #d1d1d1;
    padding: 70px 0 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.brand-col {
    flex: 0 0 30%;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

.footer-logo i {
    font-size: 35px;
    margin-bottom: 0;
}

.contact-info,
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.contact-info li i {
    width: 22px;
    font-size: 18px;
    text-align: center;
}

.social-links {
    margin-top: 30px;
}

.social-links p {
    margin-bottom: 10px;
    font-size: 16px;
}

.social-links a {
    color: #d1d1d1;
    font-size: 26px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer {
    background-color: #2b2b40;
    color: #a0a0b0;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-col ul li a {
    display: inline-block;
    color: #a0a0b0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-links a {
    color: #888;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 40px;
    }
    .brand-col {
        flex: 0 0 100%;
    }
    .newsletter-section {
        flex-direction: column;
        gap: 20px;
    }
    .newsletter-form {
        width: 100%;
    }
    .features-section {
        flex-wrap: wrap;
        gap: 20px;
    }
}

.main-content {
    display: block;
    width: 100%;
    clear: both;
}

.main-products-section,
.design-tips-section,
.reviews-section,
.newsletter-section,
.features-section {
    width: 100%;
    clear: both;
}

.project-card,
.tip-card {
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.heart-icon,
.arrow-btn,
.category-header {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

.arrow-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    outline: none;
}

/* Sliders */
.slider-grid,
.reviews-gallery {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.slider-grid::-webkit-scrollbar,
.reviews-gallery::-webkit-scrollbar {
    display: none;
}

.section-title {
    margin-bottom: 55px;
}

.design-tips-section {
    position: relative;
    margin-bottom: 120px;
}

.tips-header-nav {
    position: absolute;
    top: 20px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.tip-card {
    width: 260px;
    flex-shrink: 0;
}

.tip-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 0;
}

.tip-content {
    text-align: center;
    padding: 18px 10px;
}

.tip-content h4 {
    min-height: 70px;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #222;
}

.tip-content p {
    min-height: 90px;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.reviews-section {
    position: relative;
    margin-top: 40px;
    margin-bottom: 120px;
}

.reviews-gallery-wrap {
    position: relative;
}

.review-item {
    min-width: 240px;
    flex-shrink: 0;
}

.gallery-nav {
    position: absolute;
    top: -45px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.gallery-nav .arrow-btn,
.tips-header-nav .arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.gallery-nav .arrow-btn:hover,
.tips-header-nav .arrow-btn:hover {
    background: #a87b61;
    color: #fff;
    border-color: #a87b61;
}

.design-tips-section {
    position: relative;
    margin-bottom: 120px;
}

.tips-header-nav {
    position: absolute;
    top: 20px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.tips-header-nav .arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.reviews-gallery {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.reviews-gallery::-webkit-scrollbar {
    display: none;
}

.review-item {
    min-width: 240px;
    flex-shrink: 0;
}

.reviews-gallery-wrap {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: -55px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 50;
}

.gallery-nav .arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.reviews-gallery-wrap {
    position: relative;
    padding-top: 70px;
}

.gallery-nav {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 100;
}

.gallery-nav .arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-nav .arrow-btn:hover {
    background: #a87b61;
    color: #fff;
}

/* User actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.user-actions .action-btn,
.user-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
}

.user-actions .action-btn:hover,
.user-actions a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.user-actions .action-btn:active,
.user-actions a:active {
    transform: scale(0.95);
}

.header,
.footer {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.main-nav ul li a,
.footer-col ul li a {
    font-size: 14px;
}

.footer-bottom-links a,
.user-actions a {
    cursor: pointer !important;
    outline: none !important;
}

.footer-col h4 {
    cursor: default;
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Logo menu */
.main-nav ul li.d-none.d-lg-block {
    margin-right: 30px;
    display: flex;
    align-items: center;
}

.main-nav ul li.d-none.d-lg-block a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.main-nav ul li.d-none.d-lg-block i {
    font-size: 40px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* ========== MODAL ĐĂNG NHẬP / ĐĂNG KÝ (CÁCH 1: BACKGROUND ẢNH + OVERLAY) ========== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}
.auth-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}
.auth-modal-modern {
    background: white;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

/* Cột trái - ảnh nền + overlay */
.auth-left {
    flex: 1.8;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.2s ease;
}

/* Lớp phủ gradient màu nâu lên ảnh */
.auth-left::before {
    display: none;
}

/* Khung nội dung chữ và nút (nằm trên overlay) */
.auth-left-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    min-height: 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* Xóa nền trắng mờ, để chữ nổi trực tiếp trên ảnh */
    background: transparent;
    /* Chỉ dùng text-shadow để chữ đọc được trên ảnh sáng/tối */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.auth-left h3 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.auth-left p {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto 20px auto;
    color: var(--primary-color);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.auth-switch-btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    background-color: var(--primary-color);;
    color: white;
    font-size: 30px;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.auth-switch-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Cột phải */
.auth-right {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    overflow-y: white;
}
.close-modal-modern {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    z-index: 20;
    transition: 0.2s;
}
.close-modal-modern:hover {
    color: var(--primary-color);
}
.auth-tabs-modern {
    display: flex;
    gap: 28px;
    border-bottom: 2px solid #eee;
    margin-bottom: 28px;
}
.auth-tab-modern {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0 0 12px;
    cursor: pointer;
    color: #777;
}
.auth-tab-modern.active {
    color: var(--primary-color);
    border-bottom: 2px solid #a87b61;
}
.auth-form-modern .input-icon {
    position: relative;
    margin-bottom: 1.2rem;
}
.auth-form-modern .input-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.auth-form-modern input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 50px;
}
.auth-submit-modern {
    width: 100%;
    background: #a87b61;
    border: none;
    padding: 12px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
/* ==========================================================================
   AVATAR NGƯỜI DÙNG (SAU KHI ĐĂNG NHẬP) - THEO FIGMA
   ========================================================================== */
.user-avatar-logged {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #333;
    padding: 4px 12px 4px 4px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.user-avatar-logged:hover {
    border-color: var(--primary-color);
    background: #fbf9f8;
}

.user-avatar-logged img,
.user-avatar-logged .avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar-logged i.fa-circle-user {
    font-size: 30px;
    color: var(--primary-color);
}

.user-avatar-logged .avatar-caret {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.user-avatar-logged.open .avatar-caret {
    transform: rotate(180deg);
}

/* ==========================================================================
   DROPDOWN MENU NGƯỜI DÙNG - THEO FIGMA (Tài khoản, Giỏ hàng, Yêu thích...)
   ========================================================================== */
.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown .dropdown-content {
    padding: 10px 0;
}

.user-dropdown .greeting-text {
    padding: 10px 22px;
    margin: 0;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 14px;
    margin-bottom: 6px;
}

.user-dropdown a {
    display: block;
    padding: 12px 22px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding-left: 28px;
}

.user-dropdown a i {
    width: 22px;
    text-align: center;
    margin-right: 8px;
}

/* ==========================================================================
   POPUP TÀI KHOẢN / GIỎ HÀNG / YÊU THÍCH / HỒ SƠ (THEO FIGMA)
   ========================================================================== */
.account-popup-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px;
}

.account-popup-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Khung 2 cột Giỏ hàng / Yêu thích */
.account-grid-2col {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.account-card-box {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: #f3eae1;
    border-radius: 12px;
    padding: 20px;
}

.account-card-box .account-card-title {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-product-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.account-product-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 10px;
}

.account-product-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.account-product-card .account-product-price {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

.account-product-card .account-product-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.account-product-card .account-product-btn:hover {
    opacity: 0.85;
}

.account-empty-msg {
    text-align: center;
    color: #888;
    padding: 30px 10px;
}

/* Khung Tài khoản / Hồ sơ */
.account-info-box {
    max-width: 500px;
    margin: 0 auto;
    background: #f3eae1;
    border-radius: 12px;
    padding: 30px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ddbfa9;
    font-size: 15px;
}

.account-info-row:last-child {
    border-bottom: none;
}

.account-info-row span:first-child {
    font-weight: 600;
    color: #555;
}

.account-edit-btn {
    display: block;
    margin: 25px auto 0;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.account-edit-btn:hover {
    opacity: 0.85;
}

/* ==========================================================================
   CÁC THÀNH PHẦN KHÁC CỦA AUTH MODAL (ĐÃ CÓ SẴN)
   ========================================================================== */
.auth-panel-title {
    font-size: 28px;
    font-weight: 700;
    color: #a87b61;
    margin-bottom: 24px;
}
.social-login-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.social-login-btn:hover { opacity: 0.85; }
.social-login-btn.facebook {
    background: #1877F2;
    color: #fff;
}
.social-login-btn.twitter {
    background: #1DA1F2;
    color: #fff;
}
.social-full-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}
.social-full-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.social-full-btn:hover { opacity: 0.85; }
.social-full-btn.facebook-full { background: #1877F2; color: #fff; }
.social-full-btn.twitter-full  { background: #1DA1F2; color: #fff; }
.social-register-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.social-icon-btn:hover { opacity: 0.8; }
.social-icon-btn.fb { background: #1877F2; }
.social-icon-btn.tw { background: #1DA1F2; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #bbb;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}
.auth-options-row {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
}
.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    user-select: none;
}
.auth-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-label span, 
.auth-checkbox-label .checkbox-text {
    line-height: 1.4;
}
.auth-gender-row {
    display: flex;
    gap: 24px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #444;
}
.auth-gender-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.pwd-toggle {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: auto !important;
    cursor: pointer !important;
    color: #aaa !important;
    font-size: 15px;
}
.pwd-toggle:hover { color: #a87b61 !important; }
.auth-bottom-link {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.auth-bottom-link a {
    color: #222;
    text-decoration: none;
}
.auth-bottom-link a:hover { color: #a87b61; }
.auth-bottom-link.small-text {
    font-size: 13px;
    font-weight: 400;
    color: #555;
}
.auth-bottom-link.small-text a { color: #a87b61; }
.auth-error-msg {
    color: #e53935;
    font-size: 13px;
    min-height: 18px;
    margin-top: 8px;
}
.auth-success-msg {
    color: #2e7d32;
    font-size: 13px;
    min-height: 18px;
    margin-top: 8px;
}
.fake-recaptcha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 16px;
    background: #f9f9f9;
    margin-bottom: 16px;
}
.recaptcha-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}
.recaptcha-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.recaptcha-logo {
    width: 40px;
    opacity: 0.7;
}

/* Responsive cho modal */
@media (max-width: 600px) {
    .auth-modal-modern {
        flex-direction: column;
        max-width: 95%;
        border-radius: 16px;
    }
    .auth-left {
        flex: none;
        min-height: 200px;
    }
    .auth-left::before {
        background: #a87b61; /* bỏ gradient chỉ màu nền khi màn hình nhỏ */
    }
    .auth-left-overlay {
        padding: 1.5rem 1rem;
    }
    .auth-left h3 { font-size: 22px; }
    .auth-left p { font-size: 12px; max-width: 200px; }
    .auth-right { padding: 1.5rem 1rem; }
    .social-login-row { gap: 8px; }
}
/* ==========================================================================
   AUTH SYSTEM V2 - THIẾT KẾ MỚI THEO FIGMA (FULL SCREEN)
   ========================================================================== */

/* --- OVERLAY NỀN CHUNG --- */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
}
.auth-overlay.active {
    display: block;
}

/* --- BASE POPUP --- */
.auth-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9100;
    background: #fff;
    animation: authFadeIn 0.25s ease;
}
.auth-popup.active { display: flex; }

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Nút đóng (X) góc trên phải */
.auth-close-btn {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 28px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.auth-close-btn:hover { color: #a87b61; }

/* =============================
   LAYOUT: SPLIT (trái/phải)
============================= */
.auth-popup--split {
    flex-direction: row;
}

/* Cột TRÁI: ảnh nền + overlay chữ */
.auth-split-left {
    flex: 0 0 48%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Màu nền fallback khi chưa có ảnh */
    background-color: #f3ece7;
}
.auth-split-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.35);
}
.auth-split-left__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 3rem 2.5rem;
    /* Viền trang trí bên trong giống Figma */
    box-sizing: border-box;
}
/* Khung viền trang trí bên trong cột trái */
.auth-split-left__content::before {
    content: '';
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(168, 123, 97, 0.45);
    pointer-events: none;
    z-index: 0;
}
.auth-split-left__content > * { position: relative; z-index: 1; }

.auth-split-left h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 18px;
}
.auth-split-left p {
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto 28px;
}

/* Cột PHẢI: form */
.auth-split-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    overflow-y: auto;
    background: #fff;
}

/* =============================
   LAYOUT: CENTER (căn giữa)
============================= */
.auth-popup--center {
    align-items: center;
    justify-content: center;
}
.auth-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

/* =============================
   FORM ELEMENTS
============================= */
.auth-form-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 0; }

.auth-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.auth-field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.auth-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.auth-field input:focus { border-color: var(--primary-color); }

.auth-field--pwd { position: relative; }
.auth-field--pwd input { padding-right: 46px; }
.auth-eye-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}
.auth-eye-toggle:hover { color: var(--primary-color); }

/* Nút đăng nhập / đăng ký chính */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
    margin-top: 6px;
    text-align: center;
}
.auth-submit-btn:hover { background: #8f654d; transform: translateY(-1px); }
.auth-submit-btn--blue {
    background: #1877f2;
}
.auth-submit-btn--blue:hover { background: #1464d0; }

/* Nút viền (Tôi có tài khoản / Tạo tài khoản) */
.auth-outline-btn {
    display: inline-block;
    padding: 12px 34px;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    border-radius: 40px;
    font-size: clamp(13px, 1.5vw, 18px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.auth-outline-btn:hover { background: #8f654d; border-color: #8f654d; }
.auth-outline-btn--dark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 12px 40px;
    font-size: 16px;
}

/* Nút mạng xã hội (full width) */
.auth-social-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.auth-social-btn--fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.auth-social-btn--fb:hover { background: #1464d0; }
.auth-social-btn--tw { color: #1da1f2; border-color: #1da1f2; }
.auth-social-btn--tw:hover { background: #e8f5fd; }

/* Icon mạng xã hội nhỏ (đăng ký) */
.auth-social-icons-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 6px 0 16px;
}
.auth-icon-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    transition: transform 0.2s;
}
.auth-icon-btn:hover { transform: scale(1.1); }
.auth-icon-btn--fb { background: #1877f2; }
.auth-icon-btn--tw { background: #1da1f2; }

/* Divider "Hoặc" */
.auth-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 13px;
    margin: 14px 0;
}
.auth-or-divider::before,
.auth-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Checkbox row */
.auth-remember-row { margin-bottom: 14px; }
.auth-gender-row { display: flex; gap: 28px; margin-bottom: 12px; }
.auth-agree-row { margin-bottom: 12px; }
.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}
.auth-checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* Link quên mật khẩu / lỗi */
.auth-forgot-link, .auth-forgot-note {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 12px;
}
.auth-forgot-link a, .auth-forgot-note a { color: var(--primary-color); font-weight: 600; }
.auth-error-msg {
    color: #e53e3e;
    font-size: 13px;
    margin: 6px 0 4px;
    min-height: 18px;
}

/* Match/mismatch password */
.auth-pw-match { font-size: 13px; margin-bottom: 4px; min-height: 18px; }
.auth-pw-match.match { color: #38a169; }
.auth-pw-match.mismatch { color: #e53e3e; }

/* =============================
   RECAPTCHA GIẢ
============================= */
.auth-recaptcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #f9f9f9;
}
.recaptcha-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #888;
    gap: 2px;
}
.recaptcha-logo-wrap img { width: 32px; }

/* =============================
   OTP 6 Ô
============================= */
.auth-otp-desc {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}
.auth-otp-inputs {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 8px;
}
.auth-otp-digit {
    width: 54px;
    height: 64px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    border: none;
    border-bottom: 3px solid var(--primary-color);
    background: transparent;
    outline: none;
    border-radius: 0;
    transition: border-color 0.2s;
}
.auth-otp-digit:focus { border-bottom-color: #8f654d; }


.auth-house-logo { margin-bottom: 6px; }
.auth-fb-desc {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}
.auth-fb-edit-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.auth-fb-edit-link:hover { text-decoration: underline; }
.auth-fb-cancel {
    color: #555;
    cursor: pointer;
    font-size: 15px;
    margin: 0;
    transition: color 0.2s;
}
.auth-fb-cancel:hover { color: var(--primary-color); }
.auth-fb-hr { width: 100%; border-color: #eee; margin: 4px 0; }
.auth-fb-policy-note {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.auth-fb-policy-link { font-size: 12px; color: #666; }
.auth-fb-policy-link a { color: inherit; }

.auth-success-icon i {
    font-size: 72px;
    color: #48bb78;
}
.auth-success-msg-text {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .auth-popup--split { flex-direction: column; }
    .auth-split-left { flex: 0 0 220px; }
    .auth-split-right { padding: 2rem 1.5rem; }
    .auth-otp-digit { width: 40px; height: 52px; font-size: 22px; }
    .auth-otp-inputs { gap: 8px; }
}
@media (max-width: 480px) {
    .auth-split-left { display: none; }
    .auth-split-right { padding: 2rem 1rem; }
}
/* Đảm bảo dropdown menu đúng màu ảnh mẫu */
.user-dropdown,
.user-dropdown .dropdown-content {
    background-color: #a87b61 !important;  /* nền nâu */
    color: #ffffff !important;             /* chữ trắng */
}
.user-dropdown a,
.user-dropdown .greeting-text {
    color: #ffffff !important;
}
.user-dropdown a:hover {
    background-color: #c69c6d !important;  /* nâu sáng hơn khi hover */
    color: #ffffff !important;
}
.user-dropdown hr {
    border-color: rgba(255, 255, 255, 0.3) !important;
}
/* ========== CSS BỔ SUNG CHO SIDEBAR & POPUP MỚI ========== */

/* Sidebar Drawer chung */
.side-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95vw;
    height: 100%;
    background: #fff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    transition: right .35s cubic-bezier(.4,0,.2,1);
}
.side-drawer.open { right: 0; }
.side-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #eaeaea;
    flex-shrink: 0;
}
.side-drawer__header h3 { font-size: 18px; font-weight: 700; color: #222; margin: 0; }
.side-drawer__close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #555;
    padding: 4px 8px;
}
.side-drawer__close:hover { color: var(--primary-color); }
.side-drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.side-drawer__footer { padding: 20px 24px; border-top: 1px solid #eaeaea; background: #fafafa; }

/* Item trong sidebar */
.drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 14px;
    color: #aaa;
    padding: 40px 0;
}
.drawer-empty i { font-size: 52px; opacity: .35; }
.drawer-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.drawer-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.drawer-item__info { flex: 1; }
.drawer-item__name { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; }
.drawer-item__meta { font-size: 12px; color: #888; margin-bottom: 6px; }
.drawer-item__price { font-size: 15px; font-weight: 700; color: var(--primary-color); }
.drawer-item__remove { background: none; border: none; color: #ccc; font-size: 16px; cursor: pointer; padding: 4px; }
.drawer-item__remove:hover { color: #e74c3c; }

/* Tổng tiền + nút */
.drawer-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}
.drawer-checkout-btn {
    width: 100%;
    padding: 13px;
    background: #222;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}
.drawer-checkout-btn:hover { background: var(--primary-color); }
.drawer-continue-btn {
    width: 100%;
    padding: 11px;
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
    cursor: pointer;
    margin-top: 10px;
}
.drawer-continue-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Item yêu thích */
.wishlist-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
.wishlist-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.wishlist-item__info { flex: 1; }
.wishlist-item__name { font-size: 14px; font-weight: 600; color: #222; }
.wishlist-item__price { font-size: 14px; color: var(--primary-color); font-weight: 700; }
.wishlist-add-btn, .wishlist-remove-btn {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    border: none;
}
.wishlist-add-btn { background: var(--primary-color); color: #fff; }
.wishlist-add-btn:hover { background: #8f654d; }
.wishlist-remove-btn { background: none; border: 1px solid #ddd; color: #888; margin-left: 6px; }
.wishlist-remove-btn:hover { border-color: #e74c3c; color: #e74c3c; }

/* Popup tài khoản */
.acc-popup-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 20px;
    min-width: 340px;
    max-width: 420px;
    width: 90vw;
}
.acc-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    margin-bottom: 14px;
}
.acc-popup-name { font-size: 20px; font-weight: 700; color: #222; margin-bottom: 4px; }
.acc-popup-email { font-size: 14px; color: #888; margin-bottom: 0; }
.acc-popup-divider { width: 100%; border-top: 1px solid #eee; margin: 16px 0; }
.acc-popup-stats { display: flex; gap: 30px; justify-content: center; margin-bottom: 4px; }
.acc-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.acc-stat-number { font-size: 22px; font-weight: 700; color: var(--primary-color); }
.acc-stat-label { font-size: 12px; color: #888; text-transform: uppercase; }
.acc-popup-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.acc-action-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.acc-action-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.acc-action-btn--danger { color: #e74c3c; border-color: #fde8e8; background: #fff9f9; }
.acc-action-btn--danger:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* Avatar trong popup hồ sơ */
.profile-avatar-big {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 3px solid rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    margin: 0 auto 16px;
}
.side-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity .3s;
}
.side-drawer-overlay.active { display: block; opacity: 1; }
@media (max-width: 480px) { .side-drawer { width: 100vw; } }

/* Badge số lượng trên icon header (nếu chưa có) */
.icon-badge { position: relative; display: inline-flex; align-items: center; }
.badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}