@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins";
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(255, 255, 255);
    overflow-x: hidden;
}

/* BERANDA! */
.beranda {
    padding-top: 100px;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* css footer */
.hero-container {
    background-color: #5D7F5A;
    color: white !important;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-control-prev {
    left: 5px !important;
    width: 40px !important;
}

.carousel-control-next {
    width: 40px !important;
    right: 5px !important;
}

.hero-left {
    padding: 40px;
    min-height: 400px;
}

.hero-right {
    padding: 0;
    /* background-image: url('/assets/img/products/banana.png'); */
    background-size: cover;
    background-position: center;
    color: white !important;
    position: relative;
    left: 20px;
    min-height: 400px;
}

.hero-right .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(93,127,90,1), rgba(93, 127, 90, 0));
    pointer-events: none;
}

.pisang {
    width: 100%;
    border-radius: 8px;
}

.hero-container a {
    width: 250px;
}

.kategori-item {
    background-color: #5d7f5a;
    margin: 0px;
    border-radius: 10px;
    text-align: center;
    align-content: center;
    color: rgb(0, 0, 0);
    width: 180px; /* Ukuran default */
    height: 180px; /* Ukuran default */
    text-decoration: none;
}

.kategori-skeleton {
    background-color: #eee;
    border-radius: 10px;
    margin: 0px;
    width: 180px;
    height: 180px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.product-beranda-skeleton {
    background-color: #eee;
    margin: 0px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 200px;
    height: 250px;
}

.kategori-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.2s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.kategori-item img {
    max-width: 70px;
    max-height: 70px;
    margin-bottom: 10px;
}

.kategori-item h5 {
    margin-bottom: 0px;
    font-size: 14px;
    color: white;
}

.item {
    display: flex;
    width: 175px;
    height: 175px;
    background-color: rgba(93, 127, 90, 1);
    border-radius: 8px;
    justify-content: center;
}

.kategori div.kategoriproduk {
    text-align: center;
    width: 145px;
    height: 34px;
    color: white;
    background-color: rgb(0, 253, 4);
}

.search-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.search-container p {
    color: black;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
}

.search-box {
    display: flex;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.product-search-icon {
    position: absolute;
    top: 18%;
    left: 1%;
    font-size: 22px;
    color: #000;
}

.search-input {
    flex: 1;
    padding: 12px 0px 12px 40px;
    font-size: 16px;
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: #b0b0b0;
}

.search-button {
    padding: 12px 20px;
    background-color: #5d7f5a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #4e613c;
}

.ukm-card {
    flex: 0 0 auto !important;
    border: 1px solid #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    width: 200px;
}
.ukm-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.ukm-card .ukm-name {
    font-size: 14px !important;
    font-weight: 600;
}
.ukm-card .ukm-price {
    font-size: 16px;
    font-weight: 400;
}

.ukm-card .ukm-location {
    font-size: 12px;
}
.ukm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.UKM h2 {
    margin-bottom: 0;
}

.see-all {
    font-size: 16px;
}

.card-img-top {
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.checked {
    color: orange;
}

.category-card {
    background-color: #5d7f5a; /* Warna hijau */
    color: white;
    border-radius: 8px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.category-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.category-text {
    font-size: 16px;
    font-weight: 500;
}

.category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.text-green {
    color: #5d7f5a !important;
    font-size: 18px !important;
}

.product-beranda-card {
    border: 1px solid #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    width: 200px;
    color: #000 !important;
}

.product-beranda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-beranda-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-beranda-card .ukm-location {
    font-size: 12px;
}

/* Media Queries untuk tampilan tablet */
@media (max-width: 768px) {
    .beranda {
        font-size: 60px;
        padding: 15px;
    }

    .product-search-icon {
        left: 1.8%;
    }

    .search-box {
        width: 100%; /* Lebar search box pada layar lebih kecil */
    }

    .search-container p {
        font-size: 24px; /* Ukuran font lebih kecil pada layar kecil */
    }

    /* BERANDA! */
    .beranda {
        padding: 100px 0px 0px;
    }

    /* css footer */
    .hero-container {
        height: 200px;
    }

    .hero-left {
        padding: 0px;
        padding-left: 40px;
        min-height: 200px;
    }

    .hero-right {
        left: 20px;
        min-height: 200px;
    }
    .pisang {
        width: 100%;
        border-radius: 8px;
    }
    
    .hero-container h1 {
        font-size: 20px !important;
        margin-top: 0 !important; 
    }

    .hero-container h4 {
        font-size: 14px !important;
    }

    .hero-container a {
        padding: 8px 15px !important;
        width: 150px;
        font-size: 12px !important;
    }
}

@media screen and (max-width: 540px) {
    .kategori-container {
        justify-content: center !important;
    }

    .ukm-wrapper {
        justify-content: center !important;
    }

    .UKM h2 {
        font-size: 18px;
    }

    .text {
        font-size: 16px;
    }

    .search-input {
        font-size: 12px !important;
    }

    .search-button {
        font-size: 12px;
    }

    .text-green {
        font-size: 10px !important;
    }

    .product-search-icon {
        top: 15%;
        left: 2.5%;
    }

    /* BERANDA! */
    .beranda {
        padding: 100px 0px 0px;
    }

    .carousel-control-prev {
        left: 0px !important;
        width: 20px !important;
    }
    
    .carousel-control-next {
        right: 0px !important;
        width: 20px !important;
    }

    /* css footer */
    .hero-container {
        height: 150px;
    }

    .hero-left {
        padding: 0px;
        padding-left: 15px;
        min-height: 150px;
    }

    .hero-right {
        left: 20px;
        min-height: 150px;
    }
    .pisang {
        width: 100%;
        border-radius: 8px;
    }
    
    .hero-container h1 {
        font-size: 12px !important;
        margin-top: 0 !important; 
    }

    .hero-container h4 {
        font-size: 8px !important;
        margin-bottom: 0 !important;
    }

    .hero-container a {
        padding: 4px 10px !important;
        width: 85px;
        margin-top: 10px;
        font-size: 6px !important;
    }

    .product-beranda-skeleton {
        width: 150px;
        height: 180px;
    }

    .ukm-card {
        width: 150px;
    }
    .ukm-card img {
        height: 140px;
    }
    .ukm-card .ukm-name {
        font-size: 10px !important;
    }
    .product-beranda-card .ukm-price {
        font-size: 10px !important;
    }
    
    .ukm-card .ukm-location {
        font-size: 8px !important;
    }

    .product-beranda-card {
        width: 150px;
    }
    
    .product-beranda-card img {
        height: 140px;
    }
    
    .product-beranda-card .ukm-name {
        font-size: 10px !important;
    }

    .product-beranda-card .ukm-location {
        font-size: 10px !important;
    }

    .product-beranda-card .ukm-rating {
        font-size: 10px !important;
    }

    .product-beranda-card .ukm-transaction {
        font-size: 10px !important;
    }
}

/* Media Queries untuk tampilan mobile */
@media (max-width: 480px) {
    .search-container p {
        font-size: 20px; /* Ukuran lebih kecil lagi untuk layar sangat kecil */
    }

    .search-button {
        font-size: 14px; /* Sesuaikan ukuran button */
        padding: 10px 15px; /* Kurangi padding button */
    }

    .kategori-item {
        background-color: #5d7f5a;
        margin: 0px;
        border-radius: 10px;
        text-align: center;
        align-content: center;
        color: rgb(0, 0, 0);
        width: 150px; /* Ukuran default */
        height: 150px; /* Ukuran default */
        text-decoration: none;
    }

    .kategori-skeleton {
        width: 150px;
        height: 150px;
    }
    
    .ukm-card, .product-beranda-card {
    min-width: 55px !important;
    }
    .ukm-card img {
        width: 100%;
    }
    .ukm-card .ukm-name {
        font-size: 12px;
        font-weight: 600;
    }
}

.btn-custom {
    display: inline-block;
    padding: 10px 20px;
    background-color: #5D7F5A;
    color: white;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-custom:hover {
    background-color: rgb(119, 157, 119);
    color: #ffffff;
}

