/* =========================================================
   GLOBAL STYLES & RESET
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f5f7;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container utama berukuran ala mobile app */
.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* Ruang untuk bottom navigation */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   SEARCH HEADER
========================================================= */
.home-header {
    background-color: #ee4d2d; /* Warna khas e-commerce modern / Shopee-like */
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-box {
    display: flex;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    font-size: 16px;
}

/* =========================================================
   BANNER SLIDER
========================================================= */
.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 12px 16px;
    scrollbar-width: none; /* Firefox */
}

.banner-slider::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.banner-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
    background-color: #e0e0e0;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   QUICK MENU
========================================================= */
.quick-menu {
    display: flex;
    justify-content: space-around;
    padding: 12px 8px;
    background-color: #fff;
    border-bottom: 6px solid #f4f5f7;
}

.quick-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #555;
    gap: 4px;
}

.quick-menu a span:first-child {
    font-size: 20px;
}

/* =========================================================
   CATEGORIES SECTION
========================================================= */
.categories-section {
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 6px solid #f4f5f7;
}

.categories-section h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px;
}

.category-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.category-card span {
    font-size: 11px;
    color: #333;
    line-height: 1.2;
}

/* =========================================================
   FLASH SALE / FEATURED PRODUCTS
========================================================= */
.flash-sale {
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 6px solid #f4f5f7;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 15px;
    font-weight: 700;
    color: #ee4d2d;
}

.section-title a {
    font-size: 12px;
    color: #888;
}

.horizontal-products {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.horizontal-products::-webkit-scrollbar {
    display: none;
}

.flash-card {
    flex: 0 0 110px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flash-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.flash-card h4 {
    font-size: 11px;
    font-weight: 400;
    padding: 6px;
    height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.flash-card .price {
    font-size: 12px;
    font-weight: 700;
    color: #ee4d2d;
    padding: 0 6px 8px 6px;
}

/* =========================================================
   RECOMMENDED PRODUCTS (PRODUCT GRID)
========================================================= */
.recommend-section {
    padding: 12px 16px;
    background-color: #fff;
}

.recommend-section h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.product-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.product-info h3 {
    font-size: 12px;
    font-weight: 400;
    color: #333;
    height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-info .category {
    font-size: 10px;
    color: #888;
}

.product-info .price {
    font-size: 13px;
    font-weight: 700;
    color: #ee4d2d;
    margin-top: auto;
}

.product-info .sold {
    font-size: 10px;
    color: #666;
}