* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-blue: #1e88e5;
    --secondary-blue: #64b5f6;
    --accent-blue: #0d47a1;
    --sidebar-bg: #ffffff;
    --sidebar-active: #f0f7ff;
    --sidebar-border: #eef2f7;
    --sidebar-text: #2d3748;
    --sidebar-subtext: #718096;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --gradient-blue: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
}
/* ==================== DARK MODE STYLES ==================== */

/* Dark mode variables */
[data-theme="dark"] {
    --primary-blue: #64b5f6;
    --secondary-blue: #42a5f5;
    --accent-blue: #bbdefb;
    --sidebar-bg: #1e1e1e;
    --sidebar-active: #2d2d2d;
    --sidebar-border: #333333;
    --sidebar-text: #e0e0e0;
    --sidebar-subtext: #b0b0b0;
    --white: #121212;
    --light-gray: #2d2d2d;
    --gray: #333333;
    --dark-gray: #aaaaaa;
    --text-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --gradient-blue: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

/* Dark mode specific overrides */
[data-theme="dark"] body {
    background-color: #121212;
    color: var(--text-color);
}

[data-theme="dark"] header,
[data-theme="dark"] .categories-nav,
[data-theme="dark"] .main-nav,
[data-theme="dark"] .mobile-search-container {
    background-color: #1e1e1e;
    border-color: #333333;
}

[data-theme="dark"] .search-box,
[data-theme="dark"] .mobile-search-box {
    background-color: #2d2d2d;
    border-color: #333333;
    color: var(--text-color);
}

[data-theme="dark"] .search-box:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}

[data-theme="dark"] .logo {
    color: var(--accent-blue);
}

[data-theme="dark"] .action-item {
    color: var(--dark-gray);
}

[data-theme="dark"] .action-item:hover {
    color: var(--primary-blue);
}

[data-theme="dark"] .cart-icon-wrapper {
    color: var(--dark-gray);
}

[data-theme="dark"] .cart-icon-wrapper:hover {
    background: rgba(100, 181, 246, 0.1);
    color: var(--primary-blue);
}

[data-theme="dark"] .cart-dropdown,
[data-theme="dark"] .dropdown-menu {
    background: #2d2d2d;
    border-color: #333333;
    color: var(--text-color);
}

[data-theme="dark"] .cart-dropdown-header,
[data-theme="dark"] .cart-dropdown-footer {
    background: #252525;
    border-color: #333333;
}

[data-theme="dark"] .cart-item {
    border-color: #333333;
}

[data-theme="dark"] .cart-item:hover {
    background: #252525;
}

[data-theme="dark"] .cart-item-title {
    color: var(--sidebar-text);
}

[data-theme="dark"] .cart-item-variant {
    background: #333333;
    color: var(--dark-gray);
}

[data-theme="dark"] .cart-item-price .quantity {
    background: #333333;
    color: var(--sidebar-text);
}

[data-theme="dark"] .empty-cart i,
[data-theme="dark"] .empty-cart small {
    color: var(--dark-gray);
}

[data-theme="dark"] .btn-view-cart {
    background: #252525;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

[data-theme="dark"] .btn-view-cart:hover {
    background: var(--primary-blue);
    color: #252525;
}

[data-theme="dark"] .category-item:hover,
[data-theme="dark"] .category-item.active {
    background-color: #252525;
}

[data-theme="dark"] .banner-slider {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border-color: #333333;
}

[data-theme="dark"] .slide-content {
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
}

[data-theme="dark"] .slide-badge {
    background: rgba(30, 30, 30, 0.95);
    color: var(--primary-blue);
    border-color: #333333;
}

[data-theme="dark"] .nav {
    background: rgba(30, 30, 30, 0.95);
    border-color: #333333;
}

[data-theme="dark"] .dots {
    background: rgba(0, 0, 0, 0.4);
    border-color: #333333;
}

[data-theme="dark"] .product-card-simple,
[data-theme="dark"] .featured-card {
    background: #1e1e1e;
    border-color: #333333;
}

[data-theme="dark"] .product-image {
    background: linear-gradient(135deg, #252525 0%, #2d2d2d 100%);
}

[data-theme="dark"] .product-name-simple,
[data-theme="dark"] .featured-name {
    color: #e0e0e0;
}

[data-theme="dark"] .section-title {
    color: var(--accent-blue);
}

[data-theme="dark"] .section-subtitle {
    color: #aaaaaa;
}

[data-theme="dark"] .process-type.manual {
    background: linear-gradient(135deg, #423105 0%, #7a6000 100%);
    color: #ffd54f;
}

[data-theme="dark"] .process-type.auto {
    background: linear-gradient(135deg, #0d3b0d 0%, #2e7d32 100%);
    color: #a5d6a7;
}

[data-theme="dark"] footer {
    background: #1e1e1e;
    color: #e0e0e0;
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-contact li {
    color: #b0b0b0;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-blue);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: #1e1e1e;
    border-top-color: #333333;
}

[data-theme="dark"] .nav-item {
    color: #aaaaaa;
}

[data-theme="dark"] .nav-item.active {
    color: var(--primary-blue);
}

[data-theme="dark"] .dropdown-menu a {
    color: #e0e0e0;
    border-color: #333333;
}

[data-theme="dark"] .dropdown-menu a:hover {
    background: #252525;
    color: var(--primary-blue);
}

[data-theme="dark"] .dropdown-menu button {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-menu button:hover {
    background: #252525;
}

[data-theme="dark"] .scroll-btn {
    background: #2d2d2d;
    border-color: #333333;
    color: var(--dark-gray);
}

[data-theme="dark"] .scroll-btn:hover:not(:disabled) {
    background: #252525;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

[data-theme="dark"] .categories-scroll-wrapper::before {
    background: linear-gradient(to right, #1e1e1e, transparent);
}

[data-theme="dark"] .categories-scroll-wrapper::after {
    background: linear-gradient(to left, #1e1e1e, transparent);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    background: var(--gray);
    color: var(--primary-blue);
    transform: scale(1.05);
}

.dark-mode-toggle i {
    font-size: 1.2rem;
    transition: var(--transition);
}

[data-theme="dark"] .dark-mode-toggle {
    background: #333333;
    color: var(--primary-blue);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: #3d3d3d;
}

/* Animation for theme toggle */
@keyframes sunRise {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

@keyframes moonRise {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
    100% { transform: rotate(-360deg) scale(1); opacity: 1; }
}

.dark-mode-toggle .fa-sun {
    animation: sunRise 0.5s ease-out;
}

.dark-mode-toggle .fa-moon {
    animation: moonRise 0.5s ease-out;
}

/* Mobile dark mode toggle */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        margin-left: auto;
        margin-right: 10px;
    }
    
    .dark-mode-toggle i {
        font-size: 1.1rem;
    }
}

/* Smooth transition for theme change */
body,
header,
.categories-nav,
.product-card-simple,
.featured-card,
.cart-dropdown,
.dropdown-menu,
.banner-slider,
footer {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
body {
    background-color: #f5f5f5;
    color: var(--text-color);
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.logo i {
    font-size: 2rem;
}
 .search-match-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: var(--primary-color);
        color: white;
        font-size: 0.7rem;
        padding: 3px 8px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 3px;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
}

.action-item:hover {
    color: var(--primary-blue);
}

.action-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.action-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.action-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* CART DROPDOWN CONTAINER - PERBAIKAN */
.cart-dropdown-container {
    position: relative;
    cursor: pointer;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    background: transparent;
    color: var(--dark-gray);
}

.cart-icon-wrapper:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
}

.cart-icon-wrapper i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.cart-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* DROPDOWN CART - PERBAIKAN */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: none;
    margin-top: 15px;
    border: 1px solid var(--gray);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-dropdown-container.active .cart-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-dropdown-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray);
    background: var(--light-gray);
}

.cart-dropdown-header h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--sidebar-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-dropdown-header h4 i {
    color: var(--primary-blue);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

.cart-total span {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
}

.cart-dropdown-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid var(--gray);
    transition: background 0.3s;
    border-radius: 6px;
}

.cart-item:hover {
    background: var(--light-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid var(--gray);
    background: white;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.cart-item-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--sidebar-text);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variant {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: var(--dark-gray);
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.cart-item-price-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.cart-item-price .price {
    color: var(--primary-blue);
    font-weight: 600;
}

.cart-item-price .separator {
    color: var(--dark-gray);
    font-weight: 400;
}

.cart-item-price .quantity {
    color: var(--sidebar-text);
    font-weight: 500;
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
}

.cart-item-subtotal {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
}

.cart-item-actions {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.btn-remove-from-cart {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-remove-from-cart:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff4757;
    transform: scale(1.1);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--dark-gray);
}

.empty-cart p {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 500;
}

.empty-cart small {
    font-size: 13px;
    color: var(--dark-gray);
}

/* Dropdown Footer */
.cart-dropdown-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--gray);
    background: var(--light-gray);
    display: flex;
    gap: 10px;
}

.btn-view-cart, .btn-checkout {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-cart {
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-view-cart:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

.btn-checkout {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-checkout:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.btn-full {
    width: 100%;
    flex: none;
}

/* Scrollbar styling */
.cart-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.cart-dropdown-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    color: white;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification i {
    font-size: 18px;
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 4px solid #1e7e34;
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border-left: 4px solid #bd2130;
}

.notification-info {
    background: linear-gradient(135deg, #007bff, #17a2b8);
    border-left: 4px solid #0056b3;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

 /* ==================== CATEGORIES NAV REVISED ==================== */
.categories-nav {
    background-color: white;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 0;
    position: relative;
    z-index: 99;
    overflow: hidden; /* Tambahkan ini */
}

/* Wrapper untuk scroll horizontal */
.categories-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px; /* Space untuk tombol scroll */
}

/* Container kategori dengan scroll horizontal */
.categories-container {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 5px 10px;
    scroll-behavior: smooth; /* Smooth scrolling */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    flex: 1; /* Take available space */
    cursor: grab;
    user-select: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.categories-container::-webkit-scrollbar {
    display: none;
}

/* Show scrollbar only on hover (optional) */
.categories-container:hover::-webkit-scrollbar {
    display: block;
    height: 4px;
}

.categories-container:hover::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.categories-container:hover::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 10px;
}

/* Active state when dragging */
.categories-container:active {
    cursor: grabbing;
}

/* Category Item - Tetap sama dengan punya Anda */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    flex-shrink: 0; /* Prevent shrinking */
    position: relative;
}

.category-item:hover {
    color: var(--primary-blue);
    background-color: var(--sidebar-active);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-item.active {
    color: var(--primary-blue);
    background-color: var(--sidebar-active);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Active indicator dot */
.category-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary-blue);
    border-radius: 50%;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: white;
    transition: var(--transition);
}

.category-item:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-item.active .category-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== SCROLL BUTTONS ==================== */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.9;
    color: var(--dark-gray);
}

.scroll-btn:hover:not(:disabled) {
    background: var(--sidebar-active);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

.scroll-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.scroll-btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Animation for new category selection */
@keyframes categorySelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.category-item.active {
    animation: categorySelect 0.3s ease;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .categories-scroll-wrapper {
        padding: 0 45px;
    }
    
    .scroll-btn {
        width: 36px;
        height: 36px;
    }
    
    .category-item {
        min-width: 65px;
        padding: 6px 10px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .categories-nav {
        padding: 12px 0;
    }
    
    .categories-scroll-wrapper {
        padding: 0 40px;
    }
    
    .scroll-btn {
        width: 32px;
        height: 32px;
    }
    
    .scroll-left {
        left: 5px;
    }
    
    .scroll-right {
        right: 5px;
    }
    
    .category-item {
        min-width: 60px;
        padding: 5px 8px;
        gap: 4px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
    }
    
    .category-name {
        font-size: 0.75rem;
        max-width: 70px;
    }
    
    /* Hide scroll buttons on very small screens if not needed */
    .scroll-btn.hidden {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .categories-scroll-wrapper {
        padding: 0 35px;
    }
    
    .category-item {
        min-width: 55px;
        padding: 4px 6px;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .category-name {
        font-size: 0.7rem;
        max-width: 60px;
    }
}

/* Hide scroll buttons when not needed (via JS) */
.scroll-btn.hidden {
    display: none !important;
}

/* Gradient overlay untuk menunjukkan ada lebih banyak konten */
.categories-scroll-wrapper::before,
.categories-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.categories-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.categories-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Hide gradient when at edges */
.categories-scroll-wrapper.at-start::before,
.categories-scroll-wrapper.at-end::after {
    opacity: 0;
}

/* Loading state untuk kategori (opsional) */
.category-item.loading .category-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Mobile Search */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--accent-blue);
    cursor: pointer;
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-search-box {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--dark-gray);
    cursor: pointer;
}

 /* BANNER CONTAINER - Elegant & Modern */
.banner-container {
    max-width: 1400px;
    margin: 40px auto 60px;
    padding: 0 40px;
}

/* SLIDER - Modern Design */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 
        0 20px 60px rgba(0, 82, 163, 0.15),
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    height: 480px;
}

.banner-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 82, 163, 0.03) 0%, 
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* DOTS - Modern Indicator */
.dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dots span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dots span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dots span:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.8);
}

.dots span.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(0, 82, 163, 0.3);
}

.dots span.active::before {
    border-color: rgba(255, 255, 255, 0.5);
}

/* SLIDE - Enhanced */
.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.banner-slide.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1) contrast(1.05);
    transition: transform 10s ease-out;
}

.banner-slide.active img {
    transform: scale(1.05);
}

/* Slide Content Overlay */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 80px;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    color: white;
    z-index: 2;
}

.slide-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #0052a3 0%, #0084ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 82, 163, 0.4);
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 82, 163, 0.6);
    background: linear-gradient(135deg, #0084ff 0%, #0052a3 100%);
}

.slide-button:active {
    transform: translateY(0);
}

/* NAV BUTTON - Modern Arrows */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #0052a3;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(0, 82, 163, 0.2), 
        rgba(255, 255, 255, 0.8), 
        rgba(0, 82, 163, 0.2)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 12px 40px rgba(0, 82, 163, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.15);
    color: #0084ff;
}

.nav:hover::before {
    opacity: 1;
}

.nav:active {
    transform: translateY(-50%) scale(0.95);
}

.nav.prev {
    left: 32px;
}

.nav.next {
    right: 32px;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #0052a3, #0084ff);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* Badge */
.slide-badge {
    position: absolute;
    top: 32px;
    left: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0052a3;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    animation: float 20s infinite linear;
    z-index: 1;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

/* Autoplay Indicator */
.autoplay-indicator {
    position: absolute;
    top: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* Responsive untuk Desktop yang lebih kecil */
@media (max-width: 1600px) {
    .banner-container {
        max-width: 1200px;
    }
    
    .banner-slider {
        height: 420px;
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 1400px) {
    .banner-container {
        padding: 0 32px;
    }
    
    .slide-content {
        padding: 48px 64px;
    }
}

/* PRODUK SECTION - Elegant & Modern */
.products-section {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    position: relative;
    padding-left: 20px;
    letter-spacing: -0.5px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 32px;
    background: var(--gradient-blue);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(var(--accent-blue-rgb, 59, 130, 246), 0.3);
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-top: 8px;
    font-weight: 400;
    max-width: 600px;
}

/* PRODUK CARD - Elegant & Clean */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card-simple {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-simple:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-blue);
}

.product-card-simple:hover::before {
    opacity: 1;
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.product-image img {
    max-width: 90%;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
}

.product-card-simple:hover .product-image img {
    transform: scale(1.05);
}

.product-info-simple {
    padding: 20px;
    position: relative;
}

.product-name-simple {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-price::before {
    content: 'Rp';
    font-size: 0.9rem;
    opacity: 0.7;
}

.process-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid transparent;
    position: absolute;
    top: -12px;
    right: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.process-type.manual {
    background: linear-gradient(135deg, #ffedb3 0%, #ffd54f 100%);
    color: #7a6000;
    border-color: #ffd54f;
}

.process-type.auto {
    background: linear-gradient(135deg, #d4f7d4 0%, #a5d6a7 100%);
    color: #2e7d32;
    border-color: #a5d6a7;
}

/* Badge untuk fitur khusus */
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-section {
        margin: 30px auto;
        padding: 0 16px;
    }
    
    .section-header {
        margin-bottom: 30px;
        padding-bottom: 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .product-image {
        height: 150px;
        padding: 20px;
    }
    
    .product-info-simple {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-name-simple {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

/* Animasi halus untuk loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-simple {
    animation: fadeInUp 0.6s ease forwards;
}

/* Efek hover untuk interaksi yang lebih baik */
.product-card-simple:active {
    transform: translateY(-4px) scale(0.98);
}

/* PRODUK UNGGULAN - Variant dengan gambar, harga, terjual, rating */
.featured-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 5px;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    padding: 15px;
}

.featured-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--sidebar-text);
}

.featured-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.featured-sold {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ffd700;
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid var(--secondary-blue);
    border-radius: 30px;
    transition: var(--transition);
}

.view-all:hover {
    background: var(--gradient-blue);
    color: white;
}

footer {
    background: #ffffff;
    color: #333;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-brand h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-brand p {
    max-width: 400px;
    line-height: 1.6;
    color: #555;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

/* Dropdown User Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #1e88e5;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.dropdown-menu button:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-height: 50px;
}

.logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0052a3, #0088e6);
}

.logo-image {
    width: 85px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
}

/* Fallback jika tidak ada logo */
.logo-fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-size: 16px;
    font-weight: bold;
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .main-nav,
    .products-section,
    .featured-section,
    .footer-container,
    .categories-container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cart-dropdown {
        width: 350px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* CART DROPDOWN MOBILE FIX */
    .cart-dropdown {
        position: fixed;
        top: auto !important;
        right: 20px !important;
        left: 20px !important;
        width: auto;
        max-width: calc(100vw - 40px);
        margin: 0 auto;
        bottom: 80px;
        max-height: 60vh;
        display: none !important;
        transform: translateY(0);
        opacity: 1;
    }
    
    .cart-dropdown-container.active .cart-dropdown {
        display: block !important;
        animation: slideUpMobile 0.3s ease;
    }
    
    @keyframes slideUpMobile {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .cart-dropdown-container:hover .cart-dropdown {
        display: none !important;
    }
    
    .cart-text {
        display: none;
    }
    
    .cart-icon-wrapper {
        padding: 8px;
    }
    
    .cart-dropdown-body {
        max-height: 40vh;
    }
    
    .cart-item {
        padding: 10px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-dropdown-footer {
        flex-direction: column;
    }
    
    .cart-dropdown-header h4 {
        font-size: 15px;
    }
    
    .cart-item-title {
        font-size: 13px;
    }
    
    .cart-item-price,
    .cart-item-subtotal {
        font-size: 12px;
    }
    
    /* SEMBUNYIKAN FOOTER DESKTOP DI MOBILE */
    footer {
        display: none;
    }
    
    /* TAMPILKAN BOTTOM NAVIGATION DI MOBILE */
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 10px 5px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    
    .mobile-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        font-size: 0.7rem;
        transition: all 0.3s ease;
        position: relative;
        flex: 1;
        padding: 5px 0;
    }
    
    .nav-item i {
        font-size: 1.4rem;
        margin-bottom: 3px;
        transition: all 0.3s ease;
    }
    
    .nav-item.active {
        color: var(--primary-blue);
    }
    
    .nav-item.active i {
        color: var(--primary-blue);
        transform: translateY(-3px);
    }
    
    .nav-item .badge {
        position: absolute;
        top: -2px;
        right: 15px;
        background: #ff4757;
        color: white;
        font-size: 0.6rem;
        font-weight: bold;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Tambahkan padding bottom pada body untuk menghindari konten tertutup */
    body {
        padding-bottom: 70px;
    }
    
    /* Mobile Search */
    .mobile-search-btn {
        display: block;
        margin-left: 250px;
    }
    
    .search-container {
        display: none;
    }
    
    .user-actions .action-item span {
        display: none;
    }
    
    .user-actions .action-item i {
        margin-bottom: 0;
        font-size: 1.3rem;
    }
    
    .user-actions {
        gap: 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.7rem;
    }
    
    /* Banner Mobile */
    .banner-container {
        margin: 10px auto 15px;
        padding: 0 15px;
    }
    
    .banner-slide {
        height: 180px;
    }
    
    /* Produk Mobile */
    .products-section {
        margin: 15px auto 20px;
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card-simple {
        border-radius: 12px;
    }
    
    .product-image {
        height: 140px;
        padding: 15px;
    }
    
    .product-info-simple {
        padding: 12px;
    }
    
    /* Featured Mobile */
    .featured-section {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-card {
        border-radius: 12px;
    }
    
    .featured-image {
        height: 150px;
    }
    
    .featured-info {
        padding: 12px;
    }
    
    /* Kategori Mobile */
    .categories-container {
        gap: 15px;
        padding: 0 15px;
    }
    
    .category-item {
        min-width: 65px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 20px;
    }
    
    /* User dropdown hide on mobile */
    .d-none.d-md-flex {
        display: none !important;
    }
     .banner-container {
        padding: 0 20px;
        margin: 24px auto 32px;
    }
    
    .banner-slider {
        height: 280px;
        border-radius: 18px;
        box-shadow: 
            0 12px 40px rgba(0, 82, 163, 0.12),
            0 3px 16px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .slide-content {
        padding: 30px;
        background: linear-gradient(
            to top, 
            rgba(0, 0, 0, 0.85) 0%, 
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%
        );
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .slide-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
        max-width: 400px;
        line-height: 1.4;
    }
    
    .slide-button {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .slide-badge {
        top: 16px;
        left: 16px;
        padding: 5px 14px;
        font-size: 0.7rem;
    }
    
    .nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.12),
            0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .nav.prev {
        left: 16px;
    }
    
    .nav.next {
        right: 16px;
    }
    
    .dots {
        bottom: 16px;
        padding: 5px 12px;
        gap: 8px;
        backdrop-filter: blur(5px);
    }
    
    .dots span {
        width: 8px;
        height: 8px;
    }
    
    .dots span.active {
        transform: scale(1.2);
    }
    
    .autoplay-indicator {
        top: 16px;
        right: 16px;
        padding: 3px 10px;
        font-size: 0.75rem;
        backdrop-filter: blur(3px);
    }
    
    .progress-bar {
        height: 3px;
    }
}

@media (max-width: 576px) {
    .main-nav {
        padding: 12px 15px;
    }
    
    /* Cart Dropdown Mobile Small */
    .cart-dropdown {
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100vw - 20px);
        bottom: 70px;
    }
    
   .banner-container {
        padding: 0 16px;
        margin: 20px auto 24px;
    }
    
    .banner-slider {
        height: 240px;
        border-radius: 16px;
        box-shadow: 
            0 8px 32px rgba(0, 82, 163, 0.1),
            0 2px 12px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .slide-content {
        padding: 20px;
        background: linear-gradient(
            to top, 
            rgba(0, 0, 0, 0.9) 0%, 
            rgba(0, 0, 0, 0.5) 60%,
            transparent 100%
        );
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
        letter-spacing: -0.3px;
    }
    
    .slide-subtitle {
        font-size: 0.85rem;
        margin-bottom: 14px;
        max-width: 300px;
        line-height: 1.3;
    }
    
    .slide-button {
        padding: 8px 18px;
        font-size: 0.8rem;
        gap: 5px;
        box-shadow: 0 6px 16px rgba(0, 82, 163, 0.3);
    }
    
    .slide-badge {
        top: 12px;
        left: 12px;
        padding: 4px 12px;
        font-size: 0.65rem;
        backdrop-filter: blur(8px);
    }
    
    .nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
        box-shadow: 
            0 3px 16px rgba(0, 0, 0, 0.1),
            0 1px 4px rgba(0, 0, 0, 0.06);
    }
    
    .nav.prev {
        left: 12px;
    }
    
    .nav.next {
        right: 12px;
    }
    
    .dots {
        bottom: 12px;
        padding: 4px 10px;
        gap: 6px;
    }
    
    .dots span {
        width: 7px;
        height: 7px;
    }
    
    .dots span:hover {
        transform: scale(1.1);
    }
    
    .dots span.active {
        transform: scale(1.15);
    }
    
    .autoplay-indicator {
        display: none; /* Hide on small mobile */
    }
    
    .progress-bar {
        height: 2px;
    }
    
    /* Produk */
    .products-section,
    .featured-section {
        padding: 0 15px;
        margin: 15px auto;
    }
    
    .products-grid {
        gap: 12px;
    }
    
    .featured-grid {
        gap: 12px;
    }
    
    /* Kategori */
    .categories-container {
        gap: 12px;
    }
    
    .category-item {
        min-width: 60px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    /* Mobile Navigation */
    .mobile-bottom-nav {
        padding: 8px 5px;
    }
    
    .nav-item {
        font-size: 0.65rem;
    }
    
    .nav-item i {
        font-size: 1.2rem;
    }
    
    body {
        padding-bottom: 65px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-all {
        align-self: flex-start;
    }
    
    .mobile-search-btn {
        margin-left: 180px;
    }
}
@media (max-width: 480px) {
    .banner-container {
        padding: 0 12px;
        margin: 16px auto 20px;
    }
    
    .banner-slider {
        height: 200px;
        border-radius: 14px;
    }
    
    .slide-content {
        padding: 16px;
    }
    
    .slide-title {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    
    .slide-subtitle {
        font-size: 0.8rem;
        margin-bottom: 12px;
        max-width: 250px;
        line-height: 1.2;
    }
    
    .slide-button {
        padding: 7px 16px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .slide-badge {
        top: 10px;
        left: 10px;
        padding: 3px 10px;
        font-size: 0.6rem;
    }
    
    .nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .nav.prev {
        left: 10px;
    }
    
    .nav.next {
        right: 10px;
    }
    
    .dots {
        bottom: 10px;
        padding: 3px 8px;
        gap: 5px;
    }
    
    .dots span {
        width: 6px;
        height: 6px;
    }
}
@media (max-width: 400px) {
    /* Cart Dropdown Extra Small */
    .cart-dropdown {
        right: 5px !important;
        left: 5px !important;
        max-width: calc(100vw - 10px);
        bottom: 65px;
    }
    
    .cart-item {
        padding: 8px;
    }
    
    .cart-item-image {
        width: 45px;
        height: 45px;
    }
    
    .cart-item-title {
        font-size: 12px;
    }
    
    .cart-item-variant {
        font-size: 11px;
    }
    
    .cart-item-price,
    .cart-item-subtotal {
        font-size: 11px;
    }
  .banner-container {
        padding: 0 8px;
        margin: 12px auto 16px;
    }
    
    .banner-slider {
        height: 180px;
        border-radius: 12px;
    }
    
    .slide-content {
        padding: 12px;
    }
    
    .slide-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .slide-subtitle {
        font-size: 0.75rem;
        margin-bottom: 10px;
        max-width: 200px;
    }
    
    .slide-button {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    
    .slide-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 0.55rem;
    }
    
    /* Hide navigation buttons on very small screens */
    .nav {
        display: none;
    }
    
    .dots {
        bottom: 8px;
        padding: 3px 6px;
        gap: 4px;
    }
    
    .dots span {
        width: 5px;
        height: 5px;
    }
    /* Produk */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 120px;
        padding: 10px;
    }
    
    /* Mobile Navigation */
    .mobile-bottom-nav {
        padding: 6px 3px;
    }
    
    .nav-item {
        font-size: 0.6rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    .nav-item .badge {
        width: 14px;
        height: 14px;
        font-size: 0.5rem;
    }
    
    /* Mobile Search Button */
    .mobile-search-btn {
        margin-left: 120px;
    }
}

/* Overlay untuk mobile cart dropdown */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
}

.cart-dropdown-container.active + .cart-overlay {
    display: block;
}

/* Close button untuk mobile cart */
.cart-close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--dark-gray);
    cursor: pointer;
    z-index: 1;
}

@media (max-width: 768px) {
    .cart-close-btn {
        display: block;
    }
    
    .cart-dropdown-header {
        padding-right: 40px;
    }
}
/* Status colors */
.status-menunggu pembayaran {
    background: #ffc107;
    color: #000;
}
.status-menunggu dikirim {
    background: #17a2b8;
    color: white;
}
.status-dikirim {
    background: #007bff;
    color: white;
}
.status-selesai {
    background: #28a745;
    color: white;
}
.status-gagal {
    background: #dc3545;
    color: white;
}
.status-dibatalkan {
    background: #6c757d;
    color: white;
}

/* Untuk order detail chat */
.order-status-chat.status-menunggu pembayaran {
    background: #ffc107;
    color: #000;
}
.order-status-chat.status-menunggu dikirim {
    background: #17a2b8;
    color: white;
}
.order-status-chat.status-dikirim {
    background: #007bff;
    color: white;
}
.order-status-chat.status-selesai {
    background: #28a745;
    color: white;
}
.order-status-chat.status-gagal {
    background: #dc3545;
    color: white;
}
.order-status-chat.status-dibatalkan {
    background: #6c757d;
    color: white;
}

.preserve-formatting {
    white-space: pre-line;
    /* atau */
    white-space: pre-wrap;
}