/* ========== HEADER SECTION ========== */
.atas {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    width: 95%;

    position: absolute;
    top: 0px;
    right: 0px;
    padding-top: 10px;
    margin-right: 10px;

    z-index: 9999999;
}

.atas input {
    width: 100%;
    padding: 10px;
    border-radius: 100px;
    border: transparent;
}

.atas input:focus {
    border: solid rgb(255, 255, 255) 1px;
}

.atas button {
    min-height: 50px;
    min-width: 50px;
    border-radius: 100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: transparent;
    background-color: white;

    cursor: pointer;
}

.atas button:active {
    background-color: var(--hovblue);
}

/* ========== SLIDER SECTION ========== */
.slider {
    position: relative;
    width: 100% !important;
    overflow: hidden;
    min-height: max-content;
}

.slides {
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    min-width: 100%;
    width: 100%;
    user-select: none;
}

.slide img {
    width: 100%;
    display: block;
    height: 262px;
    object-fit: cover;
    object-position: center center;
}

/* ========== MENU SECTION ========== */
.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: -50px;
    z-index: 1;
    min-height: max-content;
}

.menu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.menu ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.menu ul li img {
    width: 70px;
    height: 70px;
}

.menu ul li small {
    font-size: 12px;
}

/* ========== PILIHAN SECTION ========== */
.pilihan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: max-content;
    max-width: 95%;
    min-width: 95%;
    padding: 0px;
}

.pilihan .judul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.judul p {
    font-size: 15px;
}

.judul p span {
    font-size: 15px;
    font-weight: bolder;
}

.judul button {
    background-color: var(--back);
    color: white;
    padding: 5px 20px;
    border: transparent;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 12px;
}

.judul button:hover {
    background: var(--darkblue);
}

.judul button:active {
    background: var(--back);
}

.pilihan .wrap-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.pilihan .wrap-card .card {
    background-color: white;
    width: 32%;
    margin-bottom: 3%;
    min-height: max-content;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    gap: 5px;
}

.card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: center center;
}

.card label {
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
    margin: 5px;
    min-height: min-content;
}

.card label p {
    font-size: 12px;
}

.card label h4 {
    color: var(--orange);
    font-size: 12px;
}

/* ========== NEED CARE SECTION ========== */
.need-care {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: max-content;
    max-width: 95%;
    min-width: 95%;
    background-color: #f76443;
    border-radius: 10px;
}

.need-care > p {
    font-size: 15px;
    color: white;
    margin: 10px;
}

.need-care > p span {
    font-size: 15px;
    font-weight: bolder;
    color: white;
}

.need-care ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    gap: 10px;
    margin-bottom: 20px;
}

.need-care ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    min-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.need-care ul li p {
    margin-left: 10px;
    color: var(--back);
    font-size: 18px;
    font-weight: bolder;
    min-width: max-content;
    z-index: 1;
}

.need-care ul li img {
    margin-right: -10px;
    width: 200px;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

/* ========== PENGANTAR SECTION ========== */
.pengantar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: max-content;
    max-width: 95%;
    min-width: 95%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pengantar img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

/* ========== FOOTER SECTION (FIXED) ========== */
footer {
    background-color: white;
    display: flex;
    flex-direction: row;

    /* IMPORTANT: Fixed positioning */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100vw;
    max-width: 480px !important;
    min-height: max-content;
    padding-top: 5px;
    padding-bottom: 5px;

    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    cursor: pointer;
}

footer ul li .img {
    min-height: 30px;
    max-height: 30px;
    min-width: 30px;
    max-width: 30px;
    object-position: center center;
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1px;
}

.img img {
    width: 20px;
    height: 20px;
}

footer ul li:hover .img {
    background-color: rgb(225, 225, 225);
    cursor: pointer;
}

.img:active {
    background-color: var(--hovblue);
}

footer ul li small {
    font-size: 10px;
}

.li-activ small {
    color: var(--back);
}

/* Padding untuk container agar konten tidak tertutup footer */
.wrap-container {
    padding-bottom: 80px;
}

.wrap {
    padding-bottom: 20px;
}

/* ========== RESPONSIVE - MOBILE ========== */
@media only screen and (max-width: 800px) {
    /* Need Care Mobile */
    .need-care {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: max-content;
        max-width: 95%;
        min-width: 95%;
        background-color: #f76443;
        border-radius: 10px;
    }

    .need-care ul li {
        width: 90%;
    }

    /* Slider Mobile */
    .slider {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100% !important;
        overflow: hidden;
        min-height: 200px;
        max-height: 200px;
    }

    .slides {
        width: 100%;
        display: flex;
        transition: transform 0.4s ease;
    }

    .slide {
        max-width: 100%;
        min-width: 100%;
        user-select: none;
    }

    .slide img {
        width: 100%;
        height: max-content;
        display: block;
        height: 262px;
        object-fit: contain;
        object-position: center center;
    }

    /* Header Mobile */
    .atas {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        width: 95%;
        position: absolute;
        top: 0px;
        right: 0px;
        padding-top: 10px;
        margin-right: 10px;
        z-index: 9999999;
    }

    .atas input {
        width: 100%;
        padding: 10px;
        border-radius: 100px;
        border: transparent;
    }

    .atas input:focus {
        border: solid rgb(255, 255, 255) 1px;
    }

    .atas button {
        min-height: 40px;
        max-height: 40px;
        min-width: 40px;
        max-width: 40px;
        border-radius: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: transparent;
        background-color: white;
    }

    .atas button img {
        min-width: 20px;
        max-width: 20px;
        min-height: 20px;
        max-height: 20px;
        object-fit: contain;
    }

    .atas button:active {
        background-color: var(--hovblue);
    }

    /* Menu Mobile */
    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: white;
        padding: 10px 20px;
        border-radius: 20px;
        margin-top: -50px;
        z-index: 1;
        min-height: max-content;
    }

    .menu ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .menu ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .menu ul li img {
        max-width: 50px;
        min-width: 50px;
        max-height: 50px;
        min-height: 50px;
        object-fit: contain;
    }

    .menu ul li small {
        font-size: 12px;
    }

    /* Card Mobile */
    .card img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        object-position: center center;
    }

    /* Footer Mobile - IMPORTANT FIX */
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100% !important;
        transform: none;
    }

    .wrap-container {
        padding-bottom: 80px;
    }
}

/* ========== RESPONSIVE - VERY SMALL MOBILE ========== */
@media only screen and (max-width: 360px) {
    footer ul li small {
        font-size: 8px;
    }

    footer ul li .img {
        min-height: 25px;
        max-height: 25px;
        min-width: 25px;
        max-width: 25px;
    }

    .img img {
        width: 18px;
        height: 18px;
    }

    .menu ul {
        gap: 10px;
    }

    .menu ul li img {
        max-width: 45px;
        min-width: 45px;
        max-height: 45px;
        min-height: 45px;
    }

    .menu ul li small {
        font-size: 10px;
    }
}
