/*
|--------------------------------------------------------------------------
| 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;
    }
}

/*
|--------------------------------------------------------------------------
| Connectivity status
|--------------------------------------------------------------------------
| Shared by the Phase 1 offline/PWA controller. Kept independent from the
| page shell so authenticated dashboards and public marketplace pages can
| surface the same connection state.
|--------------------------------------------------------------------------
*/

.agmula-connectivity-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 12px;
    background: #ffffff;
    color: #17211b;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .18);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
}

.agmula-connectivity-banner[hidden] {
    display: none !important;
}

.agmula-connectivity-banner.is-offline {
    border-color: #f2c9c9;
    background: #fff7f7;
    color: #8a1c1c;
}

.agmula-connectivity-banner.is-online {
    border-color: #c9e7d3;
    background: #f5fff7;
    color: #14532d;
}

@media (max-width: 900px) {
    .agmula-connectivity-banner {
        right: 12px;
        bottom: calc(var(--ag-mobile-bottom-nav, 0px) + env(safe-area-inset-bottom, 0px) + 12px);
        max-width: calc(100vw - 24px);
        font-size: .82rem;
    }
}



/* Seller portal mobile-app parity — Phase 1 (2026-09) */
@media (max-width: 900px) {
    body.agmula-theme.admin-page.seller-dashboard-page {
        background: #f5f7f3;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .role-dashboard-content {
        gap: 14px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .button,
    body.agmula-theme.admin-page.seller-dashboard-page button.button {
        min-height: 46px;
        border-radius: 12px;
        font-weight: 850;
    }

    body.agmula-theme.admin-page.seller-dashboard-page input,
    body.agmula-theme.admin-page.seller-dashboard-page select,
    body.agmula-theme.admin-page.seller-dashboard-page textarea {
        min-height: 46px;
        border-radius: 11px;
        font-size: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page textarea {
        min-height: 110px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .form-columns {
        grid-template-columns: 1fr;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-dashboard-welcome,
    body.agmula-theme.admin-page.seller-dashboard-page .seller-panel,
    body.agmula-theme.admin-page.seller-dashboard-page .form-card,
    body.agmula-theme.admin-page.seller-dashboard-page .admin-card {
        box-shadow: 0 8px 24px rgba(18, 69, 39, .05);
    }
}

/*
|--------------------------------------------------------------------------
| Seller mobile web — app-like responsive shell
|--------------------------------------------------------------------------
| Mirrors the Flutter information hierarchy while keeping Laravel web routes
| and server-side behavior authoritative.
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
    body.agmula-theme.admin-page.seller-dashboard-page {
        --seller-mobile-bottom-nav: 72px;
        background: #f8f5e9;
        padding-bottom: calc(var(--seller-mobile-bottom-nav) + env(safe-area-inset-bottom, 0px));
    }

    body.agmula-theme.admin-page.seller-dashboard-page .admin-main {
        background: #f8f5e9;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .admin-topbar {
        min-height: 64px;
        padding: 9px 12px 9px 64px;
        border-bottom: 1px solid rgba(18, 69, 39, .08);
        background: rgba(250, 248, 239, .97);
        box-shadow: none;
        backdrop-filter: blur(14px);
    }

    body.agmula-theme.admin-page.seller-dashboard-page .admin-topbar h1 {
        font-size: 1.06rem;
        line-height: 1.2;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .admin-profile {
        width: 40px;
        height: 40px;
        min-height: 40px;
        border: 0;
        border-radius: 999px;
        background: transparent;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .admin-profile .admin-avatar {
        width: 36px;
        height: 36px;
        border-radius: 999px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .admin-mobile-menu-button {
        top: 11px;
        left: 12px;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        box-shadow: none;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .admin-content,
    body.agmula-theme.admin-page.seller-dashboard-page .admin-content.role-dashboard-content {
        width: 100%;
        max-width: none;
        padding: 16px 14px 24px;
        gap: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .role-dashboard-content {
        gap: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page :where(
        .admin-card,
        .form-card,
        .panel,
        .seller-panel,
        .seller-dashboard-welcome,
        .role-dashboard-intro,
        .seller-parity-status-card
    ) {
        border-radius: 18px;
        box-shadow: 0 4px 14px rgba(18, 69, 39, .035);
    }

    body.agmula-theme.admin-page.seller-dashboard-page :where(
        .form-card,
        .seller-panel,
        .seller-parity-status-card
    ) {
        padding: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .role-dashboard-intro,
    body.agmula-theme.admin-page.seller-dashboard-page .seller-dashboard-welcome {
        padding: 18px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-kpi-grid,
    body.agmula-theme.admin-page.seller-dashboard-page .seller-action-grid,
    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-grid,
    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-summary {
        gap: 12px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-page {
        display: grid;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-intro {
        order: 0;
        margin: 0;
        padding: 18px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-mobile-menu {
        order: 1;
        gap: 10px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-heading {
        padding: 0 2px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-heading h2 {
        margin-top: 2px;
        font-size: 1rem;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-heading p {
        display: none;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-grid {
        grid-template-columns: 1fr;
        gap: 0;
        overflow: hidden;
        border: 1px solid #dfe7df;
        border-radius: 18px;
        background: #fff;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-card {
        min-height: 72px;
        padding: 12px 14px;
        border: 0;
        border-bottom: 1px solid #e5ebe5;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-card:last-child {
        border-bottom: 0;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-card:hover {
        transform: none;
        background: #fbfcf9;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: #eaf5ed;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-icon svg {
        width: 21px;
        height: 21px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-copy strong {
        font-size: .85rem;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-copy small {
        font-size: .72rem;
        white-space: normal;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .seller-profile-menu-chevron {
        color: #516058;
        font-size: 1.25rem;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-summary {
        order: 2;
        grid-template-columns: 1fr;
        margin: 0;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-summary > article {
        min-height: 0;
        padding: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-grid {
        order: 3;
        grid-template-columns: 1fr;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-help {
        order: 4;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-card {
        padding: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-card-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .profile-account-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .form-columns,
    body.agmula-theme.admin-page.seller-dashboard-page .product-form-columns,
    body.agmula-theme.admin-page.seller-dashboard-page .seller-product-grid,
    body.agmula-theme.admin-page.seller-dashboard-page .published-review-grid,
    body.agmula-theme.admin-page.seller-dashboard-page .seller-parity-status-grid {
        grid-template-columns: 1fr;
    }

    body.agmula-theme.admin-page.seller-dashboard-page input,
    body.agmula-theme.admin-page.seller-dashboard-page select,
    body.agmula-theme.admin-page.seller-dashboard-page textarea {
        min-height: 48px;
        border-radius: 12px;
        font-size: 16px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page textarea {
        min-height: 116px;
    }

    body.agmula-theme.admin-page.seller-dashboard-page .button,
    body.agmula-theme.admin-page.seller-dashboard-page button.button {
        min-height: 46px;
        border-radius: 12px;
    }

    .seller-mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 75;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: var(--seller-mobile-bottom-nav);
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(18, 69, 39, .1);
        background: rgba(255, 255, 252, .97);
        box-shadow: 0 -8px 24px rgba(18, 69, 39, .06);
        backdrop-filter: blur(14px);
    }

    .seller-mobile-bottom-nav > a {
        min-width: 0;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        border-radius: 14px;
        color: #526259;
        text-decoration: none;
    }

    .seller-mobile-bottom-nav > a > span {
        width: 34px;
        height: 28px;
        display: grid;
        place-items: center;
        border-radius: 999px;
    }

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

    .seller-mobile-bottom-nav > a small {
        overflow: hidden;
        max-width: 100%;
        font-size: .62rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .seller-mobile-bottom-nav > a.is-active {
        color: #0e5a34;
    }

    .seller-mobile-bottom-nav > a.is-active > span {
        background: #d9f1df;
    }

    .agmula-connectivity-banner {
        bottom: calc(var(--seller-mobile-bottom-nav) + env(safe-area-inset-bottom, 0px) + 10px);
    }
}

@media (max-width: 390px) {
    body.agmula-theme.admin-page.seller-dashboard-page .admin-content,
    body.agmula-theme.admin-page.seller-dashboard-page .admin-content.role-dashboard-content {
        padding-inline: 12px;
    }

    .seller-mobile-bottom-nav {
        padding-inline: 6px;
    }

    .seller-mobile-bottom-nav > a small {
        font-size: .58rem;
    }
}

/*
|--------------------------------------------------------------------------
| AGMULA Buyer Mobile Web — Flutter navigation parity
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
    .agmula-theme.admin-page.buyer-dashboard-page {
        background: #fbf7eb;
        padding-bottom: 82px;
    }

    .agmula-theme.buyer-dashboard-page .admin-main {
        background: #fbf7eb;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar {
        min-height: 64px;
        padding: 10px 16px 10px 62px;
        border-bottom: 0;
        background: #078044;
        color: #fff;
        box-shadow: none;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .admin-kicker {
        display: none;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar h1 {
        color: #fff;
        font-size: 1.12rem;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .admin-profile {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .admin-profile > span:last-child {
        display: none;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .admin-avatar {
        width: 34px;
        height: 34px;
        border: 2px solid rgba(255,255,255,.5);
        background: #0b5d38;
        color: #fff;
    }

    .agmula-theme.buyer-dashboard-page .admin-content.role-dashboard-content,
    .agmula-theme.buyer-dashboard-page .buyer-home-app-content,
    .agmula-theme.buyer-dashboard-page .buyer-marketplace-app-content,
    .agmula-theme.buyer-dashboard-page .buyer-secondary-app-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 14px 14px 24px;
        gap: 14px;
    }

    /* Buyer drawer mirrors the light Flutter account drawer. */
    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer {
        background: #fffaf0 !important;
        color: #10462f !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-brand,
    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .role-sidebar-account,
    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-nav-link,
    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-logout button {
        color: #10462f !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-brand strong {
        color: #10462f !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-brand small,
    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .role-sidebar-account small {
        color: #758278 !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .role-sidebar-account strong {
        color: #10462f !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .role-sidebar-account {
        border-color: #e3eadf !important;
        background: #f2f8ef !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .role-sidebar-avatar {
        background: #0a5e3a !important;
        color: #fff !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-nav {
        display: grid;
        overflow: visible;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-nav-link {
        width: 100%;
        min-width: 0;
        grid-template-columns: 30px minmax(0,1fr) auto;
        border-radius: 10px;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-nav-link.is-active {
        background: #e8f4e9 !important;
        color: #075f39 !important;
        box-shadow: none !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-nav-icon,
    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .role-nav-icon {
        background: transparent !important;
        color: currentColor !important;
    }

    .agmula-theme.buyer-dashboard-page .role-sidebar-buyer .admin-logout {
        border-top-color: #dfe8de;
    }

    .agmula-theme.buyer-dashboard-page .admin-mobile-menu-button {
        color: #fff;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-greeting {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-search {
        min-height: 46px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-shortcuts {
        grid-template-columns: repeat(5, minmax(0,1fr));
        gap: 5px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-shortcuts a {
        padding: 7px 2px;
        border: 0;
        background: transparent;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-shortcuts a span {
        width: 42px;
        height: 42px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-shortcuts a strong {
        font-size: .56rem;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-product-grid,
    .agmula-theme.buyer-dashboard-page .marketplace-product-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-orders > a {
        grid-template-columns: 38px minmax(0,1fr) auto 14px;
        padding: 12px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-market-mode-tabs {
        position: sticky;
        top: 64px;
        z-index: 8;
        border-radius: 13px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-market-mode-tabs a {
        min-height: 39px;
        font-size: .68rem;
    }

    .agmula-theme.buyer-dashboard-page .buyer-talipapa-heading,
    .agmula-theme.buyer-dashboard-page .buyer-secondary-heading {
        padding: 2px 0;
        border: 0;
        background: transparent;
    }

    .agmula-theme.buyer-dashboard-page .buyer-talipapa-location {
        grid-template-columns: 40px minmax(0,1fr) auto;
        padding: 13px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-talipapa-filters,
    .agmula-theme.buyer-dashboard-page .buyer-simple-search,
    .agmula-theme.buyer-dashboard-page .buyer-history-filter {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-farmer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-farmer-card {
        display: grid;
        grid-template-columns: 118px minmax(0,1fr);
    }

    .agmula-theme.buyer-dashboard-page .buyer-farmer-card__media {
        height: 100%;
        min-height: 150px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-support-grid {
        grid-template-columns: 1fr;
    }

    .agmula-theme.buyer-dashboard-page .buyer-profile-app-menu__list {
        gap: 10px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-profile-app-menu__list > a,
    .agmula-theme.buyer-dashboard-page .buyer-profile-app-menu__static {
        min-height: 64px;
        padding: 10px 12px;
        border-radius: 15px;
    }

    .agmula-theme.buyer-dashboard-page .profile-account-page .profile-account-intro {
        order: 0;
    }

    .agmula-theme.buyer-dashboard-page .profile-account-page .buyer-profile-app-menu {
        order: 1;
    }

    .agmula-theme.buyer-dashboard-page .profile-account-page .profile-account-summary {
        display: none;
    }

    .agmula-theme.buyer-dashboard-page .profile-account-page .profile-account-grid {
        order: 2;
        grid-template-columns: 1fr;
    }

    .agmula-theme.buyer-dashboard-page .profile-account-page .profile-account-help {
        order: 3;
    }

    .agmula-theme.buyer-dashboard-page .agm-flutter-favorite-form {
        top: 7px;
        right: 7px;
    }

    .agmula-theme.buyer-dashboard-page .agm-flutter-favorite {
        width: 36px;
        height: 36px;
    }

    .buyer-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        min-height: 70px;
        display: grid;
        grid-template-columns: repeat(5,1fr);
        padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        border-top: 1px solid #dce8dd;
        background: rgba(248,252,246,.98);
        box-shadow: 0 -5px 18px rgba(20,66,40,.05);
    }

    .buyer-mobile-bottom-nav a {
        min-width: 0;
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 3px;
        color: #3b5748;
        text-decoration: none;
    }

    .buyer-mobile-bottom-nav a > span {
        width: 46px;
        height: 31px;
        display: grid;
        place-items: center;
        border-radius: 999px;
    }

    .buyer-mobile-bottom-nav a.is-active > span {
        background: #d9f3df;
        color: #075f39;
    }

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

    .buyer-mobile-bottom-nav small {
        overflow: hidden;
        max-width: 100%;
        color: inherit;
        font-size: .56rem;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .agmula-theme.buyer-dashboard-page .connectivity-banner {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 390px) {
    .agmula-theme.buyer-dashboard-page .admin-content.role-dashboard-content {
        padding-inline: 12px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-home-shortcuts a strong {
        font-size: .52rem;
    }
}



/*
|--------------------------------------------------------------------------
| Buyer mobile topbar quick actions
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
    .agmula-theme.buyer-dashboard-page .buyer-topbar-actions {
        gap: 0;
    }

    .agmula-theme.buyer-dashboard-page .buyer-topbar-action {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 999px;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .buyer-topbar-action {
        color: #fff;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .buyer-topbar-action:hover {
        background: rgba(255,255,255,.10);
        color: #fff;
    }

    .agmula-theme.buyer-dashboard-page .buyer-topbar-action svg {
        width: 20px;
        height: 20px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-topbar-divider {
        height: 24px;
        margin-inline: 7px;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .buyer-topbar-divider {
        background: rgba(255,255,255,.28);
    }

    .agmula-theme.buyer-dashboard-page .buyer-topbar-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border: 2px solid rgba(255,255,255,.42);
        background: #20bf63;
        font-size: .72rem;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .buyer-topbar-count,
    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .buyer-topbar-notification-dot {
        border-color: #078044;
    }

    .agmula-theme.buyer-dashboard-page .admin-topbar.buyer-app-topbar .buyer-topbar-count {
        background: #fff;
        color: #075f39;
    }
}


/*
|--------------------------------------------------------------------------
| Buyer Market filter + view controls — mobile
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
    .agmula-theme.buyer-dashboard-page .marketplace-default-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 11px;
        border-radius: 13px;
        box-shadow: none;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-default-search-field {
        grid-column: 1 / -1;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-default-search-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 7px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-market-filter-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 12px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-market-filter-toggle > span {
        display: none;
    }

    .agmula-theme.buyer-dashboard-page .buyer-market-filter-toggle b {
        position: absolute;
        top: -5px;
        right: -5px;
        border: 2px solid #fff;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-default-filter-panel > label {
        min-width: 0;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-default-filter-panel select,
    .agmula-theme.buyer-dashboard-page .marketplace-default-filter-submit {
        min-height: 44px;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-default-filter-submit {
        grid-column: 1 / -1;
        width: 100%;
    }

    .agmula-theme.buyer-dashboard-page .buyer-marketplace-advanced-filters > .marketplace-sidebar-content {
        padding: 12px;
    }

    .agmula-theme.buyer-dashboard-page .buyer-marketplace-advanced-filters .marketplace-sidebar-form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .agmula-theme.buyer-dashboard-page .buyer-marketplace-advanced-filters .marketplace-sidebar-more,
    .agmula-theme.buyer-dashboard-page .buyer-marketplace-advanced-filters .marketplace-sidebar-form > .button {
        grid-column: auto;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-catalog-toolbar-actions {
        width: 100%;
        align-items: flex-end;
        justify-content: space-between;
        gap: 7px;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-sort-form {
        min-width: 0;
        flex: 1 1 auto;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-sort-form label {
        min-width: 0;
        flex: 1 1 auto;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-sort-form select {
        width: 100%;
        min-width: 0;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-view-switcher {
        flex: 0 0 auto;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-view-switch {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-view-switch svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 420px) {
    .agmula-theme.buyer-dashboard-page .marketplace-catalog-toolbar-actions {
        flex-wrap: wrap;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-sort-form {
        width: 100%;
        flex-basis: 100%;
    }

    .agmula-theme.buyer-dashboard-page .marketplace-view-switcher {
        margin-left: auto;
    }
}

/* --------------------------------------------------------------------------
   Product deep-link modal
   -------------------------------------------------------------------------- */
.agmula-app-modal {
    display: none;
}

@media (max-width: 900px) {
    body.public-product-detail-page.agmula-app-modal-open {
        overflow: hidden;
    }

    .agmula-app-modal:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: grid;
        place-items: center;
        padding: 20px;
    }

    .agmula-app-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(7, 34, 20, .58);
        backdrop-filter: blur(3px);
    }

    .agmula-app-modal__dialog {
        position: relative;
        z-index: 1;
        width: min(100%, 390px);
        padding: 22px;
        border: 1px solid rgba(20, 83, 48, .12);
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 28px 80px rgba(7, 34, 20, .28);
    }

    .agmula-app-modal__brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .agmula-app-modal__brand img {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-radius: 14px;
        object-fit: contain;
        background: #f1f8f3;
    }

    .agmula-app-modal__brand div {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .agmula-app-modal__brand strong {
        color: #124e2d;
        font-size: .95rem;
        letter-spacing: .035em;
    }

    .agmula-app-modal__brand span {
        color: #6f7f75;
        font-size: .76rem;
        line-height: 1.35;
    }

    .agmula-app-modal__dialog h2 {
        margin: 0 0 8px;
        color: #123e27;
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .agmula-app-modal__dialog p {
        margin: 0 0 18px;
        color: #66766c;
        font-size: .9rem;
        line-height: 1.5;
    }

    .agmula-app-modal__actions {
        display: grid;
        gap: 10px;
    }

    .agmula-app-modal__primary,
    .agmula-app-modal__secondary,
    .agmula-app-modal__download {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0 16px;
        border-radius: 13px;
        font: inherit;
        font-size: .86rem;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .agmula-app-modal__primary {
        border: 1px solid #146b3a;
        background: #146b3a;
        color: #fff;
    }

    .agmula-app-modal__primary:disabled {
        opacity: .65;
        cursor: wait;
    }

    .agmula-app-modal__secondary {
        border: 1px solid #dbe8df;
        background: #f7faf8;
        color: #214b34;
    }

    .agmula-app-modal__download {
        margin-top: 10px;
        border: 1px solid #cfe2d5;
        background: #eef7f1;
        color: #145f35;
    }

    .agmula-app-modal__download[hidden] {
        display: none !important;
    }
}
