/* Slider */
.sliders {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.slide-link {
    display: none; /* default semua tersembunyi */
    width: 100%;
}
.slide-link.active {
    display: block;
}
.slide-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
/* Tombol Next & Prev */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: 18px;
}
.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}
.slider-btn.prev {
    left: 10px;
}
.slider-btn.next {
    right: 10px;
}
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.slider-indicators span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}
.slider-indicators span.active {
    background: #28a745; /* hijau */
}

/* Store Home */
.new-section{
    display: block;
    position: relative;
    margin-top: 1.5rem;
}
.sec-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.sec-title{
    font-weight: 500;
    color: var(--hijau);
}
.sec-link{
    font-size: 14px;
    color: var(--hijau);
    border-bottom: 1px solid var(--hijau);
}
.lis-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .lis-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
.scroll-item {
    display: flex;
    align-items: center;
    background-color: var(--putih);
    min-width: max-content;
    padding: 5px;
    border-radius: 50px;
    transition: transform 0.2s ease;
    gap: 1rem;
    /* box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1); */
  }
  .scroll-item:hover {
    transform: translateY(-3px);
  }
  .scroll-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #fff;
    border: 1px solid #f1f1f1;
  }
  .scroll-name {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
    width: max-content;
  }

/* Kategory home */
.cat-loop{
    width: 100%;
    background-color: var(--putih);
    display: block;
    margin-top: 2rem;
    border-radius: 10px;
}
.section-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.cat-title{
    color: var(--hijau);
}
.cat-list{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    padding: 20px 10px;
}
.cat-chard{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cat-chard:hover .cat-thumb{
    transform: scale(1.1);
    border: 1px solid var(--hijau);
}
.cat-thumb{
    display: block;
    width: 80px;
    height: 80px;
    object-position: center;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    transition: 0.5s ease-in-out;
}
.cat-text{
    color: var(--hijau);
    font-size: 14px;
    font-size: 400;
    text-align: center;
}


/* Produk */
.loop-produk{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.produk-item{
    background-color: var(--putih);
    padding: 2px;
    border-radius: 5px;
    height: max-content;
}
.produk-top .produk-thumb{
    width: 100%;
    height: 220px;
    object-position: center;
    object-fit: cover;
    border-radius: 5px;
}
.produk-bottom{
    padding: 10px;
}
.produk-title a{
    color: #000;
    display: block;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
    text-transform: capitalize;
    font-family: 'Poppins', sans-serif;
}
.span-flex{
    display: flex;
    flex-direction: column;
}
.fix-price{
    font-size: 18px;
    font-weight: 600;
    color: var(--hijau);
    margin-bottom: 5px;
}
.this-price{
    gap: 5px;
    display: flex;
    align-items: center;
    color: var(--text-gelap);
    font-size: 12px;
    margin-bottom: 1rem;
}
.coret{
    text-decoration: line-through;
}
.diskon{
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: red;
    color: var(--putih);
    font-size: 11px;
    text-decoration: none;
}
.store-item{
    display: flex;
    align-items: center;
    gap: 10px;
}
.store-icon i{
    color: var(--hijau);
}
.store-names{
    color: var(--text-gelap);
    font-size: 13px;
}
.filterProduk {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* === Custom Select === */
.customSelectWrapper {
    position: relative;
    width: 180px;
}
.customSelectWrapper select {
    display: none; /* Sembunyikan bawaan browser */
}
.customSelectDisplay {
    border: 2px solid var(--hijau);
    border-radius: 5px;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    position: relative;
    font-weight: 500;
    transition: var(--transisi);
}
.customSelectDisplay::after {
    content: "▼";
    position: absolute;
    right: 12px;
    font-size: 12px;
    color: var(--hijau);
    transition: transform var(--transisi);
}
.customSelectDisplay.active::after {
    transform: rotate(180deg);
}
.customSelectDisplay:hover {
    background-color: var(--abu-muda);
}
.customSelectOptions {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    border: 2px solid var(--hijau);
    border-radius: var(--radius);
    background: #fff;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.2s ease;
}
.customSelectOptions li {
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transisi);
}
.customSelectOptions li:hover {
    background: var(--hijau);
    color: #fff;
}
/* === Tombol Filter === */
.filterButton {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: #fff;
    border: 2px solid var(--hijau);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transisi);
    color: var(--hijau);
    font-weight: bold;
    border-radius: 5px;
}
.filterButton i {
    font-size: 14px;
    color: var(--hijau);
    transition: var(--transisi);
}
.filterButton:hover {
    background-color: var(--hijau);
    color: #fff;
}
.filterButton:hover i {
    color: #fff;
}
/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.buttonAction{
    display: block;
    margin-top: 3rem;
    margin-bottom: 5rem;
    text-align: center;
}
.lebih-banyak{
    border: none;
    background-color: var(--hijau);
    padding: 10px 20px;
    font-size: 14px;
    color: var(--putih);
    cursor: pointer;
    border-radius: 5px;
}


@media(max-width:780px){
    .cat-list{
        grid-template-columns: repeat(4, 1fr);
    }
    .loop-produk{
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width:550px){
    .cat-list{
        grid-template-columns: repeat(2, 1fr);
    }
    .loop-produk{
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .customSelectWrapper {
        width: 150px;
    }
}