/* ========================================
   ISOMASS PRODUCT CATEGORY PAGE STYLES
   File: /css/isomass-product-category.css
   Shared by all 9 category pages (acoustic-absorber-systems, acoustic-floorboard-systems,
   acoustic-floor-mat-systems, acoustic-platform-floors, acoustic-wall-and-ceiling-systems,
   monodeck-acoustic-floor-range, soundproofing-solutions, underboard-acoustic-treatments,
   under-screed-systems). Card style matches the Accessories page.
======================================== */

.isomass-product-category {
    font-family: 'Mona Sans', sans-serif;
}

/* ========================================
   HERO - dark band, centred, with review pill
======================================== */
.category-hero {
    background-color: #1a1a1a;
    padding: 80px 0;
}

.category-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.category-hero h1:not(.category-hero-eyebrow), .category-hero .category-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin: 0 0 30px;
}

.category-hero h1:not(.category-hero-eyebrow)::after, .category-hero .category-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background-color: #d21e2b;
}

.category-hero-content .isomass-review-pill {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

/* ========================================
   PRODUCT GRID
   Cards keep a set width and centre, so pages with 1 or 2 products
   don't stretch a single card across the page
======================================== */
.category-products {
    background-color: #f3f3f3;
    padding: 80px 0 90px;
}

.category-products .container {
    max-width: 1200px;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
}

/* Card - white, image on a soft panel, text, button pinned to the bottom */
.category-product-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-product-item:hover {
    transform: translateY(-5px);
    border-color: rgba(210, 30, 43, 0.35);
    box-shadow: 0 16px 36px rgba(210, 30, 43, 0.12);
}

.category-product-image {
    aspect-ratio: 16 / 10;
    background-color: #f7f7f7;
    overflow: hidden;
}

.category-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-product-item:hover .category-product-image img {
    transform: scale(1.04);
}

.category-product-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 26px 28px 28px;
}

.category-product-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    margin: 0 0 12px;
    transition: color 0.3s ease;
}

.category-product-item:hover .category-product-content h2 {
    color: #d21e2b;
}

.category-product-content p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 24px;
}

.category-product-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid #d21e2b;
    border-radius: 8px;
    background-color: #d21e2b;
    color: #ffffff;
    font-family: 'Mona Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-product-button::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

.category-product-button:hover {
    background-color: #b01a24;
    border-color: #b01a24;
    color: #ffffff;
    text-decoration: none;
}

.category-product-button:hover::after {
    transform: translateX(4px);
}

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

@media (max-width: 1024px) {
    .category-hero {
        padding: 70px 0;
    }

    .category-hero h1:not(.category-hero-eyebrow), .category-hero .category-hero-title {
        font-size: 2.6rem;
    }

    .category-hero h1:not(.category-hero-eyebrow)::after, .category-hero .category-hero-title::after {
        width: 90px;
    }

    .category-products {
        padding: 70px 0 80px;
    }

    .category-products-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 55px 0;
    }

    .category-hero h1:not(.category-hero-eyebrow), .category-hero .category-hero-title {
        font-size: 2.2rem;
    }

    .category-hero h1:not(.category-hero-eyebrow)::after, .category-hero .category-hero-title::after {
        width: 70px;
    }

    .category-products {
        padding: 50px 0 60px;
    }

    .category-products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 560px;
    }

    .category-product-content {
        padding: 22px 22px 22px;
    }
}

@media (max-width: 480px) {
    .category-hero h1:not(.category-hero-eyebrow), .category-hero .category-hero-title {
        font-size: 1.9rem;
    }

    .category-hero h1:not(.category-hero-eyebrow)::after, .category-hero .category-hero-title::after {
        width: 60px;
        height: 3px;
    }

    .category-product-content {
        padding: 20px 18px 18px;
    }

    .category-product-content h2 {
        font-size: 1.1rem;
    }

    .category-product-content p {
        font-size: 0.92rem;
        margin-bottom: 18px;
    }

    .category-product-button {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

/* ---------- SEO H1 - small eyebrow line above the main title ---------- */
.category-hero-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff4757;
    margin: 0 0 14px;
}

@media (max-width: 480px) {
    .category-hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }
}
