/* ==========================================================================
   HOT PRODUCTS SECTION STYLES (Sản Phẩm Bán Chạy)
   Synced from Reference/static-html/assets/css/hot-products.css
   ========================================================================== */

.hot-products {
    width: 100%;
    max-width: var(--tgwv-container-max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: 36px 0 44px;
    box-sizing: border-box;
}

.hot-products__heading {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hot-products__title {
    display: inline-block;
    position: relative;
    min-width: 310px;
    padding: 0 20px;
    border-top: 1px solid var(--tt-primary-red, #8b0304);
    border-bottom: 1px solid var(--tt-primary-red, #8b0304);
    color: var(--tt-primary-red, #8b0304);
    text-decoration: none;
    text-align: center;
    background-color: transparent;
}

.hot-products__title h2 {
    display: block;
    font-size: 24px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--tt-primary-red, #8b0304);
    margin: 0;
}

/* Decorative corners — PNG from Reference/static-html (btn41) */
.hot-products__title::before {
    content: "";
    background-image: var(--hp-title-corner-left, url(./images/btn41-bg-left.png));
    background-repeat: no-repeat;
    width: 13px;
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -13px;
}

.hot-products__title::after {
    content: "";
    background-image: var(--hp-title-corner-right, url(./images/btn41-bg-right.png));
    background-repeat: no-repeat;
    width: 13px;
    position: absolute;
    top: -1px;
    bottom: -10px;
    right: -13px;
}

.hot-products__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    grid-template-areas:
        "item1 item2 item3"
        "item4 item2 item5";
}

.hot-products__grid > .hot-products__item:nth-child(1) { grid-area: item1; }
.hot-products__grid > .hot-products__item:nth-child(2) { grid-area: item2; }
.hot-products__grid > .hot-products__item:nth-child(3) { grid-area: item3; }
.hot-products__grid > .hot-products__item:nth-child(4) { grid-area: item4; }
.hot-products__grid > .hot-products__item:nth-child(5) { grid-area: item5; }

.hot-products__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hot-products__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.hot-products__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hot-products__item--small {
    padding: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hot-products__image {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 135px;
    max-height: 155px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
    transition: transform 0.3s ease;
}

.hot-products__item--small:hover .hot-products__image {
    transform: translateY(-50%) scale(1.06);
}

.hot-products__content {
    position: relative;
    z-index: 3;
    max-width: 58%;
    color: #ffffff;
}

.hot-products__name {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hot-products__description {
    font-size: 15px;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.hot-products__from {
    font-size: 13px;
    color: #ffffff;
    margin: 0;
}

.hot-products__price {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hot-products__item--large {
    padding: 20px;
    min-height: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.hot-products__center-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.hot-products__center-name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hot-products__center-description {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.hot-products__center-image-wrapper {
    width: 200px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.hot-products__center-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.hot-products__item--large:hover .hot-products__center-image {
    transform: scale(1.08);
}

.hot-products__center-from {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
}

.hot-products__center-price {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hot-products__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 148px;
    padding: 6px 12px;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hot-products__button:hover {
    border-radius: 5px;
    color: #fff;
}

.hot-products__arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.hot-products__button:hover .hot-products__arrow {
    transform: translateX(3px);
}

.hot-products--empty {
    padding: 24px 0;
}

.hot-products__empty {
    text-align: center;
    color: #666;
    margin: 0;
}

@media (max-width: 991px) {
    .hot-products {
        padding: 28px 6px 36px;
    }

    .hot-products__title {
        min-width: 0;
        max-width: calc(100% - 40px);
    }

    .hot-products__title h2 {
        font-size: 18px;
        padding: 4px 0;
    }

    /* 2-col asymmetric: tall card right spans 2 rows (matches honglam.vn mobile) */
    .hot-products__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        grid-template-areas:
            "item1 item2"
            "item3 item2"
            "item4 item5";
    }

    .hot-products__item--large {
        min-height: 0;
        height: 100%;
        padding: 12px;
    }

    .hot-products__item--small {
        padding: 12px 10px;
        min-height: 0;
    }

    .hot-products__center-name {
        font-size: 16px;
    }

    .hot-products__center-description {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .hot-products__center-image-wrapper {
        width: 120px;
        height: 100px;
        margin: 4px 0;
    }

    .hot-products__center-from {
        font-size: 12px;
    }

    .hot-products__center-price,
    .hot-products__price {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .hot-products__name {
        font-size: 14px;
    }

    .hot-products__description {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .hot-products__from {
        font-size: 11px;
    }

    .hot-products__image {
        right: 6px;
        max-width: 72px;
        max-height: 90px;
    }

    .hot-products__content {
        max-width: 68%;
    }

    .hot-products__button {
        min-width: 0;
        width: max-content;
        max-width: 100%;
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
        white-space: nowrap;
        line-height: 1.2;
    }

    .hot-products__arrow {
        font-size: 10px;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .hot-products {
        padding: 24px 4px 32px;
    }

    .hot-products__grid {
        gap: 8px;
    }

    .hot-products__item--small {
        padding: 10px 8px;
    }

    .hot-products__item--large {
        padding: 10px;
    }

    .hot-products__name {
        font-size: 13px;
    }

    .hot-products__price,
    .hot-products__center-price {
        font-size: 16px;
    }

    .hot-products__image {
        max-width: 64px;
        max-height: 80px;
    }

    .hot-products__center-image-wrapper {
        width: 100px;
        height: 90px;
    }

    .hot-products__center-name {
        font-size: 14px;
    }

    .hot-products__button {
        padding: 5px 10px;
        font-size: 11px;
    }
}
