:root {
    --primary: #d71a21;
    --black: #000;
    --black: #111;
    --gray: #f5f5f5;
    --text: #333;
}

* { margin:0; padding:0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text); line-height: 1.6; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

/* Header */
.top-bar { background: var(--black); color: #fff; font-size: 12px; text-align: center; padding: 8px 0; }
.main-header { padding: 25px 0; border-bottom: 1px solid #eee; }
.header-grid { display: flex ; justify-content: space-between; align-items: center; }

.search-container { flex: 0 1 500px; }
.search-container form { display: flex; border: 2px solid var(--black); border-radius: 5px; overflow: hidden; }
.search-container input { flex: 1; padding: 10px; border: none; outline: none; }
.search-container button { background: var(--black); color: #fff; padding: 0 20px; border: none; cursor: pointer; }

.header-tools { display: flex; gap: 20px; }
.tool-item { text-align: center; font-size: 13px; cursor: pointer; position: relative; }
.tool-item i { font-size: 20px; display: block; }
.cart-count { position: absolute; top: -5px; right: 0; background: var(--primary); color: #fff; border-radius: 50%; padding: 2px 6px; font-size: 10px; }

/* Nav */
.navigation { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05);  top: 0; z-index: 100; }
.menu { list-style: none; display: flex; justify-content: center; }
.menu li { position: relative; }
.menu li a { display: block; padding: 15px 20px; text-decoration: none; color: var(--black); font-weight: bold; font-family: 'Oswald', sans-serif; font-size: 14px; }
.menu li a:hover, .red-tag { color: var(--primary) !important; }

/* Submenu */
.submenu { position: absolute; top: 100%; left: 0; background: #fff; width: 220px; display: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-top: 3px solid var(--primary); }
.has-child:hover .submenu { display: block; }
.submenu li a { padding: 10px 20px; border-bottom: 1px solid #f9f9f9; }

/* Hero */
/* Khung chứa Slider */
.hero-slider {
    width: 100%;
    height: 550px;
    overflow: hidden;
    position: relative;
}

/* Wrapper chứa 3 ảnh xếp hàng ngang */
.slider-wrapper {
    display: flex;
    width: 300%; /* Vì có 3 ảnh nên rộng 300% */
    height: 100%;
    animation: slideAnim 10s infinite; /* Tự động chạy trong 15 giây */
}

/* Định dạng từng Slide */
.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

/* Dán link ảnh vào đây */
.slide-1 { background-image: url('https://cdn.hstatic.net/themes/200000278317/1001392934/14/slideshow_1.webp?v=179'); }
.slide-2 { background-image: url('https://cdn.hstatic.net/themes/200000278317/1001392934/14/slideshow_6.webp?v=179'); }
.slide-3 { background-image:url('https://cdn.hstatic.net/themes/200000278317/1001392934/14/slideshow_8.webp?v=179'); }
.slide-3 { background-image: url('https://cdn.hstatic.net/themes/200000278317/1001392934/14/slideshow_8.webp?v=179'); }

/* Hiệu ứng trượt */
@keyframes slideAnim {
    0% { transform: translateX(0); }
    30% { transform: translateX(0); }
    33% { transform: translateX(-33.33%); }
    63% { transform: translateX(-33.33%); }
    66% { transform: translateX(-66.66%); }
    96% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}

/* Chỉnh nội dung chữ trên banner */
.banner-content {
    color: #fff;
    padding-left: 50px;
    z-index: 10;
}

.banner-content h2 { font-size: 50px; font-family: 'Oswald', sans-serif; margin-bottom: 10px; }
.btn-primary { background: #fff; color: #000; padding: 12px 30px; text-decoration: none; font-weight: bold; }
/* Product Grid */
.section-title { margin: 50px 0 30px; text-align: center; }
.section-title h2 { font-family: 'Oswald', sans-serif; font-size: 2rem; position: relative; padding-bottom: 10px; }
.section-title h2::after { content: ''; width: 60px; height: 3px; background: var(--primary); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { border: 1px solid #f1f1f1; padding: 15px; position: relative; transition: 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-image { position: relative; overflow: hidden; }
.product-image img { width: 100%; transition: 0.5s; }
.product-card:hover img { transform: scale(1.1); }

.quick-view { position: absolute; bottom: -50px; left: 0; width: 100%; background: var(--black); color: #fff; text-align: center; padding: 10px 0; transition: 0.3s; cursor: pointer; }
.product-card:hover .quick-view { bottom: 0; }

.product-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; padding: 2px 10px; font-weight: bold; font-size: 12px; z-index: 10; }
.product-details { padding-top: 15px; text-align: center; }
.brand { font-size: 12px; color: #888; }
.name { font-size: 14px; margin: 10px 0; height: 40px; overflow: hidden; }
.price-new { color: var(--primary); font-weight: bold; font-size: 18px; }
.price-old { text-decoration: line-through; color: #999; font-size: 14px; margin-left: 10px; }

/* Footer */
.footer { background: #f9f9f9; padding-top: 60px; border-top: 1px solid #eee; margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer h4 { font-family: 'Oswald', sans-serif; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li a { text-decoration: none; color: #666; line-height: 2; }
.icons a { font-size: 24px; margin-right: 15px; color: var(--black); }
.footer-bottom { background: #eee; text-align: center; padding: 20px 0; font-size: 13px; }

/* Căn chỉnh khối chứa logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px; /* Khoảng cách giữa ảnh logo và chữ */
    text-decoration: none;
}

/* Kích thước ảnh logo tròn */
.logo img {
    height: 60px; /* Bạn có thể tăng/giảm tùy ý từ 50px - 70px */
    width: auto;
    object-fit: contain;
    border-radius: 50%; /* Đảm bảo logo luôn tròn */
}

/* Chữ THINH PHUI SHOP bên cạnh logo */
.brand-name-text {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

:root {
    --black: #000;
    --white: #fff;
    --gray: #888;
}

.main-footer {
    background-color: #fff; /* Nền trắng */
    color: #000;            /* Chữ đen chính */
    width: 100%;
    padding: 60px 0 0;
    margin-top: 50px;
    border-top: 1px solid #eee; /* Thêm đường kẻ mờ để tách biệt với nội dung trên */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px; /* Độ rộng của vùng chứa nội dung */
    margin: 0 auto;    /* Căn giữa khối nội dung này */
    padding: 0 20px;
}
.footer-bottom {
    width: 100%;
    text-align: center;
    background-color: #f5f5f5; /* Màu nền xám nhạt cho dải dưới cùng như hình bạn gửi */
    padding: 20px 0;
    margin-top: 40px;
}

.footer-column h4 {
    color: #000; 
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #000; /* Gạch chân đen */
}

.footer-column ul li a {
    color: #333; /* Chữ xám đậm dễ đọc */
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary); /* Di chuột vào sẽ hiện màu đỏ thương hiệu */
    padding-left: 5px;
}

/* Các biểu tượng mạng xã hội và thông tin liên hệ */
.social-links a, .contact-info li i {
    color: #000;
}

/* Style cho logo ở footer */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 60px;
    height: auto;
    object-fit: contain;
    /* Xóa bỏ filter: brightness(0) invert(1) cũ */
    filter: none !important; 
}

.footer-logo h3 {
    color: #000; /* Tên thương hiệu chuyển sang đen */
    font-weight: 900;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 20px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    background-color: #f9f9f9; /* Xám cực nhạt */
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.footer-bottom p {
    color: #666;
    margin: 0;
}
h1, h2, h3, h4, .brand-name-text, .menu li a {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
}
.nav-logo, .footer-logo img {
    height: 55px; /* Giới hạn chiều cao */
    width: auto;  /* Tự động tính chiều rộng theo tỉ lệ */
    object-fit: contain; /* Giữ logo không bị móp/méo */
}
.status-badge.new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffcc00; /* Màu vàng Gold rực rỡ */
    color: #000000;            /* Chữ đen sắc nét */
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 800;          /* Tăng độ dày chữ */
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15); /* Đổ bóng nhẹ để nổi bật trên ảnh */
    border: 1px solid #e6b800; /* Viền vàng đậm hơn một chút để tạo chiều sâu */
}
.category-grid-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Chia 4 cột đều nhau */
    gap: 20px;
    margin-top: 30px;
}

.category-item {
    text-align: left;
}

.category-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Giữ khung ảnh luôn theo tỉ lệ hình chữ nhật */
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 4px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh lấp đầy khung mà không bị méo */
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: scale(1.05); /* Hiệu ứng phóng to nhẹ khi di chuột vào */
}

.category-item a {
    text-decoration: none;
    color: #0066cc; /* Màu xanh giống trong ảnh mẫu */
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    line-height: 1.4;
}

.category-item a:hover {
    color: var(--primary); /* Đổi màu khi hover */
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile hiện 2 cột */
    }
}
.collection-section {
    margin-bottom: 80px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột chuẩn như hình mẫu */
    gap: 20px;
}

.collection-item {
    background: #fff;
    transition: 0.3s;
}

.collection-image {
    width: 100%;
    aspect-ratio: 3 / 2; /* Tỉ lệ ảnh ngang đẹp cho bộ sưu tập */
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.collection-item:hover .collection-image img {
    transform: scale(1.1); /* Phóng to ảnh nhẹ khi hover */
}

.collection-info {
    padding: 15px 0;
}

.collection-info a {
    text-decoration: none;
    color: #444; /* Màu xám đen sang trọng */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.collection-info a:hover {
    color: var(--primary); /* Đổi sang màu đỏ thương hiệu */
}

/* Tối ưu cho máy tính bảng và điện thoại */
@media (max-width: 992px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}