/*==================================================
                SHOP BY CATEGORIES
==================================================*/

.categories{

    position:relative;

    padding:6rem 0;

    overflow:hidden;

    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fcff 100%
    );

}



/*==================================================
                DECORATION
==================================================*/

.categories::before{

    content:"";

    position:absolute;

    top:8%;

    left:-120px;

    width:280px;

    height:280px;

    border-radius:50%;

    background:rgba(89,184,255,.08);

    filter:blur(80px);

}

.categories::after{

    content:"";

    position:absolute;

    right:-120px;

    bottom:8%;

    width:260px;

    height:260px;

    border-radius:50%;

    background:rgba(89,184,255,.06);

    filter:blur(80px);

}



/*==================================================
                CONTAINER
==================================================*/

.categories .container{

    position:relative;

    z-index:2;

}



/*==================================================
                SECTION HEADER
==================================================*/

.section-header{

    max-width:760px;

    margin:0 auto 4.5rem;

    text-align:center;

}



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

.section-badge{

    display:inline-flex;

    align-items:center;

    gap:.65rem;

    padding:.75rem 1.4rem;

    margin-bottom:1.5rem;

    border-radius:999px;

    background:#ffffff;

    color:var(--primary);

    font-weight:600;

    font-size:.95rem;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.section-badge i{

    font-size:1rem;

}



/*==================================================
                TITLE
==================================================*/

.section-title{

    font-family:var(--heading-font);

    font-size:clamp(2.3rem,5vw,4rem);

    font-weight:800;

    line-height:1.15;

    color:var(--primary-dark);

    margin-bottom:1rem;

}

.section-title span{

    color:var(--primary);

}



/*==================================================
                DESCRIPTION
==================================================*/

.section-description{

    max-width:700px;

    margin:0 auto;

    font-size:1.08rem;

    line-height:1.9;

    color:var(--text-light);

}

.section-description strong{

    color:var(--primary-dark);

    font-weight:600;

}



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

.categories-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:2rem;

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

.category-card{

    position:relative;

    overflow:hidden;

    border-radius:28px;

    background:#ffffff;

    box-shadow:
        0 12px 35px rgba(25,45,80,.08);

    transition:
        transform .45s ease,
        box-shadow .45s ease;

}

.category-card a{

    display:block;

    color:inherit;

    text-decoration:none;

}



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

.category-image{

    position:relative;

    overflow:hidden;

    aspect-ratio:16/11;

}

.category-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:
        transform .8s ease;

}

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

.category-image::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            180deg,
            rgba(8,18,35,.18) 0%,
            rgba(8,18,35,.32) 35%,
            rgba(8,18,35,.58) 68%,
            rgba(8,18,35,.78) 100%
        );

    z-index:1;

    transition:opacity .45s ease;

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

.category-content{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:1.8rem;

    z-index:3;

}



/*==================================================
                ICON
==================================================*/

.category-icon{

    position:absolute;

    top:1.5rem;

    left:1.5rem;

    width:72px;

    height:72px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    transition:
        transform .45s ease,
        background .35s ease;

}

.category-icon i{

    font-size:1.9rem;

    color:var(--primary);

}



/*==================================================
                TITLE
==================================================*/

.category-content h3{

    font-family:var(--heading-font);

    font-size:2rem;

    font-weight:700;

    color:#fff;

    margin-bottom:.7rem;

    text-shadow:

    0 3px 10px rgba(0,0,0,.35),
    0 8px 25px rgba(0,0,0,.45);

}



/*==================================================
                DESCRIPTION
==================================================*/

.category-content p{

    color:rgba(255,255,255,.95);

    line-height:1.7;

    margin-bottom:1.6rem;

    max-width:90%;

}



/*==================================================
                BUTTON
==================================================*/

.category-btn{

    display:inline-flex;

    align-items:center;

    gap:.7rem;

    width:max-content;

    padding:.9rem 1.5rem;

    border-radius:999px;

    background:#ffffff;

    color:var(--primary);

    font-weight:600;

    transition:
        background .35s ease,
        color .35s ease,
        gap .35s ease;

}

.category-btn i{

    transition:transform .35s ease;

}



/*==================================================
                HOVER
==================================================*/

.category-card:hover{

    transform:translateY(-10px);

    box-shadow:
        0 22px 55px rgba(25,45,80,.16);

}

.category-card:hover .category-image img{

    transform:scale(1.08);

}

.category-card:hover .category-image::before{

    opacity:1;

    background:
        linear-gradient(
            180deg,
            rgba(8,18,35,.22) 0%,
            rgba(8,18,35,.40) 35%,
            rgba(8,18,35,.68) 68%,
            rgba(8,18,35,.88) 100%
        );

}

.category-card:hover .category-icon{

    transform:rotate(12deg) scale(1.08);

    background:var(--primary);

}

.category-card:hover .category-icon i{

    color:#ffffff;

}

.category-card:hover .category-btn{

    background:var(--primary);

    color:#ffffff;

    gap:1rem;

}

.category-card:hover .category-btn i{

    transform:translateX(4px);

}
/*==================================================
                REVEAL ANIMATION
==================================================*/

.reveal-left,
.reveal-right{

    opacity:0;

    transition:
        opacity .8s ease,
        transform .8s ease;

    will-change:transform, opacity;

}

.reveal-left{

    transform:translateX(-70px);

}

.reveal-right{

    transform:translateX(70px);

}

.reveal-left.show,
.reveal-right.show{

    opacity:1;

    transform:translateX(0);

}



/*==================================================
                TABLET (992px)
==================================================*/

@media (max-width:992px){

    .categories{

        padding:5rem 0;

    }

    .section-header{

        margin-bottom:3.5rem;

    }

    .categories-grid{

        grid-template-columns:repeat(2,1fr);

        gap:1.6rem;

    }

    .category-image{

        aspect-ratio:16/11;

    }

    .category-icon{

        width:64px;

        height:64px;

    }

    .category-icon i{

        font-size:1.6rem;

    }

    .category-content{

        padding:1.5rem;

    }

    .category-content h3{

        font-size:1.65rem;

    }

    .category-content p{

        font-size:.95rem;

        max-width:100%;

    }

}



/*==================================================
                MOBILE (768px)
==================================================*/

@media (max-width:768px){

    .categories{

        padding:4rem 0;

    }

    .section-header{

        margin-bottom:3rem;

    }

    .section-title{

        font-size:2.5rem;

    }

    .section-description{

        font-size:1rem;

        line-height:1.8;

        padding:0 .5rem;

    }

    .categories-grid{

        grid-template-columns:repeat(2,1fr);

        gap:1rem;

    }

    .category-card{

        border-radius:22px;

    }

    .category-image{

        aspect-ratio:1/1;

    }

    .category-content{

        padding:1.1rem;

    }

    .category-icon{

        width:54px;

        height:54px;

        top:1rem;

        left:1rem;

    }

    .category-icon i{

        font-size:1.3rem;

    }

    .category-content h3{

        font-size:1.25rem;

        margin-bottom:.45rem;

    }

    .category-content p{

        display:none;

    }

    .category-btn{

        display:none;
        font-size:.9rem;

    }
    .category-btn{
    display:none;
    width:72%;

    height:40px;

    margin:0 auto;

    justify-content:center;

    padding:0 1rem;

    font-size:.78rem;

    font-weight:600;

    border-radius:999px;

    gap:.45rem;

    }

}



/*==================================================
            SMALL MOBILE (576px)
==================================================*/

@media (max-width:576px){

    .section-badge{

        font-size:.8rem;

        padding:.65rem 1rem;

    }

    .section-title{

        font-size:2rem;

    }

    .section-description{

        font-size:.92rem;

    }

    .categories-grid{

        gap:.85rem;

    }

    .category-card{

        border-radius:18px;

    }

    .category-icon{

        width:48px;

        height:48px;

    }

    .category-icon i{

        font-size:1.15rem;

    }

    .category-content{

        padding:1rem;

    }

    .category-content h3{

        font-size:1.05rem;

    }

   .category-btn{
    display:none;
    width:72%;

    height:40px;

    margin:0 auto;

    justify-content:center;

    padding:0 1rem;

    font-size:.78rem;

    font-weight:600;

    border-radius:999px;

    gap:.45rem;

    }

    .category-btn i{

        font-size:.8rem;

    }


}



/*==================================================
            EXTRA SMALL MOBILE (390px)
==================================================*/

@media (max-width:390px){

    .categories{

        padding:3.5rem 0;

    }

    .section-title{

        font-size:1.75rem;

    }

    .section-description{

        font-size:.88rem;

    }

    .categories-grid{

        gap:.75rem;

    }

    .category-icon{

        width:44px;

        height:44px;

    }

    .category-icon i{

        font-size:1rem;

    }

    .category-content{

        padding:.85rem;

    }

    .category-content h3{

        font-size:.95rem;

        line-height:1.3;

    }

    .category-btn{
        display:none;
        font-size:.8rem;

        padding:.65rem .9rem;

    }

}



/*==================================================
            TOUCH DEVICES
==================================================*/

@media (hover:none){

    .category-card:hover{

        transform:none;

    }

    .category-card:hover .category-image img{

        transform:none;

    }

    .category-card:hover .category-icon{

        transform:none;

    }

}
/*==================================================
            HERO → CATEGORIES GAP FIX
==================================================*/

.hero{
    padding-bottom:0px !important;
}

.categories{
    padding-top:20px !important;
}