/* Main Site Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
    padding-bottom: 0;
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* Ganti garis miring / dengan simbol panah */
    color: #6c757d;
    padding: 0 8px;
    font-size: 16px;
}

.breadcrumb-item a {
    color: var(--primary-color); /* Warna primary dari tema Anda */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
    pointer-events: none;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
        padding: 8px 12px;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Sticky Footer / Bottom Navigation - FIXED */
.sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 6px 0 8px !important;
    border-top: 1px solid #e5e5e5 !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important;
    height: 56px !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.sticky-footer .sticky-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 10px !important;
    padding: 4px 12px !important;
    position: relative !important;
    min-width: 44px !important;
    min-height: 44px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    z-index: 9999 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.sticky-footer .sticky-link:hover,
.sticky-footer .sticky-link:focus,
.sticky-footer .sticky-link:active {
    color: var(--primary-color, #f48721) !important;
    text-decoration: none !important;
    background: transparent !important;
}

.sticky-footer .sticky-link.active {
    color: var(--primary-color, #f48721) !important;
}

.sticky-footer .sticky-link i {
    font-size: 22px !important;
    margin-bottom: 1px !important;
    pointer-events: none !important;
}

.sticky-footer .sticky-link p {
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    pointer-events: none !important;
}

.cart-icon-widget {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.cart-icon-bg {
    position: relative !important;
    display: inline-block !important;
}

.cart-count {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    background: #e74c3c !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 9px !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    min-width: 18px !important;
    z-index: 10 !important;
}

/* Mobile only */
@media (max-width: 768px) {
    .sticky-footer {
        display: flex !important;
        height: 56px !important;
        padding: 4px 0 6px !important;
    }
    .sticky-footer .sticky-link i {
        font-size: 20px !important;
    }
    .sticky-footer .sticky-link p {
        font-size: 8px !important;
    }
    .cart-count {
        font-size: 8px !important;
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        top: -5px !important;
        right: -6px !important;
    }
    main.main-content {
        padding-bottom: 70px !important;
    }
    .whatsapp-float {
        bottom: 75px !important;
    }
}

@media (min-width: 769px) {
    .sticky-footer {
        display: none !important;
    }
}

/* Search Modal */
.search-modal {
    position: fixed !important;
    top: -100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    transition: top 0.3s ease !important;
    z-index: 99999 !important;
    max-height: 200px !important;
}

.search-modal.active {
    top: 0 !important;
}

.search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 99998 !important;
    display: none !important;
}

.search-modal.active + .search-overlay {
    display: block !important;
}

.search-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #ddd !important;
}

.search-header p {
    margin: 0 !important;
    font-weight: 600 !important;
}

.search-box {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 2px;
    padding: 0;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions .dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.search-suggestions .dropdown-item:hover {
    background-color: #f8f9fa;
}

.search-suggestions .dropdown-item:last-child {
    border-bottom: none;
}

.search-box input {
    flex: 1 !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
}

.search-box button {
    background: var(--primary-color, #f48721) !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    color: #fff !important;
}

.close-btn {
    cursor: pointer !important;
    font-size: 24px !important;
    padding: 4px 8px !important;
    background: transparent !important;
    border: none !important;
    color: #333 !important;
}

.close-btn:hover {
    color: #000 !important;
}

/* Product Card */
.product-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card .card-body {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

/* Price */
.price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #e74c3c;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin-left: 8px;
}

.discount-badge {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

/* Rating Stars */
.rating-stars {
    color: #f1c40f;
}

.rating-stars .text-muted {
    color: #ddd !important;
}

/* Hero Section */
.hero-section .hero-banner {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card .card-body {
        padding: 10px;
    }
    .product-title {
        font-size: 12px;
        height: 34px;
    }
    .price {
        font-size: 0.95rem;
    }
    .hero-section .hero-banner {
        min-height: 200px;
        padding: 20px !important;
    }
    .hero-section .hero-banner h1 {
        font-size: 1.5rem;
    }
}

/* Toastr Notifications */
.toastr {
    border-radius: 4px;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Flash Messages */
.alert {
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    margin-top: auto;
}

.footer a {
    color: #ffffff !important;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff !important;
}

.footer h5 {
    color: #ffffff !important;
}
.footer .text-muted {
    color: #cccccc !important;
}

/* ============================================
   DROPDOWN DI DALAM DROPDOWN (Submenu di More)
   ============================================ */

/* More wrapper - pastikan z-index tinggi */
.navbar-more-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-left: 4px;
    z-index: 9999 !important; /* Pastikan di atas hero */
}

.navbar-more-toggle {
    display: flex !important;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    color: #333;
    font-weight: 500;
    background: transparent;
    border: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    z-index: 9999 !important;
}

.navbar-more-toggle:hover {
    color: var(--primary-color, #f48721);
    background: rgba(0,0,0,0.04);
}

.navbar-more-toggle .badge-more {
    background: var(--primary-color, #f48721);
    color: #fff;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown More - pastikan di atas semua elemen */
.navbar-more-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px); /* Beri jarak dengan tombol */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 99999 !important; /* Sangat tinggi agar tidak tertutup */
    padding: 5px 0;
    max-height: 80vh;
    overflow-y: auto;
}

.navbar-more-dropdown.show {
    display: block;
}

/* Tambahkan arrow/panah ke dropdown */
.navbar-more-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.05));
}

.navbar-more-dropdown .dropdown-item {
    padding: 8px 20px;
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background 0.2s;
}

.navbar-more-dropdown .dropdown-item:hover {
    background: #f5f5f5;
    color: var(--primary-color, #f48721);
}

.navbar-more-dropdown .dropdown-item i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Submenu di dalam dropdown More */
.navbar-more-dropdown .dropdown-submenu {
    position: relative;
}

.navbar-more-dropdown .dropdown-submenu .dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -5px;
    margin-left: 0;
    display: none;
    min-width: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999 !important;
    padding: 5px 0;
}

.navbar-more-dropdown .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.navbar-more-dropdown .dropdown-submenu .dropdown-toggle::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-more-wrapper {
        display: none !important;
    }
    .navbar-nav-wrapper .navbar-nav .nav-item {
        width: 100% !important;
    }
    /* Di mobile, dropdown More tidak perlu tampil karena semua menu sudah muncul */
}

@media (min-width: 992px) {
    .navbar-nav-wrapper {
        display: flex !important;
        align-items: center;
        flex: 1;
        overflow: visible; /* Penting agar dropdown tidak terpotong */
    }
    .navbar-nav-wrapper .navbar-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex: 1;
        overflow: visible; /* Penting agar dropdown tidak terpotong */
    }
    .navbar-nav-wrapper .navbar-nav .nav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Override untuk container agar tidak memotong dropdown */
.navbar .container {
    position: relative;
    overflow: visible !important;
}

.navbar-collapse {
    overflow: visible !important;
}

.navbar-nav-wrapper {
    overflow: visible !important;
}