/* ============================================================
   MOBILE HOME PAGE STYLES
   ============================================================ */

.m-home-page {
    padding-top: 60px; /* Space for MobileHeader */
    padding-bottom: 72px; /* Space for MobileBottomNav */
    background: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
}

/* GREETING SECTION */
.m-greeting-section {
    padding: 16px 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.m-greeting-line1 {
    font-size: 22px;
    font-weight: 400;
    color: #111827;
}
.m-greeting-line1 strong {
    font-weight: 800;
}
.m-greeting-line2 {
    font-size: 22px;
    font-weight: 400;
    color: #111827;
    margin-top: 2px;
}
.m-greeting-photo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid #EDE9FE;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.m-greeting-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.m-greeting-photo svg {
    width: 24px;
    height: 24px;
    color: #9CA3AF;
}

/* SEARCH BAR */
.m-home-search-bar {
    margin: 14px 16px;
    height: 48px;
    border: 1.5px solid #E5E7EB;
    border-radius: 25px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.m-home-search-bar .search-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.m-home-search-bar input {
    flex: 1;
    font-size: 14px;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
    min-width: 0;
}
.m-home-search-bar input::placeholder {
    color: #9CA3AF;
}
.m-home-search-bar .search-actions {
    display: flex;
    gap: 12px;
}
.m-home-search-bar .search-actions svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* QUICK CATEGORIES */
.m-quick-categories {
    padding: 0 16px 4px 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.m-quick-categories::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.m-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 68px;
    cursor: pointer;
}
.m-cat-chip .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #F5F3FF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #EDE9FE;
}
.m-cat-chip .icon-box svg {
    width: 24px;
    height: 24px;
}
.m-cat-chip span {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* PROMO BANNER CAROUSEL */
.m-promo-carousel {
    margin: 16px;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #1a1a2e; /* Fallback */
}
.m-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}
.m-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    padding: 20px;
    align-items: center;
    background: #1a1a2e;
}
.m-slide-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}
.m-slide-content .discount {
    font-size: 26px;
    font-weight: 900;
    color: white;
    line-height: 1.1;
}
.m-slide-content .desc {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-top: 4px;
}
.m-slide-content .code {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}
.m-slide-content .shop-btn {
    background: var(--m-primary-purple);
    color: white;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}
.m-carousel-slide .slide-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 160px;
    object-fit: contain;
    z-index: 1;
}
.m-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}
.m-carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: width 0.3s ease, background 0.3s ease;
}
.m-carousel-dots .dot.active {
    background: white;
    width: 18px;
    border-radius: 10px;
}

/* HORIZONTAL SCROLL SECTIONS */
.m-section {
    padding: 20px 0 0;
}
.m-section-header {
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.m-section-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}
.m-section-header a {
    font-size: 13px;
    color: var(--m-primary-purple);
    text-decoration: none;
    font-weight: 600;
}
.m-countdown {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}
.m-countdown span {
    color: var(--m-primary-purple);
    font-weight: 700;
}
.m-horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 16px;
}
.m-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* POCKET-FRIENDLY CARD */
.m-product-card {
    width: 155px;
    flex-shrink: 0;
    border-radius: 14px;
    background: white;
    border: 1.5px solid #F3F4F6;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
}
.m-product-card .img-wrapper {
    width: 100%;
    height: 100px;
    background: #F9FAFB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.m-product-card .img-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.m-product-card .name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-top: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.m-product-card .price-row {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.m-product-card .old-price {
    font-size: 12px;
    color: #9CA3AF;
    text-decoration: line-through;
}
.m-product-card .new-price {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.m-product-card .savings-badge {
    background: var(--m-primary-purple);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    width: fit-content;
    margin-top: 6px;
}

/* FLASH DEALS CARD */
.m-flash-card {
    width: 220px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid #F3F4F6;
    background: white;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.m-flash-card img {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: contain;
    background: #F9FAFB;
}
.m-flash-card .flash-info {
    flex: 1;
    min-width: 0;
}
.m-flash-card .name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-flash-card .price-row {
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.m-flash-card .new-price {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.m-flash-card .old-price {
    font-size: 11px;
    color: #9CA3AF;
    text-decoration: line-through;
}
.m-flash-card .stock-badge {
    background: var(--m-primary-purple);
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    width: fit-content;
    margin-top: 4px;
}
