/* Mobile store home — overrides conflicting custom.css */

body.store-home {
    background: #f5f5f5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    margin: 0;
}

body.store-home #container,
body.store-home ._2dxSCm,
body.store-home ._3CzzrP,
body.store-home ._38U37R {
    width: 100% !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #fff;
}

/* Fix: custom.css makes ._1FWdmb a horizontal flex row */
body.store-home ._1FWdmb {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    background: #fff !important;
    box-sizing: border-box;
}

body.store-home .header-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 48px;
    padding: 8px 12px;
    box-sizing: border-box;
    gap: 8px;
}

body.store-home .header-left,
body.store-home .header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px;
}

body.store-home .header-logo img {
    height: 22px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

body.store-home .icon-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    width: 28px;
    height: 28px;
}

body.store-home .icon-btn.wishlist { color: #e41b17; }
body.store-home .icon-btn.cart { color: #0d9488; }

body.store-home .header__cart-count--floating {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    background: #0d9488 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
}

body.store-home .search-wrap {
    display: block !important;
    width: 100% !important;
    padding: 0 12px 10px !important;
    box-sizing: border-box;
    background: #fff;
}

body.store-home .search-box {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid #cecede;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    box-sizing: border-box;
}

body.store-home .search-box svg { flex: 0 0 auto; }

body.store-home .search-box input {
    border: 0 !important;
    outline: 0 !important;
    width: 100% !important;
    font-size: 13px !important;
    color: #353543;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body.store-home .search-box input::placeholder { color: #8b8ba3; }

body.store-home .location-bar {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    box-sizing: border-box;
    background: #e8f1ff !important;
    color: #2874f0 !important;
    font-size: 12px !important;
    font-weight: 600;
    padding: 9px 12px !important;
    margin: 0 !important;
}

body.store-home .location-bar svg { flex: 0 0 auto; }
body.store-home .location-bar span { line-height: 1.3; }

body.store-home .top-picks-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2px;
    overflow-x: auto !important;
    overflow-y: hidden;
    width: 100%;
    padding: 12px 8px 10px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

body.store-home .top-picks-scroll::-webkit-scrollbar { display: none; }

body.store-home .top-pick-item {
    flex: 0 0 72px !important;
    width: 72px !important;
    text-align: center;
    text-decoration: none;
    color: #666;
}

body.store-home .top-pick-item img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
    margin: 0 auto 6px;
    background: #f6f6f6;
}

body.store-home .top-pick-item p {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    height: 28px;
    overflow: hidden;
    color: #666;
    white-space: normal;
}

body.store-home .pfy-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #353543 !important;
    margin: 0 !important;
    padding: 14px 12px 10px !important;
    background: #fff;
}

body.store-home .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100%;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
}

body.store-home .filter-bar button {
    border: 0;
    border-right: 1px solid #eaeaea;
    background: #fff;
    padding: 12px 2px;
    font-size: 12px;
    color: #353543;
    font-weight: 600;
    white-space: nowrap;
}

body.store-home .filter-bar button:last-child { border-right: 0; }

body.store-home .products {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.store-home .product-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    flex-flow: unset !important;
}

body.store-home .product-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-right: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
    background: #fff !important;
    text-decoration: none !important;
    color: inherit;
    display: block !important;
    flex-flow: unset !important;
    box-shadow: none !important;
    position: relative;
}

body.store-home .product-card:nth-child(2n) { border-right: 0 !important; }

body.store-home .product-card .product-img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #fafafa !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    text-align: left !important;
}

body.store-home .product-card .product-img > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

body.store-home .wish-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

body.store-home .product-card .product-details {
    padding: 8px 10px 12px !important;
    display: block !important;
}

body.store-home .product-card .product-name {
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #666 !important;
    height: 34px !important;
    max-height: 34px !important;
    overflow: hidden !important;
    margin: 0 0 6px !important;
    font-weight: 500 !important;
    white-space: normal !important;
}

body.store-home .product-card .product-price {
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 2px;
}

body.store-home .product-card .sell-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

body.store-home .product-card .mrp-price {
    font-size: 12px !important;
    color: #999 !important;
    text-decoration: line-through !important;
}

body.store-home .product-card .off-percentage {
    font-size: 12px !important;
    color: #038d63 !important;
    font-weight: 600;
}

body.store-home .special-offer {
    color: #038d63;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0 6px;
}

body.store-home .rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.store-home .rating-pill {
    background: #038d63;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 5px;
}

body.store-home .rating-count {
    color: #999;
    font-size: 12px;
}

body.store-home .vv-pagination {
    background: #fff;
    padding: 12px 0 20px;
    max-width: 480px;
    margin: 0 auto;
}

body.store-home .product_loader {
    margin: 40px auto !important;
}

body.store-home .site-footer {
    max-width: 480px;
    margin: 0 auto;
}

body.store-home .sc-bBXxYQ {
    display: none !important;
}
