﻿/* =========================================================
   HONG HA UI2026
   Module : HomepagePromotionAuto
   Theme  : HongHa Red / White
========================================================= */
body {
    font-family: Arial,Helvetica,sans-serif;
    min-height: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

/* =========================================================
   MODULE
========================================================= */
.hh-promotion-auto {
    width: 100%;
    margin: 18px 0 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eeeeee;
}
/* =========================================================
   HEADER - KHUYẾN MÃI ĐẶC BIỆT
========================================================= */

.hh-promotion-auto__header {
    position: relative;

    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(190, 0, 0, 0.88) 0%,
            rgba(232, 65, 0, 0.72) 38%,
            rgba(247, 145, 59, 0.45) 70%,
            rgba(255, 255, 255, 0.08) 100%
        ),
        url("/UI2026/images/HomepagePromotionAuto/header-bg.png");

    background-size: cover;
    background-position: center;

    border-radius: 12px 12px 0 0;
}


/* =========================================================
   HEADING
========================================================= */

.hh-promotion-auto__heading {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 12px;
}


/* =========================================================
   ICON
========================================================= */

.hh-promotion-auto__heading-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #e30613;

    color: #fff;

    border-radius: 8px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);
}

.hh-promotion-auto__heading-icon i {
    font-size: 20px;
}


/* =========================================================
   TITLE
========================================================= */

.hh-promotion-auto__heading-title {
    color: #fff;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: 0.2px;

    text-transform: uppercase;

    text-shadow:
        0 2px 3px rgba(120, 0, 0, 0.55),
        0 1px 8px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   VIEW ALL
========================================================= */

.hh-promotion-auto__view-all {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    padding: 8px 12px;

    border-radius: 6px;

    background: rgba(180, 0, 0, 0.32);

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.45);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.hh-promotion-auto__view-all:hover {
    color: #fff;

    background: rgba(180, 0, 0, 0.55);

    transform: translateX(2px);
}


.hh-promotion-auto__view-all i {
    font-size: 12px;
}

/* =========================================================
   TABS
========================================================= */

.hh-promotion-auto__tabs-wrap {
    width: 100%;

    background: #f5f6f7;
}


/* Tab container */

.hh-promotion-auto__tabs {
    width: 100%;
}


/* Track */

.hh-promotion-auto__tabs-track {
    display: flex;
    width: 100%;
}


/* Tab item */

.hh-promotion-auto__tab-item {
    flex: 1 1 0;
    min-width: 0;
}


/* Tab */

.hh-promotion-auto__tab {
    position: relative;

    width: 100%;
    min-height: 62px;

    padding: 9px 14px;

    border: 0;
    outline: none;

    background: #f8f8f8;
    color: #222;
    border: 0;

    text-align: left;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* Tab title */

.hh-promotion-auto__tab-title {
    display: block;

    color: #222;

    font-size: 14px;
    font-weight: 600;

    line-height: 18px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Tab description */

.hh-promotion-auto__tab-desc {
    display: block;

    margin-top: 3px;

    color: #888;

    font-size: 11px;
    font-weight: 400;

    line-height: 15px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Hover */

.hh-promotion-auto__tab:hover {
    background: #fff0f1;
    color: #e60012;
}


/* =========================================================
   TAB ACTIVE
========================================================= */

.hh-promotion-auto__tab.active {
    background: #F7913B !important;
    color: #FFFFFF !important;
}

.hh-promotion-auto__tab.active
.hh-promotion-auto__tab-title {
    color: #FFFFFF !important;
}

.hh-promotion-auto__tab.active
.hh-promotion-auto__tab-desc {
    color: rgba(255, 255, 255, .9) !important;
}

.hh-promotion-auto__tab.active::after {
    background: #F7913B !important;
}


/* =========================================================
   PRODUCT AREA
========================================================= */

.hh-promotion-auto__products {
    width: 100%;
    background: #F7913B;
    padding: 8px;
    box-sizing: border-box;
}

/* Grid */

.hh-promotion-auto__product-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
   PRODUCT CARD
========================================================= */
.hh-promotion-auto__product-card {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: #FFFFFF;

    border: 1px solid #EEEEEE;
    border-radius: 9px;

    overflow: hidden;

    position: relative;

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}

/*card hover*/
.hh-promotion-auto__product-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, .10);
}


/* =========================================================
   PRODUCT LINK
========================================================= */

.hh-promotion-auto__product-link {
    display: block;

    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.hh-promotion-auto__product-image {
    position: relative;

    width: 100%;
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: #fff;

    overflow: hidden;
}


/* Image */

.hh-promotion-auto__product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform .25s ease;
}


/* Image hover */

.hh-promotion-auto__product-card:hover
.hh-promotion-auto__product-image img {
    transform: scale(1.035);
}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.hh-promotion-auto__product-content {
    padding: 8px 10px 5px;
}


/* Product title */

.hh-promotion-auto__product-title {
    margin: 0;

    height: 38px;

    color: #222;

    font-size: 13px;
    font-weight: 400;

    line-height: 19px;

    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   PRICE
========================================================= */

.hh-promotion-auto__product-price {
    margin-top: 7px;

    color: #d70018;

    font-size: 15px;
    font-weight: 700;

    line-height: 20px;
}


/* =========================================================
   OLD PRICE
========================================================= */

.hh-promotion-auto__product-old-price {
    margin-top: 1px;

    color: #999;

    font-size: 11px;
    line-height: 16px;

    text-decoration: line-through;
}


/* =========================================================
   PRODUCT FOOTER
========================================================= */

.hh-promotion-auto__product-footer {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 5px 9px 8px;

    margin-top: auto;
}


/* Installment */

.hh-promotion-auto__installment {
    max-width: calc(100% - 40px);

    color: #666;

    font-size: 11px;
    line-height: 16px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   CART BUTTON
========================================================= */

.hh-promotion-auto__cart {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #d70018;
    border-radius: 6px;

    background: #fff;

    color: #d70018;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


/* Cart icon */

.hh-promotion-auto__cart i {
    font-size: 13px;
}


/* Hover */

.hh-promotion-auto__cart:hover {
    background: #d70018;
    color: #fff;

    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .hh-promotion-auto__product-grid {
        gap: 8px;
    }

    .hh-promotion-auto__product-image {
        height: 175px;
    }

}


@media (max-width: 992px) {

    .hh-promotion-auto__product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .hh-promotion-auto__tab-title {
        font-size: 13px;
    }

}


@media (max-width: 768px) {

    .hh-promotion-auto {
        border-radius: 8px;
    }

    .hh-promotion-auto__header {
        height: 50px;
        padding: 0 12px;
    }

    .hh-promotion-auto__heading-title {
        font-size: 17px;
    }

    .hh-promotion-auto__heading-icon {
        width: 29px;
        height: 29px;
    }

    .hh-promotion-auto__tabs-track {
        overflow-x: auto;
    }

    .hh-promotion-auto__tab-item {
        flex: 0 0 145px;
    }

    .hh-promotion-auto__product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 480px) {

    .hh-promotion-auto__header {
        padding: 0 10px;
    }

    .hh-promotion-auto__heading-title {
        font-size: 16px;
    }

    .hh-promotion-auto__view-all {
        font-size: 12px;
    }

    .hh-promotion-auto__products {
        padding: 8px;
    }

    .hh-promotion-auto__product-grid {
        gap: 7px;
    }

    .hh-promotion-auto__product-image {
        height: 145px;
    }

    .hh-promotion-auto__product-content {
        padding: 7px 8px 4px;
    }

    .hh-promotion-auto__product-title {
        font-size: 12px;
        line-height: 17px;
        height:36px;
    }

    .hh-promotion-auto__product-price {
        font-size: 14px;
    }

}