body {
    background: #ffeeee62;
    padding-top: 120px;
}
.header-main {

}

/* HEADER TOP */
.header-top {
    background: #f8f8f8;
    font-size: 13px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

}

.header-top .left span {
    margin-right: 15px;
}

.header-top a {
    text-decoration: none;
    margin-left: 10px;
}

/* HEADER MAIN */
.header-main {
    padding: 10px 0;
    font-size: 13px;
    position: fixed;
    top: 15px;
    left: 0;
    width: 100%;
    max-height: 60px;
    z-index: 998;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.header-main .row {
    align-items: center;
}

.icon-box div {
    font-weight: 500;
}

.logo {
    font-weight: bold;
    font-size: 22px;
    color: #d70018;
}
.logo img{
    max-height: 50px;
    padding: 5px;
}
.search-box {
    display: flex;
}

.search-box input {
    height: 40px;
}

.search-box button {
    height: 40px;
    background: red;
    color: #fff;
}
.search-box button:hover {
    height: 40px;
    background: #e60023;
    color: #fff;
}
/* ICON SVG */

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.icon {
    width: 30px;
    height: 30px;
    color: #ff3b3b; /* đỏ tươi */
    padding-top: 5px;
}

.icon-box div {
    font-size: 14px;
    
}
.icon-box:hover .icon {
    transform: scale(1.1);
    transition: 0.2s;
}

.icon-box:hover div {
    color: #ff3b3b;
}


/* MEGA MENU */
.menu-root {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu-root > li {
    padding: 12px 20px;
    color: white;
    position: relative;
    cursor: pointer;
}
.menu-root > li {
    color: #fff; /* chữ trắng */
    font-weight: 500;
}

.mega-menu {
    background: red;
        position: fixed;
    top: 70px;
    width: 100%;
    z-index: 998;
}
.menu-root > li:hover {
    background: rgba(255,255,255,0.15);
    border-radius: 5px;
}


.mega-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 700px;
    background: white;
    padding: 15px;
    display: none;
    border-radius: 8px;
    z-index: 1000;
}
.mega-box {
    background: #fff;
}

.mega-box h6 {
    color: #000;
}


.has-mega:hover .mega-box {
    display: block;
}
.has-mega a  {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
    text-decoration: none;
}
.has-mega a:hover {
    color: #fff;
}
.mega-box h6 {
    font-weight: bold;
    margin-bottom: 8px;
}

.mega-box a {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
}
.mega-box a:hover {
    color: #d70018;
}

.bg-color-pink{
    background: #ffefefaf;
    height: auto;
    padding: 15px;
    border-radius: 5px;
}

/* BANNER */
.banner img {
    border-radius: 6px;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
.title-banner {
    position: relative;
    display: inline-block;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    padding: 8px 15px;
    z-index: 1;
}
.product-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.breadcrumb-custom {
    font-size: 14px;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.breadcrumb-custom a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-custom a:hover {
    color: #e53935;
}

.breadcrumb-custom span {
    color: #aaa;
}

.breadcrumb-custom .active {
    color: #e53935;
    font-weight: 500;
}

/* nền phía sau */
.title-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgb(255, 0, 0); /* nền mờ */
    border-radius: 6px;

    z-index: -1;
}

.title-banner img {
    width: 50px;
    height: 50px;
    object-fit: contain; /* giữ tỉ lệ ảnh */
    margin-bottom: 8px;
}
.card {
    border-radius: 10px;
    transition: 0.3s;
    position: relative;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.5s;
}

.card img {
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.price-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.new-price {
    color: #ff3b3b;
    font-weight: 700;
    font-size: 16px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
}

.badge-sale {
    position: absolute;
    top: 5px;
    left: 5px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
}

.category-item {
    background: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 15px 10px;
    transition: 0.3s;
    height: 100%;
    cursor: pointer;
}

.category-item img {
    width: 87.5px;
    height: 87.5px;
    object-fit: contain; /* giữ tỉ lệ ảnh */
    margin-bottom: 8px;
}

.category-item p {
    font-size: 13px;
    margin: 0;
    color: #333;
}

/* hover */
.category-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

/* hover nổi */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-img-box {
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 200px; /* hoặc chiều cao bạn muốn */
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-img {
    width: 100%;
    transition: 0.3s;
}

/* zoom ảnh */
.product-card:hover .product-img {
    transform: scale(1.08);
}

/* badge sale góc */
.badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff3b3b;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
}

/* nút hover */
.btn-quick {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;

    background: #fff;
    border: 1px solid #ff3b3b;
    color: #ff3b3b;

    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;

    transition: 0.3s;
}

/* hiện khi hover */
.product-card:hover .btn-quick {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* tên */
.product-name {
    font-size: 14px;
    height: 40px;
    overflow: hidden;
}

/* giá */
.price-box {
    display: flex;
    gap: 6px;
    align-items: center;
}

.new-price {
    color: #ff3b3b;
    font-weight: 700;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* rating */
.rating {
    font-size: 12px;
    color: #666;
}

.rating i {
    color: #ffc107;
}

/* nút đặt hàng */
.btn-order {
    background: #ff3b3b;
    color: #fff;
    border: none;
    padding: 7px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-order:hover {
    background: #e60000;
}
.badge-hot {
    position: absolute;
    top: 8px;
    right: 8px;
    background: orange;
    color: #fff;
}

.btn-red {
    background: #ff3b3b;
    color: #fff;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-red:hover {
    background: #e60023;
    color: #fff;
}
.fly-img {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(.65,-0.3,.3,1.5);
    border-radius: 10px;
}
.main-img-box {
    overflow: hidden;
    border-radius: 8px;
}

.main-img {
    width: 100%;
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

/* zoom khi hover */
.main-img-box:hover .main-img {
    transform: scale(1.5);
}

/* ảnh nhỏ */
.thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.thumb-img:hover {
    border-color: #ff3b3b;
}

#quickViewModal .new-price {
    color: #ff3b3b;
    font-weight: bold;
    font-size: 20px;
}

#quickViewModal .old-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}
.modal-body {
    position: static !important;
    z-index: auto !important;
}

.modal-dialog-end {
    position: fixed;
    right: 0;
    margin: 0;
    height: 100%;
}

.modal-dialog-end .modal-content {
    height: 100%;
    border-radius: 0;
}
.cart-item img {
    object-fit: cover;
}

.cart-item {
    transition: 0.2s;
}

.cart-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
}
.news-card {
    border: none;
    transition: 0.3s;
    border-radius: 12px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-img-box {
    height: 180px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.news-desc {
    font-size: 13px;
    color: #666;
    height: 40px;
    overflow: hidden;
}


.partner-slider {
    overflow: hidden;
    position: relative;
}

.partner-track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.partner-track img {
    height: 50px;
    margin: 0 30px;
    filter: grayscale(100%);
    transition: 0.3s;
    opacity: 0.7;
}

.partner-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}
.active-filter {
    background-color: red !important;
    color: #fff !important;
    border-color: red !important;
}


.btn-outline-danger:hover {
    background: red;
    color: #fff;
}

/* animation chạy */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* hover dừng */
.partner-slider:hover .partner-track {
    animation-play-state: paused;
}
@media (max-width: 768px) {
    .partner-track img {
        height: 40px;
        margin: 0 15px;
    }
}
.partner-slider::before,
.partner-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}

.partner-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.partner-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}
.policy-section {
    background: #f5f5f5;
    padding: 20px 0;
    padding-top: 10px;
}

.policy-item {
    padding: 15px;
    transition: 0.3s;
}

.policy-item:hover {
    transform: translateY(-5px);
}

.policy-icon {
    font-size: 28px;
    color: #e53935;
    margin-bottom: 10px;
}

.policy-item h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.policy-item p {
    font-size: 13px;
    color: #777;
    margin: 0;
}
.product-info-title {
    background: #e53935;
    color: #fff;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 12px;
    margin: 10px 0;

    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;    
}

.btn-close {
    font-weight: 600;
}

.footer {
    background: #111;
    color: #ccc;
}

.footer h6 {
    color: white;
    margin-bottom: 10px;
}

.footer p, .footer li, .footer a {
    font-size: 13px;
}
.footer a {
    text-decoration: none;
    color: #fff;
}
.footer li {
    margin-bottom: 5px;
}
.toast {
    min-width: 280px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;

    background: #d70018;
    color: #fff;

    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;

    font-size: 18px;
    cursor: pointer;

    display: none;
    z-index: 9999;

    transition: 0.3s;
}

#backToTop:hover {
    background: #a80014;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.cart-icon.active {
    animation: shake 0.3s;
}

/* ================= MOBILE ( <576px ) ================= */
@media (max-width: 575.98px) {

    .header-top {
        display: none;
        
    }

    .logo {
        text-align: center;
        font-size: 18px;
    }

    .search-box {
        margin-top: 8px;
    }

    .icon-box {
        display: none;
    }

    .mega-menu {
        display: none;
    }

    .carousel img {
        height: 180px;
    }

    .banner-small {
        height: 70px;
    }

    .card img {
        height: 120px;
    }

    .footer iframe {
        height: 120px;
    }
}


/* ================= TABLET ( ≥576px ) ================= */
@media (min-width: 576px) {

    .logo {
        font-size: 20px;
    }

    .card img {
        height: 140px;
    }
}


/* ================= TABLET LỚN ( ≥768px ) ================= */
@media (min-width: 768px) {

    .search-box input {
        font-size: 14px;
        margin-left:70px;
    }

    .card img {
        height: 160px;
    }

    .banner-small {
        height: 80px;
    }
}


/* ================= DESKTOP ( ≥992px ) ================= */
@media (min-width: 992px) {

    .header-top {
        display: block;
    }

    .icon-box {
        display: flex;
    }

    .mega-menu {
        display: block;
    }

    .carousel img {
        height: 300px;
    }

    .banner-small {
        height: 95px;
    }

    .card img {
        height: 180px;
    }
}


/* ================= DESKTOP LỚN ( ≥1200px ) ================= */
@media (min-width: 1200px) {

    .container {
        max-width: 1200px;
    }

    .card img {
        height: 200px;
    }
}


/* ================= MÀN HÌNH RẤT LỚN ( ≥1400px ) ================= */
@media (min-width: 1400px) {

    .container {
        max-width: 1320px;
    }

    .card img {
        height: 220px;
    }
}