/**
 * Tech Glass Commerce - Mobile Front Page Native App Stylesheet
 * Location: /assets/css/sections-mobile/mobile-frontpage.css
 */

@media (max-width: 991px) {

    .tech-mobile-app-frontpage {
        padding-bottom: 90px !important;
        background: #FAF8F6 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 1. INSTAGRAM-STYLE CATEGORY BUBBLES */
    .mobile-story-category-rail {
        padding: 5% 0 10px 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(211, 133, 170, 0.15) !important;
        width: 100% !important;
    }
    .story-scroll-container {
        display: flex !important;
        gap: 14px !important;
        overflow-x: auto !important;
        padding: 0 14px !important;
        scrollbar-width: none !important;
    }
    .story-scroll-container::-webkit-scrollbar { display: none !important; }

    .story-bubble-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-decoration: none !important;
        width: 68px !important;
        flex-shrink: 0 !important;
    }
    .bubble-ring-gradient {
        width: 62px !important;
        height: 62px !important;
        border-radius: 50% !important;
        padding: 2.5px !important;
        background: linear-gradient(135deg, #ebc1c0, #d385aa) !important;
        box-shadow: 0 3px 10px rgba(255, 79, 0, 0.2) !important;
    }
    .bubble-ring-gradient img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid #ffffff !important;
    }
    .bubble-label {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #333333 !important;
        margin-top: 5px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
    }

    /* 2. MOBILE INLINE GLASS SEARCH BAR */
    .mobile-search-pill-section {
        padding: 12px 14px !important;
    }
    .mobile-search-form {
        position: relative !important;
        width: 100% !important;
    }
    .mobile-search-pill-input {
        width: 100% !important;
        height: 46px !important;
        border-radius: 25px !important;
        border: 1px solid rgba(211, 133, 170, 0.3) !important;
        background: #ffffff !important;
        padding: 0 46px 0 18px !important;
        font-size: 13px !important;
        color: #333333 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
        box-sizing: border-box !important;
    }
    .mobile-search-pill-submit {
        position: absolute !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: #ffffff !important;
        color: #ebc1c0 !important;
        border: none !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 3. HERO SLIDER CARDS */
    .mobile-app-hero-section {
        padding: 6px 14px 16px 14px !important;
    }
    .app-hero-slider-rail {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
    }
    .app-hero-card {
        scroll-snap-align: start !important;
        width: 85% !important;
        flex-shrink: 0 !important;
        height: 180px !important;
        border-radius: 18px !important;
        background-size: cover !important;
        background-position: center !important;
        position: relative !important;
        overflow: hidden !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.06) !important;
    }
    .hero-card-primary { background-image: linear-gradient(135deg, #333333, #1e293b); }
    .hero-card-secondary { background-image: linear-gradient(135deg, #d385aa, #ebc1c0); }
    .hero-card-glass-overlay {
        position: absolute !important;
        inset: 0 !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        background: rgba(0,0,0,0.2) !important;
    }
    .hero-tag-badge {
        background: rgba(255,255,255,0.25) !important;
        backdrop-filter: blur(8px) !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        padding: 3px 10px !important;
        border-radius: 12px !important;
        text-transform: uppercase !important;
        margin-bottom: 8px !important;
    }
    .hero-title {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin: 0 0 14px 0 !important;
        line-height: 1.25 !important;
    }
    .hero-pill-btn {
        background: #ffffff !important;
        color: #333333 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }

    /* 4. FLASH SALE HORIZONTAL RAIL */
    .mobile-flash-sale-section {
        padding: 16px 14px !important;
    }
    .section-title-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 12px !important;
    }
    .title-with-badge {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .flash-bolt { font-size: 18px !important; }
    .section-heading {
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #333333 !important;
        margin: 0 !important;
    }
    .view-all-link {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #ebc1c0 !important;
        text-decoration: none !important;
    }

    .flash-cards-horizontal-rail {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }
    .flash-app-card {
        width: 140px !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
        border: 1px solid rgba(211, 133, 170, 0.2) !important;
        border-radius: 14px !important;
        padding: 10px !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.02) !important;
        box-sizing: border-box !important;
    }
    .card-thumb-link {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 120px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    .card-thumb-link img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .sale-badge {
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        background: #ebc1c0 !important;
        color: #ffffff !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
    }
    .flash-app-card .card-body { padding-top: 8px !important; }
    .flash-app-card .card-name {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        margin: 0 0 4px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .flash-app-card .card-price {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #ebc1c0 !important;
        margin-bottom: 8px !important;
    }
    .flash-quick-add-btn {
        display: block !important;
        width: 100% !important;
        height: 32px !important;
        line-height: 32px !important;
        text-align: center !important;
        background: #573035 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    /* 5. 2-COLUMN MASONRY GRID */
    .mobile-todays-grid-section {
        padding: 16px 14px !important;
    }
    .sub-badge {
        font-size: 11px !important;
        background: rgba(211, 133, 170, 0.15) !important;
        color: #d385aa !important;
        font-weight: 700 !important;
        padding: 3px 8px !important;
        border-radius: 10px !important;
    }
    .mobile-app-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .mobile-product-card {
        background: #ffffff !important;
        border: 1px solid rgba(211, 133, 170, 0.2) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.02) !important;
    }
    .mobile-product-card .card-media img {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
        display: block !important;
    }
    .mobile-product-card .card-details {
        padding: 10px !important;
    }
    .mobile-product-card .product-title a {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        text-decoration: none !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
    }
    .mobile-product-card .product-rating {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #eab308 !important;
        margin: 4px 0 !important;
    }
    .mobile-product-card .review-count { color: #94a3b8 !important; font-weight: 400 !important; }
    .mobile-product-card .price-val {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #ebc1c0 !important;
    }

}