body {
    font-family: "Poppins", sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* overlay putih semi transparan */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Navbar */
#navbar {
    transition: all 0.3s ease;
    padding: 0.8rem 1rem;
    background-color: #3ba776;
}

#navbar.scrolled {
    padding: 0.3rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo hover */
.navbar-brand img:hover {
    transform: scale(1.05);
}

#navbar .nav-link {
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect modern: underline slide */
#navbar .nav-link::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background: #d1e7dd;
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

#navbar .nav-link:hover::after {
    width: 100%;
}

#navbar .nav-link:hover {
    color: #d1e7dd;
    transform: scale(1.05);
}

#navbar.scrolled .nav-link {
    font-size: 0.9rem;
}

/* Navbar toggler color for Bootstrap 5 */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
    #navbar .nav-link {
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Hero */
.hero {
    /*padding-top: 60px;*/
    /* jarak dari navbar */
}

.hero-search {
    padding-top: 60px;
}

/* Swiper slide */
.hero .swiper-slide {
    height: 450px;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Overlay untuk teks */
.hero .overlay {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

.hero .overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero .overlay p {
    font-size: 1.2rem;
}

/* Pagination bullets */
.swiper-pagination-bullet {
    background: #3ba776;
    opacity: 0.7;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #d1e7dd;
    width: 14px;
    height: 14px;
    opacity: 1;
}

@media (max-width: 767px) {
    .hero .overlay h1 {
        font-size: 1.8rem;
    }

    .hero .overlay p {
        font-size: 1rem;
    }

    .hero .swiper-slide {
        height: 150px !important;
    }
}

/* Search */
#search {
    border-radius: 50px;
    padding-left: 20px;
}

/* Product Card */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card .product-img {
    height: 180px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .card-title {
    margin-bottom: 5px;
    min-height: 2em;
}

.badge-category-container {
    overflow-x: auto;
    gap: 5px;
    margin-bottom: 5px;
}

.badge-category {
    flex-shrink: 0;
    font-size: 0.7rem;
}

.card-text {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.2rem;
    max-height: 2.4rem;
    min-height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
}

.price-btn {
    margin-top: auto;
}

.price-btn .text-success {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price-btn .btn {
    font-size: 0.75rem;
    padding: 3px 8px;
}

/* WhatsApp Fixed */
.fixed-whatsapp {
   position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    text-decoration: none;
    animation: pulse 1.5s infinite;
}

.fixed-whatsapp img {
    width: 40px;
    height: 40px;
    background: #25d366;
    /*padding: 10px;*/
    border-radius: 50%;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.3);*/
    transition: transform 0.2s;
}

.fixed-whatsapp img:hover {
    transform: scale(1.1);
}

.wa-bubble {
    display: flex;
    align-items: center;
    background: #fff;
    color: #25D366;
    border: 2px solid #25D366;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}

.btn-product {
   animation: pulse 1.5s infinite;
}



.wa-bubble:hover {
    transform: scale(1.05);
}

.wa-text {
    margin-right: 8px;
    text-align: right;
}

.wa-bubble img {
    width: 28px;
    height: 28px;
}

/* Animasi bubble biar lebih hidup */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Footer */
.footer-section {
    background-color: #3ba776;
    color: #fff;
    line-height: 1.6;
    padding: 40px 0 20px;
    font-family: "Poppins", sans-serif;
}

/* Logo hover */
.footer-logo img {
    transition: transform 0.3s;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

/* Kontak hover animasi */
.contact-link a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, color 0.2s;
}

.contact-link a:hover {
    transform: translateX(5px);
    color: #d1e7dd;
}

/* Sosial media hover animasi */
.social-icons a {
    transition: transform 0.3s, color 0.3s;
    color: #fff;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #d1e7dd;
}

/* Responsive footer */
@media (max-width: 767px) {
    .footer-section .text-md-start {
        text-align: center !important;
    }

    .footer-section .text-md-end {
        text-align: center !important;
    }
    .footer-section {
        min-height: 280px; /* agar terlihat di mobile */
    }
    .social-icons {
        justify-content: center !important;
    }
    .product-card .product-img {
        height: 350px;
        object-fit: cover;
    }
}

.text-success {
    color: #3ba776 !important;
    /* hijau herbal soft */
}

/* Container card lebih adem */
.p-3.rounded-3 {
    background-color: rgba(186, 194, 203, 0.05) !important;
    border: 1px solid rgba(152, 159, 167, 0.2) !important;
    border-radius: 12px !important;
}

/* List icon biar lebih rapi */
.list-unstyled li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #444;
}

.list-unstyled li i {
    color: #3ba776 !important;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Peringatan soft merah */
.text-danger {
    color: #e57373 !important;
    /* merah soft */
}

.text-muted {
    color: #6c757d !important;
}

/* Soft alert box */
.soft-alert {
    background-color: #fff5f5;
    color: #c62828;
    border: 1px solid #f5b7b1;
    padding: 1rem;
    border-radius: 8px;
}

.btn-success {
    background-color: #3ba776 !important;
    border-color: #3ba776 !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #2e8a63 !important;
    border-color: #2e8a63 !important;
}

h2,
h3.section-title {
    color: #3ba776;
}

.card-accent {
    border: 2px dashed rgba(59, 167, 118, 0.3);
    background-color: rgba(59, 167, 118, 0.05);
}

a {
    color: #3ba776;
}

a:hover {
    color: #2e8a63;
}

.bg-success {
    background-color: #3ba776 !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
