/* =========================================================================
   HORECA FOOD — GIAO DIỆN WEBSITE V3 (11/2026)
   Nền trắng chủ đạo, phong cách grocery/F&B tối giản.
   Dùng chung cho trang chủ + các trang danh sách sản phẩm, chỉ áp dụng trong
   phần tử có class .hf-v3 (nạp qua app\modules\front\assets\FrontV3Asset).

   Lưu ý: style.css + custom.css có nhiều rule toàn cục (kèm !important) cho
   .product-view__content / .product-actions / .btn-add-to-cart. Các rule
   dưới đây dùng selector có tiền tố .hf-v3 (+ !important khi cần) để
   ghi đè trong phạm vi .hf-v3, không ảnh hưởng các trang khác.
   ========================================================================= */

.hf-v3 {
    --h3-font: "Be Vietnam Pro", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --h3-ink: #1d2420;
    --h3-text: #4a524c;
    --h3-muted: #858b86;
    --h3-line: #ebece8;
    --h3-soft: #f5f6f2;
    --h3-cream: #fbf6ef;
    --h3-orange: #f26522;
    --h3-orange-dark: #d9541a;
    --h3-orange-tint: #fff1e8;
    --h3-orange-line: #ffd9c2;
    --h3-green: #1f3d2c;
    --h3-green-mid: #2f6b45;
    --h3-green-tint: #eaf3ec;
    --h3-red: #e0402f;
    --h3-shadow: 0 18px 40px rgba(29, 36, 32, .09);
    --h3-gutter: 24px;

    display: block;
    padding-bottom: 72px;
    background: #fff;
    color: var(--h3-text);
    font-family: var(--h3-font);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.hf-v3 *,
.hf-v3 *::before,
.hf-v3 *::after {
    box-sizing: border-box;
}

.hf-v3 a {
    text-decoration: none;
}

.hf-v3 button {
    font-family: var(--h3-font);
}

.hf-v3 .container {
    width: 100%;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--h3-gutter) !important;
    padding-right: var(--h3-gutter) !important;
}

/* ---------- Khối + tiêu đề ---------- */
.hf-v3 .h3-section {
    padding-top: 72px;
}

.hf-v3 .h3-section--tight {
    padding-top: 56px;
}

.hf-v3 .h3-head {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.hf-v3 .h3-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--h3-orange);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hf-v3 .h3-title {
    margin: 0;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.hf-v3 .h3-sub {
    margin: 12px auto 0;
    color: var(--h3-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ---------- Nút ---------- */
.hf-v3 .h3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.hf-v3 .h3-btn i {
    font-size: 13px;
    transition: transform .2s ease;
}

.hf-v3 .h3-btn:hover i {
    transform: translateX(3px);
}

.hf-v3 .h3-btn--primary {
    background: var(--h3-orange);
    color: #fff;
    box-shadow: 0 12px 24px rgba(242, 101, 34, .22);
}

.hf-v3 .h3-btn--primary:hover {
    background: var(--h3-orange-dark);
    color: #fff;
}

.hf-v3 .h3-btn--ghost {
    border-color: #dfe1dc;
    background: #fff;
    color: var(--h3-ink);
}

.hf-v3 .h3-btn--ghost:hover {
    border-color: var(--h3-ink);
    background: var(--h3-ink);
    color: #fff;
}

.hf-v3 .h3-more {
    margin-top: 36px;
    text-align: center;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hf-v3 .h3-hero {
    padding-top: 24px;
}

.hf-v3 .h3-hero__frame {
    position: relative;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: 22px;
    background: var(--h3-soft);
    isolation: isolate;
}

.hf-v3 .h3-hero .slide-info,
.hf-v3 .h3-hero .slide-info .hero-inner,
.hf-v3 .h3-hero .hero-slide-wrap,
.hf-v3 .h3-hero .hf-home-hero-slide,
.hf-v3 .h3-hero .hf-home-hero-slider,
.hf-v3 .h3-hero .hf-home-hero-empty {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.hf-v3 .h3-hero .hf-home-hero-slider .slick-list,
.hf-v3 .h3-hero .hf-home-hero-slider .slick-track,
.hf-v3 .h3-hero .hf-home-hero-slider .slick-slide,
.hf-v3 .h3-hero .hf-home-hero-slider .slick-slide > div {
    height: 100% !important;
}

.hf-v3 .h3-hero .hf-home-hero-slider a,
.hf-v3 .h3-hero .hf-home-hero-slider picture {
    display: block !important;
    width: 100%;
    height: 100%;
}

.hf-v3 .h3-hero .hf-home-hero-slider:not(.slick-initialized) > a:not(:first-child) {
    display: none !important;
}

.hf-v3 .h3-hero .hf-home-hero-slider img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.hf-v3 .h3-hero .slick-dots {
    bottom: 18px;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.hf-v3 .h3-hero .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.hf-v3 .h3-hero .slick-dots li button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: width .25s ease, background-color .25s ease;
}

.hf-v3 .h3-hero .slick-dots li button::before {
    display: none;
}

.hf-v3 .h3-hero .slick-dots li.slick-active button {
    width: 28px;
    background: #fff;
}

.hf-v3 .h3-hero__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--h3-ink);
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%) scale(.92);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
}

.hf-v3 .h3-hero__nav.is-prev { left: 20px; }
.hf-v3 .h3-hero__nav.is-next { right: 20px; }

.hf-v3 .h3-hero__frame:hover .h3-hero__nav,
.hf-v3 .h3-hero__nav:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.hf-v3 .h3-hero__nav:hover {
    background: var(--h3-orange);
    color: #fff;
}

.hf-v3 .h3-hero__frame.is-single .h3-hero__nav {
    display: none;
}

/* =========================================================================
   TIỆN ÍCH
   ========================================================================= */
.hf-v3 .h3-benefits {
    padding-top: 24px;
}

.hf-v3 .h3-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--h3-line);
    border-radius: 18px;
    background: #fff;
}

.hf-v3 .h3-benefit {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 22px 26px;
    color: inherit;
}

.hf-v3 .h3-benefit + .h3-benefit::before {
    content: "";
    position: absolute;
    top: 24%;
    bottom: 24%;
    left: 0;
    width: 1px;
    background: var(--h3-line);
}

.hf-v3 .h3-benefit__icon {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--h3-orange-tint);
    color: var(--h3-orange);
    font-size: 20px;
    transition: background-color .2s ease, color .2s ease;
}

.hf-v3 .h3-benefit__icon img {
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
}

.hf-v3 .h3-benefit__text {
    min-width: 0;
}

.hf-v3 .h3-benefit__title {
    display: block;
    color: var(--h3-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.hf-v3 .h3-benefit__sub {
    display: block;
    margin-top: 3px;
    color: var(--h3-muted);
    font-size: 13px;
    line-height: 1.4;
}

.hf-v3 a.h3-benefit:hover .h3-benefit__icon {
    background: var(--h3-orange);
    color: #fff;
}

/* =========================================================================
   RAIL (dải cuộn ngang có mũi tên) — danh mục, ưu đãi, thương hiệu
   ========================================================================= */
.hf-v3 .h3-rail {
    position: relative;
}

.hf-v3 .h3-rail__track {
    display: flex;
    gap: 20px;
    margin: -8px -4px;
    padding: 8px 4px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hf-v3 .h3-rail__track::-webkit-scrollbar {
    display: none;
}

.hf-v3 .h3-rail__track > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.hf-v3 .h3-rail__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--h3-line);
    border-radius: 50%;
    background: #fff;
    color: var(--h3-ink);
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(29, 36, 32, .10);
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.hf-v3 .h3-rail__nav.is-prev { left: -22px; }
.hf-v3 .h3-rail__nav.is-next { right: -22px; }

.hf-v3 .h3-rail__nav:hover {
    border-color: var(--h3-orange);
    background: var(--h3-orange);
    color: #fff;
}

.hf-v3 .h3-rail__nav[disabled] {
    opacity: 0;
    pointer-events: none;
}

.hf-v3 .h3-rail.is-static .h3-rail__nav {
    display: none;
}

.hf-v3 .h3-rail.is-static .h3-rail__track {
    justify-content: center;
}

/* =========================================================================
   DANH MỤC
   ========================================================================= */
.hf-v3 .h3-cats__track > .h3-cat {
    width: calc((100% - 6 * 20px) / 7);
}

.hf-v3 .h3-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    color: var(--h3-ink);
    text-align: center;
}

.hf-v3 .h3-cat__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--h3-soft);
    color: var(--h3-orange);
    font-size: 34px;
    box-shadow: 0 0 0 1px var(--h3-line);
    transition: box-shadow .25s ease, transform .25s ease;
}

.hf-v3 .h3-cat__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.16);
    transition: transform .45s ease;
}

.hf-v3 .h3-cat__img.is-product {
    background: #fff;
}

.hf-v3 .h3-cat__img.is-product img {
    padding: 16%;
    object-fit: contain;
    transform: none;
}

.hf-v3 .h3-cat:hover .h3-cat__img {
    box-shadow: 0 0 0 2px var(--h3-orange), 0 16px 30px rgba(242, 101, 34, .18);
    transform: translateY(-3px);
}

.hf-v3 .h3-cat:hover .h3-cat__img img {
    transform: scale(1.24);
}

.hf-v3 .h3-cat:hover .h3-cat__img.is-product img {
    transform: scale(1.06);
}

.hf-v3 .h3-cat__name {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .2s ease;
}

.hf-v3 .h3-cat__count {
    margin-top: 4px;
    color: var(--h3-muted);
    font-size: 13px;
}

.hf-v3 .h3-cat:hover .h3-cat__name {
    color: var(--h3-orange);
}

/* =========================================================================
   LƯỚI SẢN PHẨM + THẺ SẢN PHẨM
   ========================================================================= */
.hf-v3 .h3-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hf-v3 .h3-grid__item {
    min-width: 0;
}

/* Desktop 4 cột x 3 hàng = 12 thẻ (đủ danh sách trang chủ); tablet/mobile ẩn bớt cho chẵn hàng. */

.hf-v3 .h3-card.product-view__content {
    position: relative;
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--h3-line) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: none;
    text-align: left !important;
    transform: none;
    transition: border-color .25s ease, box-shadow .3s ease, transform .3s ease !important;
}

.hf-v3 .h3-card.product-view__content:hover {
    border-color: #e0e2dc !important;
    border-radius: 18px !important;
    box-shadow: var(--h3-shadow) !important;
    transform: translateY(-4px) !important;
}

.hf-v3 .h3-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: 20px;
    overflow: hidden;
    background: #fff;
}

.hf-v3 .h3-card__media img.img-product {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    transition: transform .5s ease;
}

.hf-v3 .h3-card:hover .h3-card__media img.img-product {
    transform: scale(1.06);
}

.hf-v3 .h3-card__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--h3-soft);
    color: #c8ccc6;
    font-size: 32px;
}

.hf-v3 .h3-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 4px 16px 16px;
}

.hf-v3 .h3-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-bottom: 12px;
    color: var(--h3-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.hf-v3 .h3-card__variant {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hf-v3 .h3-card__stock {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.hf-v3 .h3-card__stock::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.hf-v3 .h3-card__stock.is-in { color: var(--h3-green-mid); }
.hf-v3 .h3-card__stock.is-pre { color: #2563eb; }
.hf-v3 .h3-card__stock.is-out { color: var(--h3-red); }

.hf-v3 .h3-card__name.title-product {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 4px !important;
    color: var(--h3-ink);
    font-family: var(--h3-font) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.hf-v3 .h3-card__name a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--h3-ink) !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .2s ease;
}

.hf-v3 .h3-card__name a:hover {
    color: var(--h3-orange) !important;
}

/* Hàng cuối thẻ: giá bên trái, nút icon (giỏ hàng / điện thoại) bên phải. */
.hf-v3 .h3-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.hf-v3 .h3-card__price.product-price-box {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    text-align: left !important;
}

.hf-v3 .h3-card .price-new {
    color: var(--h3-orange) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    white-space: nowrap;
}

.hf-v3 .h3-card .price-new.is-contact {
    color: var(--h3-green-mid) !important;
    font-size: 15px !important;
}

.hf-v3 .h3-card .price-old {
    color: #a3a8a4 !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: line-through;
    white-space: nowrap;
}

/* ----- Nút icon + stepper số lượng (sau khi đã thêm vào giỏ) ----- */
.hf-v3 .h3-card .product-actions {
    display: block !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
}

.hf-v3 .h3-card .product-actions li {
    width: auto !important;
    text-align: right;
}

.hf-v3 .h3-card .product-actions li .hf-home-cart-control {
    width: auto;
    min-height: 0;
}

.hf-v3 .h3-card .hf-home-cart-stepper {
    grid-template-columns: 34px 30px 34px;
    width: auto;
    min-height: 40px;
    border: 1px solid #bfe3c4;
    background: #fff;
    box-shadow: none;
}

.hf-v3 .h3-card .hf-home-cart-qty-btn {
    width: 34px;
    height: 38px;
    color: var(--h3-green-mid);
    font-size: 19px;
}

.hf-v3 .h3-card .hf-home-cart-qty-btn:hover:not(:disabled) {
    background: #f1faf2;
    color: var(--h3-green-mid);
}

.hf-v3 .h3-card .hf-home-cart-qty-btn.is-plus {
    background: #3bb54a;
    color: #fff;
}

.hf-v3 .h3-card .hf-home-cart-qty-btn.is-plus:hover:not(:disabled) {
    background: #2fa13e;
    color: #fff;
}

.hf-v3 .h3-card .hf-home-cart-value {
    color: var(--h3-ink);
    font-size: 15px;
    font-weight: 700;
}

/* ----- Badge + yêu thích ----- */
.hf-v3 .h3-card .hf-product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: calc(100% - 64px);
    pointer-events: none;
}

.hf-v3 .h3-card .hf-product-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 10px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: none;
}

.hf-v3 .h3-card .hf-product-badge.is-best {
    background: var(--h3-orange);
    color: #fff;
}

.hf-v3 .h3-card .hf-product-badge.is-new {
    background: var(--h3-green-mid);
    color: #fff;
}

.hf-v3 .h3-card .hf-product-badge.is-promo {
    background: var(--h3-green);
    color: #fff;
}

.hf-v3 .h3-card .hf-product-badge.is-discount {
    background: var(--h3-red);
    color: #fff;
}

.hf-v3 .h3-card .hf-product-badge.hf-card-promo-badge {
    border: 1px solid #f6d29c;
    background: #fff6e6;
    color: #9a4a00;
}

.hf-v3 .h3-card .hf-product-badge.hf-card-promo-badge.is-order {
    border-color: #bfdcc8;
    background: var(--h3-green-tint);
    color: var(--h3-green-mid);
}

.hf-v3 .h3-card .hf-product-badge.hf-card-promo-badge.is-money {
    border-color: var(--h3-red);
    background: var(--h3-red);
    color: #fff;
}

.hf-v3 .h3-card .hf-product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--h3-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--h3-ink);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.hf-v3 .h3-card .hf-product-wishlist i {
    color: inherit !important;
}

.hf-v3 .h3-card .hf-product-wishlist:hover {
    border-color: var(--h3-orange);
    color: var(--h3-orange);
    transform: scale(1.06);
}

.hf-v3 .h3-card .hf-product-wishlist.is-active,
.hf-v3 .h3-card .hf-product-wishlist.is-active:hover {
    border-color: var(--h3-orange);
    background: var(--h3-orange);
    color: #fff;
}

.hf-v3 .h3-card .hf-product-wishlist.is-loading {
    opacity: .55;
    pointer-events: none;
}

.hf-v3 .h3-card .hf-product-wishlist:focus-visible {
    outline: 3px solid rgba(242, 101, 34, .3);
    outline-offset: 2px;
}

/* =========================================================================
   BANNER ĐÔI
   ========================================================================= */
.hf-v3 .h3-duo__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hf-v3 .h3-duo__item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 22px;
    background: #2a1d14;
    isolation: isolate;
}

.hf-v3 .h3-duo__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.hf-v3 .h3-duo__item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(22, 15, 10, .80) 0%, rgba(22, 15, 10, .48) 38%, rgba(22, 15, 10, 0) 72%);
}

.hf-v3 .h3-duo__content {
    position: absolute;
    top: 50%;
    left: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 58%;
    transform: translateY(-50%);
}

.hf-v3 .h3-duo__eyebrow {
    color: #ffc6a3;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hf-v3 .h3-duo__title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.hf-v3 .h3-duo__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    margin-top: 8px;
    padding: 0 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--h3-ink);
    font-size: 14px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}

.hf-v3 .h3-duo__btn i {
    font-size: 12px;
}

.hf-v3 .h3-duo__item:hover img {
    transform: scale(1.05);
}

.hf-v3 .h3-duo__item:hover .h3-duo__btn {
    background: var(--h3-orange);
    color: #fff;
}

/* =========================================================================
   ƯU ĐÃI
   ========================================================================= */
.hf-v3 .h3-deal__shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border: 1px solid #f2e6d6;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0 0, rgba(242, 101, 34, .10) 0, rgba(242, 101, 34, 0) 42%),
        var(--h3-cream);
}

.hf-v3 .h3-deal__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 8px;
}

.hf-v3 .h3-deal__title {
    margin: 0 0 14px;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.hf-v3 .h3-deal__text {
    margin: 0 0 24px;
    color: var(--h3-text);
    font-size: 14.5px;
    line-height: 1.7;
}

.hf-v3 .h3-countdown {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.hf-v3 .h3-countdown__cell {
    width: 62px;
    padding: 9px 0 8px;
    border: 1px solid #f0e1cc;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.hf-v3 .h3-countdown__cell b {
    display: block;
    color: var(--h3-orange);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hf-v3 .h3-countdown__cell span {
    display: block;
    margin-top: 2px;
    color: var(--h3-muted);
    font-size: 11px;
}

.hf-v3 .h3-deal__track {
    gap: 16px;
}

.hf-v3 .h3-deal__track > .h3-deal__slide {
    width: calc((100% - 3 * 16px) / 4);
}

.hf-v3 .h3-deal__rail .h3-rail__nav.is-prev { left: -18px; }
.hf-v3 .h3-deal__rail .h3-rail__nav.is-next { right: -18px; }

.hf-v3 .h3-deal__rail.is-static .h3-rail__track {
    justify-content: flex-start;
}

/* =========================================================================
   COMBO
   ========================================================================= */
.hf-v3 .h3-combos__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.hf-v3 .h3-combo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--h3-line);
    border-radius: 20px;
    background: #fff;
    transition: box-shadow .3s ease, transform .3s ease;
}

.hf-v3 .h3-combo:hover {
    box-shadow: var(--h3-shadow);
    transform: translateY(-4px);
}

.hf-v3 .h3-combo__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--h3-soft);
}

.hf-v3 .h3-combo__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s ease;
}

.hf-v3 .h3-combo:hover .h3-combo__media img {
    transform: scale(1.05);
}

.hf-v3 .h3-combo__save {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--h3-red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.hf-v3 .h3-combo__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.hf-v3 .h3-combo__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--h3-green-mid);
    font-size: 12.5px;
    font-weight: 500;
}

.hf-v3 .h3-combo__name {
    min-height: 2.8em;
    margin: 0 0 14px;
    font-family: var(--h3-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.hf-v3 .h3-combo__name a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--h3-ink);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hf-v3 .h3-combo__name a:hover {
    color: var(--h3-orange);
}

.hf-v3 .h3-combo__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.hf-v3 .h3-combo__price {
    min-width: 0;
}

.hf-v3 .h3-combo__price-new {
    display: block;
    color: var(--h3-orange);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.hf-v3 .h3-combo__price-old {
    display: block;
    color: #a3a8a4;
    font-size: 13px;
    text-decoration: line-through;
}

.hf-v3 .h3-combo__add {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--h3-ink);
    color: #fff;
    font-size: 15px;
    transition: background-color .2s ease, transform .2s ease;
}

.hf-v3 .h3-combo__add:hover {
    background: var(--h3-orange);
    color: #fff;
    transform: rotate(90deg);
}

/* =========================================================================
   BANNER BA
   ========================================================================= */
.hf-v3 .h3-trio__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hf-v3 .h3-trio__item {
    display: block;
    aspect-ratio: 39 / 20;
    overflow: hidden;
    border-radius: 20px;
    background: var(--h3-soft);
}

.hf-v3 .h3-trio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.hf-v3 .h3-trio__item:hover img {
    transform: scale(1.04);
}

/* =========================================================================
   GIỚI THIỆU
   ========================================================================= */
.hf-v3 .h3-about {
    margin-top: 80px;
    padding: 80px 0;
    background: var(--h3-soft);
}

.hf-v3 .h3-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.hf-v3 .h3-about__media {
    position: relative;
}

.hf-v3 .h3-about__media.is-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    aspect-ratio: 5 / 4;
}

.hf-v3 .h3-about__tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
}

.hf-v3 .h3-about__tile.is-1 {
    grid-row: 1 / span 2;
}

.hf-v3 .h3-about__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform .6s ease;
}

.hf-v3 .h3-about__tile:hover img {
    transform: scale(1.16);
}

.hf-v3 .h3-about__tile-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--h3-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(29, 36, 32, .10);
}

.hf-v3 .h3-about__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5 / 4;
    border-radius: 28px;
    background: #fff;
    color: #d0d3cd;
    font-size: 56px;
}

.hf-v3 .h3-about__badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--h3-shadow);
}

.hf-v3 .h3-about__badge-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--h3-orange);
    color: #fff;
    font-size: 18px;
}

.hf-v3 .h3-about__badge b {
    display: block;
    color: var(--h3-ink);
    font-size: 15px;
    font-weight: 700;
}

.hf-v3 .h3-about__badge small {
    display: block;
    margin-top: 2px;
    color: var(--h3-muted);
    font-size: 12.5px;
}

.hf-v3 .h3-about__title {
    margin: 0 0 18px;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.hf-v3 .h3-about__title span {
    display: block;
    color: var(--h3-text);
    font-weight: 400;
}

.hf-v3 .h3-about__lead {
    margin: 0 0 22px;
    color: var(--h3-text);
    font-size: 15.5px;
    line-height: 1.75;
}

.hf-v3 .h3-about__list {
    display: grid;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.hf-v3 .h3-about__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--h3-ink);
    font-size: 15px;
    line-height: 1.55;
}

.hf-v3 .h3-about__list i {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 0;
    border-radius: 50%;
    background: var(--h3-green-tint);
    color: var(--h3-green-mid);
    font-size: 11px;
}

.hf-v3 .h3-about__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
}

.hf-v3 .h3-about__hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--h3-ink);
}

.hf-v3 .h3-about__hotline-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #dfe1dc;
    border-radius: 50%;
    background: #fff;
    color: var(--h3-orange);
    font-size: 17px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hf-v3 .h3-about__hotline small {
    display: block;
    color: var(--h3-muted);
    font-size: 12.5px;
}

.hf-v3 .h3-about__hotline b {
    display: block;
    color: var(--h3-ink);
    font-size: 18px;
    font-weight: 700;
}

.hf-v3 .h3-about__hotline:hover .h3-about__hotline-icon {
    border-color: var(--h3-orange);
    background: var(--h3-orange);
    color: #fff;
}

/* =========================================================================
   THƯƠNG HIỆU
   ========================================================================= */
.hf-v3 .h3-brands__track > .h3-brand {
    width: calc((100% - 5 * 20px) / 6);
}

.hf-v3 .h3-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--h3-text);
}

.hf-v3 .h3-brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 18px 22px;
    border: 1px solid var(--h3-line);
    border-radius: 18px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}

.hf-v3 .h3-brand__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hf-v3 .h3-brand:hover .h3-brand__logo {
    border-color: var(--h3-orange-line);
    box-shadow: 0 14px 28px rgba(29, 36, 32, .07);
    transform: translateY(-3px);
}

.hf-v3 .h3-brand__name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color .2s ease;
}

.hf-v3 .h3-brand:hover .h3-brand__name {
    color: var(--h3-orange);
}

/* =========================================================================
   TIN TỨC
   ========================================================================= */
.hf-v3 .h3-news__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.hf-v3 .h3-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--h3-line);
    border-radius: 20px;
    background: #fff;
    transition: box-shadow .3s ease, transform .3s ease;
}

.hf-v3 .h3-post:hover {
    box-shadow: var(--h3-shadow);
    transform: translateY(-4px);
}

.hf-v3 .h3-post__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--h3-soft);
}

.hf-v3 .h3-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.hf-v3 .h3-post:hover .h3-post__media img {
    transform: scale(1.05);
}

.hf-v3 .h3-post__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.hf-v3 .h3-post__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--h3-muted);
    font-size: 12.5px;
}

.hf-v3 .h3-post__title {
    margin: 0 0 8px;
    font-family: var(--h3-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.hf-v3 .h3-post__title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--h3-ink);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hf-v3 .h3-post__title a:hover {
    color: var(--h3-orange);
}

.hf-v3 .h3-post__excerpt {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--h3-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hf-v3 .h3-post__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--h3-orange);
    font-size: 14px;
    font-weight: 600;
}

.hf-v3 .h3-post__more i {
    font-size: 12px;
    transition: transform .2s ease;
}

.hf-v3 .h3-post__more:hover {
    color: var(--h3-orange-dark);
}

.hf-v3 .h3-post__more:hover i {
    transform: translateX(3px);
}

/* =========================================================================
   POPUP TRANG CHỦ (giữ nguyên hành vi cũ)
   ========================================================================= */
.hf-home-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.hf-home-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hf-home-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 10, .62);
    backdrop-filter: blur(3px);
}

.hf-home-popup__dialog {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
    transform: translateY(16px) scale(.98);
    transition: transform .22s ease;
}

.hf-home-popup.is-visible .hf-home-popup__dialog {
    transform: translateY(0) scale(1);
}

.hf-home-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #1f160f;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.hf-home-popup__close:hover {
    background: #f26522;
    color: #fff;
    transform: rotate(90deg);
}

.hf-home-popup__close i,
.hf-home-popup__close svg {
    pointer-events: none;
}

.hf-home-popup__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff4ec;
}

.hf-home-popup__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hf-home-popup__body {
    padding: 24px 28px 28px;
    text-align: center;
}

.hf-home-popup__title {
    margin: 0 0 10px;
    color: #1f160f;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.hf-home-popup__desc {
    color: #62564d;
    font-size: 15px;
    line-height: 1.65;
}

.hf-home-popup__html {
    color: #3d332c;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.hf-home-popup__html p:last-child,
.hf-home-popup__desc p:last-child {
    margin-bottom: 0;
}

.hf-home-popup__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.hf-home-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    background: #f26522;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(242, 101, 34, .22);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.hf-home-popup__btn:hover {
    background: #e95818;
    color: #fff;
    transform: translateY(-2px);
}

body.hf-home-popup-open {
    overflow: hidden;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* ----- Laptop nhỏ ----- */
@media (max-width: 1199.98px) {
    .hf-v3 .h3-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hf-v3 .h3-cats__track > .h3-cat {
        width: calc((100% - 5 * 20px) / 6);
    }

    .hf-v3 .h3-deal__shell {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 28px;
        padding: 28px;
    }

    .hf-v3 .h3-deal__track > .h3-deal__slide {
        width: calc((100% - 2 * 16px) / 3);
    }

    .hf-v3 .h3-about__grid {
        gap: 48px;
    }

    .hf-v3 .h3-rail__nav.is-prev { left: -14px; }
    .hf-v3 .h3-rail__nav.is-next { right: -14px; }
}

/* ----- Tablet ----- */
@media (max-width: 991.98px) {
    .hf-v3 .h3-section {
        padding-top: 56px;
    }

    .hf-v3 .h3-section--tight {
        padding-top: 44px;
    }

    .hf-v3 .h3-title,
    .hf-v3 .h3-deal__title {
        font-size: 28px;
    }

    .hf-v3 .h3-hero__frame {
        aspect-ratio: 5 / 2;
        border-radius: 18px;
    }

    .hf-v3 .h3-hero__nav {
        display: none;
    }

    .hf-v3 .h3-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hf-v3 .h3-benefit {
        padding: 18px 20px;
    }

    .hf-v3 .h3-benefit + .h3-benefit::before {
        display: none;
    }

    .hf-v3 .h3-benefit:nth-child(even) {
        border-left: 1px solid var(--h3-line);
    }

    .hf-v3 .h3-benefit:nth-child(n+3) {
        border-top: 1px solid var(--h3-line);
    }

    .hf-v3 .h3-cats__track > .h3-cat {
        width: calc((100% - 4 * 16px) / 5);
    }

    .hf-v3 .h3-rail__track {
        gap: 16px;
    }

    .hf-v3 .h3-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .hf-v3 .h3-grid > .h3-grid__item:nth-child(n+9) {
        display: block;
    }

    .hf-v3 .h3-grid > .h3-grid__item:nth-child(n+10) {
        display: none;
    }

    .hf-v3 .h3-duo__grid,
    .hf-v3 .h3-trio__grid,
    .hf-v3 .h3-combos__grid,
    .hf-v3 .h3-news__grid {
        gap: 16px;
    }

    .hf-v3 .h3-duo__content {
        left: 28px;
    }

    .hf-v3 .h3-duo__title {
        font-size: 28px;
    }

    .hf-v3 .h3-deal__shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 28px 24px;
    }

    .hf-v3 .h3-deal__intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 24px;
        align-items: end;
        padding-left: 0;
    }

    .hf-v3 .h3-deal__intro > .h3-eyebrow,
    .hf-v3 .h3-deal__intro > .h3-deal__title,
    .hf-v3 .h3-deal__intro > .h3-deal__text,
    .hf-v3 .h3-deal__intro > .h3-countdown {
        grid-column: 1;
    }

    .hf-v3 .h3-deal__intro > .h3-btn {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
    }

    .hf-v3 .h3-deal__title br {
        display: none;
    }

    .hf-v3 .h3-deal__text {
        margin-bottom: 0;
    }

    .hf-v3 .h3-countdown {
        margin: 16px 0 0;
    }

    .hf-v3 .h3-deal__track > .h3-deal__slide {
        width: calc((100% - 2 * 16px) / 3);
    }

    .hf-v3 .h3-deal__rail .h3-rail__nav.is-prev { left: -12px; }
    .hf-v3 .h3-deal__rail .h3-rail__nav.is-next { right: -12px; }

    .hf-v3 .h3-combos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hf-v3 .h3-about {
        margin-top: 64px;
        padding: 56px 0;
    }

    .hf-v3 .h3-about__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hf-v3 .h3-about__media.is-mosaic {
        aspect-ratio: 16 / 10;
    }

    .hf-v3 .h3-about__title {
        font-size: 30px;
    }

    .hf-v3 .h3-brands__track > .h3-brand {
        width: calc((100% - 3 * 16px) / 4);
    }

    .hf-v3 .h3-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ----- Mobile ----- */
@media (max-width: 767.98px) {
    .hf-v3 {
        --h3-gutter: 12px;
        padding-bottom: 48px;
        font-size: 14px;
    }

    .hf-v3 .h3-section {
        padding-top: 44px;
    }

    .hf-v3 .h3-section--tight {
        padding-top: 32px;
    }

    .hf-v3 .h3-head {
        margin-bottom: 22px;
    }

    .hf-v3 .h3-eyebrow {
        margin-bottom: 6px;
        font-size: 11.5px;
        letter-spacing: .12em;
    }

    .hf-v3 .h3-title,
    .hf-v3 .h3-deal__title {
        font-size: 23px;
    }

    .hf-v3 .h3-sub {
        margin-top: 8px;
        font-size: 13.5px;
    }

    .hf-v3 .h3-more {
        margin-top: 24px;
    }

    .hf-v3 .h3-btn {
        height: 44px;
        padding: 0 22px;
        font-size: 14px;
    }

    .hf-v3 .h3-hero {
        padding-top: 12px;
    }

    .hf-v3 .h3-hero__frame {
        aspect-ratio: 2.4 / 1;
        border-radius: 14px;
    }

    .hf-v3 .h3-hero .slick-dots {
        bottom: 8px;
        gap: 6px;
    }

    .hf-v3 .h3-hero .slick-dots li button {
        width: 7px;
        height: 7px;
    }

    .hf-v3 .h3-hero .slick-dots li.slick-active button {
        width: 20px;
    }

    .hf-v3 .h3-benefits {
        padding-top: 12px;
    }

    .hf-v3 .h3-benefits__grid {
        border-radius: 14px;
    }

    .hf-v3 .h3-benefit {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 8px;
        text-align: center;
    }

    .hf-v3 .h3-benefit__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hf-v3 .h3-benefit__title {
        font-size: 13px;
    }

    .hf-v3 .h3-benefit__sub {
        font-size: 11.5px;
    }

    .hf-v3 .h3-rail__nav {
        display: none !important;
    }

    .hf-v3 .h3-rail__track {
        gap: 12px;
        margin: -6px calc(-1 * var(--h3-gutter));
        padding: 6px var(--h3-gutter) 10px;
        scroll-padding-left: var(--h3-gutter);
    }

    .hf-v3 .h3-rail.is-static .h3-rail__track {
        justify-content: flex-start;
    }

    .hf-v3 .h3-cats__track > .h3-cat {
        width: 27%;
    }

    .hf-v3 .h3-cat__name {
        margin-top: 10px;
        font-size: 13px;
    }

    .hf-v3 .h3-cat__count {
        font-size: 11.5px;
    }

    .hf-v3 .h3-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hf-v3 .h3-grid > .h3-grid__item:nth-child(n+10) {
        display: block;
    }

    .hf-v3 .h3-grid > .h3-grid__item:nth-child(n+11) {
        display: none;
    }

    .hf-v3 .h3-card.product-view__content {
        border-radius: 14px !important;
    }

    .hf-v3 .h3-card.product-view__content:hover {
        border-radius: 14px !important;
        transform: none !important;
    }

    .hf-v3 .h3-card__media {
        padding: 12px;
    }

    .hf-v3 .h3-card__body {
        padding: 2px 10px 12px;
    }

    .hf-v3 .h3-card__meta {
        font-size: 11.5px;
    }

    .hf-v3 .h3-card__name.title-product {
        margin-bottom: 3px !important;
        font-size: 13px !important;
    }

    .hf-v3 .h3-card .price-new {
        font-size: 15px !important;
    }

    .hf-v3 .h3-card__foot {
        gap: 6px;
    }

    .hf-v3 .h3-card .hf-home-cart-stepper {
        grid-template-columns: 30px 26px 30px;
        min-height: 36px;
    }

    .hf-v3 .h3-card .hf-home-cart-qty-btn {
        width: 30px;
        height: 34px;
        font-size: 17px;
    }

    .hf-v3 .h3-card .hf-home-cart-value {
        font-size: 14px;
    }

    .hf-v3 .h3-card .hf-product-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
        max-width: calc(100% - 52px);
    }

    .hf-v3 .h3-card .hf-product-badge {
        min-height: 20px;
        padding: 3px 8px;
        font-size: 10.5px;
    }

    .hf-v3 .h3-card .hf-product-wishlist {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hf-v3 .h3-duo__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hf-v3 .h3-duo__item {
        aspect-ratio: 2 / 1;
        border-radius: 16px;
    }

    .hf-v3 .h3-duo__content {
        left: 20px;
        gap: 6px;
    }

    .hf-v3 .h3-duo__eyebrow {
        font-size: 10.5px;
    }

    .hf-v3 .h3-duo__title {
        font-size: 24px;
    }

    .hf-v3 .h3-duo__btn {
        height: 36px;
        margin-top: 4px;
        padding: 0 16px;
        font-size: 13px;
    }

    .hf-v3 .h3-deal__shell {
        padding: 22px 0 20px;
        border-radius: 20px;
        overflow: hidden;
    }

    .hf-v3 .h3-deal__intro {
        display: flex;
        align-items: flex-start;
        padding: 0 18px;
    }

    .hf-v3 .h3-deal__intro > .h3-btn {
        align-self: flex-start;
    }

    .hf-v3 .h3-deal__text {
        margin-bottom: 16px;
        font-size: 13.5px;
    }

    .hf-v3 .h3-countdown {
        margin: 0 0 16px;
    }

    .hf-v3 .h3-countdown__cell {
        width: 54px;
    }

    .hf-v3 .h3-countdown__cell b {
        font-size: 18px;
    }

    .hf-v3 .h3-deal__rail .h3-rail__track {
        margin: -6px 0;
        padding: 6px 18px 10px;
        scroll-padding-left: 18px;
    }

    .hf-v3 .h3-deal__track > .h3-deal__slide {
        width: 46%;
    }

    .hf-v3 .h3-combos__grid {
        gap: 12px;
    }

    .hf-v3 .h3-combo {
        border-radius: 16px;
    }

    .hf-v3 .h3-combo:hover {
        transform: none;
    }

    .hf-v3 .h3-combo__body {
        padding: 12px;
    }

    .hf-v3 .h3-combo__meta {
        font-size: 11.5px;
    }

    .hf-v3 .h3-combo__name {
        margin-bottom: 10px;
        font-size: 13.5px;
    }

    .hf-v3 .h3-combo__price-new {
        font-size: 15px;
    }

    .hf-v3 .h3-combo__add {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .hf-v3 .h3-trio__grid {
        display: flex;
        gap: 12px;
        margin: 0 calc(-1 * var(--h3-gutter));
        padding: 0 var(--h3-gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--h3-gutter);
        scrollbar-width: none;
    }

    .hf-v3 .h3-trio__grid::-webkit-scrollbar {
        display: none;
    }

    .hf-v3 .h3-trio__item {
        flex: 0 0 82%;
        border-radius: 16px;
        scroll-snap-align: start;
    }

    .hf-v3 .h3-about {
        margin-top: 48px;
        padding: 44px 0;
    }

    .hf-v3 .h3-about__grid {
        gap: 28px;
    }

    .hf-v3 .h3-about__media.is-mosaic {
        gap: 10px;
        aspect-ratio: 6 / 5;
    }

    .hf-v3 .h3-about__tile {
        border-radius: 16px;
    }

    .hf-v3 .h3-about__tile-label {
        top: 8px;
        left: 8px;
        padding: 4px 9px;
        font-size: 11.5px;
    }

    .hf-v3 .h3-about__badge {
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        padding: 9px 14px 9px 9px;
        border-radius: 14px;
    }

    .hf-v3 .h3-about__badge-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .hf-v3 .h3-about__badge b {
        font-size: 13.5px;
    }

    .hf-v3 .h3-about__badge small {
        font-size: 11.5px;
    }

    .hf-v3 .h3-about__title {
        font-size: 25px;
    }

    .hf-v3 .h3-about__lead,
    .hf-v3 .h3-about__list li {
        font-size: 14px;
    }

    .hf-v3 .h3-about__actions {
        gap: 16px 24px;
    }

    .hf-v3 .h3-brands__track > .h3-brand {
        width: 38%;
    }

    .hf-v3 .h3-brand__logo {
        padding: 12px 16px;
        border-radius: 14px;
    }

    .hf-v3 .h3-brand__name {
        font-size: 11.5px;
    }

    .hf-v3 .h3-news__grid {
        display: flex;
        gap: 12px;
        margin: 0 calc(-1 * var(--h3-gutter));
        padding: 0 var(--h3-gutter) 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--h3-gutter);
        scrollbar-width: none;
    }

    .hf-v3 .h3-news__grid::-webkit-scrollbar {
        display: none;
    }

    .hf-v3 .h3-post {
        flex: 0 0 80%;
        border-radius: 16px;
        scroll-snap-align: start;
    }

    .hf-v3 .h3-post:hover {
        transform: none;
    }

    .hf-v3 .h3-post__body {
        padding: 14px 16px 16px;
    }

    .hf-v3 .h3-post__title {
        font-size: 15px;
    }

    .hf-v3 .h3-post__excerpt {
        font-size: 13.5px;
    }
}

/* Điện thoại: chỉ hiển thị giá cuối, ẩn giá gốc gạch ngang (giữ yêu cầu cũ). */
@media (max-width: 575.98px) {
    .hf-v3 .h3-card .price-old,
    .hf-v3 .h3-combo__price-old {
        display: none !important;
    }

    .hf-home-popup {
        padding: 16px;
    }

    .hf-home-popup__dialog {
        width: 100%;
        max-height: calc(100vh - 32px);
        border-radius: 18px;
    }

    .hf-home-popup__media img {
        max-height: 320px;
    }

    .hf-home-popup__body {
        padding: 20px 18px 22px;
    }

    .hf-home-popup__title {
        font-size: 21px;
    }

    .hf-home-popup__desc,
    .hf-home-popup__html {
        font-size: 14px;
    }

    .hf-home-popup__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-v3 *,
    .hf-v3 *::before,
    .hf-v3 *::after {
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================================
   TRANG DANH SÁCH SẢN PHẨM (Tất cả / Mới / Bán chạy / Danh mục)
   modules/front/views/elements/_listing_v3.php
   ========================================================================= */
.hf-v3.hf-listing {
    padding-bottom: 72px;
}

/* ---------- Dải tiêu đề ---------- */
.hf-v3 .h3-lhead {
    padding: 22px 0 24px;
    border-bottom: 1px solid var(--h3-line);
    background:
        radial-gradient(circle at 100% 0, rgba(242, 101, 34, .07) 0, rgba(242, 101, 34, 0) 38%),
        var(--h3-soft);
}

.hf-v3 .h3-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 18px;
    color: var(--h3-muted);
    font-size: 13px;
}

.hf-v3 .h3-crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--h3-text);
    transition: color .2s ease;
}

.hf-v3 .h3-crumbs a:hover {
    color: var(--h3-orange);
}

.hf-v3 .h3-crumbs a i {
    font-size: 12px;
}

.hf-v3 .h3-crumbs__sep {
    font-size: 9px;
    opacity: .6;
}

.hf-v3 .h3-crumbs span {
    color: var(--h3-ink);
    font-weight: 500;
}

.hf-v3 .h3-lhead__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.hf-v3 .h3-lhead__text {
    min-width: 0;
}

.hf-v3 .h3-lhead__text .h3-eyebrow {
    margin-bottom: 6px;
}

.hf-v3 .h3-lhead__title {
    margin: 0;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.hf-v3 .h3-lhead__desc {
    max-width: 640px;
    margin: 8px 0 0;
    color: var(--h3-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.hf-v3 .h3-lhead__count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--h3-line);
    border-radius: 999px;
    background: #fff;
    color: var(--h3-muted);
    font-size: 13.5px;
}

.hf-v3 .h3-lhead__count b {
    color: var(--h3-orange);
    font-size: 20px;
    font-weight: 700;
}

/* Chip danh mục */
.hf-v3 .h3-chips {
    margin-top: 22px;
}

.hf-v3 .h3-chips__track {
    gap: 10px;
}

.hf-v3 .h3-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px 0 6px;
    border: 1px solid var(--h3-line);
    border-radius: 999px;
    background: #fff;
    color: var(--h3-ink);
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.hf-v3 .h3-chip__img {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--h3-soft);
    color: var(--h3-orange);
    font-size: 15px;
}

.hf-v3 .h3-chip__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
}

.hf-v3 .h3-chip__img.is-product {
    background: #fff;
}

.hf-v3 .h3-chip__img.is-product img {
    padding: 4px;
    object-fit: contain;
    transform: none;
}

.hf-v3 .h3-chip__img.is-icon {
    background: var(--h3-green);
    color: #fff;
}

.hf-v3 .h3-chip__name {
    font-size: 14px;
    font-weight: 600;
}

.hf-v3 .h3-chip:hover {
    border-color: var(--h3-orange-line);
    box-shadow: 0 8px 18px rgba(29, 36, 32, .06);
    color: var(--h3-ink);
}

.hf-v3 .h3-chip.is-active {
    border-color: var(--h3-orange);
    background: var(--h3-orange-tint);
    color: var(--h3-orange-dark);
}

.hf-v3 .h3-chips .h3-rail__nav {
    width: 38px;
    height: 38px;
    font-size: 12px;
}

.hf-v3 .h3-chips .h3-rail__nav.is-prev { left: -19px; }
.hf-v3 .h3-chips .h3-rail__nav.is-next { right: -19px; }

/* ---------- Bố cục 2 cột ---------- */
.hf-v3 .h3-lbody {
    padding-top: 32px;
}

.hf-v3 .h3-lbody__grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.hf-v3 .h3-main {
    min-width: 0;
}

/* ---------- Sidebar ---------- */
.hf-v3 .h3-side__head,
.hf-v3 .h3-side__foot {
    display: none;
}

.hf-v3 .h3-side__card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--h3-line);
    border-radius: 18px;
    background: #fff;
}

.hf-v3 .h3-side__title {
    margin: 0 0 14px;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.hf-v3 .h3-catlist {
    display: grid;
    gap: 2px;
    margin: 0 -8px;
    padding: 0;
    list-style: none;
}

.hf-v3 .h3-catlist a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--h3-text);
    font-size: 14px;
    line-height: 1.35;
    transition: background-color .2s ease, color .2s ease;
}

.hf-v3 .h3-catlist a i {
    color: var(--h3-muted);
    font-size: 10px;
}

.hf-v3 .h3-catlist em {
    flex: 0 0 auto;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--h3-soft);
    color: var(--h3-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    text-align: center;
}

.hf-v3 .h3-catlist a:hover {
    background: var(--h3-soft);
    color: var(--h3-ink);
}

.hf-v3 .h3-catlist a.is-active {
    background: var(--h3-orange-tint);
    color: var(--h3-orange-dark);
    font-weight: 600;
}

.hf-v3 .h3-catlist a.is-active em {
    background: #fff;
    color: var(--h3-orange-dark);
}

/* Lọc nhanh */
.hf-v3 .h3-filter__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hf-v3 .h3-filter__clear {
    color: var(--h3-orange);
    font-size: 13px;
    font-weight: 600;
}

.hf-v3 .h3-filter__clear:hover {
    color: var(--h3-orange-dark);
    text-decoration: underline;
}

.hf-v3 .h3-checks {
    display: grid;
    gap: 8px;
}

.hf-v3 .h3-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--h3-line);
    border-radius: 12px;
    background: #fff;
    color: var(--h3-text);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.hf-v3 .h3-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hf-v3 .h3-check__box {
    display: flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid #cdd1ca;
    border-radius: 6px;
    background: #fff;
    color: #fff;
    font-size: 11px;
    transition: background-color .2s ease, border-color .2s ease;
}

.hf-v3 .h3-check__box i {
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s ease, transform .2s ease;
}

.hf-v3 .h3-check:hover {
    border-color: var(--h3-orange-line);
}

.hf-v3 .h3-check input:checked + .h3-check__box {
    border-color: var(--h3-orange);
    background: var(--h3-orange);
}

.hf-v3 .h3-check input:checked + .h3-check__box i {
    opacity: 1;
    transform: none;
}

.hf-v3 .h3-check:has(input:checked) {
    border-color: var(--h3-orange-line);
    background: var(--h3-orange-tint);
    color: var(--h3-orange-dark);
    font-weight: 600;
}

.hf-v3 .h3-check input:focus-visible + .h3-check__box {
    outline: 3px solid rgba(242, 101, 34, .3);
    outline-offset: 2px;
}

/* Khoảng giá */
.hf-v3 .h3-filter__price-title {
    margin-top: 22px;
}

.hf-v3 .h3-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hf-v3 .h3-price input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--h3-line);
    border-radius: 10px;
    background: #fff;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hf-v3 .h3-price input:focus {
    border-color: var(--h3-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, .12);
}

.hf-v3 .h3-price__dash {
    color: var(--h3-muted);
}

.hf-v3 .h3-range {
    position: relative;
    margin-top: 34px;
}

.hf-v3 .h3-range .form-range {
    display: block;
    width: 100%;
    accent-color: var(--h3-orange);
}

.hf-v3 .h3-range .form-range::-webkit-slider-thumb {
    background: var(--h3-orange);
}

.hf-v3 .h3-range .form-range::-moz-range-thumb {
    background: var(--h3-orange);
}

.hf-v3 .h3-range .form-range::-webkit-slider-runnable-track {
    background: #e7e9e4;
}

.hf-v3 .h3-range .price-range-tooltip {
    position: absolute;
    top: -30px;
    display: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--h3-ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.hf-v3 .h3-range__label {
    margin-top: 6px;
    color: var(--h3-muted);
    font-size: 12.5px;
}

.hf-v3 .h3-filter__submit {
    width: 100%;
    margin-top: 20px;
    height: 46px;
}

/* Combo gợi ý + lý do */
.hf-v3 .h3-side__link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--h3-line);
    border-radius: 14px;
    color: var(--h3-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hf-v3 .h3-side__link:last-child {
    margin-bottom: 0;
}

.hf-v3 .h3-side__link-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--h3-orange-tint);
    color: var(--h3-orange);
    font-size: 15px;
}

.hf-v3 .h3-side__link b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.hf-v3 .h3-side__link small {
    display: block;
    margin-top: 2px;
    color: var(--h3-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.hf-v3 .h3-side__link.is-featured {
    border-color: #f2e6d6;
    background: var(--h3-cream);
}

.hf-v3 .h3-side__link.is-featured .h3-side__link-icon {
    background: var(--h3-orange);
    color: #fff;
}

.hf-v3 .h3-side__link:hover {
    border-color: var(--h3-orange-line);
    box-shadow: 0 10px 22px rgba(29, 36, 32, .06);
    color: var(--h3-ink);
}

.hf-v3 .h3-side__reasons {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hf-v3 .h3-side__reasons li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--h3-text);
    font-size: 14px;
    line-height: 1.5;
}

.hf-v3 .h3-side__reasons i {
    flex: 0 0 18px;
    margin-top: 3px;
    color: var(--h3-green-mid);
    font-size: 13px;
    text-align: center;
}

/* ---------- Banner trên lưới ---------- */
.hf-v3 .h3-lbanner {
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--h3-soft);
}

/* Banner có nhiều tỉ lệ khác nhau: chuẩn hoá khung 3:1, ảnh phủ kín khung. */
.hf-v3 .h3-lbanner .product-view-list__slide--item a {
    display: block;
    aspect-ratio: 3 / 1;
}

.hf-v3 .h3-lbanner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hf-v3 .h3-lbanner__nav {
    position: absolute !important;
    top: 50% !important;
    z-index: 3;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .94) !important;
    color: var(--h3-ink) !important;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.hf-v3 .h3-lbanner__nav.is-prev { left: 14px !important; right: auto !important; }
.hf-v3 .h3-lbanner__nav.is-next { right: 14px !important; left: auto !important; }

.hf-v3 .h3-lbanner__nav:hover {
    background: var(--h3-orange) !important;
    color: #fff !important;
}

.hf-v3 .h3-lbanner__nav.slick-disabled {
    opacity: .35;
    pointer-events: none;
}

/* ---------- Combo trong danh mục ---------- */
.hf-v3 .h3-lcombos {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #f2e6d6;
    border-radius: 20px;
    background: var(--h3-cream);
}

.hf-v3 .h3-lcombos__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hf-v3 .h3-lcombos__title {
    margin: 0;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 18px;
    font-weight: 700;
}

.hf-v3 .h3-lcombos__sub {
    margin: 4px 0 0;
    color: var(--h3-muted);
    font-size: 13.5px;
}

.hf-v3 .h3-lcombos__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: var(--h3-orange);
    font-size: 14px;
    font-weight: 600;
}

.hf-v3 .h3-lcombos__track {
    gap: 16px;
}

.hf-v3 .h3-combo--row {
    flex-direction: row;
    width: calc((100% - 16px) / 2);
}

.hf-v3 .h3-combo--row .h3-combo__media {
    flex: 0 0 128px;
    aspect-ratio: auto;
    min-height: 128px;
}

.hf-v3 .h3-combo--row .h3-combo__body {
    min-width: 0;
    padding: 14px 16px;
}

.hf-v3 .h3-combo--row .h3-combo__name {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 15px;
}

.hf-v3 .h3-combo__meta.is-save {
    color: var(--h3-red);
}

.hf-v3 .h3-combo--row:hover {
    transform: none;
}

/* ---------- Thanh công cụ ---------- */
.hf-v3 .h3-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 10px 12px 10px 18px;
    border: 1px solid var(--h3-line);
    border-radius: 16px;
    background: #fff;
}

.hf-v3 .h3-toolbar__filter {
    display: none;
}

.hf-v3 .h3-toolbar__info {
    min-width: 0;
    color: var(--h3-muted);
    font-size: 14px;
}

.hf-v3 .h3-toolbar__info b {
    color: var(--h3-ink);
    font-weight: 600;
}

.hf-v3 .h3-toolbar__sort {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.hf-v3 .h3-toolbar__sort label {
    margin: 0;
    color: var(--h3-muted);
    font-size: 14px;
}

.hf-v3 .h3-select {
    position: relative;
}

.hf-v3 .h3-select select {
    height: 40px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--h3-line);
    border-radius: 10px;
    background: var(--h3-soft);
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.hf-v3 .h3-select select:focus {
    border-color: var(--h3-orange);
}

.hf-v3 .h3-select i {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--h3-muted);
    font-size: 11px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Bộ lọc đang áp dụng */
.hf-v3 .h3-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.hf-v3 .h3-active__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--h3-orange-line);
    border-radius: 999px;
    background: var(--h3-orange-tint);
    color: var(--h3-orange-dark);
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}

.hf-v3 .h3-active__chip i {
    font-size: 11px;
}

.hf-v3 .h3-active__chip:hover {
    border-color: var(--h3-orange);
    background: var(--h3-orange);
    color: #fff;
}

.hf-v3 .h3-active__clear {
    margin-left: 4px;
    color: var(--h3-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Lưới sản phẩm trang danh sách ---------- */
.hf-v3 .h3-grid.h3-grid--listing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hf-v3 .h3-grid.h3-grid--listing > .h3-grid__item {
    display: block !important;
}

/* ---------- Trống ---------- */
.hf-v3 .h3-empty {
    padding: 56px 24px;
    border: 1px dashed #dcdfd8;
    border-radius: 20px;
    text-align: center;
}

.hf-v3 .h3-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--h3-orange-tint);
    color: var(--h3-orange);
    font-size: 26px;
}

.hf-v3 .h3-empty h3 {
    margin: 0 0 8px;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 20px;
    font-weight: 700;
}

.hf-v3 .h3-empty p {
    max-width: 420px;
    margin: 0 auto 22px;
    color: var(--h3-muted);
    font-size: 14.5px;
}

/* ---------- Phân trang ---------- */
.hf-v3 .h3-pager {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.hf-v3 .h3-pager .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.hf-v3 .h3-pager .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--h3-line);
    border-radius: 12px !important;
    background: #fff;
    color: var(--h3-ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.hf-v3 .h3-pager .page-item .page-link i {
    font-size: 11px;
}

.hf-v3 .h3-pager .page-item:not(.active):not(.disabled) .page-link:hover {
    border-color: var(--h3-orange);
    color: var(--h3-orange);
}

.hf-v3 .h3-pager .page-item.active .page-link {
    border-color: var(--h3-ink);
    background: var(--h3-ink);
    color: #fff;
}

.hf-v3 .h3-pager .page-item.disabled .page-link {
    opacity: .4;
}

/* ---------- Đã xem gần đây ---------- */
.hf-v3 .h3-recent {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--h3-line);
}

.hf-v3 .h3-recent__title {
    margin: 0 0 20px;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 24px;
    font-weight: 700;
}

.hf-v3 .h3-recent__track > .h3-recent__slide {
    width: calc((100% - 3 * 20px) / 4);
}

/* ---------- Ngăn kéo bộ lọc (mobile) ---------- */
.h3-drawer-backdrop {
    display: none;
}

@media (max-width: 1199.98px) {
    .hf-v3 .h3-lbody__grid {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 24px;
    }

    .hf-v3 .h3-grid.h3-grid--listing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .hf-v3 .h3-recent__track > .h3-recent__slide {
        width: calc((100% - 3 * 20px) / 4);
    }

    .hf-v3 .h3-combo--row {
        width: 82%;
    }
}

@media (max-width: 991.98px) {
    .hf-v3 .h3-lhead__title {
        font-size: 28px;
    }

    .hf-v3 .h3-lbody__grid {
        display: block;
    }

    .hf-v3 .h3-side {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100020;
        display: flex;
        flex-direction: column;
        width: min(380px, 88vw);
        background: #fff;
        box-shadow: 18px 0 40px rgba(17, 24, 20, .18);
        transform: translateX(-104%);
        transition: transform .3s ease;
        visibility: hidden;
    }

    body.h3-filter-open .hf-v3 .h3-side {
        transform: none;
        visibility: visible;
    }

    body.h3-filter-open {
        overflow: hidden !important;
    }

    .h3-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100010;
        display: block;
        background: rgba(17, 24, 20, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }

    body.h3-filter-open .h3-drawer-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .hf-v3 .h3-side__head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px 14px 20px;
        border-bottom: 1px solid var(--h3-line);
        color: var(--h3-ink);
        font-size: 17px;
        font-weight: 700;
    }

    .hf-v3 .h3-side__head i {
        margin-right: 6px;
        color: var(--h3-orange);
    }

    .hf-v3 .h3-side__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--h3-soft);
        color: var(--h3-ink);
        font-size: 16px;
        cursor: pointer;
    }

    .hf-v3 .h3-side__close i {
        margin: 0;
        color: inherit;
    }

    .hf-v3 .h3-side__scroll {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 18px 20px;
        -webkit-overflow-scrolling: touch;
    }

    .hf-v3 .h3-side__card {
        margin-bottom: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .hf-v3 .h3-side__card--cats,
    .hf-v3 .h3-side__combos,
    .hf-v3 .h3-side__card--reasons,
    .hf-v3 .h3-filter__submit,
    .hf-v3 .h3-filter__clear {
        display: none !important;
    }

    .hf-v3 .h3-side__foot {
        display: flex;
        flex: 0 0 auto;
        gap: 10px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--h3-line);
        background: #fff;
    }

    .hf-v3 .h3-side__foot .h3-btn {
        flex: 1 1 0;
        height: 46px;
        padding: 0 12px;
    }

    .hf-v3 .h3-side__foot .h3-btn--ghost {
        flex: 0 0 auto;
    }

    .hf-v3 .h3-toolbar {
        padding: 8px;
        gap: 10px;
    }

    .hf-v3 .h3-toolbar__filter {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        height: 40px;
        padding: 0 14px;
        border: 1px solid var(--h3-line);
        border-radius: 10px;
        background: #fff;
        color: var(--h3-ink);
        font-family: var(--h3-font);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .hf-v3 .h3-toolbar__filter i {
        color: var(--h3-orange);
    }

    .hf-v3 .h3-toolbar__filter em {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--h3-orange);
        color: #fff;
        font-size: 11px;
        font-style: normal;
        font-weight: 700;
    }

    .hf-v3 .h3-toolbar__info {
        flex: 1 1 auto;
        font-size: 13px;
        text-align: center;
    }

    .hf-v3 .h3-recent__track > .h3-recent__slide {
        width: calc((100% - 2 * 16px) / 3);
    }
}

@media (max-width: 767.98px) {
    .hf-v3.hf-listing {
        padding-bottom: 48px;
    }

    .hf-v3 .h3-lhead {
        padding: 14px 0 16px;
    }

    .hf-v3 .h3-crumbs {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .hf-v3 .h3-lhead__row {
        align-items: center;
        gap: 12px;
    }

    .hf-v3 .h3-lhead__text .h3-eyebrow {
        display: none;
    }

    .hf-v3 .h3-lhead__title {
        font-size: 23px;
    }

    .hf-v3 .h3-lhead__desc {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 4px;
        font-size: 13px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .hf-v3 .h3-lhead__count {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 6px 12px;
        border-radius: 14px;
        font-size: 11px;
        line-height: 1.2;
    }

    .hf-v3 .h3-lhead__count b {
        font-size: 17px;
    }

    .hf-v3 .h3-chips {
        margin-top: 14px;
    }

    .hf-v3 .h3-chips__track {
        gap: 8px;
    }

    .hf-v3 .h3-chip {
        height: 42px;
        gap: 8px;
        padding: 0 14px 0 4px;
    }

    .hf-v3 .h3-chip__img {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .hf-v3 .h3-chip__name {
        font-size: 13px;
    }

    .hf-v3 .h3-lbody {
        padding-top: 16px;
    }

    .hf-v3 .h3-lbanner {
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .hf-v3 .h3-lbanner__nav {
        display: none !important;
    }

    .hf-v3 .h3-toolbar {
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .hf-v3 .h3-toolbar__info {
        display: none;
    }

    .hf-v3 .h3-toolbar__sort {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .hf-v3 .h3-toolbar__sort label {
        display: none;
    }

    .hf-v3 .h3-select,
    .hf-v3 .h3-select select {
        width: 100%;
        max-width: 220px;
    }

    .hf-v3 .h3-active {
        flex-wrap: nowrap;
        margin: 0 calc(-1 * var(--h3-gutter)) 12px;
        padding: 0 var(--h3-gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hf-v3 .h3-active::-webkit-scrollbar {
        display: none;
    }

    .hf-v3 .h3-active__chip,
    .hf-v3 .h3-active__clear {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hf-v3 .h3-grid.h3-grid--listing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hf-v3 .h3-lcombos {
        margin: 0 0 14px;
        padding: 16px 0 14px;
        border-radius: 16px;
    }

    .hf-v3 .h3-lcombos__head {
        padding: 0 16px;
        margin-bottom: 12px;
    }

    .hf-v3 .h3-lcombos__title {
        font-size: 16px;
    }

    .hf-v3 .h3-lcombos__sub {
        display: none;
    }

    .hf-v3 .h3-lcombos__all {
        font-size: 13px;
    }

    .hf-v3 .h3-lcombos .h3-rail__track {
        margin: -6px 0;
        padding: 6px 16px 8px;
        scroll-padding-left: 16px;
    }

    .hf-v3 .h3-combo--row {
        width: 88%;
    }

    .hf-v3 .h3-combo--row .h3-combo__media {
        flex-basis: 104px;
        min-height: 104px;
    }

    .hf-v3 .h3-pager {
        margin-top: 28px;
    }

    .hf-v3 .h3-pager .page-item .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        border-radius: 10px !important;
        font-size: 13px;
    }

    .hf-v3 .h3-recent {
        margin-top: 40px;
        padding-top: 28px;
    }

    .hf-v3 .h3-recent__title {
        font-size: 20px;
    }

    .hf-v3 .h3-recent__track > .h3-recent__slide {
        width: 46%;
    }
}

/* Tooltip giá trên thanh trượt dễ tràn khỏi khung: đã có dòng "Tối đa" bên dưới. */
.hf-v3 .h3-range {
    margin-top: 18px;
}

.hf-v3 .h3-range .price-range-tooltip {
    display: none !important;
}

/* =========================================================================
   PREMIO DELI (modules/front/views/brand-catalog/catalog.php)
   Tông than chì + vàng theo mặt tiền cửa hàng Premio Deli.
   ========================================================================= */
.hf-v3.hf-premio {
    --h3-gold: #c8a96b;
    --h3-gold-dark: #a8874a;
    --h3-coal: #1c1b19;
}

.hf-v3 .h3-card__brand {
    margin-bottom: 2px;
    overflow: hidden;
    color: var(--h3-orange-dark);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hf-v3 .h3-btn--gold {
    background: var(--h3-gold, #c8a96b);
    color: #1c1b19;
    box-shadow: 0 12px 26px rgba(200, 169, 107, .28);
}

.hf-v3 .h3-btn--gold:hover {
    background: #d8bb80;
    color: #1c1b19;
}

.hf-v3 .h3-btn--outline-light {
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
}

.hf-v3 .h3-btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.hf-v3 .h3-crumbs.is-light,
.hf-v3 .h3-crumbs.is-light a {
    color: rgba(255, 255, 255, .62);
}

.hf-v3 .h3-crumbs.is-light span {
    color: #fff;
}

.hf-v3 .h3-crumbs.is-light a:hover {
    color: var(--h3-gold, #c8a96b);
}

/* ---------- Hero ---------- */
.hf-v3 .h3-phero {
    padding-top: 24px;
}

.hf-v3 .h3-phero__shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    align-items: center;
    padding: 44px 48px;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0, rgba(200, 169, 107, .16) 0, rgba(200, 169, 107, 0) 45%),
        linear-gradient(135deg, #22201c 0%, #1a1917 60%, #24211c 100%);
    color: #fff;
    isolation: isolate;
}

.hf-v3 .h3-phero__shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px);
}

.hf-v3 .h3-phero__content {
    min-width: 0;
}

.hf-v3 .h3-phero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--h3-gold, #c8a96b);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hf-v3 .h3-phero__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hf-v3 .h3-phero__title {
    margin: 0;
    color: #fff;
    font-family: var(--h3-font);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hf-v3 .h3-phero__tagline {
    margin: 10px 0 0;
    color: var(--h3-gold, #c8a96b);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .04em;
}

.hf-v3 .h3-phero__lead {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.7;
}

.hf-v3 .h3-phero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hf-v3 .h3-phero__media {
    position: relative;
    align-self: stretch;
    min-height: 360px;
    overflow: hidden;
    border-radius: 22px;
    background: #2a2723;
}

.hf-v3 .h3-phero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.hf-v3 .h3-phero__store {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    color: var(--h3-ink);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.hf-v3 .h3-phero__store-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--h3-coal, #1c1b19);
    color: var(--h3-gold, #c8a96b);
    font-size: 15px;
}

.hf-v3 .h3-phero__store b {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.hf-v3 .h3-phero__store small {
    display: block;
    margin-top: 1px;
    color: var(--h3-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

/* ---------- Nhóm sản phẩm ---------- */
.hf-v3 .h3-pgroups__track > .h3-pgroup {
    width: calc((100% - 5 * 20px) / 6);
}

.hf-v3 .h3-pgroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px 16px;
    border: 1px solid var(--h3-line);
    border-radius: 20px;
    background: #fff;
    color: var(--h3-ink);
    text-align: center;
    transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}

.hf-v3 .h3-pgroup__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--h3-soft);
}

.hf-v3 .h3-pgroup__img img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .45s ease;
}

.hf-v3 .h3-pgroup__name {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hf-v3 .h3-pgroup__count {
    margin-top: 4px;
    color: var(--h3-muted);
    font-size: 12.5px;
}

.hf-v3 .h3-pgroup:hover,
.hf-v3 .h3-pgroup.is-active {
    border-color: var(--h3-gold, #c8a96b);
    box-shadow: 0 14px 30px rgba(29, 36, 32, .08);
    transform: translateY(-3px);
    color: var(--h3-ink);
}

.hf-v3 .h3-pgroup:hover .h3-pgroup__img img {
    transform: scale(1.06);
}

/* ---------- Mới về ---------- */
.hf-v3 .h3-pnew__head,
.hf-v3 .h3-pcatalog__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.hf-v3 .h3-pnew__head .h3-eyebrow,
.hf-v3 .h3-pcatalog__head .h3-eyebrow {
    margin-bottom: 6px;
}

.hf-v3 .h3-pnew__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: var(--h3-orange);
    font-size: 14.5px;
    font-weight: 600;
}

.hf-v3 .h3-pnew__all:hover {
    color: var(--h3-orange-dark);
}

/* ---------- Toàn bộ sản phẩm ---------- */
.hf-v3 .h3-pcatalog {
    scroll-margin-top: 16px;
}

.hf-v3 .h3-ptools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--h3-line);
    border-radius: 18px;
    background: #fff;
}

.hf-v3 .h3-psearch {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.hf-v3 .h3-psearch > i {
    position: absolute;
    left: 18px;
    color: var(--h3-muted);
    font-size: 15px;
    pointer-events: none;
}

.hf-v3 .h3-psearch input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 132px 0 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--h3-soft);
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 14.5px;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.hf-v3 .h3-psearch input::-webkit-search-cancel-button {
    display: none;
}

.hf-v3 .h3-psearch input:focus {
    border-color: var(--h3-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(242, 101, 34, .1);
}

.hf-v3 .h3-psearch__clear {
    position: absolute;
    right: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--h3-muted);
    font-size: 13px;
}

.hf-v3 .h3-psearch__clear:hover {
    background: #fff;
    color: var(--h3-ink);
}

.hf-v3 .h3-psearch__btn {
    position: absolute;
    right: 5px;
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--h3-orange);
    color: #fff;
    font-family: var(--h3-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}

.hf-v3 .h3-psearch__btn:hover {
    background: var(--h3-orange-dark);
}

.hf-v3 .h3-ptools__sort {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.hf-v3 .h3-ptools__sort label {
    margin: 0;
    color: var(--h3-muted);
    font-size: 14px;
}

.hf-v3 .h3-ptools .h3-select select {
    height: 48px;
    border-radius: 999px;
    padding-left: 18px;
}

.hf-v3 .h3-pchips {
    margin: 0 0 18px;
}

.hf-v3 .h3-pchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--h3-line);
    border-radius: 999px;
    background: #fff;
    color: var(--h3-ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.hf-v3 .h3-pchip em {
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--h3-soft);
    color: var(--h3-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    text-align: center;
}

.hf-v3 .h3-pchip:hover {
    border-color: var(--h3-orange-line);
    color: var(--h3-ink);
}

.hf-v3 .h3-pchip.is-active {
    border-color: var(--h3-coal, #1c1b19);
    background: var(--h3-coal, #1c1b19);
    color: #fff;
}

.hf-v3 .h3-pchip.is-active em {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.hf-v3 .h3-presult {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 18px;
    color: var(--h3-muted);
    font-size: 14px;
}

.hf-v3 .h3-presult b {
    color: var(--h3-ink);
    font-weight: 600;
}

.hf-v3 .h3-presult__clear {
    color: var(--h3-orange);
    font-weight: 600;
    text-decoration: underline;
}

/* Lưới đầy đủ (không sidebar): 5 cột, hiện mọi thẻ */
.hf-v3 .h3-grid.h3-grid--full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hf-v3 .h3-grid.h3-grid--full > .h3-grid__item {
    display: block !important;
}

@media (max-width: 1199.98px) {
    .hf-v3 .h3-phero__shell {
        gap: 32px;
        padding: 36px;
    }

    .hf-v3 .h3-phero__title {
        font-size: 46px;
    }

    .hf-v3 .h3-pgroups__track > .h3-pgroup {
        width: calc((100% - 4 * 20px) / 5);
    }

    .hf-v3 .h3-grid.h3-grid--full {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hf-v3 .h3-phero__shell {
        grid-template-columns: minmax(0, 1fr);
        padding: 32px 28px;
    }

    .hf-v3 .h3-phero__media {
        min-height: 300px;
    }

    .hf-v3 .h3-pgroups__track > .h3-pgroup {
        width: calc((100% - 3 * 16px) / 4);
    }

    .hf-v3 .h3-grid.h3-grid--full {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .hf-v3 .h3-ptools__sort label {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hf-v3 .h3-phero {
        padding-top: 12px;
    }

    .hf-v3 .h3-phero__shell {
        gap: 22px;
        padding: 22px 18px 18px;
        border-radius: 20px;
    }

    .hf-v3 .h3-phero .h3-crumbs {
        margin-bottom: 14px;
    }

    .hf-v3 .h3-phero__eyebrow {
        margin-bottom: 10px;
        font-size: 10.5px;
        letter-spacing: .12em;
    }

    .hf-v3 .h3-phero__eyebrow::before {
        width: 18px;
    }

    .hf-v3 .h3-phero__title {
        font-size: 36px;
    }

    .hf-v3 .h3-phero__tagline {
        margin-top: 6px;
        font-size: 16px;
    }

    .hf-v3 .h3-phero__lead {
        font-size: 13.5px;
    }

    .hf-v3 .h3-phero__actions {
        margin-top: 20px;
    }

    .hf-v3 .h3-phero__actions .h3-btn {
        flex: 1 1 auto;
    }

    .hf-v3 .h3-phero__media {
        min-height: 230px;
        border-radius: 16px;
    }

    .hf-v3 .h3-phero__store {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .hf-v3 .h3-phero__store b {
        font-size: 13px;
    }

    .hf-v3 .h3-phero__store small {
        font-size: 11.5px;
    }

    .hf-v3 .h3-pgroups__track > .h3-pgroup {
        width: 38%;
        padding: 12px 10px;
        border-radius: 16px;
    }

    .hf-v3 .h3-pgroup__name {
        font-size: 13px;
    }

    .hf-v3 .h3-pnew__head,
    .hf-v3 .h3-pcatalog__head {
        margin-bottom: 16px;
    }

    .hf-v3 .h3-pnew__all {
        font-size: 13px;
    }

    .hf-v3 .h3-ptools {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }

    .hf-v3 .h3-psearch input {
        height: 46px;
        padding-right: 104px;
        font-size: 14px;
    }

    .hf-v3 .h3-psearch__btn {
        padding: 0 16px;
        font-size: 13px;
    }

    .hf-v3 .h3-psearch__clear {
        right: 92px;
    }

    .hf-v3 .h3-ptools__sort,
    .hf-v3 .h3-ptools .h3-select,
    .hf-v3 .h3-ptools .h3-select select {
        width: 100%;
        max-width: none;
    }

    .hf-v3 .h3-ptools .h3-select select {
        height: 44px;
    }

    .hf-v3 .h3-pchip {
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .hf-v3 .h3-presult {
        font-size: 13px;
    }

    .hf-v3 .h3-grid.h3-grid--full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .hf-v3 .h3-lbanner .product-view-list__slide--item a {
        aspect-ratio: 2.4 / 1;
    }
}

/* ---------- "Sản phẩm tương tự" ở trang chi tiết (elements/widget/relate_products.php) ---------- */
.hf-v3.h3-related {
    margin-top: 40px;
    padding: 0 0 8px;
    background: transparent;
}

.hf-v3.h3-related .h3-recent__title {
    margin-bottom: 18px;
}

@media (max-width: 767.98px) {
    .hf-v3.h3-related {
        margin-top: 28px;
        padding-bottom: 0;
    }
}

/* =========================================================================
   CHI TIẾT COMBO (modules/front/views/product/combo-view.php)
   ========================================================================= */
.hf-v3.hf-cdetail {
    padding-top: 22px;
}

.hf-v3.hf-cdetail > .container > .h3-crumbs {
    margin-bottom: 22px;
}

.hf-v3 .h3-cdetail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
}

/* Ảnh */
.hf-v3 .h3-cdetail__cover {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--h3-line);
    border-radius: 24px;
    background: var(--h3-soft);
}

.hf-v3 .h3-cdetail__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hf-v3 .h3-cdetail__cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cfd3cc;
    font-size: 64px;
}

.hf-v3 .h3-cdetail__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--h3-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.hf-v3 .h3-cdetail__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.hf-v3 .h3-cdetail__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--h3-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease;
}

.hf-v3 .h3-cdetail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hf-v3 .h3-cdetail__thumb:hover {
    border-color: var(--h3-orange);
}

/* Thông tin */
.hf-v3 .h3-cdetail__info .h3-eyebrow {
    margin-bottom: 6px;
}

.hf-v3 .h3-cdetail__title {
    margin: 0;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.hf-v3 .h3-cdetail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hf-v3 .h3-cdetail__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--h3-soft);
    color: var(--h3-text);
    font-size: 13px;
    font-weight: 500;
}

.hf-v3 .h3-cdetail__tag.is-green {
    background: var(--h3-green-tint);
    color: var(--h3-green-mid);
}

.hf-v3 .h3-cdetail__tag.is-gift {
    background: var(--h3-orange-tint);
    color: var(--h3-orange-dark);
}

.hf-v3 .h3-cdetail__notes {
    margin: 14px 0 0;
    color: var(--h3-text);
    font-size: 14.5px;
    line-height: 1.7;
}

.hf-v3 .h3-cdetail__pricebox {
    margin-top: 20px;
    padding: 16px 20px;
    border: 1px solid #f2e6d6;
    border-radius: 18px;
    background: var(--h3-cream);
}

.hf-v3 .h3-cdetail__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}

.hf-v3 .h3-cdetail__price .new {
    color: var(--h3-orange);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.hf-v3 .h3-cdetail__price .old {
    color: #a3a8a4;
    font-size: 17px;
    text-decoration: line-through;
}

.hf-v3 .h3-cdetail__saving {
    margin-top: 4px;
    color: var(--h3-green-mid);
    font-size: 14px;
}

/* Khối: sản phẩm trong combo / quà tặng */
.hf-v3 .h3-cdetail__block {
    margin-top: 24px;
}

.hf-v3 .h3-cdetail__block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hf-v3 .h3-cdetail__block-head h2 {
    margin: 0;
    color: var(--h3-ink);
    font-family: var(--h3-font);
    font-size: 17px;
    font-weight: 700;
}

.hf-v3 .h3-cdetail__block-head span {
    color: var(--h3-muted);
    font-size: 13px;
}

.hf-v3 .h3-cdetail__items {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--h3-line);
    border-radius: 16px;
    list-style: none;
}

.hf-v3 .h3-cdetail__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
}

.hf-v3 .h3-cdetail__item + .h3-cdetail__item {
    border-top: 1px solid var(--h3-line);
}

.hf-v3 .h3-cdetail__item-img {
    position: relative;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    padding: 6px;
    border: 1px solid var(--h3-line);
    border-radius: 12px;
    background: #fff;
}

.hf-v3 .h3-cdetail__item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hf-v3 .h3-cdetail__item-qty {
    position: absolute;
    right: -6px;
    bottom: -6px;
    min-width: 24px;
    padding: 2px 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--h3-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.hf-v3 .h3-cdetail__item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.hf-v3 .h3-cdetail__item-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--h3-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hf-v3 .h3-cdetail__item-name:hover {
    color: var(--h3-orange);
}

.hf-v3 .h3-cdetail__item-meta {
    display: block;
    margin-top: 2px;
    color: var(--h3-muted);
    font-size: 12.5px;
}

.hf-v3 .h3-cdetail__item-price {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.hf-v3 .h3-cdetail__item-price .new {
    color: var(--h3-ink);
    font-size: 15px;
    font-weight: 700;
}

.hf-v3 .h3-cdetail__item-price .new.is-free {
    color: var(--h3-green-mid);
    font-size: 13px;
    font-weight: 600;
}

.hf-v3 .h3-cdetail__item-price .old {
    color: #a3a8a4;
    font-size: 12.5px;
    text-decoration: line-through;
}

/* Quà tặng */
.hf-v3 .h3-cdetail__gifts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hf-v3 .h3-cdetail__gift {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--h3-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.hf-v3 .h3-cdetail__gifts.is-choice .h3-cdetail__gift {
    padding-right: 44px;
    cursor: pointer;
}

.hf-v3 .h3-cdetail__gift input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hf-v3 .h3-cdetail__gift-check {
    position: absolute;
    top: 50%;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid #cdd1ca;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 11px;
    transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease;
}

.hf-v3 .h3-cdetail__gift-check i {
    opacity: 0;
}

.hf-v3 .h3-cdetail__gift input:checked ~ .h3-cdetail__gift-check {
    border-color: var(--h3-green-mid);
    background: var(--h3-green-mid);
}

.hf-v3 .h3-cdetail__gift input:checked ~ .h3-cdetail__gift-check i {
    opacity: 1;
}

.hf-v3 .h3-cdetail__gift:has(input:checked) {
    border-color: #9fd3aa;
    background: var(--h3-green-tint);
    box-shadow: 0 6px 16px rgba(47, 107, 69, .1);
}

.hf-v3 .h3-cdetail__gift input:focus-visible ~ .h3-cdetail__gift-check {
    outline: 3px solid rgba(47, 107, 69, .3);
    outline-offset: 2px;
}

.hf-v3 .h3-cdetail__gift-img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 5px;
    border: 1px solid var(--h3-line);
    border-radius: 10px;
    background: #fff;
}

.hf-v3 .h3-cdetail__gift-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hf-v3 .h3-cdetail__gift-body {
    min-width: 0;
}

.hf-v3 .h3-cdetail__gift-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--h3-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hf-v3 .h3-cdetail__gift-meta {
    display: block;
    margin-top: 2px;
    color: var(--h3-muted);
    font-size: 12px;
}

.hf-v3 .h3-cdetail__gift-meta a {
    color: var(--h3-orange);
    font-weight: 500;
}

.hf-v3 .h3-cdetail__nogift {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--h3-soft);
    color: var(--h3-text);
    font-size: 13.5px;
    line-height: 1.6;
}

.hf-v3 .h3-cdetail__nogift i {
    margin-top: 3px;
    color: var(--h3-green-mid);
}

/* Mua */
.hf-v3 .h3-cdetail__buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 14px 16px 14px 20px;
    border-radius: 18px;
    background: var(--h3-green);
    color: #fff;
}

.hf-v3 .h3-cdetail__buy-price small {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: 12.5px;
}

.hf-v3 .h3-cdetail__buy-price b {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

/* Combo khác */
.hf-v3 .h3-cdetail__others {
    margin-top: 64px;
}

@media (max-width: 991.98px) {
    .hf-v3 .h3-cdetail__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hf-v3 .h3-cdetail__gallery {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .hf-v3 .h3-cdetail__title {
        font-size: 26px;
    }
}

@media (max-width: 767.98px) {
    .hf-v3.hf-cdetail {
        padding-top: 14px;
    }

    .hf-v3.hf-cdetail > .container > .h3-crumbs {
        margin-bottom: 14px;
    }

    .hf-v3 .h3-cdetail__cover {
        border-radius: 18px;
    }

    .hf-v3 .h3-cdetail__thumbs {
        gap: 8px;
    }

    .hf-v3 .h3-cdetail__thumb {
        padding: 5px;
        border-radius: 10px;
    }

    .hf-v3 .h3-cdetail__title {
        font-size: 22px;
    }

    .hf-v3 .h3-cdetail__price .new {
        font-size: 26px;
    }

    .hf-v3 .h3-cdetail__pricebox {
        padding: 14px 16px;
    }

    .hf-v3 .h3-cdetail__item {
        gap: 12px;
        padding: 10px 12px;
    }

    .hf-v3 .h3-cdetail__item-img {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .hf-v3 .h3-cdetail__item-name {
        font-size: 13.5px;
    }

    .hf-v3 .h3-cdetail__gifts {
        grid-template-columns: minmax(0, 1fr);
    }

    .hf-v3 .h3-cdetail__buy {
        position: sticky;
        bottom: 10px;
        z-index: 20;
        box-shadow: 0 12px 30px rgba(17, 24, 20, .25);
    }

    .hf-v3 .h3-cdetail__buy-price b {
        font-size: 19px;
    }

    .hf-v3 .h3-cdetail__others {
        margin-top: 44px;
    }
}

/* ---- Chi tiết combo: cân chiều cao 2 cột (ảnh ↔ thông tin) ---- */
.hf-v3 .h3-cdetail__title {
    font-size: 28px;
}

.hf-v3 .h3-cdetail__tags {
    margin-top: 12px;
}

.hf-v3 .h3-cdetail__tag {
    height: 28px;
    font-size: 12.5px;
}

.hf-v3 .h3-cdetail__pricebox {
    margin-top: 16px;
    padding: 12px 18px;
}

.hf-v3 .h3-cdetail__price .new {
    font-size: 28px;
}

.hf-v3 .h3-cdetail__price .old {
    font-size: 15px;
}

.hf-v3 .h3-cdetail__saving {
    margin-top: 2px;
    font-size: 13.5px;
}

.hf-v3 .h3-cdetail__block {
    margin-top: 18px;
}

.hf-v3 .h3-cdetail__block-head {
    margin-bottom: 8px;
}

.hf-v3 .h3-cdetail__block-head h2 {
    font-size: 16px;
}

.hf-v3 .h3-cdetail__item {
    gap: 12px;
    padding: 10px 14px;
}

.hf-v3 .h3-cdetail__item-img {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    padding: 5px;
}

.hf-v3 .h3-cdetail__item-name {
    font-size: 14px;
}

.hf-v3 .h3-cdetail__item-meta {
    font-size: 12px;
}

.hf-v3 .h3-cdetail__item-price .new {
    font-size: 14.5px;
}

.hf-v3 .h3-cdetail__gift {
    gap: 10px;
    padding: 10px 12px;
}

.hf-v3 .h3-cdetail__gift-img {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
}

.hf-v3 .h3-cdetail__buy {
    margin-top: 18px;
    padding: 12px 14px 12px 20px;
}

.hf-v3 .h3-cdetail__buy-price b {
    font-size: 20px;
}


/* Tinh chỉnh để cột thông tin gần bằng cột ảnh (combo 3 món + 2 quà) */
@media (min-width: 992px) {
    .hf-v3 .h3-cdetail__pricebox {
        margin-top: 18px;
        padding: 14px 20px;
    }

    .hf-v3 .h3-cdetail__block {
        margin-top: 22px;
    }

    .hf-v3 .h3-cdetail__item {
        padding: 11px 14px;
    }

    .hf-v3 .h3-cdetail__buy {
        margin-top: 22px;
    }
}

/* =========================================================================
   THANH TIỆN ÍCH (elements/_benefits_v3.php) — hiệu ứng gọi điện
   Dùng ở trang chủ + chi tiết combo.
   ========================================================================= */
.hf-v3 .h3-cdetail__benefits {
    padding-top: 32px;
}

.hf-v3 a.h3-benefit:focus-visible {
    outline: 3px solid rgba(242, 101, 34, .28);
    outline-offset: 2px;
    border-radius: 16px;
}

.hf-v3 a.h3-benefit:hover .h3-benefit__title {
    color: var(--h3-orange-dark);
}

/* Mục gọi điện (Hỗ trợ 24/7 / hotline) */
.hf-v3 .h3-benefit.is-call .h3-benefit__icon {
    position: relative;
}

.hf-v3 .h3-benefit.is-call .h3-benefit__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #3bb54a;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.hf-v3 a.h3-benefit.is-call:hover .h3-benefit__icon,
.hf-v3 a.h3-benefit.is-call:focus-visible .h3-benefit__icon {
    background: #3bb54a;
    color: #fff;
}

.hf-v3 a.h3-benefit.is-call:hover .h3-benefit__icon i,
.hf-v3 a.h3-benefit.is-call:focus-visible .h3-benefit__icon i {
    animation: h3PhoneRing 1.1s ease-in-out infinite;
}

.hf-v3 a.h3-benefit.is-call:hover .h3-benefit__icon::after,
.hf-v3 a.h3-benefit.is-call:focus-visible .h3-benefit__icon::after {
    animation: h3PhoneWave 1.3s ease-out infinite;
}

.hf-v3 a.h3-benefit.is-call:hover .h3-benefit__title {
    color: #2f8a3d;
}

.hf-v3 a.h3-benefit.is-call:hover .h3-benefit__sub {
    color: var(--h3-ink);
    font-weight: 600;
}

/* Nhãn "Gọi ngay" nằm ngay sau chữ tiêu đề (không đè lên số điện thoại). */
.hf-v3 .h3-benefit__cta {
    display: none;
    align-items: center;
    gap: 4px;
    height: 22px;
    margin-left: 8px;
    padding: 0 9px;
    border-radius: 999px;
    background: #3bb54a;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    vertical-align: 1px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.hf-v3 .h3-benefit__cta i {
    font-size: 10px;
}

@media (min-width: 1200px) {
    .hf-v3 .h3-benefit__cta {
        display: inline-flex;
    }

    .hf-v3 a.h3-benefit.is-call:hover .h3-benefit__cta,
    .hf-v3 a.h3-benefit.is-call:focus-visible .h3-benefit__cta {
        opacity: 1;
        transform: none;
    }
}

/* Mục thường (không có link): hiệu ứng nhẹ khi rê chuột. */
.hf-v3 .h3-benefit__icon {
    transition: background-color .2s ease, color .2s ease, transform .25s ease;
}

.hf-v3 .h3-benefit:not(.is-call):hover .h3-benefit__icon {
    background: var(--h3-orange);
    color: #fff;
    transform: scale(1.08);
}

@keyframes h3PhoneRing {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-16deg); }
    20%, 40% { transform: rotate(16deg); }
    50% { transform: rotate(-6deg); }
}

@keyframes h3PhoneWave {
    0% { transform: scale(1); opacity: .65; }
    100% { transform: scale(1.65); opacity: 0; }
}

@media (max-width: 767.98px) {
    .hf-v3 .h3-cdetail__benefits {
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-v3 a.h3-benefit.is-call .h3-benefit__icon i,
    .hf-v3 a.h3-benefit.is-call .h3-benefit__icon::after {
        animation: none !important;
    }
}
