:root { 
    --navy: #002244; 
    --teal: #20c997; 
    --blue: #0d6efd; 
}

body { 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
    background-color: #fcfcfc; 
    color: #333333;
}

/* Background & Text Colors */
.bg-navy { background-color: var(--navy) !important; }
.text-navy { color: var(--navy) !important; }
.bg-teal { background-color: var(--teal) !important; }
.text-teal { color: var(--teal) !important; }
.bg-light-subtle { background-color: #f8fafc; }

/* Buttons */
.btn-navy { background-color: var(--navy); color: #ffffff; }
.btn-navy:hover { background-color: #001122; color: #ffffff; }
.btn-teal { background-color: var(--teal); color: #ffffff; }
.btn-teal:hover { background-color: #17a589; color: #ffffff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background-color: var(--navy); color: #ffffff; }
.btn-outline-teal { border-color: var(--teal); color: var(--teal); }
.btn-outline-teal:hover { background-color: var(--teal); color: #ffffff; }

/* Hover & Utility Classes */
.hover-lift { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.hover-lift:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; 
}

.tracking-wide { 
    letter-spacing: 0.1em; 
}

/* Multi-line Truncate Standar & Aman dari Warning */
.line-clamp-2 { 
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    overflow: hidden; 
}

.hover-teal:hover { color: var(--teal) !important; }
.hover-white:hover { color: #ffffff !important; }

/* Product Card */
.product-card .img-wrapper { 
    transition: transform 0.4s ease; 
}
.product-card:hover .img-wrapper { 
    transform: scale(1.03); 
}

/* ==================== MENU PRODUK ==================== */
.navbar {
    position: relative;
}

/* Menghilangkan panah bawaan bootstrap dropdown */
.dropdown-custom .dropdown-toggle::after {
    display: none !important;
}

.cat-title {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.cat-title:hover {
    color: var(--teal) !important;
}

.subcat-link {
    color: #64748b;
    font-size: 0.85rem;
    transition: color 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
    border-radius: 4px;
    padding: 4px 6px;
}
.subcat-link:hover {
    color: var(--navy);
    background-color: #e2e8f0;
    padding-left: 10px;
}

/* Tampilan Desktop */
@media (min-width: 992px) {
    .dropdown-custom {
        position: relative;
    }

    /* Area jembatan kursor hover */
    .dropdown-custom::after {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 0;
        width: 100%;
        height: 20px;
        display: none;
    }

    .dropdown-custom:hover::after {
        display: block;
    }
    
    .dropdown-custom:hover .custom-menu-box {
        display: block;
    }

    .custom-menu-box {
        display: none;
        min-width: 650px;
        max-width: 750px;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 5px;
        box-shadow: 0 15px 35px rgba(0, 34, 68, 0.15) !important;
        z-index: 1050;
    }

    .custom-menu-box::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }
}

/* Tampilan Mobile */
@media (max-width: 991.98px) {
    .custom-menu-box {
        width: 100% !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-top: 10px;
    }

    .cat-card {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 8px;
    }

    .subcat-link {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
}

/* ==================== WIDGET WHATSAPP ==================== */
.wa-float { 
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 25px; 
    right: 25px; 
    background-color: #25d366; 
    color: #ffffff; 
    border-radius: 50px; 
    text-align: center; 
    font-size: 30px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    z-index: 1000; 
    transition: transform 0.3s ease; 
}
.wa-float:hover { 
    transform: scale(1.1); 
    color: #ffffff; 
}
.wa-float-icon { 
    margin-top: 15px; 
}

.support-widget { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 1000; 
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.support-widget:hover { 
    transform: translateY(-5px); 
}

/* ==================== DETAIL PRODUK ZOOM & LIGHTBOX ==================== */
.product-zoom-container .product-main-img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-zoom-container:hover .product-main-img {
    transform: scale(1.08);
}
.cursor-pointer {
    cursor: zoom-in;
}

/* ==================== ANIMASI SCROLL ==================== */
.fade-in-up { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}
.fade-in-up.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Card Logo Pelanggan / Mitra */
.client-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.client-card:hover {
    border-color: var(--teal) !important;
}
.client-card .client-img {
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.client-card:hover .client-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}