/* 1. BIẾN VÀ RESET */
:root {
    --red: #D10024;
    --dark: #15161D;
    --light: #E4E7ED;
    --grey-bg: #F3F5F7;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFF;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none !important;
    transition: 0.2s;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 2. HEADER & NAVIGATION */
#top-header {
    background: var(--dark);
    padding: 10px 0;
    font-size: 12px;
    color: #FFF;
    border-bottom: 1px solid #2B2D33;
}

.header-links li {
    display: inline-block;
    margin-right: 15px;
}

    .header-links li i {
        color: var(--red);
        margin-right: 5px;
    }

#header {
    background: var(--dark);
    padding: 25px 0;
    border-bottom: 3px solid var(--red);
    color: #FFF;
}

.logo {
    font-size: 32px;
    font-weight: 700;
}

    .logo span {
        color: var(--red);
    }

.header-search form {
    display: flex;
    align-items: center;
}

.header-search .input {
    width: 100%;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 40px 0 0 40px;
    color: #333;
}

.search-btn {
    background: var(--red);
    color: #FFF;
    border: none;
    height: 40px;
    padding: 0 25px;
    border-radius: 0 40px 40px 0;
    font-weight: 700;
    cursor: pointer;
}

.header-ctn {
    float: right;
    display: flex;
    gap: 25px;
    align-items: center;
}

.qty {
    position: absolute;
    right: -5px;
    top: -10px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background: var(--red);
    border-radius: 50%;
    font-size: 10px;
    text-align: center;
    color: #fff;
    font-weight: 700;
}

#navigation {
    background: #FFF;
    border-bottom: 2px solid var(--light);
    margin-bottom: 30px;
}

.main-nav > li > a {
    padding: 20px 15px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
    display: block;
    font-size: 13px;
}

.main-nav > li.active > a {
    color: var(--red) !important;
    border-bottom: 2px solid var(--red);
}

/* 3. FIX 3 BANNER TOP (CHO NÓ BÌNH THƯỜNG LẠI) */
.shop {
    position: relative;
    overflow: hidden;
    background-color: var(--light);
    height: 230px; /* Ép chiều cao cố định */
    margin-bottom: 30px;
}

    .shop:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 65%;
        height: 100%;
        background: var(--red);
        opacity: 0.9;
        transform: skewX(-45deg);
        transform-origin: bottom left;
        z-index: 1;
    }

.shop-img {
    height: 100%;
    position: relative;
}

    .shop-img img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Ảnh không bị méo, co giãn trong khung */
        transition: 0.3s all;
        z-index: 0;
    }

.shop:hover .shop-img img {
    transform: scale(1.1);
}

.shop-body {
    position: absolute;
    top: 25%;
    left: 10%;
    z-index: 10;
    color: #FFF;
}

    .shop-body h3 {
        font-size: 24px;
        font-weight: 700;
        margin: 0;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .shop-body a {
        color: #FFF;
        font-weight: 700;
        text-transform: uppercase;
        margin-top: 15px;
        display: inline-block;
        font-size: 12px;
    }

/* 4. GRID 5 CỘT (DÙNG CHO TRANG CHỦ 10-10) */
.display-flex-row {
    display: flex;
    flex-wrap: wrap;
}

.col-5-custom {
    width: 20%;
    float: left;
    padding: 0 10px;
}

@media (max-width: 991px) {
    .col-5-custom {
        width: 50%;
    }
}

/* 5. SIDEBAR CỬA HÀNG (DANH MỤC & THƯƠNG HIỆU) */
.aside-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 20px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 10px;
}

.filter-link {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
}

    .filter-link i {
        margin-right: 12px;
        color: var(--light);
        font-size: 16px;
        width: 18px;
    }

    .filter-link.active {
        color: var(--red);
        font-weight: 700;
    }

        .filter-link.active i {
            color: var(--red);
        }

    .filter-link:hover {
        color: var(--red);
    }

.price-filter .input {
    width: 85px;
    height: 35px;
    border: 1px solid var(--light);
    padding: 0 10px;
}

/* 6. CARD SẢN PHẨM (CÓ ICON KHI HOVER) */
.product {
    border: 1px solid var(--light);
    padding: 15px;
    text-align: center;
    background: #fff;
    margin-bottom: 25px;
    height: 430px;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product:hover {
        border-color: var(--red);
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

.product-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.product-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

    .product-label span {
        color: #FFF;
        padding: 2px 10px;
        font-size: 10px;
        font-weight: 700;
        background: var(--red);
    }

.product-body .product-category {
    font-size: 10px;
    color: #8D99AE;
    text-transform: uppercase;
    margin: 0;
}

.product-body .product-name {
    font-size: 13px;
    font-weight: 700;
    height: 35px;
    overflow: hidden;
    margin: 10px 0;
}

.product-body .product-price {
    color: var(--red);
    font-size: 17px;
    font-weight: 700;
}

.product-rating {
    color: var(--red);
    font-size: 10px;
    margin: 5px 0;
}

.product-btns {
    margin: 10px 0;
    opacity: 0;
    transition: 0.3s;
}

.product:hover .product-btns {
    opacity: 1;
}

.product-btns button {
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    color: #333;
    cursor: pointer;
}

    .product-btns button:hover {
        color: var(--red);
        background: var(--light);
        border-radius: 50%;
    }

.add-to-cart-btn {
    background: var(--red);
    color: #FFF;
    border: none;
    padding: 10px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

/* 7. BANNER KHUYẾN MÃI (CHÈN HÌNH NỀN) */
#hot-deal {
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid var(--red);
    margin: 30px 0;
    background-color: var(--grey-bg);
    background-image: url('https://technext.github.io/electro/img/hotdeal.png');
    background-position: center;
    background-repeat: no-repeat;
}

.hot-deal-countdown {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.time-item {
    background: var(--red);
    color: #FFF;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .time-item h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
    }

.primary-btn {
    background: var(--red);
    color: #FFF;
    padding: 12px 35px;
    border-radius: 40px;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
}

/* 8. WIDGETS DƯỚI TRANG */
.product-widget {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EEE;
    align-items: center;
}

.widget-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

    .widget-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.widget-body h5 {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.widget-body p {
    color: var(--red);
    font-weight: 700;
    margin: 5px 0 0;
}

#footer {
    background: var(--dark);
    color: #B9BABC;
    padding: 60px 0;
    margin-top: 40px;
}

.footer-title {
    color: #FFF;
    font-size: 18px;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.btn-eye-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #333;
    transition: 0.2s;
    cursor: pointer;
}

    .btn-eye-link:hover {
        color: #D10024 !important;
        background-color: #E4E7ED;
        border-radius: 50%;
    }
.empty-cart {
    color: #ff0000;
    font-size: 18px;
    font-weight: 600;
}
/* Style cho thông báo giỏ hàng trống */
.empty-cart-section {
    padding: 100px 0;
    text-align: center;
}

    .empty-cart-section i {
        font-size: 100px;
        color: #E4E7ED; /* Màu xám nhạt */
        margin-bottom: 25px;
        display: block;
    }

    .empty-cart-section h2 {
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 10px;
        color: #15161D;
    }

    .empty-cart-section p {
        font-size: 18px;
        color: #8D99AE;
        margin-bottom: 30px;
    }

    .empty-cart-section .primary-btn {
        padding: 15px 40px;
        border-radius: 40px;
        text-transform: uppercase;
        font-weight: 700;
        background-color: #D10024;
        color: #FFF;
        display: inline-block;
        transition: 0.2s all;
        text-decoration: none;
    }

        .empty-cart-section .primary-btn:hover {
            opacity: 0.9;
            color: #FFF;
            box-shadow: 0px 5px 15px rgba(209, 0, 36, 0.3);
        }