/*======================================================
            kategori.css
            WEBSITE UMKM DESA WIROKO
=======================================================*/


/*====================================================
                    NAVBAR
====================================================*/
.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8%;
    box-shadow:0 3px 15px rgba(0, 0, 0, 0.08);
    z-index:9999;
    transition:2s;
}

/* identitas */
.identitas{
    display: flex;
    align-items: center;
    gap: 15px;
    row-gap: 15px;
    column-gap: 15px;
}

/* Logo */
.logo {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*======================================================
                    HERO KATEGORI
=======================================================*/

.hero-kategori{
    padding-top:80px;
    width:100%;
    min-height:100vh;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

/*================ INDUSTRI ================*/

.hero-industri{
    background-image:url("../images/industri.png");
}

/*================ FASHION ================*/

.hero-fashion{
    background-image:url("../images/fashion.png");
}

/*================ KULINER ================*/

.hero-kuliner{
    background-image:url("../images/kuliner.png");
}

/*======================================================
                    OVERLAY
=======================================================*/
.hero-overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgb(5, 84, 0)
    );
    display:flex;
    justify-content:center;
    align-items:center;
}

/*======================================================
                HERO CONTENT
=======================================================*/
.hero-content-kategori{
    width:80%;
    max-width:1000px;
    text-align:center;
    color:white;
    transition:0.6s;
}

.hero-content-kategori h1{
    font-size:94px;
    margin-bottom:25px;
    font-weight:700;
    letter-spacing:2px;
    line-height: 1.2;
}

.hero-content-kategori p{
    font-size:18px;
    line-height:2;
}

/*======================================================
                HERO ANIMATION
=======================================================*/
@keyframes fadeHero{
    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/*====================================
        HEADER PRODUK
=====================================*/

.produk-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.produk-header h3{

    color:#1B5E20;

    font-size:22px;

    font-weight:700;

}

/*======================================================
                FITUR PRODUK
=======================================================*/
.fitur-produk{
    padding:70px 0;
    background:#F8F9FA;
}

/*======================================================
                JUDUL
=======================================================*/
.judul-section{
    text-align:center;
    margin-bottom:50px;
}

.judul-section h2{
    color:#1B5E20;
    font-size:42px;
    margin-bottom:15px;
    line-height: 1;
}

.judul-section p{
    color:#666;
    font-size:17px;
}

/*======================================================
            SEARCH + FILTER
=======================================================*/
.fitur-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
    overflow: visible;
}

/*======================================================
                SEARCH BOX
=======================================================*/
.search-box{
    flex:1;
    min-width:320px;
    position:relative;
}

.search-box input{
    width:100%;
    padding:18px 20px 18px 55px;
    border:none;
    border-radius:50px;
    background:white;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    outline:none;
    font-size:16px;
    transition:.3s;
}

.search-box input:focus{
    box-shadow:
    0 0 0 3px rgba(46,125,50,.2);
}

.search-box i{
    position:absolute;
    left:22px;
    top:50%;
    transform:translateY(-50%);
    color:#2E7D32;
    font-size:18px;
}


/*======================================================
                FILTER
=======================================================*/
.filter-box{
    position: relative;
    display:flex;
    align-items:center;
    gap:15px;
}


.filter-box label{
    font-weight:600;
    color:#333;
}


.filter-box select{
    width:220px;
    padding:15px;
    border:none;
    border-radius:50px;
    background:white;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    outline:none;
    cursor:pointer;
    font-size:15px;
}


/*======================================================
                RESPONSIVE
=======================================================*/
@media(max-width:992px){

.hero-content-kategori h1{
    font-size:42px;
}

.hero-content-kategori p{
    font-size:16px;
}

.fitur-container{
    flex-direction:column;
}

.search-box{
    width:100%;
}

.filter-box{
    width:100%;
    justify-content:center;
}
}


@media(max-width:768px){

.hero-kategori{
    height:60vh;
}

.hero-content-kategori{
    width:90%;
}

.hero-content-kategori h1{
    font-size:34px;
}

.hero-content-kategori p{
    font-size:15px;
    line-height:1.8;
}

.judul-section h2{
    font-size:30px;
}
}

@media(max-width:480px){
.hero-content-kategori h1{
    font-size:28px;
}

.hero-content-kategori p{
    font-size:14px;
}

.search-box input{
    padding:15px 18px 15px 50px;
}

.filter-box{
    flex-direction:column;
}

.filter-box select{
    width:100%;
}
}

/*======================================================
                PRODUK SECTION
=======================================================*/
.produk-section{
    padding:80px 0;
    background:#ffffff;
}

/*======================================================
                GRID PRODUK
=======================================================*/
.produk-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}


/*======================================================
                CARD PRODUK
=======================================================*/
.produk-card{
    position: relative;
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
    display:flex;
    flex-direction:row;
    min-height:220px;
    z-index: 1;
}

.produk-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
    z-index: 2;
}

/*======================================================
                INFORMASI PRODUK
=======================================================*/
.produk-info{
    flex:1;
    padding:22px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.produk-info h3{
    color:#1B5E20;
    font-size:22px;
    margin-bottom:12px;
    line-height:1.2;
}

.produk-info p{
    color:#555;
    font-size:15px;
    margin-bottom:12px;
    line-height:1.6;
}

.produk-info p i{
    color:#2E7D32;
    width:22px;
}

.produk-jenis{
    margin:0px 0 0px;
    color:#555;
    font-size:14px;
    line-height:1.2;
    text-align:justify;
}

.produk-deskripsi{
    margin:0px 0 0px;
    color:#555;
    font-size:14px;
    line-height:1.2;
    text-align:justify;
    text-indent: 26px;
}

/*======================================================
                    HARGA
=======================================================*/
.harga{
    font-size:18px;
    font-weight:700;
    color:#E67E22;
}

/*======================================================
                GAMBAR PRODUK
=======================================================*/
.produk-image{
    width:180px;
    position:relative;
    overflow:hidden;
}

.produk-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.produk-card:hover .produk-image img{
    transform:scale(1.08);
}

/*======================================================
                TOMBOL
=======================================================*/
.produk-action{
    display:flex;
    gap:10px;
    margin-top:12px;
}

.btn-wa{
    flex:1;
    text-align:center;
    background:#25D366;
    color:white;
    padding:10px;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.btn-wa:hover{
    background:#1EBE5D;
}

.btn-maps{
    flex:1;
    text-align:center;
    background:#2E7D32;
    color:white;
    padding:10px;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.btn-maps:hover{
    background:#1B5E20;
}

/*======================================================
                BADGE KATEGORI
=======================================================*/
.badge{
    display:inline-block;
    background:#E8F5E9;
    color:#2E7D32;
    padding:6px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    margin-bottom:12px;
}

/*======================================================
                HASIL PENCARIAN
=======================================================*/
#hasil{
    margin-bottom:25px;
    color:#666;
    font-weight:500;
}

/*======================================================
                TIDAK ADA DATA
=======================================================*/
.kosong{
    grid-column:1/-1;
    text-align:center;
    padding:80px 20px;
}

.kosong i{
    font-size:70px;
    color:#bbbbbb;
    margin-bottom:20px;
}

.kosong h3{
    color:#666;
    margin-bottom:10px;
}

.kosong p{
    color:#888;
}

/*======================================================
                RESPONSIVE TABLET
=======================================================*/
@media(max-width:1100px){
.produk-grid{
    grid-template-columns:repeat(2,1fr);
}
}

/*======================================================
                RESPONSIVE MOBILE
=======================================================*/
@media(max-width:768px){
.nama-website h2 {
    font-size:20px;
    margin-top:30px;
}

.nama-website p {
    color:var(--dark);
    font-size:8px;
    margin-bottom:20px;
}
        
.navbar{
    height:170px;
    flex-direction:column;
    justify-content:center;
    padding:12px;
}

.logo{
    margin-bottom:20px;
    margin-top:30px;
}

.nav-menu{
    margin-bottom:30px;
    gap:15px;
    flex-wrap:wrap;
    justify-content:center;
}

.hero-kategori{
    padding-top:170px;
    height:"250vh",
}

.hero-content-kategori h1{
    padding-top:100px;
}
            
.produk-grid{
    grid-template-columns:1fr;
}

.produk-card{
    flex-direction:column;
}

.produk-image{
    width:100%;
    height:240px;
}

.produk-info{
    padding:20px;
}
}

/*======================================================
                MOBILE KECIL
=======================================================*/
@media(max-width:480px){

.produk-info h3{
    font-size:20px;
}

.produk-info p{
    font-size:14px;
}

.produk-action{
    flex-direction:column;
}

.btn-wa,
.btn-maps{
    width:100%;
}
}

/*======================================================
                ANIMASI CARD
=======================================================*/
.produk-card{
    transform:translateY(-6px);
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(35px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/*======================================================
                HOVER EFFECT
=======================================================*/
.produk-card:hover .badge{
    animation:fadeUp 0.8s ease;
    background:#2E7D32;
    color:white;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(5px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.produk-card:hover h3{
    color:#388E3C;
}

.produk-card:hover{
    transform:translateY(-6px);
    transform:scale(0.8);
}

/*======================================================
                TOMBOL ANIMATION
=======================================================*/
.btn-wa,
.btn-maps{
    position:relative;
    overflow:hidden;
}

.btn-wa::before,
.btn-maps::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:rgba(255,255,255,.18);
    transition:.45s;
}

.btn-wa:hover::before,
.btn-maps:hover::before{
    left:100%;
}

/*======================================================
                LOADING IMAGE
=======================================================*/
.produk-image{
    background:#ECECEC;
}

.produk-image img{
    display:block;
}

/*======================================================
                FOOTER
=======================================================*/
footer{
    margin-top:80px;
}

/*======================================================
                BACK TO TOP
=======================================================*/
#backToTop{
    position:fixed;
    right:30px;
    bottom:30px;
    width:55px;
    height:55px;
    border-radius:50%;
    border:none;
    background:#2E7D32;
    color:white;
    font-size:22px;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
    transition:.3s;
    z-index:999;
}

#backToTop:hover{
    transform:translateY(-6px);
    background:#1B5E20;
}

/*======================================================
                SCROLLBAR
=======================================================*/
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#EEEEEE;
}

::-webkit-scrollbar-thumb{
    background:#2E7D32;
    border-radius:30px;
}

::-webkit-scrollbar-thumb:hover{
    background:#1B5E20;
}

/*======================================================
                SELECTION
=======================================================*/
::selection{
    background:#2E7D32;
    color:white;
}

/*======================================================
                SMOOTH SCROLL
=======================================================*/
html{
    scroll-behavior:smooth;
}

/*======================================================
                LINK
=======================================================*/
a{
    text-decoration:none;
}

/*======================================================
                LOADING
=======================================================*/
body{
    animation:bodyFade .7s ease;
}

@keyframes bodyFade{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}


/*======================================================
                UTILITY
=======================================================*/
.text-center{
    text-align:center;
}

.mt-1{
    margin-top:10px;
}

.mt-2{
    margin-top:20px;
}

.mt-3{
    margin-top:30px;
}

.mb-1{
    margin-bottom:10px;
}

.mb-2{
    margin-bottom:20px;
}

.mb-3{
    margin-bottom:30px;
}

.hidden{
    display:none;
}

/*======================================================
                RESPONSIVE
=======================================================*/
@media(max-width:992px){
    #backToTop{
        width:50px;
        height:50px;
    }
}

@media(max-width:768px){
    footer{
        margin-top:60px;
    }
    .produk-card{
        border-radius:16px;
    }
}

@media(max-width:480px){
    #backToTop{
        right:18px;
        bottom:18px;
        width:45px;
        height:45px;
        font-size:18px;
    }
}

/*==========================================
        CUSTOM DROPDOWN
==========================================*/

.custom-select{
    position:relative;
    width:250px;
    user-select:none;
}

.custom-select.active .selected{
    border-color:#2E7D32;
    box-shadow:0 0 0 4px rgba(46,125,50,.15);
}

.selected{
    background:white;
    border-radius:40px;
    padding:15px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition: .3s;
    /*
    border:2px solid transparent;
    transition:

        border-color .3s,

        box-shadow .3s,

        background .3s;*/
}

.selected:hover{
    background:#F1F8E9;
}

.selected i{
    color:#2E7D32;
    transition:.3s;
}

.custom-select.active .selected i{
    transform:rotate(180deg);
}

.options{
    position:absolute;
    bottom:calc(100% + 10px);
    left:0;
    width:100%;
    background:#fff;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    overflow:hidden;
    display:none;
    z-index:99999;
}

.custom-select.active .options{
    display:block;
    animation:dropdown .25s ease;
    overflow:visible;
    border-radius:15px;
}

@keyframes dropdown{
    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.option{
    padding:15px 20px;
    cursor:pointer;
    transition:.25s;
    z-index: 99999;
}

.option:hover{
    background:#2E7D32;
    color:white;
    border-radius:15px;

}

.option.active{
    background:#E8F5E9;
    color:#2E7D32;
    font-weight:bold;
    border-radius:15px;
}

/*=========================================
            TOGGLE BAHASA
=========================================*/
.language-toggle{
    display:flex;
    align-items:center;
    gap:5px;
}

.lang-id,
.lang-en{
    font-size:16px;
    font-weight:500;
    color:#222;
    gap:10px;
}

/*=========================================
                SWITCH
=========================================*/
.switch{
    position:relative;
    display:inline-block;
    width:54px;
    height:28px;
}

.switch input{
    display:none;
}

/*=========================================
                SLIDER
=========================================*/
.slider{
    position:absolute;
    cursor:pointer;
    inset:0;
    background:#cfd8dc;
    border-radius:50px;
    transition:.3s;
}

.slider::before{
    content:"";
    position:absolute;
    width:22px;
    height:22px;
    left:3px;
    top:3px;
    background:white;
    border-radius:50%;
    transition:.3s;
}

/*=========================================
            SAAT AKTIF
=========================================*/
input:checked + .slider{
    background:#2E7D32;
}

input:checked + .slider::before{
    transform:translateX(26px);
}

.language-toggle h2{
    font-size:16px;
    font-weight:500;
    transition:.3s;
}
