/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: relative;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* Logo */
.logo img {
    max-width: 70px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-actions a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: #ff00dd;
    border: 1px solid #f1f1f1;
}

.user-actions a:hover {
    background-color: #772d73;
    color: #fff;
    border-color: #007bff;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.cart-count {
    background-color: #ff4757;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Main Navigation and Search Bar Container */
.main-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 20px;
    position: sticky; /* Keeps it fixed when scrolling */
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px rgba(177, 9, 154, 0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: #007bff;
}

.search-bar button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-left: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #0056b3;
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.main-nav ul li a:hover {
    background-color: #007bff;
    color: #fff;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.dropdown-menu li {
    margin: 5px 0;
}

.dropdown-menu li a {
    color: #555;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.3s ease;
    text-decoration: none;
    border-radius: 5px;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* Dropdown Menu Level 2 */
.dropdown-menu-2 {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 6px;
    background-color: #fff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.dropdown-menu li:hover .dropdown-menu-2 {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow img:nth-child(1) {
    opacity: 1;
    animation: slide1 9s infinite;
}

.slideshow img:nth-child(2) {
    animation: slide2 9s infinite;
}

.slideshow img:nth-child(3) {
    animation: slide3 9s infinite;
}

@keyframes slide1 {
    0%, 33.33% { opacity: 1; }
    33.34%, 100% { opacity: 0; }
}

@keyframes slide2 {
    0%, 33.33% { opacity: 0; }
    33.34%, 66.66% { opacity: 1; }
    66.67%, 100% { opacity: 0; }
}

@keyframes slide3 {
    0%, 66.66% { opacity: 0; }
    66.67%, 99.99% { opacity: 1; }
    100% { opacity: 0; }
}

/* Highlight Section */
.highlight-section {
    padding: 40px 20px;
    background-color: #fff;
    margin-top: 20px;
    text-align: center;
}

.highlight-section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #007bff;
    font-weight: bold;
}

.highlight-products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Category Section (Áo, Quần, Giày, Balo) */
.category-section {
    padding: 40px 20px;
    background-color: #fff;
    margin-top: 20px;
    text-align: center;
}

.category-section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #007bff;
    font-weight: bold;
}

.category-section .products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Product Styling (used in both Highlight and Category Sections) */
.product {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    width: 22%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product h3 {
    font-size: 20px;
    margin: 12px 0;
    color: #333;
    font-weight: 600;
}

.product .price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
    margin-top: 6px;
}

.product .discount {
    text-decoration: line-through;
    color: #888;
    font-size: 16px;
    margin-left: 6px;
}

.product button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
}

.product button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .product {
        width: 90%;
    }
}

/* Phần đánh giá từ người dùng */
.user-reviews {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f9f9f9, #e3e3e3);
    padding: 40px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-reviews h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.review-container {
    display: flex;
    width: 80%;
    overflow: hidden;
    justify-content: center;
}

.reviews {
    display: flex;
    gap: 20px;
    animation: slide 30s linear infinite;
    width: calc(100% * 5);
}

.review-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.review-slide:hover {
    transform: scale(1.05);
}

.review-slide img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
    border: 3px solid #ff9800;
}

.name {
    font-weight: bold;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 8px;
}

.rating {
    color: #ffcc00;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.comment {
    font-size: 1.2rem;
    color: #444;
    font-style: italic;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    line-height: 1.5;
}

@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(-100%); }
    40% { transform: translateX(-200%); }
    60% { transform: translateX(-300%); }
    80% { transform: translateX(-400%); }
    100% { transform: translateX(0); }
}

/* Thông tin liên hệ */
/* Footer Container */
.container {
    width: 100%; /* Full width */
    margin: 0;
    padding: 40px 20px;
    background-color: #111;
    color: white;
    font-family: 'Arial', sans-serif;
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px; /* Center content with a max width */
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

/* Contact Info */
.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-info h1 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-info p {
    margin: 10px 0;
    font-size: 14px;
}

.contact-info p strong {
    color: red;
}

/* About Section */
.about {
    flex: 1;
    min-width: 200px;
}

.about h2 {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about ul {
    list-style: none;
    padding: 0;
}

.about ul li {
    margin: 8px 0;
    font-size: 14px;
    color: white;
}

/* Policy Section */
.policy {
    flex: 1;
    min-width: 200px;
}

.policy h2 {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.policy ul {
    list-style: none;
    padding: 0;
}

.policy ul li {
    margin: 8px 0;
    font-size: 14px;
    color: white;
}

/* Social Links Section */
.social-links {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.social-links h2 {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover .fa-facebook-f {
    color: #3b5998; /* Facebook blue */
}

.social-icons a:hover .fa-youtube {
    color: #ff0000; /* YouTube red */
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-links {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}