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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
.site-header {
    background-image: url('https://wallpapercave.com/wp/wp3271343.jpg');
    height: 750px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-icon, .profile-icon {
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cart-icon:hover, .profile-icon:hover {
    transform: translateY(-2px) scale(1.1);
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.profile-img:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.title-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.title-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.title-header p {
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.btn-header {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-header a {
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
}

.btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffed4a, #ffd700);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Bar Styles */
.search-container {
    padding: 2rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-results-info {
    text-align: center;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

/* Products Section */
.products-section {
    padding: 4rem 5%;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    text-align: center;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-price {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

.no-products {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Dropdown profile */
.account-dropdown {
    position: relative;
    display: inline-block;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 15px); /* Tăng khoảng cách để phù hợp với profile image to hơn */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
} 

.profile-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.9);
}

.profile-menu ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.profile-menu li {
    margin: 0;
}

.profile-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: none;
}

.profile-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    transform: translateX(5px);
}

.profile-menu a::after {
    display: none;
}

.profile-menu .sign-in {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
    font-weight: 500;
    color: #ff6b6b;
}

.profile-menu .sign-in:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff4757;
}

.profile-menu .user-greeting {
    margin: 0;
    padding: 0;
}

.profile-menu .user-greeting span {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px ;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 215, 0, 0.1);
    margin-bottom: 4px;
}

/* Logout button styling */
.profile-menu .logout-btn {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
    font-weight: 500;
    color: #ff6b6b;
}

.profile-menu .logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff4757;
}

/* Other sections styles */
.feedback-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feedback-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

.feedback-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feedback-card p {
    font-style: italic;
    color: #666;
    line-height: 1.8;
}

.catalog-section {
    background-image: url('https://static.toiimg.com/thumb/msid-121188314,width-400,resizemode-4/Naruto-is-alive.jpg');
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 5%;
    color: white;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.catalog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.catalog-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.catalog-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.catalog-button {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.catalog-button a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
}

.catalog-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.secure-product {
    padding: 4rem 5%;
    background: white;
}

.secure-gird {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.secure-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.secure-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.secure-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.secure-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.secure-card p {
    color: #666;
    line-height: 1.6;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 2rem 0;
}

.footer-content {
    background: #333;
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content .nav-links {
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-content .nav-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-content .nav-links a:hover {
    color: #ffd700;
}

.footer-content .logo {
    display: block;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.footer-content p {
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .site-header {
        height: 600px;
    }
    
    .title-header h1 {
        font-size: 2rem;
    }
    
    .title-header p {
        font-size: 1.3rem;
    }
    
    .products-grid,
    .feedback-grid,
    .secure-gird {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


@media (max-width: 480px) {
    .site-header,
    .products-section,
    .feedback-section,
    .secure-product {
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .nav-icons {
        gap: 1.5rem; /* Giảm khoảng cách trên mobile nhỏ */
    }
    
    .profile-img {
        width: 45px;
        height: 45px;
    }
    
    .site-header {
        height: 500px;
    }
    
    .catalog-section {
        height: 350px;
        padding: 3rem 3%;
    }
    
    .title-header h1 {
        font-size: 1.8rem;
    }
    
    .title-header p {
        font-size: 1.1rem;
    }
    
    .catalog-title {
        font-size: 1.5rem;
    }
    
    .catalog-section p {
        font-size: 1rem;
    }
    
    .btn-header,
    .catalog-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

.catalog-section {
    height: 400px;
}

.feedback-title,
.catalog-title {
    font-size: 1.8rem;
}

.featured-section {
            padding: 4rem 5%;
            background: white;
            color: black;
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            letter-spacing: 2px;
        }

        .section-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        }

        .premium-card {
            position: relative;
            background: white;
            color: #333;
        }

        .premium-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: linear-gradient(45deg, #ffd700, #ffed4a);
            color: #333;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            letter-spacing: 1px;
            box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
            z-index: 2;
        }

        .premium-card:hover .premium-badge {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
        }

        .product-category {
            color: #666;
            font-size: 0.9rem;
            margin-top: 0.5rem;
            font-style: italic;
        }

        .view-all-container {
            text-align: center;
            margin-top: 3rem;
        }

        .view-all-btn {
            background: linear-gradient(45deg, #ffd700, #ffed4a);
            color: #333;
            padding: 15px 40px;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .view-all-btn a {
            text-decoration: none;
            color: #333;
        }

        .view-all-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        /* Premium products grid responsive adjustments */
        @media (max-width: 768px) {
            .section-title {
                font-size: 2rem;
            }
            
            .section-subtitle {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .featured-section {
                padding: 3rem 3%;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
        }

