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

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

/* HomePage */

/* 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;
}

.catalog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    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 Image Styling - Cải thiện */
.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;
    filter: none; /* Loại bỏ filter cũ */
}

.profile-img:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: none /* Loại bỏ filter hover cũ */
}

/* Cart badge for item count */
/* .cart-icon::after {
    content: '3';
    position: absolute;
    top: -2px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
} */


.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: 5rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Footer */
.footer-content {
    background: #333;
    color: white;
    padding: 3rem 5%;
    text-align: center;
    margin-top: 4rem;
}

.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;
}

/* Responsive Design */
@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;
    }
    
    .catalog-section {
        height: 400px;
    }
    
    .feedback-title,
    .catalog-title {
        font-size: 1.8rem;
    }
    
    .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%;
    }
    
    .site-header {
        height: 500px;
    }
    
    .catalog-section {
        height: 350px;
        padding: 3rem 3%;
    }
    
    .title-header h1 {
        font-size: 1.8rem;
    }
    
    .catalog-title {
        font-size: 1.5rem;
    }
    
    .catalog-section p {
        font-size: 1rem;
    }
    
    .btn-header,
    .catalog-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

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

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    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;
    transform: 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(-55%) translateY(0);

} 

.profile-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    right: 20px;
    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;
}

/* Contact */
.contact-section {
    background: #fff;
    padding: 5rem 5%;
    margin: 2rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
}

.info-icon {
    background: linear-gradient(45deg, #8498f1, #5069da);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

.info-text h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.info-text p {
    color: #666;
    font-size: 0.95rem;
}

.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #8498f1, #5069da);
    color: white;
    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;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 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;
}