﻿body {
}

/* ==========================================================
   HONGHA UI2026
   MODULE : HOMEPAGE PROMOTION PRODUCTS
   FILE   : HomepagePromotionTabs.css
   VERSION: V2
   ========================================================== */


/* ==========================================================
   01. MAIN CONTAINER
   ========================================================== */

.hh-home-promotion {
    width: 100%;
    margin: 24px auto 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}


/* ==========================================================
   02. HEADER
   ========================================================== */

.hh-home-promotion__header {
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #e60012;
    color: #fff;

    box-sizing: border-box;
}


.hh-home-promotion__title {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}


.hh-home-promotion__title i {
    font-size: 21px;
    color: #fff;
}


.hh-home-promotion__viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #fff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition: opacity .2s ease;
}


.hh-home-promotion__viewall:hover {
    color: #fff;
    opacity: .8;
}


.hh-home-promotion__viewall i {
    font-size: 12px;
}


/* ==========================================================
   03. TABS WRAPPER
   ========================================================== */

.hh-home-promotion__tabs-wrap {
    position: relative;

    width: 100%;
    height: 50px;

    display: flex;
    align-items: stretch;

    background: #fff;
    border-bottom: 1px solid #eeeeee;

    box-sizing: border-box;
}


/* ==========================================================
   04. TAB AREA
   ========================================================== */

.hh-home-promotion__tabs {
    position: relative;

    flex: 1;
    min-width: 0;

    overflow: hidden;
}


.hh-home-promotion__tabs-track {
    height: 100%;

    display: flex;
    align-items: stretch;

    width: max-content;

    transition: transform .3s ease;
    will-change: transform;
}


/* ==========================================================
   05. TAB ITEM
   ========================================================== */

.itemtabinpdnwebv2 {
    flex: 0 0 auto;
    height: 100%;
}


.hh-home-promotion__tab {
    position: relative;

    height: 100%;
    min-width: 120px;

    padding: 0 20px;

    border: 0;
    border-right: 1px solid #eeeeee;

    background: #fff;

    color: #555;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* hover */

.hh-home-promotion__tab:hover {
    background: #fff5f5;
    color: #e60012;
}


/* active */

.hh-home-promotion__tab.active {
    background: #fff;
    color: #e60012;
    font-weight: 700;
}


.hh-home-promotion__tab.active::after {
    content: "";

    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;

    height: 3px;

    background: #e60012;

    border-radius: 3px 3px 0 0;
}


/* ==========================================================
   06. TAB PREV / NEXT
   ========================================================== */

.hh-home-promotion__tab-btn {
    flex: 0 0 42px;

    width: 42px;
    height: 50px;

    padding: 0;

    border: 0;

    background: #fff;

    color: #666;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.hh-home-promotion__tab-btn:hover {
    background: #f7f7f7;
    color: #e60012;
}


.hh-home-promotion__tab-btn i {
    font-size: 13px;
}


/* disabled */

.hh-home-promotion__tab-btn.is-disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}


/* ==========================================================
   07. PRODUCT AREA
   ========================================================== */

.hh-home-promotion__products {
    width: 100%;
    padding: 12px;

    box-sizing: border-box;

    background: #f7f7f7;
}


/* ==========================================================
   08. PRODUCT GRID
   ========================================================== */

.hh-home-promotion__product-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;

    width: 100%;

    box-sizing: border-box;
}


/* ==========================================================
   09. PRODUCT CARD
   ========================================================== */

.hh-home-promotion__product-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    background: #fff;

    border: 1px solid #eeeeee;
    border-radius: 10px;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.hh-home-promotion__product-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .08);
}


/* ==========================================================
   10. PRODUCT LINK
   ========================================================== */

.hh-home-promotion__product-link {
    display: block;

    color: inherit;
    text-decoration: none;

    min-width: 0;
}


/* ==========================================================
   11. PRODUCT IMAGE
   ========================================================== */

.hh-home-promotion__product-image {
    width: 100%;
    height: 168px;

    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    box-sizing: border-box;
}


.hh-home-promotion__product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform .25s ease;
}


.hh-home-promotion__product-card:hover
.hh-home-promotion__product-image img {
    transform: scale(1.035);
}


/* ==========================================================
   12. PRODUCT TITLE
   ========================================================== */

.hh-home-promotion__product-title {
    margin: 0;

    padding: 8px 12px 0;

    height: 42px;

    color: #333;

    font-size: 14px;
    font-weight: 500;

    line-height: 21px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    box-sizing: border-box;
}


/* ==========================================================
   13. PRODUCT PRICE
   ========================================================== */

.hh-home-promotion__product-price {
    padding: 8px 12px 0;

    min-height: 58px;

    box-sizing: border-box;
}


/* current price */

.hh-home-promotion__price-current {
    color: #e60012;

    font-size: 17px;
    font-weight: 700;

    line-height: 22px;

    white-space: nowrap;
}


/* old price */

.hh-home-promotion__price-old {
    margin-top: 2px;

    color: #999;

    font-size: 12px;
    line-height: 18px;

    text-decoration: line-through;

    white-space: nowrap;
}


/* ==========================================================
   14. PRODUCT FOOTER
   ========================================================== */

.hh-home-promotion__product-footer {
    min-height: 42px;

    padding: 5px 8px 8px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}


/* ==========================================================
   15. INSTALLMENT
   ========================================================== */

.hh-home-promotion__installment {
    min-width: 0;

    color: #777;

    font-size: 11px;
    line-height: 17px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================
   16. CART BUTTON
   ========================================================== */

.hh-home-promotion__cart {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid #eeeeee;
    border-radius: 50%;

    background: #fff;

    color: #e60012;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, .08);

    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.hh-home-promotion__cart:hover {
    background: #e60012;
    color: #fff;

    transform: scale(1.05);
}


.hh-home-promotion__cart i {
    font-size: 13px;
}


/* ==========================================================
   17. MORE BUTTON
   ========================================================== */

.hh-home-promotion__more-wrap {
    padding: 14px 12px 16px;

    background: #f7f7f7;

    text-align: center;

    box-sizing: border-box;
}


.hh-home-promotion__more {
    min-width: 220px;
    height: 38px;

    padding: 0 22px;

    border: 1px solid #e60012;
    border-radius: 6px;

    background: #fff;

    color: #e60012;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.hh-home-promotion__more:hover {
    background: #e60012;
    color: #fff;
}


.hh-home-promotion__more i {
    margin-left: 6px;

    font-size: 11px;

    transition: transform .2s ease;
}


.hh-home-promotion__more.is-expanded i {
    transform: rotate(180deg);
}


/* ==========================================================
   18. PRODUCTS HIDDEN BY JS
   ========================================================== */

.hh-home-promotion__product-card.is-hidden {
    display: none;
}


/* ==========================================================
   19. RESPONSIVE
   ========================================================== */

/* --------------------------------
   5 PRODUCTS
--------------------------------- */

@media (max-width: 1200px) {

    .hh-home-promotion__product-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

}


/* --------------------------------
   4 PRODUCTS
--------------------------------- */

@media (max-width: 1000px) {

    .hh-home-promotion__product-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .hh-home-promotion__product-image {
        height: 155px;
    }

}


/* --------------------------------
   3 PRODUCTS
--------------------------------- */

@media (max-width: 760px) {

    .hh-home-promotion {
        border-radius: 8px;
    }


    .hh-home-promotion__header {
        height: 48px;

        padding: 0 14px;
    }


    .hh-home-promotion__title {
        font-size: 17px;
    }


    .hh-home-promotion__viewall {
        font-size: 13px;
    }


    .hh-home-promotion__product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;
    }


    .hh-home-promotion__product-image {
        height: 145px;
    }


    .hh-home-promotion__product-title {
        padding-left: 9px;
        padding-right: 9px;
    }


    .hh-home-promotion__product-price {
        padding-left: 9px;
        padding-right: 9px;
    }

}


/* --------------------------------
   2 PRODUCTS
--------------------------------- */

@media (max-width: 520px) {

    .hh-home-promotion__product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .hh-home-promotion__product-image {
        height: 155px;
    }


    .hh-home-promotion__price-current {
        font-size: 15px;
    }


    .hh-home-promotion__cart {
        width: 32px;
        height: 32px;
    }

}


/* --------------------------------
   MOBILE
--------------------------------- */

@media (max-width: 380px) {

    .hh-home-promotion__header {
        padding: 0 10px;
    }


    .hh-home-promotion__title {
        font-size: 15px;
    }


    .hh-home-promotion__title i {
        font-size: 17px;
    }


    .hh-home-promotion__viewall {
        font-size: 12px;
    }


    .hh-home-promotion__tab {
        min-width: 105px;

        padding: 0 14px;

        font-size: 13px;
    }


    .hh-home-promotion__product-image {
        height: 135px;
    }


    .hh-home-promotion__product-title {
        font-size: 13px;
        line-height: 19px;
    }


    .hh-home-promotion__price-current {
        font-size: 14px;
    }

}