﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

body {
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between; /* logo trái - menu giữa - actions phải */
    align-items: center;
    background: linear-gradient(90deg, #ff6f00, #ff3d00);
    padding: 14px 40px;
    flex-wrap: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo {
    flex: 1;
}

    .logo a {
        color: white;
        text-decoration: none;
        font-size: 1.8em;
        font-weight: 700;
        letter-spacing: 1px;
    }

.nav-menu {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    list-style: none;
}

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
        position: relative;
    }

        .nav-menu a::after {
            content: "";
            position: absolute;
            width: 0;
            height: 2px;
            background: #fff;
            bottom: -4px;
            left: 0;
            transition: 0.3s;
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

.nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

    /* Liên kết chính */
    .nav-actions a {
        color: white !important;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: opacity 0.2s;
        cursor: pointer;
    }

        .nav-actions a:hover {
            opacity: 0.85;
        }

/* ===== Dropdown tài khoản ===== */
.navbar .nav-actions .dropdown-menu {
    background-color: #ff8c00 !important; /* 🎨 Nền cam */
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 0 !important;
    min-width: 160px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.navbar .nav-actions .dropdown-item {
    color: #fff !important;
    font-weight: 500;
    padding: 10px 16px;
    transition: background-color 0.2s;
}

    .navbar .nav-actions .dropdown-item:hover {
        background-color: #ffb84d !important; /* màu sáng hơn khi hover */
        color: #fff !important;
    }

/* Mũi tên nhỏ kế bên chữ "Tài khoản" */
.navbar .nav-actions .dropdown-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    margin-left: 6px;
}

.dropdown {
    position: relative;
    z-index: 9999;
}

.category-section {
    background: linear-gradient(90deg, #fff, #fff7f3);
    margin: 30px auto;
    padding: 25px 20px;
    border-radius: 12px;
    max-width: 1200px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ff5722 transparent;
}

    .categories::-webkit-scrollbar {
        height: 6px;
    }

    .categories::-webkit-scrollbar-thumb {
        background: #ff5722;
        border-radius: 3px;
    }
/* Từng danh mục */
.category-item {
    text-align: center;
    flex: 0 0 auto;
    width: 120px;
    min-width: 110px;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px 10px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

    .category-item:hover {
        background-color: #fff4e6;
        color: #ff6600;
        transform: translateY(-6px);
        box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
        text-decoration: none;
    }

    .category-item i {
        font-size: 36px;
        color: #ff5722;
        margin-bottom: 8px;
        transition: color 0.3s ease;
    }

    .category-item:hover i {
        color: #ff3d00;
    }

    .category-item p {
        font-weight: 500;
        color: #333;
        font-size: 0.95em;
        margin-top: 5px;
    }

.featured-section {
    max-width: 1150px;
    margin: 40px auto;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

    .featured-section h2 {
        font-size: 1.9em;
        color: #ff5722;
        margin-bottom: 25px;
        font-weight: 700;
    }

.footer {
    background-color: #2b2b2b; /* nền tối nhưng không quá tối */
    color: #ffffff; /* chữ trắng tinh */
    text-align: left;
    padding: 40px 20px;
    font-size: 1em; /* chữ rõ ràng */
    letter-spacing: 0.4px;
    line-height: 1.6;
}

    .footer h4 {
        font-weight: 600; /* đậm hơn */
        margin-bottom: 15px;
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* bóng chữ nhẹ */
    }

    .footer a {
        color: #f5f5f5; /* trắng sáng hơn */
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer a:hover {
            color: #ffd700; /* vàng nhạt khi hover */
        }

    .footer p {
        margin: 5px 0;
        font-weight: 400;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 200px;
    margin: 10px;
}
.footer-column:hover {
    color:orange;
}
.social-icons a {
    display: inline-block;
    margin: 5px 0;
    color: white;
    text-decoration: none;
}

    .social-icons a i {
        margin-right: 5px;
        color: white;
    }

.app-links img {
    width: 120px;
    margin: 5px 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 15px;
    color: #ffffff;
    font-weight: 400;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* RESPONSIVE */
@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(3, 1fr); /* 3 cột trên màn hình trung bình */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 10px 0;
    }

    .nav-actions {
        justify-content: center;
        margin-top: 10px;
    }

        .nav-actions a {
            margin: 5px;
        }

    .categories {
        justify-content: center;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên màn hình nhỏ */
        gap: 20px;
        justify-items: center;
    }

    .product-card {
        background-color: white;
        border-radius: 12px;
        width: 100%;
        max-width: 260px;
        padding: 15px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

        .product-card img {
            width: 100%;
            height: 190px;
            object-fit: cover;
            border-radius: 10px;
        }

    .feedback-cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr; /* 1 sản phẩm trên điện thoại */
    }
}
