* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 15px;
}

/* HEADER */
.top-bar {
    background-color: #007bc3; 
    color: white;
    padding: 5px 0;
    font-size: 15px;
    border-bottom: 0.5px solid rgba(255,255,255,0.2);
}
.top-bar-right a {
    color: white;
    text-decoration: none;
}
.main-bar {
    background-color: #007bc3;
    color: white;
    padding: 15px 0;
}
.logo .brand-name { 
    font-size: 32px; 
    font-weight: bold; 
    margin: 0;
}
.logo .slogan { 
    font-size: 12px; 
    font-style: italic;
    margin: 0;
}
.search-box {
    display: flex;
    flex: 0 1 400px;
}
.search-box input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.btn-search {
    background-color: #ffcc00; 
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.header-info { 
    display: flex; 
    gap: 20px; 
    font-size: 14px; 
}
.cart-box {
    background-color: #005f99;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 4px;
}
.cart-text .count { 
    color: #ffcc00; 
    font-weight: bold; 
}

/* NAVIGATION */
.bottom-nav {
    background-color: #00a0e3; 
}
.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.menu li a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: bold;
    font-size: 14px;
}
.menu li a:hover { background-color: #0088c2; }
.menu > li { position: relative; }
.submenu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0088c2; 
    list-style: none;
    padding: 0;
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.has-submenu:focus-within .submenu,
.has-submenu:hover .submenu {
    display: block;
}
.submenu li a {
    padding: 12px 20px;
    border-bottom: 1px solid #00a0e3;
    font-weight: normal; 
}
.submenu li a:hover { background-color: #005f87; }

.slider-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    overflow: hidden; /* Ẩn các ảnh nằm ngoài khung */
    border-radius: 12px;
}

.slides-wrapper {
    display: flex; /* Đưa các slide lên một hàng ngang */
    transition: transform 0.5s ease-in-out; /* Hiệu ứng trượt mượt mà */
    width: 100%;
}

.slide {
    min-width: 100%; /* Mỗi slide chiếm trọn 100% chiều rộng khung */
}

.slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Định dạng nút bấm */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: #ff6600;
}

/* PRODUCT SECTIONS */
.header-container {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 15px 20px;
}
.section-title {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap; 
}
.section-title::before, .section-title::after {
    content: "";
    flex: 1;
height: 1px;
    background: #ccc; 
}
.section-title::before { margin-right: 20px; }
.section-title::after { margin-left: 20px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    position: relative;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6600;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 1;
}
.product-img {
    position: relative;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.btn-mua-ngay {
    position: absolute;
    bottom: -50px; 
    left: 0;
    width: 100%;
    background-color: #ff6600; 
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: bottom 0.3s ease; 
    cursor: pointer;
    z-index: 10;
}
.product-card:hover .btn-mua-ngay {
    bottom: 0;
}
.brand {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 5px 0;
}
.name {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    height: 34px; 
    overflow: hidden;
    margin-bottom: 10px;
}
.price-box {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}
.current-price {
    color: #e31d1a;
    font-weight: bold;
    font-size: 15px;
}
.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}
.out-of-stock-overlay {
    position: absolute;
    top: 50%;        
    left: 0;
    width: 100%;
    background: rgba(153, 153, 153, 0.9); 
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    z-index: 2;
    transform: translateY(-50%);
}

/* BRANDS */
.brand-container {
    background-color: #f2f2f2; 
    padding: 30px 15px;
    text-align: center;
    margin-top: 40px;
}
.brand-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #000;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
    max-width: 1200px;
    margin: 0 auto; 
}
.brand-item {
    background-color: #fff;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; 
    padding: 10px;
    transition: transform 0.3s;
}
.brand-item:hover {
    transform: scale(1.05); 
}
.brand-item-photo {
    max-width: 100%;
    max-height: 100%;
object-fit: contain;
}

/* FOOTERS */
.contact-footer {
    background-color: #ff6600; 
    color: #000;
    padding: 20px 15px;
}
.contact-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-item span {
    display: block;
    font-size: 14px;
    font-weight: 500;
}
.contact-item strong {
    font-size: 24px;
    letter-spacing: 1px;
}
.newsletter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}
.newsletter label {
    font-weight: bold;
    color: #fff;
}
.input-group {
    display: flex;
    width: 100%;
}
.input-group input {
    padding: 10px 15px;
    border: none;
    flex: 1;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.input-group button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
}

.main-footer {
    background-color: #fff;
    color: #333;
    padding: 40px 0 20px;
    border-top: 2px solid #f1f1f1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 30px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}
.footer-col ul li a {
    text-decoration: none;
    color: #555;
}
.footer-col ul li a:hover {
    color: #00a0e3;
}
.highlight {
    color: #e67e22;
    font-weight: bold;
}
.social-icons {
    display: flex;
    gap: 10px;
}
.icon {
    width: 35px;
    height: 35px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}


.fb-chat-bubble {
    position: fixed;
    bottom: 30px; /* Cách đáy 30px */
    right: 30px;  /* Cách phải 30px */
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.fb-chat-bubble:hover {
    transform: scale(1.1); /* Phóng to nhẹ */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.fb-chat-bubble img {
    width: 40px;
    height: 40px;
}



@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-box {
        flex: 0 1 300px;
    }
    .header-info {
        display: none; 
    }
}


@media (max-width: 768px) {
.top-bar .container, .main-bar .container {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }
    .search-box {
        width: 100%;
        flex: none;
    }
    .menu {
        justify-content: center;
    }
    .menu li a {
        padding: 10px;
        font-size: 12px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-footer .container {
        flex-direction: column;
        text-align: center;
    }
    .newsletter {
        align-items: center;
    }
}


@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr); 
    }
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .submenu {
        position: static;
        box-shadow: none;
        width: 100%;
    }
}