/* =========================================
   SHOP BY CATEGORY PAGE
========================================= */

.category-hero {
    min-height: 360px;
    background:
        linear-gradient(
            135deg,
            rgba(107, 79, 58, 0.94),
            rgba(79, 125, 50, 0.88)
        );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(244, 197, 66, 0.18);
    top: -120px;
    left: -80px;
}

.category-hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(248, 222, 208, 0.16);
    bottom: -180px;
    right: -100px;
}

.category-hero-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.category-eyebrow {
    display: inline-block;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.category-hero h1 {
    color: var(--white);
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.category-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 25px;
}

.category-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 14px;
}

.category-breadcrumb a {
    color: var(--yellow);
    text-decoration: none;
}

.category-breadcrumb i {
    font-size: 10px;
}


/* =========================================
   CATEGORY SECTION
========================================= */

.all-categories {
    padding: 85px 20px;
    background: var(--light-cream);
}

.category-container {
    max-width: 1250px;
    margin: auto;
}

.category-section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.category-section-heading span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.category-section-heading h2 {
    color: var(--dark-brown);
    font-size: 38px;
    margin: 10px 0 12px;
}

.category-section-heading p {
    color: var(--text-light);
    font-size: 16px;
}


/* =========================================
   CATEGORY GRID
========================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.category-page-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(74, 53, 38, 0.06);
}

.category-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(74, 53, 38, 0.13);
}


/* IMAGE */

.category-page-image {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.category-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.category-page-card:hover .category-page-image img {
    transform: scale(1.07);
}

.category-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--dark-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}


/* CONTENT */

.category-page-content {
    padding: 23px;
}

.category-page-content h3 {
    color: var(--dark-brown);
    font-size: 21px;
    margin-bottom: 10px;
}

.category-page-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.65;
    min-height: 68px;
    margin-bottom: 18px;
}

.category-explore {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.category-page-card:hover .category-explore {
    gap: 13px;
}

.category-explore i {
    font-size: 12px;
}


/* =========================================
   CTA
========================================= */

.category-cta {
    padding: 80px 20px;
    background:
        linear-gradient(
            135deg,
            var(--dark-brown),
            var(--brown)
        );
    text-align: center;
}

.category-cta-content {
    max-width: 750px;
    margin: auto;
}

.category-cta span {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.category-cta h2 {
    color: var(--white);
    font-size: 40px;
    margin: 12px 0;
}

.category-cta p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 28px;
}

.category-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow);
    color: var(--dark-brown);
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.category-cta-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

    .category-hero {
        min-height: 320px;
    }

    .category-hero h1 {
        font-size: 40px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-section-heading h2 {
        font-size: 32px;
    }

}


@media (max-width: 550px) {

    .category-hero {
        min-height: 300px;
        padding: 60px 18px;
    }

    .category-hero h1 {
        font-size: 34px;
    }

    .category-hero p {
        font-size: 15px;
    }

    .all-categories {
        padding: 60px 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-page-image {
        height: 240px;
    }

    .category-cta h2 {
        font-size: 30px;
    }

}

/* =========================================
   CATEGORY PAGE - WIDTH & TEXT FIX
========================================= */

.category-container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}


/* CATEGORY GRID */

.category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}


/* CATEGORY CARD */

.category-page-card {
    width: 100%;
    min-width: 0;
}


/* IMAGE */

.category-page-image {
    height: 210px;
}


/* CONTENT */

.category-page-content {
    padding: 20px;
}

.category-page-content h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px;
}


/* TEXT KO HIDE NAHI KAREGA */

.category-page-content p {
    font-size: 14px;
    line-height: 1.65;

    min-height: auto;
    height: auto;

    margin: 0 0 18px 0;

    overflow: visible;
    white-space: normal;
    word-break: normal;
}


/* EXPLORE */

.category-explore {
    white-space: nowrap;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .category-container {
        max-width: 900px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 550px) {

    .category-container {
        width: 100%;
        max-width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-page-image {
        height: 240px;
    }

    .category-page-content {
        padding: 20px;
    }

    .category-page-content h3 {
        font-size: 20px;
    }

    .category-page-content p {
        font-size: 14px;
        line-height: 1.7;
        min-height: auto;
    }

}