/* =========================================================
   EAGLE FURNITURE NGARA
   CATEGORIES PAGE
========================================================= */

.categories-page {
    padding: 80px 0;
    background: #ffffff;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.categories-header {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.categories-header .section-tag {
    display: inline-block;
    margin-bottom: 15px;
    color: #b8860b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.categories-header h1 {
    margin: 0 0 18px;
    color: #222222;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
}

.categories-header p {
    margin: 0;
    color: #666666;
    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.category-page-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.category-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   IMAGE
========================================================= */

.category-page-image-link {
    display: block;
    text-decoration: none;
}

.category-page-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f4f1ec;
}

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

.category-page-card:hover .category-page-image img {
    transform: scale(1.05);
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f4f1ec;
    color: #999999;
}

.category-image-placeholder i {
    font-size: 4rem;
}


/* =========================================================
   FEATURED BADGE
========================================================= */

.category-featured {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 13px;
    border-radius: 30px;
    background: #d4a017;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* =========================================================
   CONTENT
========================================================= */

.category-page-content {
    padding: 28px;
}

.category-page-content h2 {
    margin: 0 0 12px;
    color: #222222;
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.category-page-content p {
    min-height: 55px;
    margin: 0 0 22px;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================================================
   CATEGORY LINK
========================================================= */

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #222222;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.category-link i {
    transition: transform 0.25s ease;
}

.category-link:hover {
    color: #b8860b;
}

.category-link:hover i {
    transform: translateX(5px);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.categories-empty {
    padding: 80px 20px;
    text-align: center;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #fafafa;
}

.categories-empty > i {
    display: block;
    margin-bottom: 20px;
    color: #b8860b;
    font-size: 4rem;
}

.categories-empty h2 {
    margin-bottom: 12px;
    color: #222222;
    font-family: "Playfair Display", serif;
}

.categories-empty p {
    margin-bottom: 25px;
    color: #666666;
}


/* =========================================================
   CUSTOM FURNITURE CTA
========================================================= */

.categories-cta {
    padding: 70px 0;
    background: #f6f3ee;
}

.categories-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 45px;
    border-radius: 18px;
    background: #222222;
    color: #ffffff;
}

.categories-cta-inner .section-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #d4a017;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.categories-cta-inner h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.categories-cta-inner p {
    max-width: 650px;
    margin: 0;
    color: #cccccc;
    line-height: 1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .categories-page {
        padding: 60px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .category-page-image {
        height: 260px;
    }

    .categories-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 35px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .categories-page {
        padding: 50px 0;
    }

    .categories-header {
        margin-bottom: 40px;
    }

    .categories-header h1 {
        font-size: 2.3rem;
    }

    .categories-header p {
        font-size: 0.95rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-page-image {
        height: 250px;
    }

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

    .category-page-content h2 {
        font-size: 1.45rem;
    }

    .category-page-content p {
        min-height: auto;
    }

    .categories-cta {
        padding: 50px 0;
    }

    .categories-cta-inner {
        padding: 28px 22px;
    }

    .categories-cta-inner h2 {
        font-size: 1.8rem;
    }

    .categories-cta-inner .btn {
        width: 100%;
    }

}