/* ==========================================================================
   Mobile Home UI — app-like homepage (reference design)
   ========================================================================== */

/* White page background on all mobile viewports (no body class required) */
@media (max-width: 991.98px) {
    html,
    body,
    body.has-bottom-nav {
        background-color: #ffffff !important;
    }

    body section,
    body .shop,
    body .homepage-sections,
    body .homepage-section-slot,
    body .trending-products-section,
    body .our-products-section,
    body .best-sellers-section,
    body .product-block-advanced,
    body .flash-sales,
    body .featured-categories-section,
    body .py-80,
    body .py-120,
    body .bg-color-two,
    body .bg-color-three,
    body .bg-gray-50,
    body .bg-neutral-50,
    body .bg-light {
        background-color: #ffffff !important;
    }
}

body.mobile-home-ui {
    background: #ffffff;
}

body.mobile-home-ui .homepage-sections,
body.mobile-home-ui .homepage-section-slot,
body.mobile-home-ui section,
body.mobile-home-ui .trending-products-section,
body.mobile-home-ui .our-products-section,
body.mobile-home-ui .best-sellers-section,
body.mobile-home-ui .product-block-advanced,
body.mobile-home-ui .flash-sales,
body.mobile-home-ui .featured-categories-section,
body.mobile-home-ui .feature-three,
body.mobile-home-ui .home-shortcuts,
body.mobile-home-ui .shop,
body.mobile-home-ui .cart-section,
body.mobile-home-ui .wishlist-section {
    background-color: #ffffff !important;
}

body.mobile-home-ui .bg-color-three,
body.mobile-home-ui .bg-gray-50,
body.mobile-home-ui .bg-neutral-50,
body.mobile-home-ui .bg-light {
    background-color: #ffffff !important;
}

body.mobile-home-ui .header-top,
body.mobile-home-ui .header-middle {
    display: none !important;
}

@media (max-width: 991.98px) {
    .header-top,
    .header-middle {
        display: none !important;
    }
}

body.mobile-home-ui .homepage-sections {
    --hp-section-spacing: 28px;
}

body.mobile-home-ui .homepage-sections .homepage-section-slot {
    padding-block: calc(var(--hp-section-spacing) / 2);
}

body.mobile-home-ui .homepage-sections .homepage-section-slot > .py-120,
body.mobile-home-ui .homepage-sections .homepage-section-slot > section.py-120,
body.mobile-home-ui .homepage-sections .homepage-section-slot > div.py-120 {
    padding-block: 0 !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.mobile-home-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 6px 12px;
    min-height: 52px;
    max-height: 56px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-home-header__inner {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 6px;
}

.mobile-home-header__side {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mobile-home-header__side--start {
    justify-content: flex-start;
    width: 48px;
}

.mobile-home-header__side--end {
    justify-content: flex-end;
    width: 52px;
}

.mobile-home-header__center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    max-width: 100px;
    max-height: 36px;
    margin-inline: auto;
    overflow: hidden;
}

.mobile-home-header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
    line-height: 0;
}

.mobile-home-header__logo img {
    display: block;
    max-width: 100px !important;
    max-height: 24px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.mobile-home-header__icon-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #f9fafb;
    color: #1f2937 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.mobile-home-header__icon-btn i {
    display: block;
    line-height: 1;
    color: inherit !important;
}

.mobile-home-header__lang {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f9fafb;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

/* --------------------------------------------------------------------------
   Hero slider card
   -------------------------------------------------------------------------- */
.mobile-hero {
    padding: 0 16px 6px;
}

.mobile-hero__slider {
    position: relative;
}

.mobile-hero__slider .slick-list {
    border-radius: 25px;
    overflow: hidden;
}

.mobile-hero__slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

.mobile-hero__slider .slick-slide {
    height: auto;
}

.mobile-hero__slider .slick-slide > div {
    height: 100%;
}

.mobile-hero__card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.mobile-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mobile-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.72) 38%,
        rgba(255, 255, 255, 0.08) 68%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

[dir="rtl"] .mobile-hero__shade {
    background: linear-gradient(
        270deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.72) 38%,
        rgba(255, 255, 255, 0.08) 68%,
        rgba(255, 255, 255, 0) 100%
    );
}

.mobile-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    max-width: 62%;
}

[dir="rtl"] .mobile-hero__content {
    align-items: flex-end;
    text-align: right;
}

.mobile-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
}

.mobile-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.mobile-hero__subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.mobile-hero__advanced {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #111827;
}

.mobile-hero__advanced h1,
.mobile-hero__advanced h2,
.mobile-hero__advanced h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: inherit;
}

.mobile-hero__advanced p {
    margin: 0 0 0.5rem;
}

.mobile-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-hero__slider .slick-dots {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.mobile-hero__slider .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.mobile-hero__slider .slick-dots li button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d1d5db;
    font-size: 0;
    line-height: 0;
}

.mobile-hero__slider .slick-dots li button::before {
    display: none;
}

.mobile-hero__slider .slick-dots li.slick-active button {
    width: 18px;
    border-radius: 999px;
    background: #111827;
}

/* --------------------------------------------------------------------------
   Category chips
   -------------------------------------------------------------------------- */
.mobile-category-chips {
    padding: 0 16px 16px;
}

.mobile-category-chips__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-category-chips__scroll::-webkit-scrollbar {
    display: none;
}

.mobile-category-chips__chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 1px solid #ececec;
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-category-chips__chip.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Product sections
   -------------------------------------------------------------------------- */
body.mobile-home-ui .trending-products-section,
body.mobile-home-ui .our-products-section,
body.mobile-home-ui .best-sellers-section {
    padding-block: 0 !important;
}

body.mobile-home-ui .section-heading h5,
body.mobile-home-ui .trending-products-section .section-heading h5 {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    color: #111827;
}

body.mobile-home-ui .section-heading {
    margin-bottom: 14px !important;
}

body.mobile-home-ui .container.container-lg {
    padding-inline: 16px;
    max-width: 100%;
}

body.mobile-home-ui .trending-products-slider .slick-slide {
    padding-inline: 6px;
}

/* Mobile product cards — hide desktop card variants on small screens */
@media (max-width: 991.98px) {
    .product-card.d-none.d-lg-block,
    .product-card-tech.d-none.d-lg-block {
        display: none !important;
    }

    .product-card-mobile {
        display: flex !important;
    }
}

body.mobile-home-ui .product-card.d-none.d-lg-block,
body.mobile-home-ui .product-card-tech.d-none.d-lg-block {
    display: none !important;
}

body.mobile-home-ui .product-card-mobile {
    display: flex !important;
}

/* --------------------------------------------------------------------------
   Footer — lighter on mobile home
   -------------------------------------------------------------------------- */
body.mobile-home-ui .footer {
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Floating pill bottom nav
   -------------------------------------------------------------------------- */
body.mobile-home-ui .bottom-nav {
    left: 16px;
    right: 16px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0));
    width: auto;
    border: 0 !important;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    padding-bottom: 0;
}

body.mobile-home-ui .bottom-nav .d-flex {
    padding-block: 10px !important;
}

body.mobile-home-ui .bottom-nav__item span.text-xs {
    display: none;
}

body.mobile-home-ui .bottom-nav__item {
    border-radius: 999px;
    padding: 10px 14px;
}

body.mobile-home-ui .bottom-nav__item--active {
    background: #111827;
    color: #fff !important;
}

body.mobile-home-ui .bottom-nav__item--active i {
    color: #fff !important;
}

body.mobile-home-ui.has-bottom-nav {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0));
}

/* --------------------------------------------------------------------------
   Inner pages (shop, cart, account, product, etc.)
   -------------------------------------------------------------------------- */
body.mobile-home-ui .shop,
body.mobile-home-ui .account,
body.mobile-home-ui .cart-section,
body.mobile-home-ui .checkout-section,
body.mobile-home-ui .wishlist-section,
body.mobile-home-ui .compare-section,
body.mobile-home-ui .blog-section,
body.mobile-home-ui .contact-section,
body.mobile-home-ui .product-details,
body.mobile-home-ui section.py-80 {
    padding-block: 20px !important;
}

body.mobile-home-ui .shop-sidebar__box,
body.mobile-home-ui .border.border-gray-100.rounded-8,
body.mobile-home-ui .border.border-gray-100.rounded-16,
body.mobile-home-ui .alert {
    border-radius: 16px !important;
}

body.mobile-home-ui .product-card-mobile {
    border-radius: 20px !important;
}

body.mobile-home-ui .mobile-menu .nav-menu--mobile .nav-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.mobile-home-ui .mobile-menu .nav-menu--mobile .nav-menu__link i {
    font-size: 1.25rem;
    width: 24px;
    flex-shrink: 0;
}

body.mobile-home-ui .mobile-menu__link--whatsapp i {
    color: #25d366;
}

body.mobile-home-ui .bottom-nav__item .ph-whatsapp-logo {
    color: #25d366;
}

body.mobile-home-ui .bottom-nav__item--active .ph-whatsapp-logo {
    color: #fff !important;
}

@media (min-width: 992px) {
    .mobile-home-header,
    .mobile-hero,
    .mobile-category-chips {
        display: none !important;
    }
}

/* ==========================================================================
   Mobile Shop Page Layout & Product Cards (2-Column Premium Grid)
   ========================================================================== */
@media (max-width: 991.98px) {
    /* Force 2-Column Grid on Mobile for Shop and Search */
    .list-grid-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
        padding-inline: 4px !important;
    }

    /* Override list-view layout on mobile to maintain 2 columns */
    .list-grid-wrapper.list-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .list-grid-wrapper.list-view .product-card-wrap {
        height: 100% !important;
    }

    /* Premium Product Card on Mobile */
    .product-card-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        height: 100% !important;
        padding: 12px !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        position: relative !important;
    }

    /* Fixed Image Container with background */
    .product-card-mobile__image {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 136px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #f8fafc !important;
        margin-bottom: 10px !important;
    }

    .product-card-mobile__image-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
    }

    .product-card-mobile__img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        transition: transform 0.3s ease !important;
    }

    /* Title visibility & formatting */
    .product-card-mobile__title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.8125rem !important; /* 13px */
        font-weight: 600 !important;
        line-height: 1.4 !important;
        color: #1e293b !important;
        margin: 0 0 6px !important;
        height: 36px !important; /* Fixed height for name alignment */
    }

    .product-card-mobile__title .link {
        color: #1e293b !important;
        text-decoration: none !important;
    }

    /* Price styling and bottom alignment */
    .product-card-mobile__price {
        display: flex !important;
        align-items: baseline !important;
        gap: 4px !important;
        margin-top: auto !important; /* Pushes to bottom */
        padding-top: 4px !important;
    }

    .product-card-mobile__price-amount {
        font-size: 0.9375rem !important; /* 15px */
        font-weight: 700 !important;
        color: #043729 !important;
    }

    .product-card-mobile__price-currency {
        font-size: 0.75rem !important; /* 12px */
        font-weight: 600 !important;
        color: #043729 !important;
    }

    /* Colors list wrapper on card */
    .product-card-mobile__colors-row {
        min-height: 16px !important;
        margin-bottom: 6px !important;
        display: flex !important;
        align-items: center !important;
    }

    .product-card-mobile .product-card__colors {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .product-card-mobile .product-card__color-dot {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        border: 1px solid #ffffff !important;
        box-shadow: 0 0 0 1px #cbd5e1 !important;
    }

    /* Wishlist button */
    .product-card-mobile__wishlist {
        position: absolute !important;
        top: 8px !important;
        inset-inline-end: 8px !important;
        z-index: 3 !important;
    }

    .product-card-mobile__wishlist-btn {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid #f1f5f9 !important;
        color: #ef4444 !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .product-card-mobile__wishlist-btn i {
        font-size: 0.9375rem !important;
        color: #ef4444 !important;
    }
}

