/* =====================================================
   RESET KHUSUS DAFTAR PRODUK
===================================================== */

.etalase-produk-container,
.detail-kategori-hero {
    width: 100%;
}

.etalase-produk-container *,
.detail-kategori-hero * {
    box-sizing: border-box;
}


/* =====================================================
   HERO DETAIL KATEGORI
===================================================== */

.detail-kategori-hero {
    position: relative;

    min-height: 330px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(120deg,
            #05311f 0%,
            #0b6b43 60%,
            #1b8957 100%);

    color: #ffffff;
}


/* =====================================================
   DEKORASI HERO
===================================================== */

.hero-decoration {
    position: absolute;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 50%;

    pointer-events: none;
}

.hero-decoration-one {
    width: 300px;
    height: 300px;

    right: -100px;
    top: -130px;
}

.hero-decoration-two {
    width: 210px;
    height: 210px;

    left: -100px;
    bottom: -110px;
}


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

.kategori-hero-container {

    width: 86%;
    max-width: 1050px;

    margin: auto;

    position: relative;

    z-index: 2;
}


/* =====================================================
   TOMBOL KEMBALI
===================================================== */

.back-etalse {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #e5f2ec;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 20px;

    transition: .3s ease;
}

.back-etalse:hover {
    color: #ffd54f;

    transform: translateX(-3px);
}


.back-icon {

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

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

    font-size: 11px;
}


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

.kategori-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 12px;

    margin-bottom: 13px;

    border-radius: 30px;

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

    border: 1px solid rgba(255, 255, 255, .15);

    color: #ffffff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;
}


/* =====================================================
   JUDUL HERO
===================================================== */

.kategori-hero-container h1 {

    font-family: "Playfair Display", serif;

    font-size: clamp(34px, 5vw, 52px);

    line-height: 1.1;

    font-weight: 800;

    margin-bottom: 12px;
}


.kategori-hero-container h1 span {

    color: #ffd54f;
}


/* =====================================================
   DESKRIPSI HERO
===================================================== */

.kategori-description {

    max-width: 590px;

    color: #dceee5;

    font-size: 12px;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* =====================================================
   SUMMARY
===================================================== */

.kategori-summary {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 9px 15px;

    border-radius: 10px;

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

    border: 1px solid rgba(255, 255, 255, .12);
}


.summary-icon {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(255, 213, 79, .15);

    color: #ffd54f;

    font-size: 13px;
}


.kategori-summary strong {

    display: block;

    color: #ffd54f;

    font-size: 17px;

    line-height: 1;
}


.kategori-summary span {

    display: block;

    color: #d7e9df;

    font-size: 9px;

    margin-top: 3px;
}


/* =====================================================
   BAGIAN ETALASE
===================================================== */

.etalase-produk-container {

    width: 86%;
    max-width: 1050px;

    margin: auto;

    padding: 55px 0 70px;
}


/* =====================================================
   HEADING ETALASE
===================================================== */

.etalase-heading {

    margin-bottom: 28px;
}


.etalase-label {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #0b6b43;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}


.etalase-heading h2 {

    font-family: "Playfair Display", serif;

    color: #173d2e;

    font-size: 30px;

    line-height: 1.2;

    margin-bottom: 6px;
}


.etalase-heading p {

    color: #718078;

    font-size: 12px;
}


/* =====================================================
   GRID PRODUK
===================================================== */

.produk-grid {

    display: grid;

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

    gap: 20px;
}


/* =====================================================
   CARD PRODUK
===================================================== */

.produk-card {

    background: #ffffff;

    border: 1px solid #e6eee9;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(23, 61, 46, .07);

    transition: .3s ease;

    display: flex;

    flex-direction: column;
}


.produk-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 32px rgba(23, 61, 46, .13);
}


/* =====================================================
   FOTO PRODUK
===================================================== */

.produk-card-image {

    width: 100%;

    height: 175px;

    overflow: hidden;

    background: #eef4f1;

    position: relative;
}


.produk-card-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: .4s ease;
}


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

    transform: scale(1.05);
}


/* =====================================================
   FOTO KOSONG
===================================================== */

.produk-image-empty {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 6px;

    color: #9aa9a2;

    background:
        linear-gradient(135deg,
            #f1f5f3,
            #e8efeb);
}


.produk-image-empty i {

    font-size: 25px;

    color: #9aaba3;
}


.produk-image-empty span {

    font-size: 10px;
}


/* =====================================================
   BODY CARD
===================================================== */

.produk-card-body {

    padding: 18px;

    display: flex;

    flex-direction: column;

    flex: 1;
}


/* =====================================================
   NAMA PRODUK
===================================================== */

.produk-card-body h3 {

    font-family: "Playfair Display", serif;

    color: #193e30;

    font-size: 17px;

    line-height: 1.35;

    margin-bottom: 5px;

    /* Menjaga tinggi judul tetap sama */
    height: 46px;

    overflow: hidden;
}


/* =====================================================
   HARGA
===================================================== */

.produk-price {

    color: #0b6b43;

    font-size: 16px;

    font-weight: 800;

    margin-bottom: 7px;
}


/* =====================================================
   DESKRIPSI
===================================================== */

.produk-description {

    color: #718078;

    font-size: 11px;

    line-height: 1.65;

    margin-bottom: 14px;

    /* Tinggi deskripsi dibuat seragam */
    height: 36px;

    overflow: hidden;
}

/* =====================================================
   PENJUAL
===================================================== */

.produk-seller {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 0;

    border-top: 1px solid #edf1ee;

    border-bottom: 1px solid #edf1ee;

    margin-bottom: 13px;
}


.seller-icon {

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #e5f3eb;

    color: #0b6b43;

    font-size: 11px;
}


.produk-seller small {

    display: block;

    color: #98a69f;

    font-size: 8px;

    margin-bottom: 1px;
}


.produk-seller strong {

    display: block;

    color: #355547;

    font-size: 10px;

    font-weight: 700;
}


/* =====================================================
   TOMBOL DETAIL
===================================================== */

.btn-lihat-detail {

    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 9px 12px;

    border-radius: 8px;

    background: #0b6b43;

    color: #ffffff;

    font-size: 10px;

    font-weight: 800;

    transition: .3s ease;

    margin-top: auto;
}


.btn-lihat-detail i {

    font-size: 9px;

    transition: .3s ease;
}


.btn-lihat-detail:hover {

    background: #075334;
}


.btn-lihat-detail:hover i {

    transform: translateX(4px);
}


/* =====================================================
   PRODUK KOSONG
===================================================== */

.produk-empty {

    width: 100%;

    padding: 55px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e6eee9;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(23, 61, 46, .06);
}


.empty-icon {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 15px;

    background: #e8f5ec;

    color: #0b6b43;

    font-size: 23px;
}


.produk-empty h3 {

    font-family: "Playfair Display", serif;

    color: #193e30;

    font-size: 22px;

    margin-bottom: 6px;
}


.produk-empty p {

    max-width: 420px;

    margin: auto auto 18px;

    color: #718078;

    font-size: 11px;

    line-height: 1.7;
}


.btn-kembali-produk {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 9px 14px;

    border-radius: 8px;

    background: #0b6b43;

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;

    transition: .3s ease;
}


.btn-kembali-produk:hover {

    background: #075334;

    transform: translateY(-2px);
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #123c2d;

    color: white;
}

.footer-container {
    width: 86%;

    max-width: 1200px;

    margin: auto;

    padding: 40px 0 30px;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 35px;
}

.footer-column h3 {
    font-family: "Playfair Display", serif;

    font-size: 16px;

    margin-bottom: 12px;
}

.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.footer-column ul li a {
    color: #c5d9d0;

    font-size: 10px;

    transition: .3s ease;
}

.footer-column ul li a:hover {
    color: #ffd54f;

    padding-left: 3px;
}

.footer-column p {
    color: #c5d9d0;

    font-size: 10px;

    margin-bottom: 6px;
}

.footer-column p i {
    width: 16px;

    color: #ffd54f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);

    text-align: center;

    padding: 13px;
}

.footer-bottom p {
    color: #9fb9ad;

    font-size: 9px;
}

footer span {

    color: #FFD54F;

    font-weight: 600;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .kategori-hero-container,
    .etalase-produk-container {

        width: 90%;
    }


    .produk-grid {

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

        gap: 17px;
    }


    .produk-card-image {

        height: 165px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .detail-kategori-hero {

        min-height: 360px;
    }


    .kategori-hero-container,
    .etalase-produk-container {

        width: 92%;
    }


    .kategori-hero-container h1 {

        font-size: 34px;
    }


    .kategori-description {

        font-size: 11px;

        max-width: 100%;
    }


    .etalase-produk-container {

        padding: 40px 0 50px;
    }


    .etalase-heading h2 {

        font-size: 27px;
    }


    .produk-grid {

        grid-template-columns: 1fr;

        gap: 16px;
    }


    .produk-card-image {

        height: 190px;
    }


    .produk-card-body {

        padding: 16px;
    }

}


/* =====================================================
   HP KECIL
===================================================== */

@media (max-width: 400px) {

    .detail-kategori-hero {

        min-height: 340px;
    }


    .kategori-hero-container h1 {

        font-size: 30px;
    }


    .kategori-badge {

        font-size: 8px;

        letter-spacing: 1px;
    }


    .back-etalse {

        font-size: 10px;
    }


    .produk-card-image {

        height: 175px;
    }

}

/* =====================================================
   HAMBURGER MENU
===================================================== */

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 0;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #087443;

    font-size: 21px;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.2s ease;
}

.menu-toggle:hover {
    background: #e8f5ec;
}


/* =====================================================
   RESPONSIVE NAVBAR
===================================================== */

@media (max-width: 768px) {

    .navbar {
        position: relative;

        min-height: 70px;

        padding: 10px 18px;

        display: flex;
        align-items: center;

        z-index: 9999;
    }


    /* LOGO */

    .navbar .logo {
        display: flex;
        align-items: center;

        gap: 9px;

        min-width: 0;
    }


    .navbar .logo img {
        width: 42px;
        height: 42px;

        object-fit: contain;

        flex-shrink: 0;
    }


    .navbar .logo-text {
        min-width: 0;
    }


    .navbar .logo-text h2 {
        margin: 0;

        font-size: 16px;

        white-space: nowrap;
    }


    .navbar .logo-text span {
        display: block;

        font-size: 8px;

        white-space: nowrap;
    }


    /* TOMBOL HAMBURGER */

    .menu-toggle {
        display: flex;

        margin-left: auto;

        flex-shrink: 0;
    }


    /* NAV */

    .navbar nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #ffffff;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.10);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* NAV SAAT DIBUKA */

    .navbar nav.active {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* LIST */

    .navbar nav .menu {

        display: flex;

        flex-direction: column;

        width: 100%;

        margin: 0;

        padding: 7px 0;

        gap: 0;
    }


    .navbar nav .menu li {

        width: 100%;

        list-style: none;
    }


    /* LINK */

    .navbar nav .menu li a {

        display: flex;

        align-items: center;

        width: 100%;

        min-height: 44px;

        padding: 10px 20px;

        box-sizing: border-box;

        color: #123c2d;

        font-size: 12px;

        font-weight: 600;

        text-decoration: none;

        transition: 0.2s ease;
    }


    /* HOVER & ACTIVE */

    .navbar nav .menu li a:hover {

        background: #e8f5ec;

        color: #087443;
    }


    .navbar nav .menu li a.active {

        background: #e8f5ec;

        color: #087443;

        font-weight: 700;
    }

}


/* =====================================================
   HP KECIL
===================================================== */

@media (max-width: 480px) {

    .navbar {

        min-height: 65px;

        padding: 8px 14px;
    }


    .navbar .logo img {

        width: 39px;
        height: 39px;
    }


    .navbar .logo-text h2 {

        font-size: 15px;
    }


    .navbar .logo-text span {

        font-size: 7px;
    }


    .menu-toggle {

        width: 38px;
        height: 38px;

        font-size: 20px;
    }


    .navbar nav {

        top: 65px;
    }


    .navbar nav .menu li a {

        min-height: 42px;

        padding: 9px 17px;

        font-size: 12px;
    }

}