* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
        background-color: #f5f5f5;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        text-decoration: none;
        background-color: #eb1616;
        display: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 4px;
        transition: background-color 0.3s;
    }



    .tygh-header {
        background: linear-gradient(180deg, #e45464 -13%, #d70018);
        color: white;
    }


    .header-top {
        padding: 12px 0;
    }

    .header-top-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }


    .logo-section {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 200px;
        flex-shrink: 0;
    }

    .somlogo {
        width: 100%;
    }

    .logo-main {
        background-color: white;
        color: #d70018;
        /* padding: 10px 16px; */
        border-radius: 6px;
        font-weight: bold;
        font-size: 15px;
        text-decoration: none;
        display: block;
        line-height: 1;
    }

    .logo-sub {
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 10px;
        text-align: center;
        white-space: nowrap;
        line-height: 1.2;
    }


    .search-section {
        flex: 1;
        max-width: 380px;
    }

    .search-form {
        position: relative;
        display: flex;
        align-items: center;
    }

    .search-input {
        width: 100%;
        padding: 10px 45px 10px 15px;
        border: none;
        border-radius: 20px;
        font-size: 14px;
        outline: none;
        background: white;
    }

    .search-btn {
        position: absolute;
        right: 12px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        color: #eb1616;
        font-size: 16px;
    }


    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
    }

    .hotline {
        display: flex;
        align-items: center;
        color: #eb1616;
        text-decoration: none;
        font-weight: bold;
        font-size: 15px;
        background-color: rgb(255 255 255);
        padding: 8px 12px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .hotline:hover {
        background-color: #000000ff;
        color: #fff;
    }

    .hotline::before {
        margin-right: 8px;
        font-size: 16px;
    }

    .hotline-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 5px;
    }

    .hotline-sub {
        font-size: 10px;
        font-weight: normal;
        margin-top: 1px;
    }

    .trade-in {
        display: flex;
        align-items: center;
        color: white;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 5px;
        transition: background-color 0.3s;
        background-color: #ffffff47;
        font-size: 12px;
    }

    .trade-in::before {
        margin-right: 5px;
    }

    .trade-in:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .cart-section {
        position: relative;
    }

    .cart-btn {
        display: flex;
        align-items: center;
        color: white;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 5px;
        transition: background-color 0.3s;
        background-color: #ffffff47;
        font-size: 13px;
    }

    .cart-btn::before {
        margin-right: 6px;
        font-size: 16px;
    }

    .cart-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .cart-count {
        background-color: #ff0000;
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 12px;
        min-width: 18px;
        text-align: center;
        margin-left: 6px;
    }


    .menu-bar {
        padding-bottom: 10px;
        /* background: linear-gradient(135deg, #d70018, #d70018); */

    }

    .menu-container {
        display: flex;
        gap: 10px;
        align-items: stretch;
    }

    .menu-category {
        position: relative;
        background-color: #e53e3e;
        display: flex;
        align-items: center;
        padding: 5px 20px;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s;
        font-size: 14px;
        font-weight: 500;
    }

    .menu-category:hover {
        background-color: #c53030;
    }

    .menu-category::before {
        content: "☰";
        margin-right: 10px;
        font-size: 16px;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        min-width: 280px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .menu-category:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-item {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: all 0.3s;
        font-size: 14px;
    }

    .menu-item:hover {
        background-color: #d70018;
        color: white;
        padding-left: 25px;
    }

    .menu-item:last-child {
        border-bottom: none;
    }


    .menu-item-phone::before {
        content: "📱";
        margin-right: 8px;
    }

    .menu-item-apple::before {
        content: "🍎";
        margin-right: 8px;
    }

    .menu-item-tablet::before {
        content: "📱";
        margin-right: 8px;
    }

    .menu-item-used::before {
        content: "♻️";
        margin-right: 8px;
    }

    .menu-item-watch::before {
        content: "⌚";
        margin-right: 8px;
    }

    .menu-item-accessories::before {
        content: "🔌";
        margin-right: 8px;
    }

    .menu-item-headphone::before {
        content: "🎧";
        margin-right: 8px;
    }

    .menu-item-news::before {
        content: "📰";
        margin-right: 8px;
    }

    .menu-item-laptop::before {
        content: "💻";
        margin-right: 8px;
    }


    .hot-products {

        background-color: #fff;
        border-radius: 6px;
        flex: 1;
        display: flex;
        align-items: center;
        padding: 5px 20px;
        gap: 15px;
    }

    .hot-label {
        color: #000;
        font-weight: bold;
        font-size: 14px;
        white-space: nowrap;
    }

    .hot-items {
        display: flex;
    }

    .hot-item {
        color: #666;
        text-decoration: none;
        padding: 3px 8px;
        border-radius: 3px;
        transition: background-color 0.3s;
        font-size: 13px;
        white-space: nowrap;
    }

    .hot-item:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }


    .cart-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        min-width: 250px;
        z-index: 1000;
        padding: 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .cart-section:hover .cart-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .cart-empty {
        text-align: center;
        color: #666;
        padding: 20px;
    }


    @media (max-width: 768px) {
        .header-top-content {
            flex-direction: column;
            gap: 12px;
        }

        .logo-section {
            width: 100%;
            justify-content: space-between;
        }

        .search-section {
            width: 100%;
            max-width: 100%;
        }

        .header-right {
            width: 100%;
            justify-content: space-between;
            gap: 10px;
        }

        .menu-bar {
            display: none;
        }

        .menu-container {
            flex-direction: column;
        }

        .hot-products {
            display: none;

        }

        .hot-items {
            justify-content: center;
            gap: 8px;
            padding: 0;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            min-width: 800px;

            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .menu-category:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }


        .menu-category.active .dropdown-menu {
            display: block;
            transform: translateX(0);
        }


        .hotline,
        .trade-in,
        .cart-btn {
            font-size: 11px;
            padding: 6px 8px;
        }

        .mobile-menu-toggle {
            display: block;
        }

        .hotline-text {
            display: none;
        }
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        border-right: 1px solid #ddd;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .mobile-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-close {
        display: block;
        padding: 12px 20px;
        background-color: #eb1616;
        color: white;
        text-decoration: none;
        font-size: 16px;
        text-align: center;
        border-bottom: 1px solid #eee;
        transition: background-color 0.3s;
    }

    .mobile-menu-close:hover {
        background-color: #c53030;
    }

    .mobile-menu-item {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: all 0.3s;
        font-size: 14px;
    }

    .mobile-menu-item:hover {
        background-color: #d70018;
        color: white;
        padding-left: 25px;
    }

    .mobile-menu-item:last-child {
        border-bottom: none;
    }




    @media (max-width: 768px) {
        .mobile-menu-toggle {
            display: block;
        }
    }

    .main-content {
        min-height: 500px;
    }

    .footer-container {
        color: white;
        padding: 0;
        margin: 0;
    }

    .top-features {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        background: linear-gradient(135deg, #d70018, #d70018);

    }

    .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        font-size: 13px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
        color: #d70018;
    }

    .main-footer {
        padding: 30px 20px;
    }

    .footer-content {
        color: #000;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-section h4 {
        margin-bottom: 15px;
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .footer-section ul {
        list-style: none;
    }

    .footer-section li {
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-section a {
        color: #333;
        text-decoration: none;
        transition: opacity 0.3s;
    }

    .footer-section a:hover {
        opacity: 0.8;
    }

    .contact-info .phone {
        font-weight: bold;
        font-size: 16px;
        color: #d42428;
        margin-bottom: 5px;
    }

    .contact-info .address {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .social-payment {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
    }

    .social-icons {
        display: flex;
        gap: 8px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        color: #d70018;
        text-decoration: none;
        font-size: 16px;
    }

    .payment-icons {
        display: flex;
        gap: 5px;
        align-items: center;
    }

    .payment-icon {
        height: 30px;
        background: white;
        border-radius: 3px;
        padding: 2px 5px;
        display: flex;
        align-items: center;
    }

    .certification-icons {
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }

    .cert-icon {
        height: 40px;
        background: white;
        border-radius: 5px;
        padding: 5px;
    }

    .product-list {
        color: #333;
        grid-column: 1 / -1;
        font-size: 12px;
        line-height: 1.6;
        margin: 20px 0;
        text-align: left;
    }

    .company-info {
        grid-column: 1 / -1;
        color: #333;

        font-size: 12px;
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }


    @media (max-width: 768px) {
        .top-features {
            flex-wrap: wrap;
            gap: 15px;
        }

        .feature-item {
            min-width: calc(50% - 10px);
            font-size: 11px;
        }

        .footer-content {
            grid-template-columns: 1fr 1fr;
            gap: 25px;
        }

        .contact-info .phone {
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .top-features {
            flex-direction: column;
            gap: 10px;
        }

        .feature-item {
            min-width: 100%;
            flex-direction: row;
            text-align: left;
            gap: 10px;
        }

        .feature-icon {
            margin-bottom: 0;
        }

        .footer-content {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .main-footer {
            padding: 20px 15px;
        }

        .social-payment {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
    }

    @media (min-width: 769px) {
        .home-page .menu-category .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .home-page .menu-category {
            background-color: #c53030;

        }
    }

    .content-area {
        background-color: #fff;
    }

    .dropdown-content {
        display: flex;
        padding: 20px;
        gap: 30px;
    }

    .dropdown-column {
        flex: 1;
        min-width: 200px;
    }

    .dropdown-column h4 {
        color: #d70018;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #d70018;
    }

    .subcategory-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .subcategory-item {
        margin-bottom: 8px;
    }

    .subcategory-link {
        display: block;
        padding: 8px 12px;
        color: #333;
        text-decoration: none;
        border-radius: 4px;
        font-size: 13px;
        transition: all 0.3s ease;
        position: relative;
    }

    .subcategory-link:hover {
        background-color: #d70018;
        color: white;
        padding-left: 16px;
    }


    .subcategory-link::before {
        margin-right: 8px;
        font-size: 14px;
    }


    .product-showcase {
        min-width: 250px;
        border-left: 1px solid #eee;
        padding-left: 20px;
    }

    .showcase-title {
        color: #d70018;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .product-item {
        display: flex;
        align-items: center;
        padding: 8px;
        margin-bottom: 10px;
        border-radius: 6px;
        transition: background-color 0.3s;
        text-decoration: none;
        color: #333;
    }

    .product-item:hover {
        background-color: #f8f9fa;
    }

    .product-image {
        width: 50px;
        height: 50px;
        border-radius: 4px;
        margin-right: 10px;
        background-color: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .product-info h5 {
        font-size: 12px;
        margin: 0 0 4px 0;
        font-weight: 500;
    }

    .product-price {
        font-size: 11px;
        color: #e53e3e;
        font-weight: bold;
    }


    @media (max-width: 768px) {
        .dropdown-menu {
            min-width: 100%;
            left: -100%;
        }

        .carousel-slide img {
            object-fit: unset !important;
        }

        .sidebar {
            display: none;
        }

        .dropdown-content {
            flex-direction: column;
            gap: 20px;
        }

        .product-showcase {
            border-left: none;
            border-top: 1px solid #eee;
            padding-left: 0;
            padding-top: 20px;
        }

        .owl-page {
            font-size: 11px !important;
        }

        .carousel-btn {
            width: 40px !important;
            height: 40px !important;
        }

        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: block;
                text-align: center;
                border: 1px solid;
                margin: 7px 0px;
                background-color: unset;
            }

            .logo-section {
                display: block;
            }
        }
    }

    .stfu {
        display: flex;
        align-items: center;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .left-bane {
        padding: 8px 15px;
        font-size: 14px;
    }

    .hot-items {
        display: flex;
    }

    iconify-icon {
        display: inline-block;
        width: 1em;
        height: 1em;
        margin-right: 5px;
    }
    /* CSS riêng cho cart dropdown - không xung đột với class khác */

/* Container cho cart dropdown */
.hm-cart-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* Cart dropdown content */
.hm-cart-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 400px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

/* Hiển thị dropdown khi hover */
.hm-cart-dropdown-wrapper:hover .hm-cart-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow cho dropdown */
.hm-cart-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.hm-cart-dropdown-content::after {
    content: '';
    position: absolute;
    top: -9px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e0e0e0;
}

/* Header của dropdown */
.hm-cart-dropdown-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

/* Container cho các items */
.hm-cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

/* Mỗi item trong cart */
.hm-cart-item-preview {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
}

.hm-cart-item-preview:hover {
    background-color: #f9f9f9;
}

.hm-cart-item-preview:last-child {
    border-bottom: none;
}

/* Hình ảnh sản phẩm */
.hm-cart-item-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Thông tin sản phẩm */
.hm-cart-item-info {
    flex: 1;
    min-width: 0;
}

.hm-cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-cart-item-details {
    font-size: 13px;
    color: #666;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hm-cart-item-quantity {
    font-weight: 500;
    color: #d70018;
}

.hm-cart-item-price {
    font-weight: 600;
    color: #d70018;
}

/* Tổng tiền */
.hm-cart-total-section {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.hm-cart-total-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hm-cart-total-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.hm-cart-total-amount {
    font-size: 16px;
    font-weight: 700;
    color: #d70018;
}

/* Nút xem giỏ hàng */
.hm-cart-view-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: #d70018;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.hm-cart-view-btn:hover {
    background: #b8001a;
    color: white;
    text-decoration: none;
}

/* Trạng thái giỏ hàng trống */
.hm-cart-empty-state {
    padding: 30px 20px;
    text-align: center;
}

.hm-cart-empty-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.hm-cart-empty-text {
    font-size: 15px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.hm-cart-empty-subtext {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

/* Badge số lượng */
.hm-cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d70018;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hm-cart-dropdown-content {
        min-width: 300px;
        right: -20px;
    }
    
    .hm-cart-item-preview {
        padding: 10px 15px;
    }
    
    .hm-cart-item-image {
        width: 40px;
        height: 40px;
    }
    
    .hm-cart-dropdown-header,
    .hm-cart-total-section {
        padding: 12px 15px;
    }
}

/* Scrollbar tùy chỉnh cho cart items */
.hm-cart-items-container::-webkit-scrollbar {
    width: 4px;
}

.hm-cart-items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.hm-cart-items-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.hm-cart-items-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}