/* ==========================================================================
   HOMEPAGE STYLES - MAU34 (INDUSTRIAL & AUTOMOTIVE EQUIPMENT)
   Matches the design mockup with exact layout, colors, and responsive grid.
   ========================================================================== */

:root {
    --home-primary-green: #0e6938;
    --home-primary-green-dark: #094d28;
    --home-primary-green-light: #e8f5e9;
    --home-accent-red: var(--color-5);
    --home-accent-red-dark: #c62828;
    --home-accent-yellow: #fbc02d;
    --home-accent-yellow-light: #fff9c4;
    --home-text-main: #000000;
    --home-text-muted: #6b7280;
    --home-border-color: #e5e7eb;
    --home-bg-light: #f7f9fa;
    --home-card-bg: #ffffff;
    --home-radius: 8px;
    --home-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --home-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --home-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   1. TRUST & COMMITMENT BAR
   ========================================================================== */
.trust-bar-section {
    padding: 16px 0;
}

.trust-bar {
    background: #ffffff;
    border: 1px solid var(--home-border-color);
    border-radius: var(--home-radius);
    padding: 14px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    box-shadow: var(--home-shadow-sm);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 16px;
    position: relative;
}

.trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #eee;
}

.trust-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    color: var(--home-accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.trust-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.trust-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-desc {
    font-size: 14.5px;
    color: #6b7280;
    line-height: 1.35;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-desc.phone-highlight {
    color: var(--home-accent-red);
    font-weight: 700;
    font-size: 15px;
}

/* ==========================================================================
   COMMON SECTION HEADERS
   ========================================================================== */
.featured-products-section {
    padding: 20px 0;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 2px solid transparent;
}

.home-section-link {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.home-section-link svg {
    color: currentColor;
    transition: transform 0.2s ease;
}

.home-section-link:hover {
    color: var(--home-accent-red);
}

.home-section-link:hover svg {
    transform: translateX(4px);
}

/* Animated Fire Flame + Green rect badge */
.badge-featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    user-select: none;
}

.badge-featured-pill .flame-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 38px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-featured-pill:hover .flame-icon-wrap {
    transform: scale(1.15) translateY(-1px);
}

/* Warm bottom glow aura */
.badge-featured-pill .flame-glow-base {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 14px;
    background: radial-gradient(ellipse at center, rgba(255, 109, 0, 0.6) 0%, rgba(229, 3, 8, 0.3) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
    animation: flameBasePulse 1.4s ease-in-out infinite alternate;
}

/* Flame SVG element */
.badge-featured-pill .flame-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Outer flame dancing */
.badge-featured-pill .flame-part-outer {
    transform-box: fill-box;
    transform-origin: 50% 92%;
    animation: flameOuterFlicker 1.4s ease-in-out infinite alternate;
}

/* Inner flame flicker */
.badge-featured-pill .flame-part-inner {
    transform-box: fill-box;
    transform-origin: 50% 88%;
    animation: flameInnerFlicker 0.9s ease-in-out infinite alternate;
}

/* Radiant core */
.badge-featured-pill .flame-part-core {
    transform-box: fill-box;
    transform-origin: center;
    animation: flameCorePulse 0.75s ease-in-out infinite alternate;
}

/* Embers / sparks */
.badge-featured-pill .flame-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.badge-featured-pill .flame-spark {
    position: absolute;
    border-radius: 50%;
    background: #ffeb3b;
    box-shadow: 0 0 4px #ff9800, 0 0 7px #ff3d00;
    opacity: 0;
}

.badge-featured-pill .flame-spark.s1 {
    width: 3px;
    height: 3px;
    left: 26%;
    bottom: 42%;
    animation: flameSparkRise1 1.6s ease-out infinite;
}

.badge-featured-pill .flame-spark.s2 {
    width: 3.5px;
    height: 3.5px;
    left: 48%;
    bottom: 50%;
    animation: flameSparkRise2 2s ease-out infinite 0.55s;
}

.badge-featured-pill .flame-spark.s3 {
    width: 2.5px;
    height: 2.5px;
    left: 68%;
    bottom: 38%;
    animation: flameSparkRise3 1.4s ease-out infinite 1s;
}

/* Bolt icon fallback */
.badge-featured-pill .bolt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-5);
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.badge-featured-pill .bolt-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Pill title text */
.badge-featured-pill .badge-title,
.badge-featured-pill>span:not(.bolt-icon):not(.flame-icon-wrap) {
    background-color: var(--home-primary-green);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 20px 5px 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    line-height: 1.35;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-featured-pill:hover .badge-title,
.badge-featured-pill:hover>span:not(.bolt-icon):not(.flame-icon-wrap) {
    box-shadow: 0 4px 12px rgba(14, 105, 56, 0.25);
}

/* Animations */
@keyframes flameOuterFlicker {
    0% {
        transform: scale(1) rotate(-1.5deg);
        filter: drop-shadow(0 0 3px rgba(229, 3, 8, 0.8)) drop-shadow(0 0 8px rgba(255, 109, 0, 0.5));
    }

    25% {
        transform: scale(1.03, 1.07) rotate(1.8deg) skewX(1deg);
        filter: drop-shadow(0 0 5px rgba(229, 3, 8, 0.9)) drop-shadow(0 0 12px rgba(255, 140, 0, 0.65));
    }

    50% {
        transform: scale(0.97, 0.94) rotate(-1.5deg) skewX(-1.2deg);
        filter: drop-shadow(0 0 3px rgba(229, 3, 8, 0.75)) drop-shadow(0 0 7px rgba(255, 109, 0, 0.45));
    }

    75% {
        transform: scale(1.02, 1.05) rotate(1deg) skewX(0.8deg);
        filter: drop-shadow(0 0 6px rgba(229, 3, 8, 0.95)) drop-shadow(0 0 14px rgba(255, 160, 0, 0.7));
    }

    100% {
        transform: scale(1) rotate(-1.5deg);
        filter: drop-shadow(0 0 3px rgba(229, 3, 8, 0.8)) drop-shadow(0 0 8px rgba(255, 109, 0, 0.5));
    }
}

@keyframes flameInnerFlicker {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.92;
    }

    30% {
        transform: scale(1.06, 1.12) translate(-0.5px, -1.5px) skewX(-2deg);
        opacity: 1;
    }

    65% {
        transform: scale(0.94, 0.92) translate(0.5px, 0.5px) skewX(1.5deg);
        opacity: 0.88;
    }

    85% {
        transform: scale(1.04, 1.08) translate(-0.5px, -1px) skewX(-1deg);
        opacity: 0.98;
    }

    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.92;
    }
}

@keyframes flameCorePulse {

    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.82;
    }

    50% {
        transform: scale(1.14);
        opacity: 1;
    }
}

@keyframes flameBasePulse {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes flameSparkRise1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.95;
    }

    100% {
        transform: translate(-10px, -30px) scale(0.2);
        opacity: 0;
    }
}

@keyframes flameSparkRise2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translate(2px, -38px) scale(0.2);
        opacity: 0;
    }
}

@keyframes flameSparkRise3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    25% {
        opacity: 0.9;
    }

    100% {
        transform: translate(10px, -26px) scale(0.2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .badge-featured-pill .flame-part-outer,
    .badge-featured-pill .flame-part-inner,
    .badge-featured-pill .flame-part-core,
    .badge-featured-pill .flame-glow-base,
    .badge-featured-pill .flame-spark {
        animation: none !important;
    }
}

/* Yellow slanted speed ribbon for Danh muc noi bat */
.badge-category-ribbon {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 7px 36px 7px 18px;
    color: #000000;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.35;
    background: transparent;
}

.badge-category-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 10px;
    bottom: 0;
    background-color: #ffc700;
    border-radius: 6px 0 0 6px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    z-index: 1;
}

.badge-category-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 3px;
    width: 3.5px;
    background-color: #ffd54f;
    transform-origin: top left;
    transform: skewX(-23deg);
    border-radius: 1px;
    z-index: 1;
}

.badge-category-ribbon span {
    position: relative;
    z-index: 2;
}

/* Standard Green Tab Badge for Category & News blocks */
.badge-category-tab {
    background-color: var(--home-primary-green);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(14, 105, 56, 0.2);
}

.badge-category-tab svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .badge-category-ribbon {
        font-size: 15px;

    }
}

/* ==========================================================================
   2. PRODUCT CARD (Used in Featured and Category Blocks)
   ========================================================================== */
.home-pro-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* ==========================================================================
   3. MIDDLE PROMO BANNER (GIAO HÀNG NHANH)
   ========================================================================== */
.home-promo-section {
    padding: 12px 0 16px;
}

.home-promo-banner-link {
    display: block;
    width: 100%;
    border-radius: var(--home-radius, 8px);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-promo-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.home-promo-banner-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--home-radius, 8px);
}

.home-promo-banner {
    position: relative;
    border-radius: var(--home-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 40%, var(--color-5) 80%, #c62828 100%);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    padding: 10px 30px 10px 15px;
    gap: 15px;
}

.home-promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 50%, rgba(255, 235, 59, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.home-promo-left {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.home-promo-truck {
    width: 150px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.home-promo-banner:hover .home-promo-truck {
    transform: translateX(4px) scale(1.03);
}

.home-promo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    flex: 1;
}

.home-promo-tag {
    font-size: 13.5px;
    font-style: italic;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-weight: 500;
}

.home-promo-title {
    font-size: 25px;
    font-weight: 900;
    color: #ffea00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    margin: 2px 0;
}

.home-promo-subtitle {
    font-size: 12.5px;
    color: #ffffff;
    font-style: italic;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.home-promo-right {
    z-index: 2;
}

.home-promo-btn {
    background-color: #ffffff;
    color: var(--home-accent-red);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.home-promo-btn:hover {
    background-color: #fff9c4;
    color: var(--home-accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.home-promo-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* ==========================================================================
   4. FEATURED CATEGORIES GRID (10 CARDS)
   ========================================================================== */
.featured-categories-section {
    padding: 20px 0 20px;
}

.home-cats-grid-10 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.home-cat-card {
    background: #ffffff;
    /* border: 1px solid var(--home-border-color); */
    border-radius: var(--home-radius);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1f2937;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--home-shadow-sm);
}

.home-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
    border-color: var(--home-accent-yellow);
    color: var(--home-primary-green);
}

.home-cat-icon {
    width: 120px;
    /* height: 52px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.home-cat-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-cat-card:hover .home-cat-icon {
    transform: scale(1.08);
}

.home-cat-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease;
}

/* ==========================================================================
   5. CATEGORY PRODUCT BLOCKS (1 BANNER + 4 PRODUCTS)
   ========================================================================== */
.category-block-section {
    padding: 20px 0;
}

.category-block-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 2.5px solid var(--home-primary-green);
    margin-bottom: 16px;
    padding-bottom: 0;
}

.category-block-header .badge-category-tab {
    background-color: var(--home-primary-green);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 22px 8px 16px;
    border-radius: 6px 6px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    margin-bottom: -1px;
}

.category-block-header .badge-category-tab .cat-nav-icon,
.category-block-header .badge-category-tab svg,
.category-block-header .badge-category-tab iconify-icon {
    color: #ffffff;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-block-header .badge-category-tab svg:not([fill="none"]) {
    fill: currentColor;
}

.category-block-header .badge-category-tab svg[fill="none"] {
    fill: none;
    stroke: currentColor;
}

.category-block-header .badge-category-tab img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: inline-flex;
}

.category-block-header .home-section-link {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 5px;
    transition: color 0.2s ease;
}

.category-block-header .home-section-link svg {
    color: var(--home-accent-red);
    transition: transform 0.2s ease;
}

.category-block-header .home-section-link:hover {
    color: var(--home-accent-red);
}

.category-block-header .home-section-link:hover svg {
    transform: translateX(4px);
}

.home-cat-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 14px;
}

/* Column 1: Promotional Banner Poster */
.home-cat-banner-card {
    grid-column: span 2;
    border-radius: var(--home-radius);
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    box-shadow: var(--home-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #1f2937;
    height: 100%;
    min-height: 0;
}

.home-cat-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
}

.home-cat-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.home-cat-banner-card:hover .home-cat-banner-img {
    transform: scale(1.04);
}

/* Optional Overlay elements if rendered dynamically */
.home-cat-banner-overlay {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.75) 100%);
    color: #ffffff;
}

.home-cat-banner-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.25;
}

.home-cat-banner-btn {
    align-self: flex-start;
    background-color: var(--home-accent-yellow);
    color: #111827;
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   6. NEWS & KNOWLEDGE SECTION (4 COLUMNS)
   ========================================================================== */
.news-knowledge-section {
    padding: 12px 0 30px;
}

.home-news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Slick Slider for News */
.home-news-slider {
    position: relative;
    margin: 0 -8px;
}

.home-news-slider .slick-list {
    margin: 0;
    padding: 6px 0 14px;
}

.home-news-slider .slick-track {
    display: flex !important;
}

.home-news-slider .slick-slide {
    height: inherit !important;
    display: flex !important;
    padding: 0 8px;
    box-sizing: border-box;
    outline: none;
}

.home-news-slider .slick-slide>div {
    width: 100%;
    display: flex;
    height: 100%;
}

.home-news-slider .home-news-slide-item {
    width: 100%;
    display: flex;
    height: 100%;
}

.home-news-slider .home-news-card {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

.home-news-slider .slick-prev,
.home-news-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.25s ease;
    color: #374151;
}

.home-news-slider .slick-prev::before,
.home-news-slider .slick-next::before {
    display: none !important;
}

.home-news-slider .slick-prev:hover,
.home-news-slider .slick-next:hover {
    background: var(--home-primary-green);
    border-color: var(--home-primary-green);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 131, 70, 0.3);
}

.home-news-slider .slick-prev:hover svg,
.home-news-slider .slick-next:hover svg {
    stroke: #ffffff;
}

.home-news-slider .slick-prev {
    left: -5px;
}

.home-news-slider .slick-next {
    right: -5px;
}

@media (max-width: 1200px) {
    .home-news-slider .slick-prev {
        left: -8px;
    }

    .home-news-slider .slick-next {
        right: -8px;
    }
}

@media (max-width: 768px) {
    .home-news-slider .slick-prev {
        left: 2px;
        width: 32px;
        height: 32px;
    }

    .home-news-slider .slick-next {
        right: 2px;
        width: 32px;
        height: 32px;
    }

    .news-knowledge-section {
        padding: 12px 0 15px;
    }
}


.home-news-card {
    background: #ffffff;
    border: 1px solid var(--home-border-color);
    border-radius: var(--home-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #1f2937;
    box-shadow: var(--home-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
    border-color: #cbd5e1;
}

.home-news-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f3f4f6;
    position: relative;
}

.home-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-news-card:hover .home-news-thumb img {
    transform: scale(1.06);
}

.home-news-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.home-news-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2937;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.home-news-card:hover .home-news-title {
    color: var(--color-5);
}

.home-news-date {
    font-size: 12px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.home-news-date svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .trust-item:nth-child(2)::after {
        display: none;
    }

    .home-cat-block-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
        gap: 10px;
    }

    .home-pro-title {
        font-size: 13px;
    }

    .home-pro-price {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .home-pro-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-cats-grid-10 {
        grid-template-columns: repeat(5, 1fr);
    }

    .home-cat-block-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-cat-banner-card {
        grid-column: span 4;
        min-height: 140px;
        /* max-height: 180px; */
    }

    .home-cat-banner-img {
        object-position: center 30%;
        position: relative;
    }

    .home-news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-promo-title {
        font-size: 20px;
    }

    .home-promo-truck {
        width: 110px;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .badge-featured-pill {
        gap: 8px;
    }

    .badge-featured-pill .flame-icon-wrap {
        width: 27px;
        height: 32px;
    }

    .badge-featured-pill .badge-title,
    .badge-featured-pill>span:not(.bolt-icon):not(.flame-icon-wrap) {
        font-size: 15px;
        padding: 6px 14px 4px 12px;
    }

    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 10px 8px;
    }

    .trust-item {
        padding: 0;
        gap: 4px;
        justify-content: left;
    }

    .trust-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .trust-icon svg {
        width: 24px;
        height: 24px;
    }

    .trust-title {
        font-size: 12.5px;
        letter-spacing: -0.3px;
    }

    .trust-desc {
        font-size: 11px;
    }

    .home-pro-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Ẩn sản phẩm thứ 5 khi về mobile để hiển thị chẵn 2 cột x 2 hàng (4 sản phẩm) */
    .home-pro-grid-5>.home-pro-item:nth-child(n+5) {
        display: none !important;
    }

    .featured-categories-section {
        padding: 10px 0 16px;
    }

    .home-cats-grid-10 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .home-cat-card {
        padding: 10px 8px;
        min-height: 120px;
    }

    .home-cat-icon {
        width: 75px;
        height: 65px;
        margin-bottom: 6px;
    }

    .home-cat-icon img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .home-cat-name {
        font-size: 13px;
        line-height: 1.25;
        font-weight: 600;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-block-header .badge-category-tab {
        font-size: 13.5px;
        padding: 6px 14px 6px 10px;
    }

    .category-block-header .home-section-link {
        font-size: 12.5px;
        padding-bottom: 4px;
    }

    .home-cat-block-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-cat-banner-card {
        grid-column: span 2;
        /* min-height: 140px; */
    }

    .home-promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px 14px;
        gap: 10px;
    }

    .home-promo-left {
        justify-content: center;
    }

    .home-promo-title {
        font-size: 18px;
    }

    .home-news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .badge-featured-pill .flame-icon-wrap {
        width: 24px;
        height: 29px;
    }

    .badge-featured-pill .badge-title,
    .badge-featured-pill>span:not(.bolt-icon):not(.flame-icon-wrap) {
        font-size: 13.5px;
        padding: 5px 12px 3px 10px;
    }

    .trust-bar {
        /* grid-template-columns: 1fr; */
    }

    .trust-item::after {
        display: none !important;
    }

    .home-cats-grid-10 {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-promo-title {
        font-size: 16px;
    }

    .home-promo-btn {
        font-size: 11px;
        padding: 7px 16px;
    }

    .home-pro-title {
        font-size: 12px;
        min-height: 32px;
    }

    .home-pro-price {
        font-size: 13.5px;
    }

    .home-news-grid-4 {
        grid-template-columns: 1fr;
    }

    .home-promo-section {
        padding: 5px 0;
    }
}

@media (max-width: 370px) {
    .trust-title {
        font-size: 11px;
        letter-spacing: -0.3px;
    }

    .badge-category-ribbon {
        font-size: 13.5px;
        padding: 5px 24px 5px 10px;
    }

    .home-cat-card {
        padding: 8px 6px;
        min-height: 110px;
    }

    .home-cat-icon {
        width: 65px;
        height: 55px;
    }

    .home-cat-name {
        font-size: 12px;
    }
}
