.banner {
    margin-top: 15px;
}

.cart-notification {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 12px;
    width: 300px;
    display: flex;
    gap: 10px;
    margin-top: 10px;
    border-radius: 6px;
    animation: fadein 0.3s ease;
    position: relative;
}

.cart-notification img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-notification .info {
    flex: 1;
}

.cart-notification .info .name {
    font-weight: bold;
    margin-bottom: 4px;
}

.cart-notification .info .price {
    color: #f00;
}

.cart-notification .info .old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9em;
}

.cart-notification .view-cart-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
}

.cart-notification.fade-out {
    animation: fadeout 0.5s forwards;
}

@keyframes fadein {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeout {
    from {opacity: 1; transform: translateY(0);}
    to {opacity: 0; transform: translateY(-20px);}
}


.banner-slider img { 
    border-radius: 5px;
    width: 100%;
}

.banner .img-m {
    display: none;
}

/* Category  */
.home-categories {
    padding: 15px 0;
}

.category-slider .slick-slide {
    margin: 55px 8px 0;
    padding: 60px 8px 15px;
}

.category-slider .slick-list {
    margin: 0 -8px;
}

.item-category {
    background-color: var(--color-2);
    font-weight: 700;
    position: relative;
    text-align: center;
    display: block;
}

.item-category .wrap-img {
    padding-bottom: 70%;
    border-radius: 50%;
    width: 70%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.item-category .name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 37px;
    font-size: 13px;
}

/* Flash sale  */
.flash-sale {
    margin-top: 20px;
}

.flash-sale .inner {
    background-color: var(--color-5);
    padding: 30px 20px;
    border-radius: 5px;
}

.flash-sale .title-wrap {
    color: var(--color-2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 50px;
}

.flash-sale .title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.flash-sale .time-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.flash-sale .time-sale span {
    margin-right: 8px;
}

.flash-sale .time-sale .time {
    background-color: #ffb700;
    color: var(--color-1);
    border-radius: 5px;
    padding: 4px;
    width: 37px;
}

.flash-sale .time-sale .number {
    font-weight: 700;
}

.flash-sale .time-sale .type {
    font-size: 12px;
}

.flash-sale .see-all {
    text-align: right;
}

.flash-sale .see-all svg {
    width: 25px;
    height: 25px;
}

.flash-sale .see-all a {
    color: var(--color-2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: underline;
}

.flash-sale .item-product {
    border: none;
}

.product-block {
    margin-top: 16px;
}

.product-block > .row {
    row-gap: 16px;
}

.item-product {
    background-color: var(--color-2);
    border-radius: 5px;
    border: 1px solid #f4f4f4;
    padding: 10px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.item-product .discount {
    background: linear-gradient(93.01deg, #d31100 15.48%, #ff2310 92.66%);
    border-radius: 5px 5px 5px 0px;
    padding: 0px 10px;
    color: #fff;
    position: absolute;
    left: 5px;
    top: 5px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.item-product .discount::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    border-right: 10px solid transparent;
    border-bottom: 0px solid transparent;
    border-top: 10px solid #d31100;
}

.item-product .wrap-img {
    position: relative;
    height: 0;
    overflow: hidden;
    display: block;
    padding-bottom: 100%;
}

.item-product .wrap-img img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease 0s;
}

.item-product .wrap-img .image1 {
    transform: translateY(0);
}

.item-product .wrap-img .image2 {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.item-product:hover .image1 {
    opacity: 0;
    transform: translateY(100%);
}

.item-product:hover .has-one .image1 {
    opacity: 1;
    transform: translateY(0%);
}

.item-product:hover .image2 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.item-product .name {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 39px;
}

.item-product .des {
    margin-top: 10px;
    display: none;
}

.item-product .des ul { 
    margin-left: 18px;
}

.item-product .price-wrap {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 8px;
}

.item-product .price-new {
    font-size: 15px;
    color: #d60505;
    font-weight: 700;
}

.item-product .price-old {
    color: #8a919b;
    font-size: 12px;
}

.item-product .price-wrap .hot img{
    width: 35px;
}

.item-product .quick-view {
    display: flex;
}

.item-product .quick-view svg {
    width: 24px;
    height: 24px;
}

.item-product .add-cart-ajax {
    background-color: var(--color-5);
    color: var(--color-2);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 700;
}

.item-product .view-detail-btn {
    background-color: var(--color-3);
    color: var(--color-2);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 700;
}

.item-product .add-cart-ajax:hover {
    background-color: var(--color-3);
}

.item-product .product-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    padding-top: 12px;
    gap: 4px;
    width: 100%;
}

.item-product .product-info {
    background-color: var(--color-2);
    position: relative;
    z-index: 2;
    transition: .3s;
    padding-top: 10px;
}

.item-product:hover .product-info {
    transform: translateY(-45px);
}

.stars {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.stars ul li {
    list-style: none;
    display: flex;
}

.stars ul {
    display: inline-flex;
}

.stars ul li svg {
    width: 20px;
    height: 20px;
}

.flash-sale .item-product .productcount {
    display: block;
}

.item-product .productcount {
    margin-top: 15px;
    margin-bottom: 5px;
    min-height: 17px;   
    display: none;
}

.item-product .productcount .countitem {
    background-color: #ffe8e6;
    border-radius: 10px;
    position: relative;
    height: 17px;
}

.item-product .productcount .fire {
    position: absolute;
    width: 22px;
    height: 22px;
    top: -9px;
    left: 0;
    z-index: 1;
}

.item-product .productcount .countdown {
    position: absolute;
    border-radius: 10px;
    background: linear-gradient(to right, #c8103d, #f4b631);
    z-index: 0;
    left: 0;
    top: 0;
    height: 17px;
}

.item-product .productcount .number {
    font-size: 12px;
    position: absolute;
    top: 0;
    z-index: 3;
    color: var(--color-2);
    line-height: 17px;
    left: 50%;
    min-width: 70px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%);
}

.flashsale-slider {
    padding-bottom: 30px;
    margin-top: 25px;
}

.flashsale-slider .slick-slide {
    margin: 0 8px;
}

.flashsale-slider .slick-list {
    margin: 0 -8px;
}

.flashsale-slider .slick-dots {
    bottom: -10px;
}

.slick-dots li {
	height: 15px;
    width: 15px;
	border: none;
	background-color: #FFF;
}

.slick-dots li.slick-active {
	background-color: #fabd5c;
}

.slick-dots li button:before {
    display: none;
}

/* Product category  */
.product-category .inner {
    background-color: var(--color-2);
    border-radius: 5px;
    margin-top: 30px;
    padding: 30px 25px;
}

.category-child {
    text-align: right;
    overflow-x: auto;
    white-space: nowrap;
}

.category-child::-webkit-scrollbar {
    height: 5px;
}

.category-child::-webkit-scrollbar-thumb {
    background: var(--color-3); 
    border-radius: 10px;
}

.category-child li {
    display: inline-block;
}

.category-child li:not(:first-child) {
    margin-left: 5px;
}

.category-child li a {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #e2e2e2;
    font-weight: 400;
}

.category-child li a:hover {
    color: var(--color-2);
    background-color: var(--color-3);
}

.product-category .title {
    color: var(--color-3);
    text-transform: uppercase;
    font-size: 22px;
}

.product-category .banner-category {
    margin-top: 25px;
}

.product-category .banner-category .slick-slide {
    margin: 0 8px;
}

.product-category .banner-category .slick-list {
    margin: 0 -8px;
}

.product-category .banner-category img {
    border-radius: 5px;
}

/* News home  */
.news-home {
    padding: 30px 0;
}

.news-home .inner {
    background-color: var(--color-2);
    border-radius: 5px;
    padding: 30px 25px;
}

.news-home .title {
    display: inline-flex;
    background: linear-gradient(0deg, var(--color-3), var(--color-4));
    border-radius: 5px;
    color: var(--color-2);
    font-size: 16px;
    text-transform: uppercase;
    padding: 6px 30px 6px 10px;
    align-items: center;
    gap: 6px;
}

.news-home-block {
    margin-top: 30px;
}

.item-news-home.left .wrap-img {
    padding-bottom: 64.5%;
    margin-bottom: 10px;
}

.item-news-home.left .name {
    font-size: 20px;
}

.item-news-home.left .des {
    font-size: 15px;
    margin-top: 5px;
}

.item-news-home .wrap-img {
    padding-bottom: 71.5%;
}

.item-news-home .name {
    font-size: 17px;
}

.item-news-home .des {
    font-size: 14px;
    margin-top: 5px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

.right .item-news-home:not(:last-child) {
    margin-bottom: 16px;
}

/* Đối tác  */
.doi-tac-slider .slick-slide {
    margin: 0 8px;
    background-color: var(--color-2);
    padding: 5px;
    border-radius: 5px;
}

.doi-tac-slider .slick-list {
    margin: 0 -8px;
}

.doi-tac-slider .item img {
    border-radius: 5px;
}

.doi-tac {
    background: linear-gradient(0deg, var(--color-3), var(--color-4));
    padding: 20px 0;
}

@media (max-width: 768px) {
    .slick-dots li {
        height: 12px;
        width: 12px;
    }

    .category-child {
        text-align: left;
        margin-top: 12px;
    }

    .item-product .product-button {
        position: unset;
        padding-top: 5px;
    }   

    .item-product:hover .product-info {
        transform: translateY(0px);
    }

    .item-product .add-cart-ajax {
        font-size: 12px;
        padding: 5px;
    }

    .banner .img-m {
        display: block;
    }

    .banner .img-pc {
        display: none;
    }
}

@media (max-width: 550px) { 
    .news-home {
        padding: 20px 0;
    }

    .news-home .inner {
        padding: 15px;
    }

    .item-news-home .des {
        display: none;
    }

    .item-news-home.left .des {
        display: -webkit-box;
        margin-bottom: 15px;
    }

    .news-home-block {
        margin-top: 15px;
    }

    .product-category .title {
        font-size: 20px;
    }

    .product-category .inner {
        padding: 15px 10px;
        margin-top: 20px;
    }

    .product-category .clm,
    .flash-sale .clm,
    .product-list .clm {
        padding: 0px 4px;
    }

    .product-category .row,
    .flash-sale .row,
    .product-list .row {
        padding: 0px -4px;
    }

    .product-block {
        margin-top: 8px;
    }

    .product-block > .row {
        row-gap: 8px;
    }

    .item-product .des {
        font-size: 13px;
    }

    .product-category .category-child {
        margin-bottom: 10px;
    }

    .product-category .banner-category {
        margin-top: 15px;
    }

    .flash-sale .inner {
        padding: 15px 10px;
        position: relative;
    }

    .flashsale-slider .slick-slide {
        margin: 0 4px;
    }

    .flashsale-slider .slick-list {
        margin: 0 -4px;
    }

    .item-product .price-wrap {
        margin-top: 10px;
    }

    .flash-sale .see-all {
        position: absolute;
        top: 26px;
        right: 12px;
    }

    .flashsale-slider .slick-dots {
        bottom: -5px;
    }

    .flash-sale {
        margin-top: 5px;
    }

    .flash-sale .time-sale span {
        display: none;
    }

    .flash-sale .title-wrap {
        display: block;
    }

    .flash-sale .time-sale .time {
        display: flex;
        gap: 5px;
        align-items: center;
        width: unset;
    }

    .flash-sale .time-sale {
        background: #ffb700;
        justify-content: center;
        border-radius: 5px;
        font-size: 16px;
        gap: 10px 15px;
        margin-top: 10px;
    }

    .flash-sale .time-sale .type {
        font-size: 14px;
        transform: translateY(1px);
    }

    .category-slider .slick-slide {
        margin: 45px 8px 0;
        padding: 50px 5px 15px;
    }
}