:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #d8f3dc;
    --secondary: #26aa99;
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --text-main: #212121;
    --text-muted: #757575;
    --border-color: #f2f2f2;
    --shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
    --shopee-orange: #2d6a4f; /* Replaced with primary green */
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #e8e8e8;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background: #f7f7f7;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: #1a1a1a;
}
p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
}

.nav-item {
    text-decoration: none;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 25%;
    cursor: pointer;
}

.nav-item i {
    font-size: 1.3rem;
    position: relative;
}
.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

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

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--shopee-orange);
    color: white;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1.5px solid white;
    font-weight: 700;
}

.fixed-bottom-action {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    z-index: 1001;
}

/* Sticky Header */
.sticky-top-container {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #f2f2f2;
}

.top-header {
    background: #ffffff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar {
    flex: 1;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar i {
    color: #888;
    font-size: 0.9rem;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.85rem;
    color: #333;
}

/* Banner Slider - Shopee Style */
.slider-container {
    width: 100%;
    padding: 10px 0;
    background: #fff;
}

.banner-slider {
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-item {
    min-width: 100%;
    padding: 0 10px;
    scroll-snap-align: start;
}

.banner-img-box {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

/* Categories - Like Shopee */
.category-container {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 8px;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 5px;
    gap: 15px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    gap: 8px;
}

.cat-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--shopee-orange);
    border: 1px solid #f0f0f0;
}

.cat-name {
    font-size: 0.75rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

/* Flash Sale Section */
.flash-sale-section {
    background: #fff;
    margin-bottom: 8px;
    padding-bottom: 10px;
}

.section-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--shopee-orange);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Product Grid - Like Shopee */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
}

.product-card {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s;
}

.product-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.product-info {
    padding: 8px;
}

.product-name {
    font-size: 0.8rem;
    color: #333;
    height: 34px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.product-price {
    color: var(--shopee-orange);
    font-weight: 500;
    font-size: 1rem;
}

.product-stats {
    display: flex;
    justify-content: flex-end;
    font-size: 0.65rem;
    color: #888;
    margin-top: 4px;
}

/* Buttons */
.btn-primary {
    background: var(--shopee-orange);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 2px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Sheet Overlay */
.sheet-overlay {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    pointer-events: auto;
}

.sheet-overlay.active {
    transform: translateX(-50%) translateY(0);
}

.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Utility Classes */
.p-10 {
    padding: 10px;
}
.p-15 {
    padding: 15px;
}
.p-20 {
    padding: 20px;
}
.mb-10 {
    margin-bottom: 10px;
}
.mb-15 {
    margin-bottom: 15px;
}
.bg-white {
    background: white;
}
.rounded-12 {
    border-radius: 12px;
}
.shadow-sm {
    box-shadow: var(--shadow);
}
.text-muted {
    color: var(--text-muted);
}

.card-box {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

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

.flex-align-center {
    display: flex;
    align-items: center;
}

.text-primary {
    color: var(--shopee-orange);
}
.font-bold {
    font-weight: 700;
}
.font-600 {
    font-weight: 600;
}
.text-small {
    font-size: 0.85rem;
}
.text-xs {
    font-size: 0.75rem;
}

.section-title-premium {
    font-size: 1rem;
    color: var(--shopee-orange);
    border-bottom: 2px solid var(--shopee-orange);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.fixed-bottom-action {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    z-index: 1001;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.tab-item.active {
    color: var(--shopee-orange);
    border-bottom-color: var(--shopee-orange);
    font-weight: 600;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

/* Time Slot Picker */
.time-slot-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.time-slot-item:hover:not(.disabled):not(.expired) {
    border-color: var(--shopee-orange);
    background: #fff8f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 77, 45, 0.15);
}

.time-slot-item.selected {
    border-color: var(--shopee-orange);
    background: var(--primary-light);
}

.time-slot-item.expired,
.time-slot-item.disabled {
    background: #f5f5f5;
    border-color: #d0d0d0;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shopee-orange);
    font-size: 1.1rem;
}

.time-slot-item.expired .time-slot-icon,
.time-slot-item.disabled .time-slot-icon {
    background: #e0e0e0;
    color: #999;
}

.time-slot-info {
    flex: 1;
}

.time-slot-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 2px;
}

.time-slot-item.expired .time-slot-name,
.time-slot-item.disabled .time-slot-name {
    color: #999;
}

.time-slot-time {
    font-size: 0.75rem;
    color: #666;
}

.time-slot-item.expired .time-slot-time::after {
    content: ' (Expired)';
    color: #ef233c;
    font-weight: 600;
}

.time-slot-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.time-slot-badge i {
    font-size: 0.7rem;
    color: white;
}

.time-slot-item.selected .time-slot-badge {
    background: var(--shopee-orange);
    opacity: 1;
}
