:root {
    --primary-orange: #ee4d2d;
    --primary-orange-light: #ff6433;
    --spay-blue: #1877f2;
    --dark-blue: #0b2f6b;
    --bg-gray: #f6f6f6;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-muted: #757575;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbars globally */
::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}


html, body {
    width: 100%;
    height: 100%;
    background-color: #e4e8ef;
    font-family: var(--font-family);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Container desktop max 400px, 100% height, mobile responsive */
.app-container {
    width: 100%;
    max-width: 400px;
    min-height: 100vh;
    height: 100%;
    background-color: var(--bg-gray);
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0 auto;
}

/* Tampilan Otomatis Fullscreen Pada Layar Mobile */
@media screen and (max-width: 480px) {
    html, body {
        background-color: var(--bg-gray);
    }

    .app-container {
        max-width: 100% !important;
        width: 100vw !important;
        min-height: 100vh !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}

/* ----------------------------------------------------
   HEADER & SEARCH BAR
---------------------------------------------------- */
.app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    padding: 8px 10px 10px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar {
    flex: 1;
    height: 34px;
    background-color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-icon {
    width: 15px;
    height: 15px;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: var(--primary-orange);
    font-family: inherit;
    font-weight: 400;
    background: transparent;
}

.search-input::placeholder {
    color: var(--primary-orange);
    opacity: 0.9;
}

.camera-btn {
    background: none;
    border: none;
    outline: none;
    color: #888888;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}

.camera-btn svg {
    width: 20px;
    height: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.badge {
    position: absolute;
    top: 0;
    right: -2px;
    background-color: #ffffff;
    color: var(--primary-orange);
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 10px;
    border: 1px solid var(--primary-orange);
    line-height: 1.1;
    min-width: 15px;
    text-align: center;
}

/* ----------------------------------------------------
   MAIN SCROLLABLE BODY
---------------------------------------------------- */
.main-content {
    flex: 1;
    padding-bottom: 60px; /* Space for bottom navbar */
    overflow-y: auto;
}

/* ----------------------------------------------------
   HERO BANNER SLIDER
---------------------------------------------------- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 180px;
    padding: 0;
    overflow: hidden;
    background-color: #f5f5f5;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.banner-slide.active {
    display: block;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-badge-top {
    position: absolute;
    top: -6px;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.banner-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.brand-tag {
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
}

.spay-icon {
    font-size: 14px;
}

.banner-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 2px;
}

.cashback-badge {
    margin-top: 4px;
    background-color: #ffd000;
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cashback-badge .amount {
    font-size: 15px;
    color: var(--primary-orange);
}

.banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 2;
}

.promo-tag {
    background-color: #ffea00;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 2px;
}

.product-showcase {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: 28px;
}

.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.banner-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background: #ffffff;
    width: 12px;
    border-radius: 10px;
}

/* ----------------------------------------------------
   WALLET & COINS FLOATING CARD
---------------------------------------------------- */
.wallet-bar {
    margin: -16px 10px 10px 10px;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.wallet-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qr-item {
    flex: 0 0 auto;
    padding: 0 4px;
}

.wallet-divider {
    width: 1px;
    height: 24px;
    background-color: #e8e8e8;
}

.wallet-icon-box {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.qr-box svg {
    width: 20px;
    height: 20px;
    color: #666666;
}

.spay {
    background-color: #ee4d2d;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.coin {
    background-color: #ffb800;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.transfer svg {
    width: 18px;
    height: 18px;
    color: var(--primary-orange);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.wallet-info .val {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
}

.wallet-info .sub {
    font-size: 9.5px;
    color: #777777;
}

.wallet-info .sub.highlight {
    color: var(--primary-orange);
}

/* ----------------------------------------------------
   MENU GRID SECTION (10 ITEMS)
---------------------------------------------------- */
.menu-grid {
    background-color: #ffffff;
    padding: 12px 6px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 12px;
    column-gap: 4px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
}

.menu-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    position: relative;
    background-color: #f8f8f8;
    border: 1px solid #f0f0f0;
}

.menu-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.menu-icon-wrapper.yellow { color: #f5a623; border-color: #fceecb; }
.menu-icon-wrapper.cyan { color: #00bcd4; border-color: #cbeff4; }
.menu-icon-wrapper.red { color: #ee4d2d; border-color: #fcdbd4; }
.menu-icon-wrapper.orange { color: #ff6d00; border-color: #fce3d0; }
.menu-icon-wrapper.green { color: #00bfa5; border-color: #ccf2ed; }
.menu-icon-wrapper.blue { color: #2979ff; border-color: #d4e4ff; }
.menu-icon-wrapper.orange-dark { color: #ee4d2d; border-color: #fcdbd4; }
.menu-icon-wrapper.navy { color: #3f51b5; border-color: #d8ddf5; }
.menu-icon-wrapper.orange-clock { color: #ee4d2d; border-color: #fcdbd4; }

.menu-tag {
    position: absolute;
    top: 2px;
    font-size: 8px;
    font-weight: 900;
    color: #ee4d2d;
}

.menu-badge-10 {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ee4d2d;
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 4px;
}

.grid-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 8px;
}

.grid-sq {
    background-color: var(--primary-orange);
    border-radius: 2px;
    width: 9px;
    height: 9px;
}

.menu-label {
    font-size: 9.5px;
    color: #333333;
    line-height: 1.2;
    padding: 0 2px;
    font-weight: 500;
}

/* ----------------------------------------------------
   PROMO CARDS SCROLL (3 CARDS)
---------------------------------------------------- */
.promo-cards-container {
    margin-top: 10px;
    padding: 0 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.promo-cards-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.promo-card {
    flex: 0 0 115px;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 3px 4px;
    font-size: 8.5px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
}

.blue-badge {
    background-color: #1877f2;
}

.dark-blue {
    background-color: #0b2f6b;
}

.card-body {
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: #fff;
}

.card-imgs {
    display: flex;
    gap: 4px;
    font-size: 20px;
}

.card-price-pill {
    margin-top: 4px;
    border: 1.5px solid var(--primary-orange);
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 800;
    padding: 1px 8px;
    border-radius: 12px;
}

.center-text {
    text-align: center;
}

.big-promo-title {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
}

.sub-promo-title {
    font-size: 7.5px;
    font-weight: 700;
    color: #0b2f6b;
    margin-top: 2px;
}

.highlight-price {
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 900;
    margin-top: 2px;
}

.mantul-badge {
    background-color: #0b2f6b;
    color: #ffffff;
    font-size: 7.5px;
    padding: 2px 4px;
    border-radius: 2px;
}

.free-ongkir-pill {
    margin-top: 4px;
    background-color: #e0f2fe;
    color: #0284c7;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
}

/* ----------------------------------------------------
   FLASH SALE SECTION
---------------------------------------------------- */
.flash-sale-section {
    margin-top: 10px;
    background-color: #ffffff;
    padding: 10px 0;
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 8px 10px;
}

.flash-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.f-bolt {
    color: var(--primary-orange);
    font-weight: 900;
    font-style: italic;
    font-size: 14px;
    letter-spacing: -0.5px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 2px;
}

.time-box {
    background-color: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 2px;
}

.time-colon {
    font-size: 10px;
    font-weight: 800;
    color: #000000;
}

.see-all {
    color: #888888;
    font-size: 11px;
    text-decoration: none;
    font-weight: 500;
}

.product-scroll {
    display: flex;
    gap: 8px;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-img-wrapper {
    position: relative;
    width: 95px;
    height: 95px;
    background-color: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 1px solid #eeeeee;
}

.discount-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ffe800;
    color: var(--primary-orange);
    font-size: 9px;
    font-weight: 800;
    padding: 1px 3px;
    border-bottom-left-radius: 4px;
}

.product-price {
    color: var(--primary-orange);
    font-size: 13px;
    font-weight: 800;
    margin: 4px 0 2px 0;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #ffd5cc;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: var(--primary-orange);
    border-radius: 10px;
}

.progress-text {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 7.5px;
    font-weight: 800;
}

/* ----------------------------------------------------
   BOTTOM NAVIGATION BAR
---------------------------------------------------- */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666666;
    flex: 1;
}

.nav-item.active {
    color: var(--primary-orange);
}

.nav-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

.nav-badge {
    position: absolute;
    top: -3px;
    right: -6px;
    background-color: var(--primary-orange);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    line-height: 1;
}

.video-icon {
    position: relative;
}

.play-badge {
    position: absolute;
    top: 2px;
    left: 4px;
    background: var(--primary-orange);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-label {
    font-size: 9.5px;
    margin-top: 2px;
    font-weight: 500;
}

/* ----------------------------------------------------
   RESPONSIVE MODIFICATIONS
---------------------------------------------------- */
@media (max-width: 400px) {
    .app-container {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        box-shadow: none;
    }
}
