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

.mobile-filter-toggle,
.mobile-filter-backdrop,
.mobile-filter-close,
.mobile-cart-toggle,
.mobile-cart-backdrop,
.mobile-cart-close {
    display: none;
}

.mobile-cart-drawer {
    display: contents;
}

@media (max-width: 700px) {
    :root {
        --mobile-page: min(430px, calc(100vw - 28px));
        --mobile-bottom-space: calc(86px + env(safe-area-inset-bottom));
        --mobile-shop-header-space: 126px;
    }

    html {
        background: #ffffff;
        max-width: 100vw;
        overflow-x: hidden !important;
        scrollbar-width: none;
    }

    body {
        max-width: 100vw;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-bottom: var(--mobile-bottom-space);
        background: #ffffff;
        font-size: 14px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body :is(p, span, a, button, input, select, textarea, label, small, li, strong, h1, h2, h3, h4) {
        letter-spacing: 0 !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    body:has(.home-header),
    body:has(.contact-header) {
        padding-top: 82px;
    }

    body:has(.shop-header) {
        padding-top: var(--mobile-shop-header-space);
    }

    .motion-reveal,
    .motion-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .home-header,
    .shop-header,
    .contact-header,
    .buyer-page,
    .co-page,
    .auth-login-shell,
    .auth-page,
    main,
    .shop-page,
    .contact-page {
        width: var(--mobile-page) !important;
        max-width: var(--mobile-page) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: clip;
    }

    .home-header,
    .shop-header,
    .contact-header,
    .buyer-header,
    .co-header,
    .topbar {
        border-radius: 0 0 18px 18px !important;
        box-shadow: 0 10px 24px rgba(15, 37, 75, 0.08) !important;
    }

    .home-header,
    .shop-header,
    .contact-header {
        position: fixed !important;
        left: 50%;
        min-height: 70px !important;
        top: 0;
        z-index: 130 !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
        transform: translateX(-50%);
    }

    .shop-header {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px 12px !important;
    }

    .shop-search {
        grid-column: 1 / -1 !important;
        min-height: 44px !important;
        padding-inline: 14px !important;
        border-radius: 14px !important;
    }

    .motion-ready :is(.home-header, .shop-header, .contact-header) {
        animation: none !important;
    }

    .home-header,
    .shop-header,
    .contact-header,
    .topbar,
    .buyer-header,
    .co-header {
        transition: transform 220ms var(--motion-soft, ease), opacity 180ms ease !important;
        will-change: transform;
    }

    body.mobile-header-hidden :is(.home-header, .shop-header, .contact-header) {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, calc(-100% - 10px)) !important;
    }

    body.mobile-header-hidden :is(.topbar, .buyer-header, .co-header) {
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(-100% - 10px)) !important;
    }

    body.mobile-header-visible :is(.home-header, .shop-header, .contact-header) {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) !important;
    }

    .home-nav,
    .shop-nav,
    .contact-nav,
    .home-footer,
    .shop-footer,
    .contact-footer {
        display: none !important;
    }

    .home-brand,
    .shop-brand,
    .contact-brand,
    .buyer-brand,
    .co-brand,
    .brand {
        min-width: 0;
        gap: 9px !important;
    }

    .home-brand strong,
    .shop-brand strong,
    .contact-brand strong,
    .buyer-brand span,
    .co-brand span,
    .brand-copy strong {
        min-width: 0;
        overflow: hidden;
        font-size: 17px !important;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-brand .brand-icon,
    .shop-brand .brand-icon,
    .contact-brand .brand-icon,
    .buyer-brand img,
    .co-brand img,
    .brand-mark {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        border-radius: 11px !important;
    }

    .masthead .brand-mark,
    .main-nav .brand-mark {
        width: auto !important;
        height: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        border-radius: 0 !important;
    }

    .masthead .brand-mark strong,
    .main-nav .brand-mark strong {
        display: flex !important;
        min-width: 0;
        overflow: hidden;
        font-size: 15px !important;
        line-height: 1.05 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .masthead .brand-mark small,
    .main-nav .brand-mark small {
        display: block !important;
        overflow: hidden;
        margin-top: 3px;
        font-size: 8.5px !important;
        line-height: 1.1 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-login,
    .shop-login,
    .contact-login,
    .co-back {
        min-height: 40px !important;
        padding-inline: 15px !important;
        border-radius: 13px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    .home-avatar,
    .shop-avatar,
    .contact-avatar {
        width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
    }

    .hero-section {
        position: relative;
        min-height: 170px !important;
        display: block !important;
        margin: 18px auto 18px !important;
        padding: 18px !important;
        overflow: hidden;
        color: #ffffff;
        border: 1px solid #dce7fb;
        border-radius: 16px;
        background:
            linear-gradient(90deg, rgba(72, 72, 224, 0.94) 0%, rgba(91, 93, 222, 0.82) 52%, rgba(91, 93, 222, 0.2) 100%),
            url('../img/products/keripik-singkong.jpg') right center / cover no-repeat;
        box-shadow: 0 16px 34px rgba(50, 65, 140, 0.14);
    }

    .hero-copy {
        max-width: 64%;
    }

    .hero-copy h1 {
        margin: 0 0 8px !important;
        color: #ffffff;
        font-size: 20px !important;
        line-height: 1.18 !important;
    }

    .hero-copy p {
        max-width: 180px !important;
        color: rgba(255, 255, 255, 0.88) !important;
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    .hero-actions {
        display: flex !important;
        align-items: center;
        flex-direction: row !important;
        gap: 8px !important;
        margin: 14px 0 0 !important;
    }

    .hero-actions .primary-action,
    .hero-actions .secondary-action {
        width: auto !important;
        min-height: 34px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        font-size: 11.5px !important;
        box-shadow: none !important;
    }

    .hero-actions .primary-action {
        color: #4e4be0 !important;
        background: #ffffff !important;
    }

    .hero-actions .secondary-action {
        display: none !important;
    }

    .hero-actions .home-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .hero-note,
    .hero-visual {
        display: none !important;
    }

    .feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 2px 0 18px !important;
        max-width: 100%;
        overflow: hidden;
    }

    .feature-grid::before {
        content: "Menu Utama";
        grid-column: 1 / -1;
        margin-bottom: 2px;
        color: #111827;
        font-size: 13px;
        font-weight: 950;
    }

    .feature-card {
        min-width: 0 !important;
        min-height: 90px !important;
        gap: 7px !important;
        padding: 11px 8px !important;
        border: 0 !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 28px rgba(15, 37, 75, 0.06) !important;
    }

    .feature-card > span {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }

    .feature-card .home-icon {
        width: 21px;
        height: 21px;
    }

    .feature-card h2,
    .feature-card strong {
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.18 !important;
    }

    .feature-card p {
        display: none !important;
    }

    .impact-strip,
    .dashboard-section,
    .testimonial-section,
    .cta-section,
    .catalog-panel,
    .filter-panel,
    .order-panel,
    .buyer-panel,
    .buyer-settings-card,
    .co-form-panel,
    .co-summary,
    .contact-card,
    .contact-info-card,
    .contact-message-card,
    .promise-card,
    .stat-card,
    .products-section,
    .orders-table-card,
    .promotion-table-card,
    .report-panel,
    .chart-card,
    .calc-card,
    .admin-card {
        border-radius: 16px !important;
    }

    .impact-strip {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: 0 0 18px !important;
        padding: 14px !important;
        background: #f7fbff !important;
    }

    .impact-strip div {
        grid-template-columns: 24px minmax(0, 1fr) !important;
        grid-template-areas: "icon label" !important;
        column-gap: 9px !important;
    }

    .impact-strip .home-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .impact-strip strong {
        display: none;
    }

    .impact-strip span {
        font-size: 12px;
        line-height: 1.35;
    }

    .dashboard-section,
    .testimonial-section,
    .cta-section {
        margin: 0 0 18px !important;
        padding: 16px !important;
    }

    .dashboard-section .wide-mockup {
        display: none !important;
    }

    .section-copy h2,
    .testimonial-section h2,
    .cta-section h2,
    .catalog-head h1,
    .buyer-headline h1,
    .co-title h1,
    .contact-hero h1,
    .admin-page-head h1,
    .product-page-head h1,
    .order-page-head h1,
    .promotion-page-head h1,
    .report-page-head h1,
    .calculator-page-head h1 {
        font-size: 20px !important;
        line-height: 1.22 !important;
    }

    .section-copy h2 span {
        display: block;
    }

    .section-copy ul,
    .section-copy li,
    .impact-strip span,
    .testimonial-card blockquote,
    .testimonial-card strong,
    .cta-section p,
    .product-body p,
    .buyer-panel,
    .co-form-panel,
    .contact-page,
    .content {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .section-copy li,
    .impact-strip span,
    .testimonial-card blockquote,
    .product-body h2,
    .buyer-panel h2,
    .co-title h2,
    .admin-section-title h2 {
        font-weight: 850 !important;
    }

    .section-copy ul {
        gap: 12px !important;
    }

    .section-copy li {
        gap: 9px !important;
    }

    .section-copy .home-icon,
    .impact-strip .home-icon {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
    }

    .testimonial-grid,
    .mock-stats,
    .mock-main,
    .mock-products,
    .product-grid,
    .manage-grid,
    .buyer-stat-grid,
    .buyer-dashboard-grid,
    .co-shell,
    .co-form-grid,
    .contact-grid,
    .admin-kpi-grid,
    .admin-dashboard-grid,
    .admin-status-grid,
    .admin-settings-grid,
    .summary-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .testimonial-section {
        overflow: hidden;
    }

    .testimonial-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-right: 24px;
        scroll-behavior: smooth;
        scroll-padding-left: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 24px);
        min-height: 196px !important;
        grid-template-columns: 64px minmax(0, 1fr) !important;
        gap: 8px 14px !important;
        scroll-snap-align: start;
    }

    .testimonial-card .avatar {
        width: 58px !important;
        height: 58px !important;
        font-size: 24px !important;
    }

    .shop-search {
        min-height: 44px !important;
        border-radius: 14px !important;
    }

    .shop-page,
    .contact-page,
    .buyer-page,
    .co-page,
    .auth-login-shell,
    .auth-page {
        padding-bottom: var(--mobile-bottom-space) !important;
    }

    .auth-login-shell,
    .auth-page {
        min-height: auto !important;
        padding-top: 16px !important;
    }

    .auth-showcase-copy,
    .auth-showcase-scene {
        display: none !important;
    }

    .auth-showcase {
        min-height: auto !important;
        padding: 0 !important;
        margin-bottom: 14px !important;
    }

    .login-panel,
    .auth-login-card {
        padding: 22px !important;
    }

    .filter-panel form {
        grid-template-columns: 1fr !important;
        padding: 14px !important;
    }

    .catalog-panel,
    .co-form-panel,
    .co-summary,
    .buyer-panel,
    .buyer-settings-card {
        padding: 16px !important;
    }

    .shop-page {
        padding-top: 8px !important;
    }

    .shop-page .catalog-panel {
        overflow: hidden !important;
        padding: 15px !important;
        border-radius: 18px !important;
    }

    .shop-page .catalog-head {
        display: grid !important;
        gap: 9px !important;
        margin-bottom: 14px !important;
    }

    .shop-page .catalog-head h1 {
        margin-bottom: 5px !important;
        font-size: 21px !important;
        line-height: 1.1 !important;
    }

    .shop-page .catalog-head p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .shop-page .catalog-head > span {
        width: max-content !important;
        padding: 7px 11px !important;
        font-size: 11.5px !important;
    }

    .shop-page .category-tabs {
        gap: 9px !important;
        margin-bottom: 18px !important;
    }

    .shop-page .category-tabs a {
        min-height: 40px !important;
        padding-inline: 17px !important;
        font-size: 12px !important;
    }

    .category-tabs,
    .buyer-tabs,
    .order-tabs,
    .admin-order-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar,
    .buyer-tabs::-webkit-scrollbar,
    .order-tabs::-webkit-scrollbar,
    .admin-order-tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-card,
    .product-card,
    .manage-card,
    .buyer-order-card,
    .admin-umkm-product-card {
        border-radius: 16px !important;
    }

    .shop-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .shop-page .shop-card {
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 100% !important;
    }

    .shop-page .product-image {
        padding: 10px 10px 0 !important;
        background: #fffdfa !important;
    }

    .shop-page .product-image img {
        aspect-ratio: 1 / 0.74 !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        background: #ffffff !important;
    }

    .shop-page .product-image span,
    .shop-page .product-image em {
        top: 10px;
        font-size: 9px;
    }

    .shop-page .product-image span {
        left: 10px;
        padding: 4px 8px;
    }

    .shop-page .product-image em {
        right: 10px;
        width: 26px;
        height: 26px;
        max-width: none;
        padding: 0;
        font-size: 11px;
    }

    .shop-page .product-body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 9px 10px 10px !important;
    }

    .shop-page .product-body small,
    .shop-page .product-actions span {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .shop-page .product-body h2 {
        min-height: 32px !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.24 !important;
    }

    .shop-page .product-body h2 a {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .shop-page .product-body p {
        min-height: 30px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2;
    }

    .shop-page .product-meta strong {
        min-width: 0;
        overflow: hidden;
        font-size: 12px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-page .product-meta del {
        font-size: 9.5px !important;
    }

    .shop-page .product-rating-row {
        gap: 4px !important;
        font-size: 10.5px !important;
    }

    .shop-page .product-rating-row .shop-icon {
        width: 12px !important;
        height: 12px !important;
    }

    .shop-page .product-card-stats {
        gap: 4px !important;
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }

    .shop-page .product-card-stats span {
        gap: 4px !important;
    }

    .shop-page .product-card-stats .shop-icon {
        width: 13px !important;
        height: 13px !important;
        flex-basis: 13px !important;
    }

    .shop-page .product-card-stats b {
        font-size: 10px !important;
    }

    .shop-page .product-card-location {
        margin-top: auto;
    }

    .shop-page .product-meta span {
        flex: 0 0 auto;
        font-size: 11px !important;
    }

    .shop-page .product-actions {
        margin-top: 2px !important;
        align-items: end !important;
        justify-content: flex-end !important;
    }

    .shop-page .product-action-buttons {
        gap: 6px !important;
    }

    .shop-page .product-actions a,
    .shop-page .cart-add-button {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
    }

    .shop-page .product-actions .shop-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .shop-page .product-action-buttons {
        gap: 6px !important;
    }

    .shop-page .product-actions a,
    .shop-page .cart-add-button {
        width: 36px !important;
        height: 36px !important;
        border-radius: 12px !important;
    }

    .shop-page .product-actions .shop-icon {
        width: 17px !important;
        height: 17px !important;
    }

    .product-image img,
    .product-card img,
    .manage-card img,
    .admin-umkm-product-card img {
        aspect-ratio: 16 / 10 !important;
    }

    .app-shell {
        height: auto !important;
        min-height: 100dvh !important;
        display: block !important;
        padding-bottom: var(--mobile-bottom-space);
        overflow: visible !important;
        background: #f7f9fd !important;
    }

    body:has(.app-shell) {
        overflow: auto !important;
        background: #f7f9fd !important;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 50;
        width: var(--mobile-page) !important;
        margin: 0 auto !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
    }

    .topbar .brand {
        grid-column: 1 / -1;
    }

    .topbar .search {
        grid-column: 1 / -1;
        height: 42px;
    }

    .topbar .add-product {
        grid-column: 1;
        min-width: 0;
        width: 100%;
    }

    .topbar .notif {
        display: grid;
        grid-column: 2;
        grid-row: 3;
    }

    .sidebar {
        display: none !important;
    }

    .content,
    .admin-content,
    .product-content,
    .order-content,
    .promotion-content,
    .balance-content,
    .report-content,
    .calculator-content,
    .account-content {
        width: var(--mobile-page) !important;
        margin: 0 auto !important;
        padding: 16px 0 var(--mobile-bottom-space) !important;
        overflow: visible !important;
    }

    .site-footer {
        display: none !important;
    }

    .table-scroll,
    .orders-table-card,
    .promotion-table-card,
    .report-table-card {
        overflow-x: auto;
    }

    .mobile-filter-toggle {
        position: fixed;
        left: -18px;
        top: 50%;
        z-index: 126;
        width: 54px;
        height: 54px;
        display: grid;
        place-items: center;
        padding-left: 16px;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-left: 0;
        border-radius: 0 18px 18px 0;
        background: #10a66a;
        box-shadow: 0 14px 30px rgba(16, 166, 106, 0.28);
        transform: translateY(-50%);
    }

    .mobile-filter-toggle .shop-icon,
    .mobile-filter-toggle .icon {
        width: 22px;
        height: 22px;
    }

    body:has(.filter-panel:target) .mobile-filter-toggle,
    body.mobile-filter-open .mobile-filter-toggle,
    body:has(.order-panel:target) .mobile-filter-toggle,
    body.mobile-cart-open .mobile-filter-toggle,
    body:has(.product-preview-modal:target) .mobile-filter-toggle,
    body.product-preview-open .mobile-filter-toggle,
    body.product-preview-closing .mobile-filter-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .filter-panel {
        position: fixed !important;
        inset: 0 !important;
        z-index: 360;
        display: block !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .filter-panel:target,
    body.mobile-filter-open .filter-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .filter-panel .mobile-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 0;
        display: block;
        background: rgba(8, 20, 42, 0.42);
    }

    .filter-panel form {
        position: fixed;
        left: 50%;
        z-index: 1;
        bottom: calc(86px + env(safe-area-inset-bottom));
        width: min(360px, calc(100vw - 28px));
        max-height: min(80dvh, 660px);
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        overflow-y: auto;
        padding: 18px !important;
        border: 1px solid #dce7f2;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 24px 58px rgba(8, 20, 42, 0.24);
        opacity: 0;
        transform: translate(-50%, 22px);
        transition: opacity 220ms ease, transform 240ms var(--motion-soft, ease);
    }

    .filter-panel:target form,
    body.mobile-filter-open .filter-panel form {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .filter-panel .panel-title {
        grid-column: auto !important;
    }

    .filter-panel .filter-group {
        gap: 8px;
        padding-bottom: 10px;
    }

    .filter-panel .price-fields {
        gap: 8px;
    }

    .filter-panel .price-fields input,
    .filter-panel .filter-group select {
        min-height: 40px;
    }

    .filter-panel .filter-actions {
        position: sticky;
        bottom: -18px;
        z-index: 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 0 -18px -18px;
        padding: 10px 18px 18px;
        border-top: 1px solid #edf2f7;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff 28%);
    }

    .filter-panel .apply-filter,
    .filter-panel .reset-filter {
        width: 100%;
        min-height: 42px;
        padding-inline: 10px;
    }

    .mobile-filter-close {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        margin-left: auto;
        color: #1f2937;
        border: 1px solid #dce7f2;
        border-radius: 11px;
        background: #f8fbff;
        font-size: 18px;
        font-weight: 950;
        line-height: 1;
    }

    .mobile-cart-toggle {
        position: fixed;
        right: -18px;
        top: calc(50% + 68px);
        z-index: 126;
        width: 54px;
        height: 54px;
        display: grid;
        place-items: center;
        padding-right: 16px;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-right: 0;
        border-radius: 18px 0 0 18px;
        background: #0b86e8;
        box-shadow: 0 14px 30px rgba(11, 134, 232, 0.28);
        transform: translateY(-50%);
    }

    .mobile-cart-toggle .shop-icon {
        width: 22px;
        height: 22px;
    }

    .mobile-cart-toggle span:not([hidden]) {
        position: absolute;
        top: 5px;
        left: 5px;
        min-width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        padding: 0 5px;
        color: #0b4f86;
        border: 2px solid #0b86e8;
        border-radius: 999px;
        background: #ffffff;
        font-size: 10px;
        font-weight: 950;
        line-height: 1;
    }

    .mobile-cart-toggle span[hidden] {
        display: none !important;
    }

    body:has(.order-panel:target) .mobile-cart-toggle,
    body.mobile-cart-open .mobile-cart-toggle,
    body:has(.filter-panel:target) .mobile-cart-toggle,
    body.mobile-filter-open .mobile-cart-toggle,
    body:has(.product-preview-modal:target) .mobile-cart-toggle,
    body.product-preview-open .mobile-cart-toggle,
    body.product-preview-closing .mobile-cart-toggle {
        opacity: 0;
        pointer-events: none;
    }

    body:has(.product-preview-modal:target) :is(.shop-header, .mobile-bottom-nav),
    body.product-preview-open :is(.shop-header, .mobile-bottom-nav),
    body.product-preview-closing :is(.shop-header, .mobile-bottom-nav) {
        opacity: 0;
        pointer-events: none;
    }

    .product-preview-modal {
        z-index: 220 !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
        visibility: hidden;
        pointer-events: none;
        transition: visibility 0s linear 260ms;
    }

    .product-preview-modal:target,
    .product-preview-modal.is-preview-open,
    .product-preview-modal.is-preview-closing {
        visibility: visible;
    }

    .product-preview-modal:target,
    .product-preview-modal.is-preview-open {
        pointer-events: auto;
        transition: visibility 0s;
    }

    .product-preview-modal.is-preview-closing:target,
    .product-preview-modal.is-preview-closed:target {
        pointer-events: none;
    }

    .preview-backdrop {
        background: rgba(8, 20, 42, 0.48) !important;
        opacity: 0;
        transition: opacity 180ms ease;
    }

    .product-preview-modal:target .preview-backdrop,
    .product-preview-modal.is-preview-open .preview-backdrop {
        opacity: 1;
    }

    .product-preview-modal.is-preview-closing:target .preview-backdrop,
    .product-preview-modal.is-preview-closed:target .preview-backdrop {
        opacity: 0;
    }

    .preview-panel {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        transform: translateX(100%);
        transition: transform 240ms var(--motion-soft, ease) !important;
    }

    .product-preview-modal:target .preview-panel,
    .product-preview-modal.is-preview-open .preview-panel {
        transform: translateX(0);
    }

    .product-preview-modal.is-preview-closing:target .preview-panel,
    .product-preview-modal.is-preview-closed:target .preview-panel {
        transform: translateX(100%);
    }

    .preview-close {
        position: fixed !important;
        top: calc(12px + env(safe-area-inset-top)) !important;
        right: 12px !important;
        z-index: 5 !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
        background: #ffffff !important;
        box-shadow: 0 10px 24px rgba(8, 20, 42, 0.14) !important;
    }

    .preview-media {
        min-height: 0 !important;
        padding: calc(16px + env(safe-area-inset-top)) 16px 12px !important;
        background: #ffffff !important;
    }

    .preview-main-frame {
        min-height: 0 !important;
        height: clamp(230px, 36dvh, 320px) !important;
        border-radius: 18px !important;
        background: #f4f8ff !important;
    }

    .preview-main-frame img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .preview-media span {
        left: 26px !important;
        top: calc(26px + env(safe-area-inset-top)) !important;
        padding: 6px 10px !important;
        font-size: 10.5px !important;
    }

    .preview-content {
        min-height: 0 !important;
        display: grid !important;
        align-content: start !important;
        gap: 12px !important;
        overflow-y: auto !important;
        padding: 14px 16px calc(94px + env(safe-area-inset-bottom)) !important;
    }

    .preview-kicker {
        gap: 7px !important;
    }

    .preview-kicker span {
        min-height: 28px !important;
        padding-inline: 10px !important;
        font-size: 10.5px !important;
    }

    .preview-content h2 {
        font-size: 22px !important;
        line-height: 1.15 !important;
    }

    .preview-content > p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .preview-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .preview-meta div {
        padding: 11px !important;
        border-radius: 13px !important;
    }

    .preview-meta dt {
        font-size: 10px !important;
    }

    .preview-meta dd {
        font-size: 13px !important;
    }

    .preview-gallery {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding-bottom: 2px !important;
        scrollbar-width: none;
    }

    .preview-gallery::-webkit-scrollbar {
        display: none;
    }

    .preview-thumb {
        width: 58px !important;
        flex: 0 0 58px !important;
        border-radius: 12px !important;
    }

    .preview-promos {
        gap: 8px !important;
    }

    .preview-promos h3 {
        font-size: 15px !important;
    }

    .preview-promo-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 13px !important;
    }

    .preview-promo-row a,
    .preview-wa,
    .preview-secondary {
        min-height: 42px !important;
        width: 100% !important;
        padding-inline: 12px !important;
        font-size: 13px !important;
    }

    .preview-actions {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 4 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid #e7eef7 !important;
        background: #ffffff !important;
        box-shadow: 0 -14px 34px rgba(8, 20, 42, 0.1) !important;
    }

    .order-panel {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 181;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        visibility: hidden;
        pointer-events: none;
        transition: visibility 0s;
    }

    .order-panel:target,
    body.mobile-cart-open .order-panel,
    body.mobile-cart-closing .order-panel {
        visibility: visible;
    }

    .order-panel:target,
    body.mobile-cart-open .order-panel {
        pointer-events: auto;
    }

    .order-panel .mobile-cart-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(8, 20, 42, 0.42);
        opacity: 0;
        transition: opacity 180ms ease;
    }

    .order-panel:target .mobile-cart-backdrop,
    body.mobile-cart-open .order-panel .mobile-cart-backdrop {
        opacity: 1;
    }

    .order-panel .mobile-cart-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: calc(78px + env(safe-area-inset-bottom));
        z-index: 2;
        width: min(360px, calc(100vw - 22px));
        max-width: calc(100vw - 10px);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        overflow: hidden;
        border: 1px solid #dce7f2;
        border-right: 0;
        border-radius: 20px 0 0 20px;
        background: #ffffff;
        box-shadow: -22px 0 54px rgba(8, 20, 42, 0.24);
        transform: translateX(108%);
        transition: transform 240ms var(--motion-soft, ease);
    }

    .order-panel:target .mobile-cart-drawer,
    body.mobile-cart-open .order-panel .mobile-cart-drawer {
        transform: translateX(0);
    }

    @media (max-width: 420px) {
        .order-panel .mobile-cart-drawer {
            bottom: calc(74px + env(safe-area-inset-bottom));
            width: calc(100vw - 8px);
            max-width: calc(100vw - 8px);
            border-radius: 18px 0 0 18px;
        }
    }

    .order-panel .order-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 62px;
        gap: 8px;
        padding: 0 12px 0 14px;
        border-bottom: 1px solid #e6edf5;
        background: #ffffff;
    }

    .order-panel .order-head div {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        min-width: 0;
        gap: 8px;
    }

    .order-panel .order-head .shop-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        color: #215732;
    }

    .order-panel .order-head strong {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        overflow: hidden;
        color: #1f2937;
        font-size: 14px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-panel .order-head strong b {
        font-weight: 900;
    }

    .order-panel .order-head > span {
        justify-self: start;
        display: inline-flex;
        align-items: center;
        padding: 5px 8px;
        color: #55715d;
        border-radius: 999px;
        background: #edf6ef;
        font-size: 10.5px;
        font-weight: 800;
        white-space: nowrap;
    }

    .mobile-cart-close {
        width: 34px;
        height: 34px;
        display: grid;
        flex: 0 0 34px;
        place-items: center;
        margin-left: 0;
        color: #1f2937;
        border: 1px solid #dce7f2;
        border-radius: 11px;
        background: #f8fbff;
        font-size: 18px;
        font-weight: 950;
        line-height: 1;
    }

    .order-panel .order-items {
        display: grid;
        align-content: start;
        min-height: 0;
        overflow-y: auto;
        padding: 12px;
        background: #ffffff;
    }

    .order-panel .cart-empty-state {
        margin: 0;
        color: #374151;
        font-size: 13px;
        line-height: 1.6;
    }

    .order-panel .order-item {
        display: grid;
        align-items: start;
        grid-template-columns: 54px minmax(0, 1fr) 36px;
        gap: 9px;
        padding: 9px;
        border: 1px solid #e6edf5;
        border-radius: 14px;
        background: #fdfefe;
    }

    .order-panel .order-item img {
        width: 54px;
        height: 54px;
        border-radius: 12px;
    }

    .order-panel .order-item strong {
        font-size: 12px;
    }

    .order-panel .order-item span,
    .order-panel .cart-remove-button {
        font-size: 11px;
    }

    .order-panel .order-item > a {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 11px;
    }

    .order-panel .order-summary {
        display: grid;
        gap: 10px;
        padding: 13px 14px calc(15px + env(safe-area-inset-bottom));
        border-top: 1px solid #e6edf5;
        background: #ffffff;
    }

    .order-panel .order-summary div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #4b5563;
        font-size: 12px;
        line-height: 1.4;
    }

    .order-panel .order-summary strong {
        color: #1f2937;
        font-size: 13px;
        font-weight: 900;
    }

    .order-panel .cart-checkout-all {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        color: #ffffff;
        border-radius: 13px;
        background: #215732;
        font-size: 13px;
        font-weight: 900;
    }

    .order-panel .cart-checkout-all .shop-icon {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    .order-panel .order-summary p {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        margin: 0;
        color: #5b6472;
        font-size: 11px;
        line-height: 1.55;
    }

    .order-panel .order-summary p .shop-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        margin-top: 1px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 50%;
        bottom: 0;
        z-index: 120;
        width: min(430px, 100vw);
        max-width: 100vw;
        overflow: hidden;
        min-height: calc(68px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(var(--mobile-nav-count, 4), minmax(0, 1fr));
        gap: 2px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border: 1px solid #e7edf5;
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
        background: #ffffff;
        box-shadow: 0 -12px 34px rgba(15, 37, 75, 0.12);
        transform: translateX(-50%);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        min-width: 0;
        min-height: 52px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
        color: #9aa4b5;
        border: 0;
        border-radius: 14px;
        background: transparent;
        font: inherit;
        font-size: 10.5px;
        font-weight: 900;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-bottom-nav svg {
        width: 21px;
        height: 21px;
    }

    .mobile-bottom-nav span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav .is-active {
        color: #111827;
        background: #f3f8ff;
    }

    .mobile-bottom-nav-umkm-grouped,
    .mobile-bottom-nav-admin-grouped {
        --mobile-nav-count: 4;
        overflow: visible;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-inline: 6px;
    }

    .mobile-bottom-nav-admin-grouped {
        --mobile-nav-count: 5;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mobile-sales-toggle svg {
        transition: transform 220ms var(--motion-soft, ease);
    }

    .mobile-bottom-nav-umkm-grouped.is-sales-open .mobile-sales-toggle svg,
    .mobile-bottom-nav-admin-grouped.is-sales-open [data-mobile-menu-toggle="sales"] svg,
    .mobile-bottom-nav-admin-grouped.is-saldo-open [data-mobile-menu-toggle="saldo"] svg {
        transform: translateY(-2px) scale(1.06);
    }

    .mobile-profile-toggle svg {
        transition: transform 220ms var(--motion-soft, ease);
    }

    .mobile-bottom-nav-umkm-grouped.is-profile-open .mobile-profile-toggle svg,
    .mobile-bottom-nav-admin-grouped.is-profile-open .mobile-profile-toggle svg {
        transform: translateY(-2px) scale(1.06);
    }

    .mobile-sales-menu {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: calc(100% + 10px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(14px) scale(0.96);
        transform-origin: bottom center;
        transition: opacity 180ms ease, transform 240ms var(--motion-soft, ease);
    }

    .mobile-profile-menu {
        position: absolute;
        right: 8px;
        bottom: calc(100% + 10px);
        width: min(220px, calc(100vw - 20px));
        opacity: 0;
        pointer-events: none;
        transform: translateY(14px) scale(0.96);
        transform-origin: bottom right;
        transition: opacity 180ms ease, transform 240ms var(--motion-soft, ease);
    }

    .mobile-bottom-nav-umkm-grouped.is-sales-open .mobile-sales-menu,
    .mobile-bottom-nav-admin-grouped.is-sales-open .mobile-admin-sales-menu,
    .mobile-bottom-nav-admin-grouped.is-saldo-open .mobile-admin-saldo-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .mobile-bottom-nav-umkm-grouped.is-profile-open .mobile-profile-menu,
    .mobile-bottom-nav-admin-grouped.is-profile-open .mobile-profile-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .mobile-sales-menu-panel {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
        border: 1px solid #e7edf5;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -16px 38px rgba(15, 37, 75, 0.16);
        backdrop-filter: blur(12px);
    }

    .mobile-admin-saldo-menu-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-admin-sales-menu-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-profile-menu-panel {
        display: grid;
        gap: 4px;
        padding: 10px;
        border: 1px solid #e7edf5;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -16px 38px rgba(15, 37, 75, 0.16);
        backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav .mobile-sales-menu a {
        min-height: 52px;
        border-radius: 13px;
        font-size: 9px;
    }

    .mobile-bottom-nav .mobile-sales-menu span {
        max-width: 54px;
    }

    .mobile-bottom-nav .mobile-admin-saldo-menu span {
        max-width: 92px;
    }

    .mobile-bottom-nav .mobile-profile-menu a,
    .mobile-bottom-nav .mobile-profile-menu button {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 12px;
        color: #0f172a;
        border: 0;
        border-radius: 12px;
        background: transparent;
        font: inherit;
        font-size: 13px;
        font-weight: 900;
        text-align: left;
        text-decoration: none;
    }

    .mobile-bottom-nav .mobile-profile-menu a.is-active,
    .mobile-bottom-nav .mobile-profile-menu a:hover,
    .mobile-bottom-nav .mobile-profile-menu button:hover {
        color: #111827;
        background: #f3f8ff;
    }

    .mobile-bottom-nav .mobile-profile-menu form button {
        color: #d92d20;
    }

    .mobile-bottom-nav .mobile-profile-menu .mobile-logout-link {
        color: #d92d20;
    }

    .mobile-bottom-nav .mobile-profile-menu form button:hover,
    .mobile-bottom-nav .mobile-profile-menu .mobile-logout-link:hover {
        color: #b42318;
        background: #fff1f1;
    }

    .mobile-profile-menu form {
        margin: 0;
    }

    .mobile-bottom-nav-umkm {
        min-height: calc(64px + env(safe-area-inset-bottom));
        gap: 1px;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav-umkm a,
    .mobile-bottom-nav-umkm button {
        min-height: 50px;
        gap: 3px;
        border-radius: 12px;
        font-size: 9.2px;
    }

    .mobile-bottom-nav-umkm svg {
        width: 19px;
        height: 19px;
    }

    .mobile-bottom-nav-umkm span {
        max-width: 58px;
    }
}

@media (max-width: 370px) {
    .home-brand strong,
    .shop-brand strong,
    .contact-brand strong,
    .buyer-brand span,
    .co-brand span,
    .brand-copy strong {
        font-size: 15px !important;
    }

    .feature-grid {
        gap: 8px !important;
    }

    .feature-card {
        padding-inline: 6px !important;
    }
}
