* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding-bottom: 70px;
}

.top-bar {
    background: linear-gradient(90deg, #ee4d2d, #c55c47);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    font-size: 16px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 190px;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-info i {
    margin-right: 5px;
}

header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 190px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.search-bar {
    flex: 1;
    max-width: 700px;
    margin: 0 50px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ee4d2d;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    padding: 12px 30px;
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ee4d2d;
    cursor: pointer;
    position: relative;
}

.user-info i {
    font-size: 24px;
}

.user-info span {
    display: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ee4d2d;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

nav {
    background: white;
    border-top: 1px solid #eee;
    padding: 0;
}

.nav-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 190px;
}

.nav-links {
    display: flex;
    gap: 0;
    flex: 1;
}

.nav-links .nav-link-item {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #f5f5f5;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 100;
    display: none;
    border-top: 2px solid #ee4d2d;
}

.nav-dropdown.active {
    display: block;
}

.nav-dropdown-item {
    padding: 12px 20px;
    color: #666;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.nav-dropdown-item:hover {
    background: #f9f9f9;
    color: #ee4d2d;
    padding-left: 25px;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.promo {
    color: #ee4d2d;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.sidebar-menu {
    padding: 0;
    margin-top: 190px;
    margin-bottom: 190px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ee4d2d;
    background: #f9f9f9;
}

.cart-header h3 {
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    font-size: 28px;
    font-weight: bold;
    font-style: italic;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item i {
    color: #999;
}

.submenu {
    display: none;
    background: #f9f9f9;
    padding: 10px 0;
}

.submenu.active {
    display: block;
}

.submenu-item {
    padding: 12px 40px;
    color: #666;
    cursor: pointer;
}

.submenu-item:hover {
    background: #f0f0f0;
    color: #ee4d2d;
    padding-left: 25px;
}

.sidebar-contact {
    padding: 0px 10px;
    border-top: 2px solid #f0f0f0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #ee4d2d;
    font-weight: 500;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.contact-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    background: #ee4d2d;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.cart-items {
    padding: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cart-item-price {
    color: #ee4d2d;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: #ee4d2d;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    color: #999;
    cursor: pointer;
    font-size: 18px;
}

.remove-item:hover {
    color: #ee4d2d;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

.cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #ee4d2d;
    padding: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.cart-total-price {
    color: #ee4d2d;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #c2185b;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

/* Search Popup Mobile */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.search-popup.active {
    display: flex;
}

.search-popup-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #ee4d2d;
    background: white;
}

.search-popup-back {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    margin-right: 15px;
}

.search-popup-input-wrapper {
    flex: 1;
    display: flex;
    position: relative;
}

.search-popup-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ee4d2d;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
}

.search-popup-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    display: none;
}

.search-popup-clear.active {
    display: block;
}

.search-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
}

.search-suggestions {
    margin-bottom: 30px;
}

.search-section-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f9f9f9;
}

.suggestion-icon {
    font-size: 18px;
    color: #999;
    width: 30px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.search-results {
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 10px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.search-result-price {
    font-size: 18px;
    color: #ee4d2d;
    font-weight: bold;
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.search-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

/* Popup Phân Loại */
.variant-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.variant-popup-overlay.active {
    display: flex;
}

.variant-popup {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.variant-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ee4d2d;
}

.variant-popup-header h3 {
    font-size: 18px;
    color: #333;
}

.variant-popup-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.variant-popup-close:hover {
    background: #f5f5f5;
    color: #ee4d2d;
}

.variant-popup-body {
    padding: 20px;
}

.variant-product-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.variant-product-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 10px;
}

.variant-product-details {
    flex: 1;
}

.variant-product-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.variant-product-price {
    font-size: 22px;
    color: #ee4d2d;
    font-weight: bold;
}

.variant-section {
    margin-bottom: 25px;
}

.variant-section-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    background: white;
}

.variant-option:hover {
    border-color: #ee4d2d;
    background: #fff5f8;
}

.variant-option.selected {
    border-color: #ee4d2d;
    background: #ee4d2d;
    color: white;
    font-weight: 500;
}

.variant-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.variant-option.disabled:hover {
    border-color: #ddd;
    background: #f5f5f5;
}

.variant-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.variant-quantity-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.variant-quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.variant-quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
}

.variant-quantity-input button:hover {
    background: #ee4d2d;
    color: white;
}

.variant-quantity-input input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.variant-popup-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.variant-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.variant-btn-cart {
    background: white;
    color: #ee4d2d;
    border: 2px solid #ee4d2d;
}

.variant-btn-cart:hover {
    background: #fff5f8;
}

.variant-btn-buy {
    background: #ee4d2d;
    color: white;
}

.variant-btn-buy:hover {
    background: #c2185b;
}

.variant-stock-info {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Bottom Navigation - CSS được giữ lại theo yêu cầu */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    padding: 8px 10px;
    cursor: pointer;
    flex: 1;
}

.nav-item i {
    font-size: 22px;
    color: #999;
    margin-bottom: 2px;
}

.nav-item.active i {
    color: #ee4d2d;
}

.nav-item.active {
    color: #ee4d2d;
}

.nav-item span {
    white-space: nowrap;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1400px) {

    .top-bar .container,
    .header-content,
    .nav-content {
        padding: 0 100px;
    }
}

@media (max-width: 1024px) {

    .top-bar .container,
    .header-content,
    .nav-content {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-content,
    .nav-content {
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }

    .search-bar {
        display: none;
    }

    .user-info span {
        display: none;
    }

    nav {
        display: none;
    }

    .bottom-nav {
        /* Quy tắc này được giữ lại */
        display: block;
    }

    .sidebar-menu {
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .variant-popup {
        width: 95%;
        max-height: 85vh;
    }

    .variant-popup-body {
        padding: 15px;
    }

    .variant-product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .variant-product-image {
        width: 120px;
        height: 120px;
    }

    .variant-options {
        gap: 8px;
    }

    .variant-option {
        padding: 8px 15px;
        font-size: 13px;
    }

    .variant-popup-footer {
        flex-direction: column;
    }

    .variant-btn {
        padding: 12px;
    }
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: #ee4d2d;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Flying Animation */
.flying-product {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.flying-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 4px;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.cart-bounce {
    animation: cartBounce 0.4s ease;
}

.main-container {
    padding-left: 190px;
    padding-right: 190px;
}

/* Banner Slider */
.banner-section {
    border-radius: 2px;
    overflow: hidden;
}

.banner-item {
    display: flex;
    gap: 8px;
}

.banner-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/1;
    object-fit: cover;
    border-radius: 2px;
}

.banner-single {
    flex: 1;
}

/* Product Section */
.product-section {
    background: white;
    padding: 20px 15px;
    margin: 15px 0;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 8px;
    margin-bottom: 12px;
    transition: transform 0.1s, box-shadow 0.1s;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #ee4d2d;
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f5f5f5;
    border-radius: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-price {
    color: #ee4d2d;
    font-size: 15px;
    font-weight: 500;
}

.product-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: auto;
}

.quantity-input {
    width: 50%;
    height: 30px;
    border: 1px solid #ee4d2d;
    border-right: none;
    border-radius: 2px 0 0 2px;
    text-align: center;
    font-size: 13px;
    outline: none;
}

.quantity-input:focus {
    border-color: #ee4d2d;
}

.add-to-cart-btn {
    flex: 1;
    height: 30px;
    background-color: #ee4d2d;
    color: white;
    border: 1px solid #ee4d2d;
    border-radius: 0 2px 2px 0;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.add-to-cart-btn:hover {
    background-color: #ee4d2d;
    border-color: #ee4d2d;
}

.add-to-cart-btn i {
    font-size: 12px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.carousel-control-prev {
    left: 8px;
}

.carousel-control-next {
    right: 8px;
}

.carousel-indicators {
    margin-bottom: 8px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
}

/* Gap giữa các cột */
.row {
    margin-left: -4px;
    margin-right: -4px;
}

.row>[class*='col-'] {
    padding-left: 4px;
    padding-right: 4px;
}

/* Horizontal Scroll Products */
.horizontal-scroll-section {
    background: white;
    padding: 20px 15px;
    margin: 15px 0;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ee4d2d #f0f0f0;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ee4d2d;
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #ee4d2d;
}

.horizontal-product-card {
    min-width: 160px;
    max-width: 160px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 8px;
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
    flex-shrink: 0;
}

.horizontal-product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #ee4d2d;
}

.horizontal-product-card .product-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f5f5f5;
    border-radius: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.horizontal-product-card .product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.horizontal-product-card .product-name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.horizontal-product-card .product-price {
    color: #ee4d2d;
    font-size: 15px;
    font-weight: 500;
}

.horizontal-product-card .product-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Tablet & Mobile Responsive */
@media (max-width: 992px) {
    .main-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .fixed-header {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding-left: 4px;
        padding-right: 4px;
    }

    .fixed-header {
        padding: 0 10px;
    }

    .header-logo {
        font-size: 20px;
    }

    .header-cart {
        font-size: 24px;
    }

    .banner-section {
        margin: 8px 0;
    }

    .banner-item {
        gap: 0;
    }

    .banner-single:last-child {
        display: none;
    }

    .product-section {
        padding: 12px 4px;
        margin: 8px 0;
    }

    .product-card {
        padding: 6px;
        margin-bottom: 8px;
    }

    .product-image-container {
        padding: 4px;
    }

    .product-name {
        font-size: 12px;
        height: 34px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 14px;
    }

    .quantity-input {
        width: 50%;
        height: 28px;
        font-size: 12px;
    }

    .add-to-cart-btn {
        height: 28px;
        font-size: 12px;
    }

    .add-to-cart-btn i {
        font-size: 11px;
    }

    .horizontal-scroll-section {
        padding: 12px 4px;
        margin: 8px 0;
    }

    .scroll-container {
        gap: 4px;
    }

    .horizontal-product-card {
        min-width: 140px;
        max-width: 140px;
        padding: 6px;
    }

    .horizontal-product-card .product-image-container {
        padding: 4px;
    }

    .horizontal-product-card .product-name {
        font-size: 12px;
        height: 34px;
    }

    .horizontal-product-card .product-price {
        font-size: 14px;
    }

    .row {
        margin-left: -2px;
        margin-right: -2px;
    }

    .row>[class*='col-'] {
        padding-left: 2px;
        padding-right: 2px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }

    .carousel-control-prev {
        left: 4px;
    }

    .carousel-control-next {
        right: 4px;
    }

    .carousel-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 576px) {
    .product-name {
        font-size: 11px;
        height: 30px;
    }

    .product-price {
        font-size: 13px;
    }
}


/* ======================================== MODAL ============================================= */
/* ------------------ CẤU TRÚC MODAL ĐÃ TINH CHỈNH ------------------ */

.modal-content {
    border-radius: 8px;
    /* Bo tròn đều 4 góc vì modal ở giữa */
    max-height: 70vh;
}

/* 💡 THAY ĐỔI QUAN TRỌNG: Giảm kích thước modal dialog */
.modal-dialog {
    max-width: 400px;
    /* Giữ kích thước nhỏ gọn */
}

/* Phần giá */
.product-price {
    color: #ee4d2d;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 3px;
}

/* Nút tùy chọn */
.option-btn {
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    padding: 5px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 2px;
    font-size: 0.9rem;
    cursor: pointer;
}

.option-btn.active {
    border-color: #ee4d2d;
    color: #ee4d2d;
    background-color: #fff7f5;
}

/* Thanh hành động (Mua hàng) */
.action-bar {
    /* SỬA: Loại bỏ position: sticky/absolute vì modal giờ ở giữa */
    display: flex;
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
    /* Thêm đường viền */
}

.btn-buy-now {
    background-color: #ee4d2d;
    border-color: #ee4d2d;
    color: white;
    flex-grow: 1;
}

/* Cải thiện Ô Số lượng */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-control .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    font-size: 1rem;
    border: none;
    border-radius: 0;
    background-color: #f8f9fa;
}

.quantity-control input {
    width: 45px;
    height: 35px;
    text-align: center;
    border: none;
    border-radius: 0;
    padding: 0;
    font-weight: 600;
}

/* ==================================== */
.section-banner {
    height: 70px;
    width: 100%;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6347 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(238, 77, 45, 0.3);
}

.section-banner::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: waveMove 3s ease-in-out infinite;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title span {
    display: inline-block;
    opacity: 0;
    animation: letterBounceIn 0.6s ease-out forwards;
}

.section-title span:nth-child(1) {
    animation-delay: 0.1s;
}

.section-title span:nth-child(2) {
    animation-delay: 0.15s;
}

.section-title span:nth-child(3) {
    animation-delay: 0.2s;
}

.section-title span:nth-child(4) {
    animation-delay: 0.25s;
}

.section-title span:nth-child(5) {
    animation-delay: 0.3s;
}

.section-title span:nth-child(6) {
    animation-delay: 0.35s;
}

.section-title span:nth-child(7) {
    animation-delay: 0.4s;
}

.section-title span:nth-child(8) {
    animation-delay: 0.45s;
}

.section-title span:nth-child(9) {
    animation-delay: 0.5s;
}

.section-title span:nth-child(10) {
    animation-delay: 0.55s;
}

.title-icon {
    font-size: 1.8rem;
    color: #fff;
    animation: rotateIcon 3s ease-in-out infinite;
}

.section-title:hover span {
    animation: jumpLetter 0.5s ease;
}

@keyframes letterBounceIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }

    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateIcon {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

@keyframes jumpLetter {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .title-icon {
        font-size: 1.3rem;
    }
}

/* CSS cho hình ảnh "bay" */
.flying-product-image {
    position: fixed;
    /* Quan trọng để nó bay ra khỏi luồng tài liệu */
    z-index: 9999;
    /* Đảm bảo nó luôn nằm trên cùng */
    width: 60px;
    /* Kích thước nhỏ hơn để có vẻ như đang thu nhỏ */
    height: 60px;
    border-radius: 50%;
    /* Làm hình ảnh tròn (tùy chọn) */
    opacity: 1;
    /* CSS cho transition để tạo hiệu ứng bay mượt mà */
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in;
    pointer-events: none;
    /* Đảm bảo nó không chặn click */
}

/* Thêm class này khi bắt đầu animation */
.flying-product-image.animate {
    opacity: 0.5;
    /* Giảm độ trong suốt khi bay */
}

/* CSS cho hiệu ứng lắc lư giỏ hàng (tùy chọn) */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.3s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.option-group {
    margin: 10px 0;
}

.option-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-item {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    user-select: none;
}

/* ẩn input radio */
.option-list input[type="radio"] {
    display: none;
}

/* hiệu ứng hover */
.option-item:hover {
    border-color: #ee4d2d;
    color: #ee4d2d;
}

/* trạng thái chọn */
.option-list input[type="radio"]:checked+.option-item {
    border-color: #ee4d2d;
    background-color: #fff4f0;
    color: #ee4d2d;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-row {
    display: flex;
    min-height: 500px;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.auth-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.auth-left-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.auth-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.btn-submit {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 10px;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: #333;
}

.social-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.toggle-form {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

.toggle-form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.toggle-form a:hover {
    text-decoration: underline;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.form-check {
    margin-bottom: 15px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    cursor: pointer;
    color: #666;
    margin-left: 8px;
}

.hidden-form {
    display: none;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .auth-row {
        flex-direction: column;
        min-height: auto;
    }

    .auth-left {
        padding: 30px 20px;
        min-height: 200px;
    }

    .auth-right {
        padding: 30px 20px;
    }

    .auth-left h2 {
        font-size: 1.8rem;
    }

    .form-title {
        font-size: 1.5rem;
    }
}

.product-name a{
    text-decoration: none;
    color: #000;
}