/*
|--------------------------------------------------------------------------
| AGMULA Mobile App UI
|--------------------------------------------------------------------------
| Mobile/tablet-only presentation layer for the public marketplace shell.
| Desktop (901px+) is intentionally untouched.
|--------------------------------------------------------------------------
*/

.mobile-app-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    :root {
        --ag-mobile-header: 64px;
        --ag-mobile-bottom-nav: 68px;
    }

    html {
        scroll-padding-top: calc(var(--ag-mobile-header) + 12px);
    }

    body.public-home-page,
    body.public-marketplace-page {
        padding-bottom: calc(var(--ag-mobile-bottom-nav) + env(safe-area-inset-bottom, 0px));
    }

    /* ------------------------------------------------------------------
       App bar + hamburger drawer
       ------------------------------------------------------------------ */

    body.agmula-theme .site-header.public-fullwidth-header,
    body.public-home-page .site-header.public-fullwidth-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 120 !important;
        min-height: var(--ag-mobile-header) !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(17, 83, 48, .08) !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 8px 24px rgba(12, 58, 34, .08) !important;
        backdrop-filter: blur(18px) !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-row,
    body.public-home-page .site-header.public-fullwidth-header .public-header-row {
        width: 100% !important;
        min-height: var(--ag-mobile-header) !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        background: transparent !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .lux-brand,
    body.public-home-page .site-header.public-fullwidth-header .lux-brand {
        min-width: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 9px !important;
        color: #124e2d !important;
        text-decoration: none !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .lux-brand > img,
    body.public-home-page .site-header.public-fullwidth-header .lux-brand > img {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #f3f8f2 !important;
        box-shadow: none !important;
        object-fit: contain !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .lux-brand .brand-copy,
    body.public-home-page .site-header.public-fullwidth-header .lux-brand .brand-copy {
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .lux-brand .brand-copy strong,
    body.public-home-page .site-header.public-fullwidth-header .lux-brand .brand-copy strong {
        display: block !important;
        color: #11452a !important;
        font-size: .92rem !important;
        line-height: 1.05 !important;
        letter-spacing: .045em !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .lux-brand .brand-copy small,
    body.public-home-page .site-header.public-fullwidth-header .lux-brand .brand-copy small {
        display: block !important;
        max-width: 150px !important;
        margin-top: 2px !important;
        overflow: hidden !important;
        color: #7a8a80 !important;
        font-size: .58rem !important;
        line-height: 1.1 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .mobile-nav-toggle,
    body.public-home-page .site-header.public-fullwidth-header .mobile-nav-toggle {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        border: 1px solid #dce8df !important;
        border-radius: 13px !important;
        background: #f5faf6 !important;
        color: #14532d !important;
        box-shadow: none !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .mobile-nav-toggle-label,
    body.public-home-page .site-header.public-fullwidth-header .mobile-nav-toggle-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .mobile-nav-toggle-icon,
    body.public-home-page .site-header.public-fullwidth-header .mobile-nav-toggle-icon {
        width: 19px !important;
        height: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .mobile-nav-toggle-icon i,
    body.public-home-page .site-header.public-fullwidth-header .mobile-nav-toggle-icon i {
        width: 100% !important;
        height: 2px !important;
        display: block !important;
        border-radius: 999px !important;
        background: currentColor !important;
        transition: transform .18s ease, opacity .18s ease !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon i:nth-child(1),
    body.public-home-page .site-header.public-fullwidth-header .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon i:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon i:nth-child(2),
    body.public-home-page .site-header.public-fullwidth-header .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon i:nth-child(2) {
        opacity: 0 !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon i:nth-child(3),
    body.public-home-page .site-header.public-fullwidth-header .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon i:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-navigation,
    body.public-home-page .site-header.public-fullwidth-header .public-header-navigation {
        position: fixed !important;
        z-index: 130 !important;
        top: calc(var(--ag-mobile-header) + 8px) !important;
        right: 12px !important;
        left: 12px !important;
        max-height: calc(100dvh - var(--ag-mobile-header) - var(--ag-mobile-bottom-nav) - 26px) !important;
        display: none !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
        overflow-y: auto !important;
        border: 1px solid #dde9df !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, .99) !important;
        box-shadow: 0 24px 60px rgba(13, 59, 35, .22) !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-navigation.is-open,
    body.public-home-page .site-header.public-fullwidth-header .public-header-navigation.is-open {
        display: grid !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-menu,
    body.public-home-page .site-header.public-fullwidth-header .public-header-menu {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-menu > a,
    body.public-home-page .site-header.public-fullwidth-header .public-header-menu > a {
        min-height: 46px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 13px !important;
        border-radius: 12px !important;
        background: #f6faf6 !important;
        color: #254b35 !important;
        font-size: .78rem !important;
        font-weight: 800 !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-menu > a.is-active,
    body.public-home-page .site-header.public-fullwidth-header .public-header-menu > a.is-active {
        background: #e9f5eb !important;
        color: #0f5c30 !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-menu > a.is-active::after,
    body.public-home-page .site-header.public-fullwidth-header .public-header-menu > a.is-active::after {
        display: none !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-search,
    body.public-home-page .site-header.public-fullwidth-header .public-header-search {
        width: 100% !important;
        max-width: none !important;
        display: block !important;
        position: relative !important;
        margin: 0 !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-search input,
    body.public-home-page .site-header.public-fullwidth-header .public-header-search input {
        width: 100% !important;
        height: 44px !important;
        padding: 0 44px 0 14px !important;
        border: 1px solid #dce7df !important;
        border-radius: 12px !important;
        background: #fff !important;
        font-size: .78rem !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-actions,
    body.public-home-page .site-header.public-fullwidth-header .public-header-actions {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-cart,
    body.public-home-page .site-header.public-fullwidth-header .public-header-cart {
        width: 46px !important;
        min-width: 46px !important;
        height: 44px !important;
        display: inline-grid !important;
        place-items: center !important;
        padding: 0 !important;
        border: 1px solid #dce7df !important;
        border-radius: 12px !important;
        background: #f6faf6 !important;
        color: #14532d !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-cart-label,
    body.public-home-page .site-header.public-fullwidth-header .public-header-cart-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-auth,
    body.public-home-page .site-header.public-fullwidth-header .public-header-auth,
    body.agmula-theme .site-header.public-fullwidth-header .public-header-dashboard,
    body.public-home-page .site-header.public-fullwidth-header .public-header-dashboard {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #145f36 !important;
        color: #fff !important;
        font-size: .76rem !important;
        font-weight: 850 !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-auth a,
    body.public-home-page .site-header.public-fullwidth-header .public-header-auth a {
        color: #fff !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-signout {
        margin: 0 !important;
    }

    body.agmula-theme .site-header.public-fullwidth-header .public-header-signout .nav-button,
    body.public-home-page .site-header.public-fullwidth-header .public-header-signout .nav-button {
        width: 100% !important;
        min-height: 44px !important;
        border-radius: 12px !important;
    }

    body.agmula-theme:not(.admin-page) .agmula-header-trustbar,
    body.public-home-page .agmula-header-trustbar {
        display: none !important;
    }

    /* ------------------------------------------------------------------
       Home screen: denser, swipeable, app-like
       ------------------------------------------------------------------ */

    body.public-home-page.high-end-home {
        background: #f7faf7 !important;
    }

    body.public-home-page.high-end-home .shell {
        width: min(calc(100% - 24px), var(--ag-content, 1280px)) !important;
    }

    body.public-home-page.high-end-home .lux-hero {
        padding: 12px 0 10px !important;
    }

    body.public-home-page.high-end-home .lux-hero::before {
        display: none !important;
    }

    body.public-home-page.high-end-home .lux-hero-grid {
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        overflow: hidden !important;
        border: 1px solid #e2ebe4 !important;
        border-radius: 22px !important;
        background: #fff !important;
        box-shadow: 0 12px 34px rgba(24, 78, 47, .08) !important;
    }

    body.public-home-page.high-end-home .lux-hero-copy {
        padding: 22px 18px 20px !important;
        background: #fff !important;
    }

    body.public-home-page.high-end-home .lux-hero-copy::after {
        display: none !important;
    }

    body.public-home-page.high-end-home .lux-eyebrow {
        font-size: .64rem !important;
        letter-spacing: .12em !important;
    }

    body.public-home-page.high-end-home .lux-hero-copy h1 {
        max-width: 360px !important;
        margin: 9px 0 12px !important;
        font-size: clamp(2.25rem, 10vw, 3rem) !important;
        line-height: .95 !important;
        letter-spacing: -.055em !important;
    }

    body.public-home-page.high-end-home .lux-hero-copy > p {
        max-width: 520px !important;
        margin: 0 !important;
        font-size: .84rem !important;
        line-height: 1.52 !important;
    }

    body.public-home-page.high-end-home .lux-search {
        width: 100% !important;
        min-height: 48px !important;
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 16px !important;
        padding: 5px 5px 5px 12px !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    body.public-home-page.high-end-home .lux-search > img {
        width: 17px !important;
    }

    body.public-home-page.high-end-home .lux-search input {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        font-size: .76rem !important;
    }

    body.public-home-page.high-end-home .lux-search button {
        grid-column: auto !important;
        width: auto !important;
        min-width: 72px !important;
        min-height: 38px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: .7rem !important;
    }

    body.public-home-page.high-end-home .lux-hero-actions {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px 14px !important;
        margin-top: 13px !important;
    }

    body.public-home-page.high-end-home .lux-hero-actions .button {
        width: auto !important;
        min-height: 40px !important;
        padding-inline: 14px !important;
        border-radius: 11px !important;
        font-size: .7rem !important;
    }

    body.public-home-page.high-end-home .lux-hero-actions .lux-text-link {
        padding: 8px 0 !important;
        font-size: .72rem !important;
    }

    body.public-home-page.high-end-home .lux-trust-row {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        margin-top: 14px !important;
        padding-bottom: 2px !important;
        overflow-x: auto !important;
        color: #66776c !important;
        font-size: .65rem !important;
        scrollbar-width: none !important;
    }

    body.public-home-page.high-end-home .lux-trust-row::-webkit-scrollbar {
        display: none !important;
    }

    body.public-home-page.high-end-home .lux-trust-row span {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    body.public-home-page.high-end-home .lux-trust-row img {
        width: 13px !important;
    }

    body.public-home-page.high-end-home .lux-hero-media,
    body.public-home-page.high-end-home .lux-hero-media > img {
        width: 100% !important;
        height: 220px !important;
        min-height: 0 !important;
    }

    body.public-home-page.high-end-home .lux-hero-media > img {
        object-fit: cover !important;
    }

    body.public-home-page.high-end-home .lux-media-caption {
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        max-width: none !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        font-size: .68rem !important;
    }

    body.public-home-page.high-end-home .lux-strip {
        padding: 10px 0 0 !important;
    }

    body.public-home-page.high-end-home .lux-strip .shell {
        width: 100% !important;
        padding-left: 12px !important;
    }

    body.public-home-page.high-end-home .lux-strip-grid {
        width: 100% !important;
        display: flex !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        padding: 0 12px 4px 0 !important;
        overflow-x: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
    }

    body.public-home-page.high-end-home .lux-strip-grid::-webkit-scrollbar {
        display: none !important;
    }

    body.public-home-page.high-end-home .lux-strip-grid article {
        min-width: 0 !important;
        flex: 0 0 min(78vw, 300px) !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 12px 13px !important;
        border: 1px solid #e2ebe4 !important;
        border-radius: 16px !important;
        background: #fff !important;
        scroll-snap-align: start !important;
    }

    body.public-home-page.high-end-home .lux-strip-grid article > img {
        width: 34px !important;
        height: 34px !important;
        padding: 7px !important;
        border-radius: 10px !important;
    }

    body.public-home-page.high-end-home .lux-section {
        padding: 30px 0 !important;
    }

    body.public-home-page.high-end-home .lux-section-head {
        align-items: flex-end !important;
        flex-direction: row !important;
        gap: 12px !important;
        margin-bottom: 14px !important;
    }

    body.public-home-page.high-end-home .lux-section-head > div:first-child {
        min-width: 0 !important;
    }

    body.public-home-page.high-end-home .lux-section-head h2,
    body.public-home-page.high-end-home .lux-confidence h2,
    body.public-home-page.high-end-home .lux-seller h2,
    body.public-home-page.high-end-home .lux-final-card h2 {
        margin-top: 4px !important;
        font-size: clamp(1.62rem, 7.5vw, 2rem) !important;
        line-height: 1.02 !important;
    }

    body.public-home-page.high-end-home .lux-section-head > a {
        flex: 0 0 auto !important;
        padding-bottom: 2px !important;
        font-size: .66rem !important;
        white-space: nowrap !important;
    }

    /* Swipe categories like an app shelf. */
    body.public-home-page.high-end-home .lux-category-tiles {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 9px !important;
        margin-top: 12px !important;
        padding-bottom: 4px !important;
        overflow-x: auto !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
    }

    body.public-home-page.high-end-home .lux-category-tiles::-webkit-scrollbar {
        display: none !important;
    }

    body.public-home-page.high-end-home .lux-category-tile {
        aspect-ratio: auto !important;
        min-width: 0 !important;
        min-height: 90px !important;
        flex: 0 0 92px !important;
        gap: 5px !important;
        padding: 9px 6px !important;
        border-radius: 15px !important;
        scroll-snap-align: start !important;
    }

    body.public-home-page.high-end-home .lux-category-tile__icon {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        border-radius: 11px !important;
    }

    body.public-home-page.high-end-home .lux-category-tile__icon img {
        width: 19px !important;
        height: 19px !important;
    }

    body.public-home-page.high-end-home .lux-category-tile strong {
        margin: 0 !important;
        font-size: .67rem !important;
        line-height: 1.08 !important;
    }

    body.public-home-page.high-end-home .lux-category-tile small {
        font-size: .56rem !important;
        line-height: 1 !important;
    }

    /* Product cards become a horizontal marketplace shelf. */
    body.public-home-page.high-end-home .lux-product-grid.marketplace-product-grid,
    body.public-home-page.high-end-home .marketplace-home-grid.lux-product-grid {
        width: calc(100vw - 12px) !important;
        display: flex !important;
        grid-template-columns: none !important;
        gap: 11px !important;
        padding: 0 12px 5px 0 !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
    }

    body.public-home-page.high-end-home .lux-product-grid.marketplace-product-grid::-webkit-scrollbar,
    body.public-home-page.high-end-home .marketplace-home-grid.lux-product-grid::-webkit-scrollbar {
        display: none !important;
    }

    body.public-home-page.high-end-home .marketplace-product-card.lux-product-card {
        min-width: 0 !important;
        flex: 0 0 min(76vw, 280px) !important;
        border-radius: 17px !important;
        scroll-snap-align: start !important;
    }

    body.public-home-page.high-end-home .marketplace-product-card.lux-product-card .marketplace-product-image {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 3 !important;
    }

    body.public-home-page.high-end-home .marketplace-product-card .marketplace-product-body {
        padding: 12px !important;
    }

    body.public-home-page.high-end-home .marketplace-product-card h3 {
        margin: 6px 0 7px !important;
        font-size: .84rem !important;
        line-height: 1.2 !important;
    }

    body.public-home-page.high-end-home .marketplace-product-card .marketplace-product-footer {
        margin-top: 9px !important;
        padding-top: 9px !important;
    }

    /* Trust / seller sections become compact cards. */
    body.public-home-page.high-end-home .lux-confidence,
    body.public-home-page.high-end-home .lux-seller-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.public-home-page.high-end-home .lux-confidence {
        padding: 20px 17px !important;
        border: 1px solid #e1ebe3 !important;
        border-radius: 20px !important;
        background: #fff !important;
    }

    body.public-home-page.high-end-home .lux-confidence-copy {
        position: static !important;
    }

    body.public-home-page.high-end-home .lux-confidence-copy p,
    body.public-home-page.high-end-home .lux-seller-copy > p,
    body.public-home-page.high-end-home .lux-final-card p {
        font-size: .78rem !important;
        line-height: 1.48 !important;
    }

    body.public-home-page.high-end-home .lux-confidence-list article,
    body.public-home-page.high-end-home .lux-seller-points article {
        gap: 10px !important;
        padding: 11px 0 !important;
    }

    body.public-home-page.high-end-home .lux-confidence-list article {
        grid-template-columns: 28px minmax(0, 1fr) !important;
    }

    body.public-home-page.high-end-home .lux-seller-points article {
        grid-template-columns: 32px minmax(0, 1fr) !important;
    }

    body.public-home-page.high-end-home .marketplace-farm-card-grid.lux-farm-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 11px !important;
        padding-bottom: 4px !important;
        overflow-x: auto !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
    }

    body.public-home-page.high-end-home .marketplace-farm-card-grid.lux-farm-grid::-webkit-scrollbar {
        display: none !important;
    }

    body.public-home-page.high-end-home .marketplace-farm-card.lux-farm-card {
        min-width: 0 !important;
        flex: 0 0 min(82vw, 310px) !important;
        border-radius: 17px !important;
        scroll-snap-align: start !important;
    }

    body.public-home-page.high-end-home .marketplace-farm-card.lux-farm-card .marketplace-farm-card-image {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    body.public-home-page.high-end-home .lux-seller .button {
        width: auto !important;
        min-height: 40px !important;
    }

    body.public-home-page.high-end-home .lux-seller-media {
        height: 190px !important;
        min-height: 0 !important;
        border-radius: 18px !important;
    }

    body.public-home-page.high-end-home .lux-seller-media-caption {
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
    }

    body.public-home-page.high-end-home .lux-final-card {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        padding: 19px 17px !important;
        border-radius: 18px !important;
    }

    body.public-home-page.high-end-home .lux-final-card > div:last-child {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }

    body.public-home-page.high-end-home .lux-final-card .button {
        width: auto !important;
        min-height: 40px !important;
        flex: 1 1 auto !important;
    }

    body.public-home-page.high-end-home .lux-final-card .lux-text-link {
        flex: 0 0 auto !important;
        font-size: .68rem !important;
    }

    /* ------------------------------------------------------------------
       Compact mobile footer
       ------------------------------------------------------------------ */

    body.public-home-page .premium-footer {
        padding-bottom: 6px !important;
    }

    body.public-home-page .premium-footer-callout,
    body.public-home-page .premium-footer-divider {
        display: none !important;
    }

    body.public-home-page .premium-footer-grid {
        display: block !important;
        padding-top: 24px !important;
        padding-bottom: 16px !important;
    }

    body.public-home-page .premium-footer-brand {
        max-width: none !important;
    }

    body.public-home-page .premium-footer-brand p {
        max-width: 420px !important;
        margin-top: 10px !important;
        font-size: .72rem !important;
        line-height: 1.5 !important;
    }

    body.public-home-page .premium-footer-links {
        display: none !important;
    }

    body.public-home-page .premium-footer-mobile-apps {
        margin-top: 14px !important;
    }

    body.public-home-page .premium-footer-store-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    body.public-home-page .premium-store-badge {
        width: auto !important;
        min-height: 38px !important;
        padding: 6px 10px !important;
    }

    body.public-home-page .premium-footer-bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-top: 12px !important;
        padding-bottom: 14px !important;
        font-size: .64rem !important;
    }

    body.public-home-page .premium-footer-bottom > div {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    /* ------------------------------------------------------------------
       Fixed bottom app navigation
       ------------------------------------------------------------------ */

    .mobile-app-bottom-nav {
        position: fixed;
        z-index: 140;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        height: 60px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        padding: 5px;
        border: 1px solid rgba(25, 91, 52, .12);
        border-radius: 19px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 16px 38px rgba(14, 65, 37, .18);
        backdrop-filter: blur(18px);
    }

    .mobile-app-bottom-nav > a {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        border-radius: 14px;
        color: #718078;
        font-size: .58rem;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-app-bottom-nav > a svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-app-bottom-nav > a.is-active {
        background: #edf7ee;
        color: #145f36;
    }
}

@media (max-width: 460px) {
    body.agmula-theme .site-header.public-fullwidth-header .lux-brand .brand-copy small,
    body.public-home-page .site-header.public-fullwidth-header .lux-brand .brand-copy small {
        max-width: 118px !important;
    }

    body.public-home-page.high-end-home .lux-hero-copy {
        padding-inline: 16px !important;
    }

    body.public-home-page.high-end-home .lux-hero-copy h1 {
        font-size: clamp(2.15rem, 10.8vw, 2.75rem) !important;
    }

    body.public-home-page.high-end-home .lux-section-head h2,
    body.public-home-page.high-end-home .lux-confidence h2,
    body.public-home-page.high-end-home .lux-seller h2,
    body.public-home-page.high-end-home .lux-final-card h2 {
        font-size: 1.65rem !important;
    }
}

@media (max-width: 360px) {
    body.agmula-theme .site-header.public-fullwidth-header .lux-brand .brand-copy small,
    body.public-home-page .site-header.public-fullwidth-header .lux-brand .brand-copy small {
        display: none !important;
    }

    body.public-home-page.high-end-home .lux-search {
        grid-template-columns: 17px minmax(0, 1fr) !important;
    }

    body.public-home-page.high-end-home .lux-search button {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    body.public-home-page.high-end-home .lux-final-card > div:last-child {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}
