/* PWA Header Styles */
.pwa-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.brand-logo .brand-emoji {
    font-size: 2rem;
    display: block;
    text-align: center;
}

.search-container {
    position: relative;
}

.search-input-group {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-input {
    padding-left: 40px;
    border-radius: 25px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    font-size: 0.9rem;
}

.search-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}

.cart-icon-btn {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Promo Banner Styles */
.promo-banner-section {
    padding: 1rem 0;
    background: #f8f9fa;
}

.promo-swiper {
    padding: 0 1rem;
}

.promo-card {
    border-radius: 15px;
    padding: 1.5rem;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.promo-content {
    flex: 1;
    z-index: 2;
}

.promo-badge {
    margin-bottom: 0.5rem;
}

.discount-badge {
    background: rgba(255,255,255,0.9);
    color: #dc3545;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.promo-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.promo-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.promo-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.promo-image {
    width: 80px;
    height: 80px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Category Section Styles */
.category-section {
    padding: 1rem 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.section-title {
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.section-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-scroll {
    overflow-x: auto;
    padding: 0 1rem;
}

.category-list {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover,
.category-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-name {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 24px;
}

/* Products Section Styles */
.products-section {
    padding: 1rem 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-favorite-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: none;
    transition: all 0.3s ease;
}

.product-favorite-btn:hover {
    background: white;
    color: #dc3545;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: none;
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.quantity-display {
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price .price {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Bottom Navigation Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--brand-border);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 9999;
    box-shadow: 0 -6px 18px rgba(2, 6, 23, 0.10);
    min-height: 70px;
}

.nav-item {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #6c757d !important;
    padding: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    width: 100%;
    min-height: 50px;
    justify-content: center;
}

.nav-link:hover {
    color: var(--brand-color) !important;
    text-decoration: none !important;
}

.nav-link i {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    display: block;
}

.nav-item.active .nav-link {
    color: var(--brand-color) !important;
    font-weight: 600;
}

.nav-item.active .nav-link i {
    transform: scale(1.1);
}

.nav-badge {
    position: absolute;
    top: 8px;
    right: 20%;
    background: #f59e0b !important; /* amber */
    color: white !important;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Cart center style */
.nav-item.cart-center {
    position: relative;
}

.nav-item.cart-center .nav-link {
    background: var(--brand-color);
    color: white !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: -10px auto 0;
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.25);
}

.nav-item.cart-center .nav-link:hover {
    background: var(--brand-color) !important;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image-container {
        height: 120px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .promo-card {
        height: 120px;
        padding: 1rem;
    }
    
    .promo-title {
        font-size: 1.1rem;
    }
    
    .category-item {
        padding: 0.75rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .category-name {
        font-size: 0.7rem;
    }
    
    /* Add bottom padding to content for bottom nav */
    body {
        padding-bottom: 80px;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .pwa-header {
        position: relative;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Hide category scroll on very small screens */
@media (max-width: 480px) {
    .category-scroll {
        margin: 0 -1rem;
    }
    
    .category-list {
        padding: 0 1rem;
    }
}

/* Add fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast styles */
.pwa-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pwa-toast.show {
    transform: translateX(0);
}

.pwa-toast-success {
    background: #28a745;
}

.pwa-toast-error {
    background: #dc3545;
}

.pwa-toast-info {
    background: #17a2b8;
}

/* Quantity controls enhanced styles */
.quantity-controls.has-items {
    background: rgba(46, 139, 87, 0.1);
    border: 2px solid var(--primary-color);
}

.quantity-controls.has-items .quantity-display {
    color: var(--primary-color);
    font-weight: bold;
}

/* Product card enhanced hover effects */
.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Category scroll enhancements */
.category-scroll::-webkit-scrollbar {
    height: 4px;
}

.category-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.category-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .product-actions {
        opacity: 1;
    }
    
    .category-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-link {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .quantity-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-width: 44px;
        min-height: 44px;
    }
    
    .product-favorite-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* iOS Safari specific fixes */
    .pwa-header {
        -webkit-backdrop-filter: blur(10px);
    }
    
    .search-input {
        -webkit-appearance: none;
        -webkit-border-radius: 25px;
    }
    
    /* Pull to refresh disable */
    body {
        overscroll-behavior-y: contain;
    }
    
    /* Safe area support for iPhone X+ */
    .pwa-header {
        padding-top: env(safe-area-inset-top);
    }
    
    .bottom-nav {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(46, 139, 87, 0.2) !important;
        background: white !important;
    }
    
    /* Force visibility on mobile */
    @media (max-width: 767.98px) {
        .bottom-nav {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: fixed !important;
            bottom: 0 !important;
            z-index: 10000 !important;
        }
    }
}

/* Loading states */
.product-image {
    background: #f8f9fa;
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.product-image:not([src]):not([style*="background-image"]) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading spinner for buttons */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button states */
.quantity-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.quantity-btn:active {
    transform: scale(0.95);
}

/* Enhanced visual feedback */
.product-card.adding-to-cart {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.2);
}

.category-item.selecting {
    transform: scale(0.95);
}

/* Smooth state transitions */
.quantity-btn,
.product-favorite-btn,
.category-item {
    transition: all 0.2s ease;
}

/* Enhanced touch targets */
@media (max-width: 768px) {
    .promo-btn {
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .filter-btn {
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Connection status indicator */
.connection-status {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.connection-status.show {
    opacity: 1;
}

.connection-status.online {
    background: #28a745;
}

/* Enhanced scrollbar for desktop */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--dark-green);
    }
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.install-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.install-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.dismiss-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dismiss-btn:hover {
    background: #e9ecef;
    color: #495057;
}

@media (max-width: 768px) {
    .install-banner {
        bottom: 90px; /* Above bottom nav */
        left: 10px;
        right: 10px;
    }
    
    .install-banner-content {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Skeleton loading for better perceived performance */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 300px;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.long {
    width: 80%;
}

/* Error states */
.error-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.error-state .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.error-state .error-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-state .error-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Enhanced focus states for accessibility */
.quantity-btn:focus,
.product-favorite-btn:focus,
.category-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bottom-nav,
    .pwa-header,
    .desktop-navbar,
    .install-banner,
    .connection-status,
    .pwa-toast {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --light-bg: #ababab;
        --light-gray: #2d2d2d;
    }
    
    .pwa-header,
    .desktop-navbar {
        /* background: rgba(26, 26, 26, 0.95); */
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .search-input {
        background: rgba(45, 45, 45, 0.8);
        color: white;
    }
    
    .product-card {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .category-item {
        background: #2d2d2d;
        color: white;
    }
}

/* Style untuk gambar produk */
.product-image {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.product-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card:hover .product-image {
    transform: scale(1.02);
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

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

/* Style untuk fallback icon */
.product-icon {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.card:hover .product-icon {
    opacity: 0.8;
}

/* Style untuk container hasil autocomplete */
.pac-container {
    z-index: 11010 !important; /* di atas .modal (11000) dan backdrop (10990) */
    margin-top: 5px;
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
    padding: 0.5rem 0;
    background-color: #fff;
    font-family: inherit;
    width: auto !important;
    min-width: 300px;
}

/* Pastikan wrapper input tidak memangkas dropdown */
.location-search-wrapper { position: relative; overflow: visible; }
.location-search-section { position: relative; overflow: visible; }

/* Saat di dalam modal, paksa dropdown tetap di atas */
.modal.show ~ .pac-container,
.modal.show .pac-container { z-index: 11010 !important; }

/* Perbaikan styling modal untuk scroll */
.modal {
    overflow-y: auto !important;
}

.modal-dialog {
    display: flex;
    align-items: flex-start;
}

.modal-body {
    max-height: calc(100vh - 210px); /* Tinggi viewport dikurangi header dan footer modal */
    overflow-y: auto;
    position: relative;
}

/* Wrapper untuk input pencarian dengan positioning absolute untuk dropdown */
.location-search-wrapper {
    position: relative;
}

/* Style untuk setiap item hasil autocomplete */
.pac-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: inherit;
    border-top: 1px solid #e9ecef;
    line-height: 1.5;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-icon {
    margin-right: 10px;
}

.pac-item-query {
    font-size: 0.95rem;
    color: #212529;
    margin-right: 5px;
}

.pac-matched {
    font-weight: bold;
    color: #0d6efd;
}

.pac-secondary-text {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Style untuk container detail tempat */
#placeDetails {
    position: relative;
    z-index: 1060;
}

/* Style untuk marker label */
.marker-label {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* Style untuk badges tipe tempat */
.place-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin: 0.125rem;
}

/* Style untuk form checkout */
#checkoutForm {
    padding-right: 5px; /* Memberikan sedikit ruang untuk scrollbar */
}

/* Custom scrollbar untuk modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-image,
    .card-img-top {
        height: 220px !important;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 576px) {
    .product-image,
    .card-img-top {
        height: 200px !important;
    }
}

/* Modern Modal Cart Styles */
.modern-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modern-header {
    background: linear-gradient(135deg, var(--primary-color), var(--brand-color-dark));
    color: white;
    border: none;
    padding: 1.5rem;
    position: relative;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.modern-close {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modern-close:hover {
    transform: scale(1.1);
    color: white;
}

.modern-body {
    padding: 0;
    background: #f8f9fa;
}

/* Cart Section Styles */
.cart-section {
    background: white;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    margin: 0;
    font-weight: 600;
    color: #2c3e50; /* Dark blue-gray untuk kontras yang baik */
}

.item-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
}

.cart-items {
    padding: 1rem;
}

.empty-cart {
    opacity: 0.7;
    color: #6c757d; /* Gray untuk empty state */
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #2c3e50; /* Dark blue-gray untuk nama item */
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #1e7e34;
    transform: scale(1.1);
    color: white;
}

.qty-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    color: #495057; /* Dark gray untuk quantity display */
}

/* Price Summary Styles */
.price-summary {
    background: white;
    margin-bottom: 1rem;
}

.summary-card {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #ffffff; /* Dark gray untuk summary text */
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row .text-end {
    color: #2c3e50; /* Darker untuk nilai harga */
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: #e9ecef;
    margin: 1rem 0;
}

.total-row {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-top: 1rem;
    color: #2c3e50; /* Dark color untuk total */
}

.total-row .fw-bold {
    color: #1a252f; /* Extra dark untuk total amount */
}

/* Form Section Styles */
.form-section {
    background: white;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50; /* Dark blue-gray untuk labels */
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.modern-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    padding-left: 45px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
    background: white;
}

/* Location Search Styles */
.location-search-section {
    margin-bottom: 1.5rem;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 2;
}

.location-input {
    flex: 1;
    padding-left: 45px;
    padding-right: 100px;
}

.location-actions {
    position: absolute;
    right: 10px;
    display: flex;
    gap: 0.5rem;
}

/* Delivery Details Card */
.delivery-details-card {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.delivery-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.info-label {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.info-value {
    font-weight: 600;
    color: #2c3e50; /* Dark blue-gray untuk info value */
}

.delivery-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.delivery-note i {
    color: var(--primary-color);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.delivery-note small {
    line-height: 1.4;
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-map {
    height: 250px;
    width: 100%;
}

/* Address Labels */
.address-labels {
    margin-bottom: 1.5rem;
}

.label-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.label-radio {
    display: none;
}

.label-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.label-option:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.label-radio:checked + .label-option {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Modern Checkbox */
.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.modern-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #495057; /* Dark gray untuk checkbox text */
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 1rem;
}

.payment-option {
    position: relative;
}

.payment-radio {
    display: none;
}

.payment-card {
    display: block;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-card:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.payment-radio:checked + .payment-card {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.qris-icon {
    background: #28a745;
    color: white;
}

.payment-title {
    font-weight: 600;
    color: #2c3e50; /* Dark blue-gray untuk payment title */
    display: block;
}

.payment-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.bank-info,
.qris-info {
    margin-top: 1rem;
}

.bank-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.bank-name {
    font-weight: 600;
    color: #2c3e50; /* Dark blue-gray untuk bank name */
    display: block;
}

.account-number {
    font-size: 0.9rem;
    color: #6c757d;
}

.qris-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qris-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.qris-code-icon {
    font-size: 1.5rem;
    color: #28a745;
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    align-items: center;
    min-height: 80px;
}

/* Order Summary Section */
.order-summary-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--brand-color-dark));
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.25px;
}

.summary-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Footer Actions Section */
.footer-actions-section {
    display: flex;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Button Styles */
.btn-cancel,
.btn-checkout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    min-width: 110px;
    justify-content: center;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--primary-color), var(--brand-color-dark));
    color: white;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(46, 139, 87, 0.3);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, var(--brand-color-dark), #0d4d23);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-checkout:hover::before {
    left: 100%;
}

.btn-cancel i,
.btn-checkout i {
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-modal {
        border-radius: 0;
        height: 100vh;
        margin: 0;
    }

    .modern-header {
        border-radius: 0;
    }

    .modern-body {
        padding-bottom: 100px; /* Space for bottom nav */
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .delivery-info {
        grid-template-columns: 1fr;
    }

    .label-options {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
        min-height: 70px;
    }
    
    .order-summary-section {
        justify-content: flex-start;
    }
    
    .summary-row {
        justify-content: flex-start;
        text-align: left;
        gap: 0.75rem;
    }

    .footer-actions-section {
        justify-content: flex-end;
    }
    
    .action-buttons {
        gap: 0.5rem;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-checkout {
        flex: none;
        min-width: 80px;
        font-size: 0.8rem;
        padding: 0.625rem 1rem;
        white-space: nowrap;
    }
    
    .btn-cancel span,
    .btn-checkout span {
        display: none;
    }
    
    .btn-cancel i,
    .btn-checkout i {
        font-size: 1rem;
        margin: 0;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .summary-amount {
        font-size: 1.2rem;
    }
    
    .summary-label {
        font-size: 0.8rem;
    }
}

/* Tablet responsive (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .footer-content {
        padding: 1rem 1.25rem;
    }
    
    .summary-icon {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    
    .summary-amount {
        font-size: 1.35rem;
    }
    
    .btn-cancel,
    .btn-checkout {
        min-width: 120px;
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Extra small mobile (max 375px) */
@media (max-width: 375px) {
    .footer-content {
        padding: 0.75rem;
        gap: 0.5rem;
        min-height: 65px;
    }
    
    .summary-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .summary-amount {
        font-size: 1.1rem;
    }
    
    .summary-label {
        font-size: 0.75rem;
    }
    
    .btn-cancel,
    .btn-checkout {
        min-width: 70px;
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
    }
    
    .action-buttons {
        gap: 0.375rem;
    }
}

    /* Ensure modal doesn't cover bottom nav */
    .modal-dialog {
        margin: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .modal-content {
        height: 100vh;
        max-height: 100vh;
    }

    .modal-body {
        padding-bottom: 90px; /* Height of bottom nav + padding */
    }
}

/* Animation for modal */
.modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

@media (min-width: 769px) {
    .modal.fade .modal-dialog {
        transform: scale(0.8);
        transition: transform 0.3s ease-out;
    }

    .modal.show .modal-dialog {
        transform: scale(1);
    }
}

#addToCartModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

#addToCartModal .btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    opacity: 1;
}

#addToCartModal .quantity-control .btn:hover {
    background: #e9ecef;
    border-radius: 50%;
}

#addToCartModal .quantity-control input:focus {
    box-shadow: none;
}

#addToCartModal textarea:focus {
    box-shadow: none;
    background: #f1f3f5 !important;
}

@media (max-width: 768px) {
    #addToCartModal .modal-dialog {
        margin: 1rem;
    }
} 

/* Modal Detail Produk */
#addToCartModal .modal-dialog {
    max-width: 400px;
    margin: 1rem auto;
    height: 75vh;
}

#addToCartModal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

#addToCartModal .modal-header {
    position: relative;
    padding: 0;
    flex: 0 0 auto;
}

#addToCartModal .modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    overflow-y: auto;
}

#addToCartModal .modal-footer {
    padding: 1rem 1.5rem;
    flex: 0 0 auto;
}

#addToCartModal .product-image-container {
    position: relative;
    width: 100%;
    background: #f8f9fa;
}

#addToCartModal .btn-close {
    background-color: white;
    opacity: 1;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#addToCartModal .quantity-control {
    background: #f8f9fa;
    border-radius: 2rem;
    padding: 0.25rem;
}

#addToCartModal .quantity-control .btn-link {
    color: #6c757d;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
}

#addToCartModal .quantity-control .btn-link:hover {
    color: #000;
}

#addToCartModal .quantity-control input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 500;
}

#addToCartModal .quantity-control input:focus {
    outline: none;
    box-shadow: none;
}

#addToCartModal textarea.form-control {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

#addToCartModal textarea.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#addToCartModal .btn-primary {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

#addToCartModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

/* Responsive Styles */
@media (max-width: 576px) {
    #addToCartModal .modal-dialog {
        margin: 0.5rem;
        height: 75vh;
        margin-top: 12.5vh; /* Untuk memposisikan modal di tengah vertikal */
    }
    
    #addToCartModal .modal-content {
        border-radius: 1rem;
    }
    
    #addToCartModal .modal-body {
        padding: 1rem;
    }
}

/* Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#addToCartModal.show .modal-content {
    animation: modalFadeIn 0.3s ease-out;
} 

/* Modern Promo Banner Styles */
.promo-banner-section {
    padding: 1rem 0;
    background: #f8f9fa;
    overflow: hidden;
}

.promo-swiper {
    padding: 0 1rem;
}

.promo-swiper .swiper-slide {
    height: auto;
}

.modern-promo-card {
    border-radius: 20px;
    height: 200px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    background: white;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 100%;
}

.modern-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Left Side - Image Area */
.promo-image-section {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #f0f8f0 0%, #ffffff 100%);
    overflow: hidden;
}

.promo-image-bg {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.promo-main-image {
    max-width: 100%;
    max-height: 80%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.promo-main-image:hover {
    transform: scale(1.05);
}

.promo-placeholder-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.organic-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.organic-label i {
    color: #4CAF50;
}

/* Right Side - Content Area */
.promo-content-section {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #20B2AA 0%, #ffffff 100%);
    overflow: hidden;
}

.promo-content-bg {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.promo-badge {
    margin-bottom: 0.5rem;
}

.super-sale-badge {
    background: #90EE90;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.promo-main-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #90EE90;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promo-main-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.order-now-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
    cursor: pointer;
}

.order-now-btn:hover {
    background: var(--brand-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.website-url {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.promo-description {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.discount-oval {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #90EE90;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(-5deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 3;
}

.social-icons {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.social-icons i {
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    padding: 0.5rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.social-icons i:hover {
    color: #90EE90;
    transform: scale(1.2);
    background: rgba(255,255,255,0.95);
}

/* Navigation Buttons */
.promo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.promo-nav-btn:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.1);
}

.promo-nav-left {
    left: 1rem;
}

.promo-nav-right {
    right: 1rem;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decorative-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: #90EE90;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: #20B2AA;
    bottom: -15px;
    left: -15px;
    animation-delay: 3s;
}

.decorative-dots {
    position: absolute;
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.dots-1 {
    top: 20%;
    right: 10%;
    width: 40px;
    height: 40px;
    background-image: radial-gradient(circle, #90EE90 2px, transparent 2px);
    background-size: 8px 8px;
    animation-delay: 1s;
}

.dots-2 {
    bottom: 30%;
    left: 5%;
    width: 30px;
    height: 30px;
    background-image: radial-gradient(circle, #20B2AA 2px, transparent 2px);
    background-size: 6px 6px;
    animation-delay: 2s;
}

.food-icon {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.6;
    animation: bounce 3s ease-in-out infinite;
}

.food-icon-1 {
    top: 15%;
    left: 10%;
    font-size: 1.2rem;
    animation-delay: 0.5s;
}

.food-icon-2 {
    bottom: 20%;
    right: 15%;
    font-size: 1rem;
    animation-delay: 1.5s;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Swiper Pagination */
.swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
    transform: scale(1.2);
} 

/* Responsive Design */
@media (max-width: 768px) {
    .modern-promo-card {
        height: 160px;
        flex-direction: column;
    }
    
    .promo-image-section,
    .promo-content-section {
        flex: none;
        height: 50%;
    }
    
    .promo-content-bg {
        padding: 1rem;
    }
    
    .promo-main-title {
        font-size: 1.2rem;
    }
    
    .promo-main-subtitle {
        font-size: 0.8rem;
    }
    
    .order-now-btn {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .website-url {
        font-size: 0.5rem;
        padding: 0.2rem 0.5rem;
    }
    
    .promo-description {
        font-size: 0.6rem;
    }
    
    .discount-oval {
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
    }
    
    .social-icons {
        gap: 0.3rem;
    }
    
    .social-icons i {
        font-size: 0.8rem;
    }
    
    .promo-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .organic-label {
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .modern-promo-card {
        height: 140px;
    }
    
    .promo-content-bg {
        padding: 0.8rem;
    }
    
    .promo-main-title {
        font-size: 1rem;
    }
    
    .promo-main-subtitle {
        font-size: 0.7rem;
    }
    
    .order-now-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.6rem;
    }
    
    .website-url {
        font-size: 0.4rem;
        padding: 0.15rem 0.4rem;
    }
    
    .promo-description {
        font-size: 0.5rem;
    }
    
    .discount-oval {
        font-size: 0.5rem;
        padding: 0.2rem 0.6rem;
    }
    
    .social-icons i {
        font-size: 0.7rem;
    }
    
    .promo-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .organic-label {
        font-size: 0.5rem;
        padding: 0.2rem 0.6rem;
    }
} 

/* Header - Brand + Search */
/* CSS Variables are now defined dynamically in template header from database settings */

.pwa-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eef0f2;
}

.brand-title {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.5px;
  color: var(--brand-color-dark);
}

.search-form { margin-top: .25rem; }
.search-input-group { position: relative; }
.search-input-group .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #94a3b8;
}
.search-input-group .search-input {
  padding-left: 40px; padding-right: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.search-input-group .search-input:focus {
  background: #fff; border-color: var(--brand-color); box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.search-submit {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--brand-color); color: #fff; display: flex; align-items: center; justify-content: center;
}
.search-submit:hover { background: var(--brand-color-dark); }

/* Hero Slideshow */
.hero-section { background: #f8fafc; padding: 12px 0 0; }
.hero-slider { position: relative; }
.hero-swiper { border-radius: 18px; overflow: hidden; }
.hero-slide-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.hero-slide-placeholder { width: 100%; height: 220px; background: #e2e8f0; }

@media (min-width: 768px) {
  .hero-slide-img, .hero-slide-placeholder { height: 320px; }
}

.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: #fff; color: var(--brand-color-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(2, 6, 23, .12);
}
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-nav-btn:hover { background: var(--brand-color); color: #fff; }

/* Hilangkan badge/cart di header baru */
.cart-icon-btn, .cart-badge { display: none !important; } 

/* Our Menu - Category Chips */
.menu-categories { background: #fff; padding: 16px 0; }
.menu-header { padding: 0 12px 12px; }
.menu-title { font-weight: 800; color: #0f172a; }
.menu-view-all { color: var(--brand-color); font-weight: 600; text-decoration: none; }
.menu-view-all:hover { color: var(--brand-color-dark); }

.category-chips-scroll { overflow-x: auto; padding: 4px 8px 8px; }
.category-chips { display: flex; gap: 12px; width: max-content; }

.category-chip {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 16px rgba(2,6,23,.06); cursor: pointer; transition: .2s ease;
}
.category-chip .chip-icon { width: 26px; height: 26px; display: grid; place-items: center; }
.category-chip .chip-icon img { width: 26px; height: 26px; object-fit: cover; }
.category-chip .chip-label { font-weight: 600; color: #0f172a; white-space: nowrap; }
.category-chip:hover { border-color: var(--brand-color); box-shadow: 0 8px 20px rgba(20,184,166,.15); }
.category-chip.active { border-color: var(--brand-color); background: #ecfeff; }

/* Featured Items - Product Cards */
.featured-items { background: #fff; padding: 8px 0 24px; }
.section-heading { font-weight: 800; color: #0f172a; padding: 0 12px 12px; }

.menu-grid {
  display: grid; gap: 18px; padding: 0 12px; grid-template-columns: 1fr 1fr; 
}
@media (min-width: 576px){ .menu-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px){ .menu-grid{ grid-template-columns: repeat(4, 1fr); } }

.menu-card { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(2,6,23,.06); }
.menu-card-media { position: relative; }
.menu-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
@media (min-width: 576px){ .menu-card-img{ height: 200px; } }

.menu-card-body { padding: 12px; }
.menu-card-title .name { font-weight: 700; color: #0f172a; }
.menu-card-title .info-icon { color: #94a3b8; }
.desc { font-size: .9rem; }

.menu-card-footer { margin-top: 6px; }
.price-wrap { display: flex; align-items: center; gap: 6px; }
.old-price { color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.price { color: #0f172a; font-weight: 800; }

.btn-add { border: none; background: #ecfeff; color: var(--brand-color-dark); font-weight: 700; border-radius: 999px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px; }
.btn-add:hover { background: var(--brand-color); color: #fff; } 

/* AddToCart Modal - 50% height, vertically centered, internal scroll, safe area */
#addToCartModal .modal-dialog {
  /* gunakan utilitas Bootstrap modal-dialog-centered di HTML */
  max-width: 600px; /* biarkan default-ish; tidak full width */
}
#addToCartModal .modal-content {
  border-radius: 16px;
  overflow: hidden; /* agar scroll hanya di body */
  height: 85vh;
}
/* Biarkan header tampil karena berisi gambar produk */
#addToCartModal .modal-footer { display: none !important; }

/* Sesuaikan tinggi body: total tinggi konten dikurangi tinggi header (gambar 200px) */
#addToCartModal .modal-body {
  height: calc(100% - 200px);
  overflow-y: auto; /* scroll internal */
  padding-bottom: calc(16px + env(safe-area-inset-bottom)); /* safe area iOS */
}
/* Pastikan backdrop tetap standar dan modal berada di atas bottom-nav */
#addToCartModal { z-index: 11000; }
.modal-backdrop.show { z-index: 10990; }

/* -- AddToCartModal overrides: show footer, flex layout, centered, 50% height -- */
#addToCartModal .modal-dialog {
  /* Batalkan style bottom-sheet sebelumnya dan gunakan centering default Bootstrap */
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  height: auto !important;
  margin: 1rem auto !important;
  max-width: 600px;
}
#addToCartModal .modal-content {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  height: 85vh;
}
#addToCartModal .modal-header {
  display: block !important;
  border: 0;
  padding: 0;
}
#addToCartModal .modal-body {
  height: auto !important; /* gunakan flex agar menyesuaikan header/footer */
  flex: 1 1 auto;
  min-height: 0; /* penting agar overflow bekerja pada flex item */
  overflow-y: auto;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
/* Tampilkan kembali footer dan gaya dasar */
#addToCartModal .modal-footer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #eee;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
/* Pastikan di mobile tidak menjadi bottom sheet lagi */
@media (max-width: 768px) {
  #addToCartModal .modal-dialog {
    position: static !important;
    height: auto !important;
    margin: 1rem !important;
  }
}

/* Ensure modal is above high-z-index backdrop and bottom nav */
.modal.show { z-index: 11000 !important; }
.modal-backdrop.show { z-index: 10990 !important; }

/* Contact Section */
.contact-section { 
  padding: 3rem 0; 
  background: linear-gradient(180deg, #f8fbf9 0%, #ffffff 100%);
}
/* Cards use brand background */
.contact-card,
.hours-card {
  background: var(--primary-color);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  color: #ffffff;
}
.contact-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.35);
}
.contact-title { font-weight: 800; color: #ffffff; margin-bottom: 0.5rem; }
.contact-subtitle { color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
/* Buttons contrast on brand background */
.contact-card .btn-brand { background: #ffffff; color: var(--primary-color); border: none; }
.contact-card .btn-brand:hover { filter: brightness(0.97); }
.contact-card .btn-outline-brand { border: 1px solid #ffffff; color: #ffffff; background: transparent; }
.contact-card .btn-outline-brand:hover { background: rgba(255,255,255,0.12); }

.hours-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.hours-header i { color: #ffffff; font-size: 1.25rem; }
.hours-body { display: grid; gap: 0.5rem; }
.hours-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed rgba(255,255,255,0.35); color: #ffffff; }
.hours-row:last-child { border-bottom: 0; }
/* make muted text readable on brand background */
.contact-section .hours-card .text-muted { color: #ffffff !important; opacity: 0.95; }

/* Status badge over brand background */
.status-badge { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.status-badge .dot { width: 8px; height: 8px; background: #ffffff; border-radius: 999px; display: inline-block; }
.status-badge.open { background: rgba(255,255,255,0.22); color: #fff; }

@media (min-width: 992px) {
  .contact-section { padding: 4rem 0; }
}

/* Site Footer (brand gradient) */
.site-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  border-top: none;
}
.site-footer .footer-heading { color: #ffffff; }
.site-footer .footer-text { color: rgba(255,255,255,0.92); }
.site-footer .footer-icon { color: rgba(255,255,255,0.9); }
.site-footer .footer-social-link { color: #ffffff; opacity: 0.95; }
.site-footer .footer-social-link:hover { opacity: 1; color: #ffffff; }
.site-footer .footer-link { color: rgba(255,255,255,0.92); }
.site-footer .footer-link:hover { color: #ffffff; }
.site-footer .footer-hr { border-color: rgba(255,255,255,0.25); opacity: 1; }

/* Checkout Modal Theming */
#checkoutModal .modern-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
#checkoutModal .modern-header {
  background: var(--primary-color); /* solid color per request */
  color: #ffffff;
  border-bottom: none;
}
#checkoutModal .modern-header .modal-icon i { color: #ffffff; }
/* Bootstrap utility to ensure white close icon */
#checkoutModal .modern-header .btn-close.btn-close-white { filter: none; opacity: 1; }
#checkoutModal .modern-header .btn-close.btn-close-white:hover { opacity: 0.85; }

/* Address Labels - solid backgrounds with contrasting text */
#checkoutModal .address-labels .label-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#checkoutModal .address-labels .label-radio { display: none; }
#checkoutModal .address-labels .label-option {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  background: #e9f5ef; color: #1f3b2e; /* default solid with dark text */
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
#checkoutModal .address-labels .label-option i { color: inherit; }
#checkoutModal .address-labels .label-radio:checked + .label-option {
  background: var(--primary-color); color: #ffffff; border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 4px rgba(46,139,87,0.15);
}
#checkoutModal .address-labels .label-option:hover { transform: translateY(-1px); }

#checkoutModal .modern-body { background: #ffffff; }
#checkoutModal .section-header .section-title { color: var(--primary-color); font-weight: 700; }

/* Price summary */
#checkoutModal .price-summary .summary-card {
  background: #f6fbf8; /* subtle brand tint */
  border: 1px solid rgba(46, 139, 87, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
}
#checkoutModal .price-summary .summary-row { color: #34495e; display: flex; justify-content: space-between; padding: 6px 0; }
#checkoutModal .price-summary .summary-divider { height: 1px; background: rgba(46, 139, 87, 0.15); margin: 6px 0 8px; }
#checkoutModal .price-summary .total-row span:last-child { color: var(--secondary-color); }

/* Payment cards */
#checkoutModal .payment-card {
  border: 1.5px solid #e9ecef;
  border-radius: 12px;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
  padding: 12px;
}
#checkoutModal .payment-header .payment-icon { color: var(--primary-color); }
#checkoutModal .payment-header .qris-icon { color: var(--secondary-color); }
#checkoutModal .payment-radio { display: none; }
#checkoutModal .payment-radio:checked + .payment-card {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.12);
}

/* Footer - Modern Design */
#checkoutModal .modern-footer {
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
}

#checkoutModal #footerTotal { 
    color: var(--primary-color); 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}