/* ==========================================================================
   TEMA SAJIWA MODERN (Distinctive, Fresh, Modern Food Web App)
   Desain Unik, Bersih, Elegan, dan Berbeda dari GoFood
   ========================================================================== */

:root {
    --sw-primary: #ea580c;         /* Warm Burnt Orange / Tangerine */
    --sw-primary-hover: #c2410c;
    --sw-primary-soft: #fff7ed;
    --sw-primary-border: #fed7aa;
    
    --sw-accent: #0d9488;          /* Fresh Teal / Emerald */
    --sw-accent-soft: #f0fdfa;
    --sw-accent-border: #99f6e4;
    
    --sw-dark: #0f172a;            /* Deep Slate */
    --sw-heading: #1e293b;
    --sw-text: #334155;
    --sw-muted: #64748b;
    
    --sw-bg-page: #f8fafc;
    --sw-card-bg: #ffffff;
    --sw-border: #e2e8f0;
    --sw-border-subtle: #f1f5f9;
    
    --sw-radius-sm: 8px;
    --sw-radius-md: 14px;
    --sw-radius-lg: 20px;
    --sw-radius-full: 9999px;
    
    --sw-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --sw-shadow-card: 0 4px 16px rgba(15, 23, 42, 0.05);
    --sw-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.09);
    --sw-shadow-floating: 0 12px 32px rgba(15, 23, 42, 0.16);
}

body {
    background-color: var(--sw-bg-page);
    color: var(--sw-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Master Mobile Container (Max width 640px centered) */
.sajiwa-container {
    max-width: 620px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 95px;
}

/* Header Modern */
.sajiwa-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sw-border-subtle);
    padding: 12px 18px;
}

.sajiwa-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.sajiwa-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sw-heading);
    letter-spacing: -0.4px;
    line-height: 1;
}

.sajiwa-brand-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sw-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Modern Location Chip */
.sajiwa-location-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sw-accent-soft);
    border: 1px solid var(--sw-accent-border);
    border-radius: var(--sw-radius-full);
    padding: 5px 12px;
    font-size: 0.78rem;
    color: var(--sw-accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sajiwa-location-chip:hover {
    background: #e6fffa;
    color: var(--sw-accent);
}

/* Modern Search Input Container */
.sajiwa-search-wrapper {
    position: relative;
    padding: 14px 18px 8px 18px;
    background: #ffffff;
}

.sajiwa-search-box {
    background-color: #f8fafc;
    border: 1.5px solid var(--sw-border);
    border-radius: 14px;
    padding: 6px 8px 6px 14px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.sajiwa-search-box:focus-within {
    background-color: #ffffff;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.sajiwa-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--sw-heading);
    width: 100%;
    padding: 6px 8px;
}

.sajiwa-search-input::placeholder {
    color: var(--sw-muted);
    font-size: 0.85rem;
}

.sajiwa-btn-search {
    border-radius: 10px;
    background-color: var(--sw-primary);
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s;
}

.sajiwa-btn-search:hover {
    background-color: var(--sw-primary-hover);
    color: #ffffff;
}

/* Category Story Bubbles (Horizontal Scrolling with Circular Avatar Icons & Arrows) */
.sajiwa-bubble-wrapper {
    position: relative;
    background-color: #ffffff;
    border-bottom: 1px solid var(--sw-border-subtle);
}

.sajiwa-bubble-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 18px 14px 18px;
    background-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.sajiwa-bubble-bar:active {
    cursor: grabbing;
}

.sajiwa-bubble-bar::-webkit-scrollbar {
    display: none;
}

.sajiwa-bubble-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    width: 76px;
}

.sajiwa-bubble-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f1f5f9;
    color: var(--sw-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.sajiwa-bubble-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sw-muted);
    text-align: center;
    line-height: 1.25;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color 0.2s;
}

.sajiwa-bubble-item:hover .sajiwa-bubble-icon,
.sajiwa-bubble-item.active .sajiwa-bubble-icon {
    background: var(--sw-primary-soft);
    color: var(--sw-primary);
    border-color: var(--sw-primary);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.18);
    transform: translateY(-2px);
}

.sajiwa-bubble-item.active .sajiwa-bubble-label {
    color: var(--sw-primary);
    font-weight: 700;
}

/* Navigasi Panah Geser Kategori */
.sajiwa-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 0.78rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0.95;
    padding: 0;
}

.sajiwa-scroll-arrow:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.sajiwa-arrow-left {
    left: 8px;
    display: none;
}

.sajiwa-arrow-right {
    right: 8px;
}

@media (max-width: 576px) {
    .sajiwa-scroll-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .sajiwa-arrow-left { left: 4px; }
    .sajiwa-arrow-right { right: 4px; }
}

/* ==========================================================================
   Modern Elevated Food Card Layout (Distinct & Elegant)
   ========================================================================== */

.sajiwa-menu-list {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sajiwa-card {
    display: flex;
    gap: 14px;
    padding: 15px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--sw-radius-md);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.sajiwa-card:hover {
    border-color: var(--sw-primary);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.12);
    transform: translateY(-2px);
}

/* Card Visual (Left Side) */
.sajiwa-card-media {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.sajiwa-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sajiwa-card:hover .sajiwa-card-img {
    transform: scale(1.06);
}

.sajiwa-badge-corner {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.2;
}

.sajiwa-badge-promo {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.sajiwa-badge-rating {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #facc15;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Card Content (Right Side) */
.sajiwa-card-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sajiwa-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.sajiwa-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--sw-heading);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sajiwa-store-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--sw-accent);
    background: var(--sw-accent-soft);
    padding: 1px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    width: fit-content;
    max-width: 100%;
}

.sajiwa-card-desc {
    font-size: 0.77rem;
    color: var(--sw-muted);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom Price & Action */
.sajiwa-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
}

.sajiwa-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sajiwa-price-current {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--sw-primary);
    letter-spacing: -0.3px;
}

.sajiwa-price-strike {
    font-size: 0.72rem;
    color: var(--sw-muted);
    text-decoration: line-through;
}

/* Modern Pill Button */
.sajiwa-btn-add {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--sw-radius-full);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
    transition: all 0.2s;
}

.sajiwa-btn-add:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Floating Cart Bar Modern */
.sajiwa-floating-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 580px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--sw-shadow-floating);
    z-index: 1040;
    animation: sajiwaSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sajiwaSlide {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.sajiwa-cart-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sajiwa-cart-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}

.sajiwa-btn-checkout {
    background: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: var(--sw-radius-full);
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sajiwa-btn-checkout:hover {
    background: #f1f5f9;
    color: #ea580c;
}

/* Modern Quantity Control Buttons */
.sajiwa-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--sw-border);
    background: #ffffff;
    color: var(--sw-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.72rem;
    font-weight: bold;
}

.sajiwa-qty-btn:hover {
    background: var(--sw-primary);
    color: #ffffff;
    border-color: var(--sw-primary);
}

/* Clean Modal Dialog */
.sajiwa-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--sw-shadow-floating);
    background: #ffffff;
}

.sajiwa-modal-header {
    border-bottom: 1px solid var(--sw-border-subtle);
    padding: 16px 20px;
}

.sajiwa-modal-footer {
    border-top: 1px solid var(--sw-border-subtle);
    padding: 16px 20px;
}

.sajiwa-form-control {
    background-color: #f8fafc;
    border: 1px solid var(--sw-border);
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 0.88rem;
    color: var(--sw-heading);
    transition: all 0.2s;
}

.sajiwa-form-control:focus {
    background-color: #ffffff;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
    outline: none;
}

/* ==========================================================================
   Promotional Banner Carousel Slider (Slim & Compact Height)
   ========================================================================== */
.sajiwa-banner-carousel {
    position: relative;
    border-radius: 14px;
}

.sajiwa-banner-slide img,
.sajiwa-banner-img {
    width: 100%;
    height: 112px !important;
    max-height: 115px !important;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.sajiwa-banner-carousel .carousel-indicators {
    margin-bottom: 6px;
}

.sajiwa-banner-carousel .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.sajiwa-banner-carousel .carousel-indicators .active {
    width: 16px;
    border-radius: 8px;
    background-color: var(--sw-primary);
}

.sajiwa-carousel-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--sw-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.sajiwa-banner-carousel:hover .sajiwa-carousel-arrow {
    background: #ffffff;
    color: var(--sw-primary);
    transform: scale(1.08);
}

.sajiwa-banner-carousel .carousel-control-prev,
.sajiwa-banner-carousel .carousel-control-next {
    width: 36px;
    opacity: 0.85;
}

/* ==========================================================================
   PWA Install Toast / Banner
   ========================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sw-border);
    border-radius: 18px;
    padding: 12px 16px;
    z-index: 2000;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    animation: pwaSlideUp 0.35s ease;
}

@keyframes pwaSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

