/*=========================================
    SHOP BY CATEGORY
=========================================*/

.category-section{
    position: relative;
    padding:15px 0;
    background:#050505;
    overflow:hidden;
}

.category-section::before{
    content:"";
    position:absolute;
    top:-180px;
    left:-180px;
    width:420px;
    height:420px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(212,175,55,.12), transparent 70%);
}

.category-section::after{
    content:"";
    position:absolute;
    right:-180px;
    bottom:-180px;
    width:420px;
    height:420px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(212,175,55,.08), transparent 70%);
}

.section-title{
    max-width:700px;
    margin:0 auto 60px;
    position:relative;
    z-index:2;
}

.section-title .sub-title{
    display:inline-block;
    color:#D4AF37;
    letter-spacing:3px;
    text-transform:uppercase;
    font-size:13px;
    margin-bottom:12px;
}

.section-title h2{
    font-size:52px;
    font-weight:700;
    color:#fff;
    margin-bottom:18px;
}

.section-title h2 span{
    background:linear-gradient(
        180deg,
        #F8E08A 0%,
        #E7C45C 20%,
        #D4AF37 45%,
        #B8860B 70%,
        #8A6515 100%
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.section-title p{
    color:#bdbdbd;
    font-size:17px;
    line-height:30px;
}

/*=========================================
    CATEGORY CARD
=========================================*/

.category-card{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:22px;
    border:1px solid rgba(212,175,55,.25);
    background:#111;
    transition:.45s;
    text-decoration:none;
}

.category-large{
    height:640px;
}

.category-small{
    height:308px;
}

.category-bottom{
    height:330px;
}

.category-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.8s;
}

.category-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.92),
        rgba(0,0,0,.35),
        rgba(0,0,0,.05)
    );
}

.category-content{
    position:absolute;
    left:40px;
    right:40px;
    bottom:35px;
    z-index:5;
}

.category-content small{
    color:#D4AF37;
    display:block;
    margin-bottom:10px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.category-content h3{
    color:#fff;
    font-size:36px;
    margin-bottom:15px;
    font-weight:700;
}

.category-small .category-content h3{
    font-size:28px;
}

.category-bottom .category-content h3{
    font-size:30px;
}

.category-content p{
    color:#d4d4d4;
    line-height:28px;
    margin-bottom:22px;
    max-width:360px;
}

.shop-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#D4AF37;
    font-weight:600;
    letter-spacing:1px;
    transition:.4s;
}

.shop-btn i{
    transition:.4s;
}

/*=========================================
    HOVER EFFECTS
=========================================*/

.category-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    border:1px solid transparent;
    transition:.45s;
    z-index:6;
    pointer-events:none;
}

.category-card:hover{
    transform:translateY(-10px);
    border-color:#D4AF37;
    box-shadow:
        0 20px 45px rgba(0,0,0,.45),
        0 0 25px rgba(212,175,55,.15);
}

.category-card:hover::before{
    border-color:rgba(212,175,55,.7);
}

.category-card:hover img{
    transform:scale(1.08);
}

.category-card:hover .category-overlay{
    background:linear-gradient(
        to top,
        rgba(0,0,0,.95),
        rgba(0,0,0,.45),
        rgba(0,0,0,.10)
    );
}

.category-card:hover .shop-btn{
    color:#F8E08A;
}

.category-card:hover .shop-btn i{
    transform:translateX(8px);
}

/*=========================================
    GOLD LINE ANIMATION
=========================================*/

.category-card::after{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:60%;
    height:100%;
    transform:skewX(-25deg);

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );

    transition:1s;
}

.category-card:hover::after{
    left:150%;
}

/*=========================================
    TEXT ANIMATION
=========================================*/

.category-content h3,
.category-content p,
.shop-btn{
    transition:.4s;
}

.category-card:hover h3{
    transform:translateY(-3px);
}

.category-card:hover p{
    color:#ffffff;
}

.category-card:hover .shop-btn{
    letter-spacing:1.5px;
}

/*=========================================
    IMAGE DARKEN
=========================================*/

.category-card img{
    filter:brightness(.82);
}

.category-card:hover img{
    filter:brightness(1);
}

/*=========================================
    BUTTON STYLE
=========================================*/

.shop-btn{

    position:relative;

    display:inline-flex;
    align-items:center;
    gap:10px;

    font-size:15px;
    font-weight:600;

    text-transform:uppercase;

}

.shop-btn::before{

    content:"";

    position:absolute;

    bottom:-6px;
    left:0;

    width:0;

    height:2px;

    background:#D4AF37;

    transition:.4s;

}

.category-card:hover .shop-btn::before{

    width:100%;

}

/*=========================================
    SMOOTH TRANSITIONS
=========================================*/

.category-card,
.category-card img,
.category-overlay,
.category-content,
.shop-btn,
.shop-btn i{

    transition:all .45s ease;

}


/*=========================================
    RESPONSIVE DESIGN
=========================================*/

@media (max-width: 1199px){

    .category-large{
        height:560px;
    }

    .category-small{
        height:270px;
    }

    .category-bottom{
        height:280px;
    }

    .section-title h2{
        font-size:46px;
    }

}

@media (max-width:991px){

    .category-section{
        padding:70px 0;
    }

    .section-title{
        margin-bottom:45px;
    }

    .section-title h2{
        font-size:40px;
    }

    .section-title p{
        font-size:16px;
    }

    .category-large,
    .category-small,
    .category-bottom{
        height:420px;
    }

    .category-content{
        left:30px;
        right:30px;
        bottom:30px;
    }

    .category-content h3{
        font-size:30px;
    }

    .category-content p{
        font-size:15px;
        line-height:26px;
    }

}

@media (max-width:767px){

    .category-section{
        padding:60px 0;
    }

    .section-title{

        margin-bottom:35px;

    }

    .section-title h2{

        font-size:34px;

    }

    .section-title .sub-title{

        font-size:12px;
        letter-spacing:2px;

    }

    .section-title p{

        font-size:15px;
        line-height:26px;

    }

    .category-large,
    .category-small,
    .category-bottom{

        height:340px;

    }

    .category-content{

        left:22px;
        right:22px;
        bottom:22px;

    }

    .category-content h3{

        font-size:26px;
        margin-bottom:10px;

    }

    .category-content p{

        font-size:14px;
        line-height:24px;
        margin-bottom:15px;

    }

    .shop-btn{

        font-size:14px;

    }

}

@media (max-width:575px){

    .category-large,
    .category-small,
    .category-bottom{

        height:300px;

    }

    .section-title h2{

        font-size:30px;

    }

    .category-content h3{

        font-size:22px;

    }

    .category-content p{

        display:none;

    }

    .category-content{

        left:20px;
        right:20px;
        bottom:20px;

    }

}

/*=========================================
    SECTION DECORATION
=========================================*/

.section-title h2{

    position:relative;
    display:inline-block;

}

.section-title h2::before,
.section-title h2::after{

    content:"";

    position:absolute;
    top:50%;

    width:70px;
    height:1px;

    background:rgba(212,175,55,.45);

}

.section-title h2::before{

    right:100%;
    margin-right:20px;

}

.section-title h2::after{

    left:100%;
    margin-left:20px;

}

@media(max-width:767px){

    .section-title h2::before,
    .section-title h2::after{

        display:none;

    }

}

/*=========================================
    OPTIONAL SCROLL ANIMATION
=========================================*/

.category-card{

    opacity:0;
    transform:translateY(50px);

    animation:fadeUp .8s ease forwards;

}

.category-card:nth-child(1){animation-delay:.1s;}
.category-card:nth-child(2){animation-delay:.2s;}
.category-card:nth-child(3){animation-delay:.3s;}
.category-card:nth-child(4){animation-delay:.4s;}
.category-card:nth-child(5){animation-delay:.5s;}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(50px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}