/* ================================
   PRODUCT HERO
================================ */
.btn-catalog-hero {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-contact-hero {
    background: var(--primary-dark);
    color: var(--white);
}


.products-hero-inner {
    padding: 48px 40px;
    color: #fff;
    position: relative;
    background: linear-gradient(to right, rgb(110 85 65 / 0%), rgb(140 110 85 / 73%)), url(../../assets/images/index_background_products.webp);
    background-size: cover;
    margin: 30px auto 50px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.products-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.products-hero p {
    font-size: 19px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 14px;
}

.btn-primary,
.btn-outline {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #fff;
    color: #6a4f3b;
}

.btn-primary:hover {
    background: #f2ebe5;
}




/* Hover: nhảy lên */
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ================================
   PRODUCT SECTION
================================ */
.products-section {
    padding-bottom: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 26px;
    padding-left: 20px;
    background-color: #FFF;
    border-radius: 12px;
}

/* GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD */
.product-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    background: #f4f4f4;
}

.product-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* META */
.product-meta {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.product-meta li {
    display: flex;
    align-items: center;   /* căn giữa trên–dưới */
    gap: 6px;
    transform: translateY(-0.5px);
}

.product-meta li img {
    margin: revert;
    display: block;        /* QUAN TRỌNG: bỏ baseline inline */
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* DETAIL BTN */
.btn-detail {
    margin-top: auto;
    text-align: center;
    padding: 9px 0;
    background: linear-gradient(272deg, #513C2E 0%, #746456 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease;

}

.btn-detail:hover {
    transform: translateY(-6px);
}


/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* HERO FULL WIDTH */
    .products-hero-inner {
        margin: 0;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.35);
    }

    /* BUTTON FULL WIDTH */
    .hero-actions {
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
        justify-content: center;
    }


    .products-hero {
        margin: 20px 16px 40px;
    }

    .products-hero-inner {
        padding: 32px 24px;
    }

    .products-hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* HERO */
    .products-hero h1 {
        font-size: 28px;       /* từ 26px */
        line-height: 1.3;
    }

    .products-hero p {
        font-size: 16px;       /* từ 15px */
        margin-bottom: 14px;
    }

    /* SECTION TITLE */
    .section-title {
        font-size: 25px;       /* từ 26px */
        padding-left: 14px;
    }

    /* CARD */
    .product-card h3 {
        font-size: 18px;       /* từ 16px */
    }

    .product-meta li {
        font-size: 15px;
    }

    .btn-detail {
        font-size: 15px;
        padding: 8px 0;
    }
}
