/* Peng Delivery — mobile appearance refresh (local preview)
   Loaded last. Desktop ≥1100px stays on existing layout. */

.header-home-meta,
.header-left .header-hello,
.header-brand-name,
.poster-branch-btn {
    display: none;
}

@media (max-width: 1099px) {
    :root {
        --header-height: 56px;
        --bottom-nav-height: 72px;
        --card-shadow: 0 2px 10px rgba(54, 37, 21, 0.06);
    }

    body {
        background: #fff8f1;
    }

    body.page-main {
        background: #fffcf9 !important;
    }

    html.page-main,
    body.page-main {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    body.page-main .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 130;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 8px;
        height: calc(var(--header-height) + env(safe-area-inset-top, 0px)) !important;
        min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
        padding: env(safe-area-inset-top, 0px) 12px 0 !important;
        box-shadow: none;
        border-bottom: 0;
        background: #f87600 !important;
        animation: none !important;
    }

    body.page-main .app-header-title {
        display: none !important;
    }

    body.page-main .header-left {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        justify-self: start;
    }

    body.page-main .header-hello {
        display: none !important;
    }

    body.page-main .header-brand-name {
        display: block;
        justify-self: center;
        color: #fff;
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
        white-space: nowrap;
    }

    body.page-main .menu-icon {
        width: 34px !important;
        height: 34px !important;
        padding: 0;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 1.12rem;
        flex-shrink: 0;
        color: #fff !important;
    }

    body.page-main .header-icons {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        justify-self: end;
    }

    body.page-main .header-icons .cart-icon-wrapper,
    body.page-main .header-icons .profile-link {
        width: 34px !important;
        height: 34px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff;
        text-decoration: none;
    }

    body.page-main .header-icons .cart-icon-wrapper {
        font-size: 1.08rem !important;
    }

    body.page-main .header-icons .cart-count {
        top: 1px;
        right: 1px;
        width: 15px;
        height: 15px;
        min-width: 15px;
        border-width: 1px;
        font-size: 0.58rem;
        animation: none;
    }

    body.page-main .profile-avatar,
    body.page-main .profile-avatar-fallback {
        width: 28px !important;
        height: 28px !important;
        border-width: 1.5px !important;
        border-color: rgba(255, 255, 255, 0.85) !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.16) !important;
    }

    body.page-main .profile-avatar-fallback i {
        font-size: 0.85rem;
        color: #fff;
    }

    body.page-main .profile-status-dot {
        display: none;
    }

    body.page-main .main-content {
        padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px) !important;
        background: #fffcf9 !important;
        overflow-x: hidden !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.page-main .main-content::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    body.page-main .home-top-stack {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 5;
    }

    body.page-main .hero-section {
        order: 2;
        position: relative;
        z-index: 20;
        padding: 0 14px 10px !important;
        margin: -18px 0 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible;
        min-height: 0 !important;
    }

    body.page-main .hero-section::before,
    body.page-main .hero-section::after {
        display: none !important;
    }

    body.page-main .hero-content {
        display: block;
    }

    body.page-main .welcome-message,
    body.page-main .welcome-message .dealer-round-info,
    body.page-main .search-top-bar {
        display: none !important;
    }

    body.page-main .search-section {
        display: block;
        position: relative;
        margin-top: 0 !important;
        z-index: 4;
    }

    body.page-main .search-right-image {
        display: none !important;
    }

    body.page-search {
        background: #fff8f1 !important;
    }

    body.page-search .search-right-image {
        display: none !important;
    }

    body.page-search .search-section {
        padding: 10px 14px 14px !important;
        overflow: visible !important;
        z-index: 20;
    }

    body.page-search .search-section::before {
        display: none !important;
    }

    body.page-search .search-top-bar {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    body.page-search .search-container-main {
        top: 0 !important;
    }

    body.page-search .search-results-section {
        padding: 12px 12px 110px !important;
        background: #fff8f1 !important;
    }

    body.page-search .search-helpers {
        margin: 0 -4px 12px !important;
    }

    body.page-search .search-helpers-track {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 4px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.page-search .search-helpers-track::-webkit-scrollbar {
        display: none;
    }

    body.page-search .search-helper-chip {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: baseline;
        gap: 5px;
        height: 34px;
        padding: 0 13px;
        border: 1px solid #f0d4b8;
        border-radius: 999px;
        background: #fff;
        color: #6b3f1f;
        font-size: 0.84rem;
        font-weight: 600;
        line-height: 34px;
        text-decoration: none;
        box-shadow: 0 1px 2px rgba(54, 37, 21, 0.04);
    }

    body.page-search .search-helper-chip .search-helper-count {
        font-size: 0.7rem;
        font-weight: 500;
        color: #b07a4a;
    }

    body.page-search .search-helper-chip.is-active {
        background: #f87600;
        border-color: #f87600;
        color: #fff;
        box-shadow: 0 3px 8px rgba(248, 118, 0, 0.28);
    }

    body.page-search .search-helper-chip.is-active .search-helper-count {
        color: rgba(255, 255, 255, 0.82);
    }

    body.page-search .product-card .product-image-wrapper {
        background: #fff !important;
    }

    body.page-search .product-card .product-image {
        object-fit: contain !important;
        object-position: center !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        filter: none !important;
        transform: none !important;
        border-radius: 0 !important;
    }

    body.page-search .product-card:hover .product-image {
        transform: none !important;
    }

    body.page-main .delivery-status-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        max-width: 100%;
        width: auto;
        min-width: 0;
        padding: 4px 8px !important;
        color: #5c3a1f !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 0 !important;
        border-radius: 999px !important;
        box-shadow: 0 4px 14px rgba(80, 30, 0, 0.12);
        font-size: 0.72rem;
        font-weight: 600;
    }

    body.page-main .delivery-mini-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
    }

    :is(body.page-main, body.page-search) .search-input-wrapper {
        margin-top: 0 !important;
        display: flex;
        align-items: center;
        gap: 0;
        min-height: 50px;
        padding: 5px 5px 5px 12px;
        background: #fff !important;
        border: 1px solid rgba(248, 118, 0, 0.14) !important;
        border-radius: 999px !important;
        box-shadow: 0 10px 24px rgba(80, 30, 0, 0.14);
    }

    :is(body.page-main, body.page-search) .search-input-wrapper:focus-within {
        border-color: #f87600 !important;
        box-shadow:
            0 10px 24px rgba(80, 30, 0, 0.16),
            0 0 0 3px rgba(248, 118, 0, 0.16);
    }

    :is(body.page-main, body.page-search) .search-input-wrapper .search-icon {
        flex: 0 0 auto;
        margin: 0 8px 0 0 !important;
        color: #f87600 !important;
        font-size: 0.95rem !important;
    }

    :is(body.page-main, body.page-search) .search-tools {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 2px;
        margin: 0 6px 0 4px;
        padding-left: 6px;
        border-left: 1px solid #f0e0d0;
    }

    :is(body.page-main, body.page-search) .barcode-search-btn,
    :is(body.page-main, body.page-search) .image-search-btn {
        flex: 0 0 34px;
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: #8a5a32 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        font-size: 0.92rem !important;
        text-decoration: none !important;
        line-height: 1;
    }

    :is(body.page-main, body.page-search) .barcode-search-btn:active,
    :is(body.page-main, body.page-search) .image-search-btn:active {
        background: #fff3e8 !important;
        color: #f87600 !important;
    }

    :is(body.page-main, body.page-search) .search-input-wrapper .search-btn {
        flex: 0 0 auto;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0;
        min-width: 44px;
        height: 40px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        color: #fff !important;
        background: #f87600 !important;
        box-shadow: none !important;
        font-family: inherit;
        font-size: 0.86rem !important;
        font-weight: 600;
        letter-spacing: 0.01em;
        transform: none !important;
    }

    :is(body.page-main, body.page-search) .search-input-wrapper .search-btn:active {
        background: #e65100 !important;
        transform: none !important;
    }

    :is(body.page-main, body.page-search) .search-btn-label {
        display: inline;
    }

    :is(body.page-main, body.page-search) .search-input-wrapper .search-btn i {
        display: none;
    }

    :is(body.page-main, body.page-search) .search-container-main {
        grid-area: search;
        position: relative;
        z-index: 6;
        min-width: 0;
    }

    body.page-main .recent-search-dropdown {
        z-index: 30 !important;
        margin-top: 8px !important;
        background: #fff !important;
        border: 1px solid rgba(248, 118, 0, 0.12) !important;
        border-radius: 16px !important;
        box-shadow: 0 16px 36px rgba(54, 37, 21, 0.18) !important;
        overflow: hidden !important;
    }

    body.page-main .recent-search-dropdown .dropdown-header {
        padding: 12px 14px 10px !important;
        font-size: 0.86rem !important;
        font-weight: 700 !important;
    }

    body.page-main .recent-search-clear {
        margin-left: auto;
        border: 0;
        background: none;
        color: #b07a4a;
        font-size: 0.78rem;
        font-weight: 700;
    }

    body.page-main .recent-terms-list {
        max-height: 260px !important;
        padding: 6px 8px 10px !important;
    }

    body.page-main .recent-search-term {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 10px;
        border-radius: 12px;
        color: #4a3426;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
    }

    body.page-main .recent-search-term i {
        color: #f87600;
        width: 16px;
        text-align: center;
        opacity: 0.75;
    }

    body.page-main .recent-search-term:active {
        background: #fff4ea;
    }

    :is(body.page-main, body.page-search) .search-container-main,
    :is(body.page-main, body.page-search) .search-container-main input,
    :is(body.page-main, body.page-search) .search-bar {
        border-radius: 999px !important;
    }

    :is(body.page-main, body.page-search) .search-container-main input {
        flex: 1;
        min-width: 0;
        height: 40px;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 0.92rem !important;
        font-weight: 400 !important;
        color: #3d2a1a !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    :is(body.page-main, body.page-search) .search-container-main input::placeholder {
        color: #b08968 !important;
        font-weight: 400 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 359px) {
        :is(body.page-main, body.page-search) .search-btn-label {
            display: none;
        }

        :is(body.page-main, body.page-search) .search-input-wrapper .search-btn {
            min-width: 40px;
            padding: 0 !important;
            width: 40px !important;
        }

        :is(body.page-main, body.page-search) .search-input-wrapper .search-btn i {
            display: inline-block;
            font-size: 0.9rem;
        }
    }

    body.page-main .home-poster-section {
        order: 1;
        position: relative;
        z-index: 4;
        width: 100vw;
        max-width: 100vw;
        margin: 0 calc(50% - 50vw);
    }

    body.page-main .home-poster-section[hidden] {
        display: none !important;
    }

    body.page-main .home-poster-section.no-poster-image {
        min-height: 44px;
        width: auto;
        max-width: none;
        margin: 0;
        background: transparent;
    }

    body.page-main .home-poster-section.no-poster-image .home-poster-swiper {
        display: none;
    }

    body.page-main .poster-branch-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 8;
        max-width: min(78vw, 280px);
        min-height: 36px;
        padding: 0 12px;
        border: 0;
        border-radius: 999px;
        background: #f87600;
        color: #fff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
        font-size: 0.86rem;
        font-weight: 800;
        line-height: 1.15;
        cursor: pointer;
    }

    body.page-main .home-poster-section.no-poster-image .poster-branch-btn {
        position: relative;
        top: auto;
        right: auto;
        display: flex;
        margin: 8px 12px 0 auto;
    }

    body.page-main .poster-branch-btn .fa-store,
    body.page-main .poster-branch-btn .fa-chevron-down {
        flex-shrink: 0;
        color: #fff;
        font-size: 0.85rem;
    }

    body.page-main .poster-branch-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    body.page-main .home-poster-swiper {
        overflow: hidden;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    body.page-main .home-poster-slide {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        cursor: pointer;
        background: #fff7ed;
    }

    body.page-main .home-poster-slide img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    body.page-main .home-poster-pagination {
        bottom: 8px !important;
    }

    body.page-main .home-poster-pagination .swiper-pagination-bullet {
        background: #fff;
        opacity: 0.7;
    }

    body.page-main .home-poster-pagination .swiper-pagination-bullet-active {
        background: #f87600;
        opacity: 1;
        width: 16px;
        border-radius: 6px;
    }

    body.page-main .desktop-hero-row {
        padding: 10px 12px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    body.page-main .promotions-section:not(.has-promos) {
        display: none !important;
    }

    body.page-main .promotions-section.has-promos {
        display: block !important;
        position: relative;
        z-index: 1 !important;
        padding-top: 22px;
        overflow: hidden;
    }

    body.page-main .promo-see-all,
    body.page-main .home-see-all {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 3;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #c45c00;
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
    }

    body.page-main .promoja-section .section-header {
        display: none !important;
    }

    body.page-main .promoja-section {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    body.page-main .promoja-banner-container {
        overflow: hidden !important;
        border-radius: 0 !important;
    }

    body.page-main .promoja-banner-swiper {
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        padding-bottom: 22px;
    }

    body.page-main .promoja-banner-swiper .swiper-slide {
        height: auto !important;
    }

    body.page-main .promoja-banner-slide,
    body.page-main .promoja-banner-slide.poster-slide {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100% !important;
        height: 112px !important;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(54, 37, 21, 0.08);
        border: 1px solid rgba(248, 118, 0, 0.1);
    }

    body.page-main .promoja-banner-slide:hover {
        transform: none;
    }

    body.page-main .promoja-banner-image {
        position: relative;
        flex: 0 0 112px;
        width: 112px !important;
        height: 112px !important;
        background: #fff7ed;
    }

    body.page-main .promoja-banner-image .banner-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
    }

    body.page-main .promoja-banner-slide.poster-slide .banner-image {
        object-fit: contain !important;
        background: #fff !important;
    }

    body.page-main .banner-image-placeholder {
        padding: 8px;
        font-size: 0.7rem;
        background: linear-gradient(145deg, #ff8a1a, #f87600);
    }

    body.page-main .banner-image-placeholder i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    body.page-main .banner-image-placeholder h3,
    body.page-main .banner-image-placeholder p {
        display: none;
    }

    body.page-main .promoja-banner-overlay {
        position: static !important;
        flex: 1 1 auto;
        min-width: 0;
        background: #fff !important;
        padding: 10px 12px !important;
        color: #1c1917 !important;
        display: flex;
        align-items: center;
    }

    body.page-main .banner-content {
        width: 100%;
        min-width: 0;
    }

    body.page-main .banner-badge {
        margin-bottom: 4px;
        padding: 3px 8px;
        font-size: 0.68rem;
        box-shadow: none;
    }

    body.page-main .banner-title {
        font-size: 0.92rem !important;
        font-weight: 700;
        line-height: 1.25;
        margin: 0 0 4px !important;
        color: #1c1917 !important;
        text-shadow: none !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.page-main .banner-condition {
        font-size: 0.75rem !important;
        margin: 0 0 2px !important;
        color: #78716c !important;
        text-shadow: none !important;
        opacity: 1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.page-main .banner-date {
        font-size: 0.7rem !important;
        color: #a8a29e !important;
        text-shadow: none !important;
        opacity: 1 !important;
    }

    body.page-main .promoja-pagination {
        bottom: 0 !important;
        position: absolute;
    }

    body.page-main .promoja-pagination .swiper-pagination-bullet {
        background: #f87600;
        border-color: transparent;
        width: 7px;
        height: 7px;
    }

    body.page-main .promoja-pagination .swiper-pagination-bullet-active {
        background: #f87600;
        width: 18px;
        transform: none;
        box-shadow: none;
    }

    body.page-main .promoja-nav-next,
    body.page-main .promoja-nav-prev {
        display: none !important;
    }

    body.page-main .categories-section {
        margin-top: 2px;
        padding: 0 12px 6px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: transparent !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.page-main .brands-section,
    body.page-main .categories-main-section {
        position: relative;
        margin: 0 !important;
        padding: 24px 10px 10px !important;
        background: #fff;
        border: 1px solid rgba(248, 118, 0, 0.14);
        border-radius: 16px;
        box-shadow: 0 2px 10px rgba(54, 37, 21, 0.04);
    }

    body.page-main .brands-section {
        padding: 20px 10px 8px !important;
    }

    body.page-main .brands-section .home-see-all,
    body.page-main .categories-main-section .home-see-all {
        top: 8px;
        right: 10px;
    }

    body.page-main .section-header-small {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 6px !important;
        padding: 0 !important;
    }

    body.page-main .section-header-small .header-icon-sm {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        font-size: 0.85rem !important;
        flex-shrink: 0;
    }

    body.page-main .section-header-small .header-icon-sm.orange {
        background: linear-gradient(135deg, #ff8a2b, #f87600) !important;
    }

    body.page-main .section-header-small .header-icon-sm.blue {
        background: linear-gradient(135deg, #4ea1ff, #2f78e8) !important;
    }

    body.page-main .section-title-small {
        margin: 0 !important;
        flex: 1;
        color: #2b1a12 !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    body.page-main .section-link {
        margin-left: auto;
        padding: 6px 10px !important;
        color: #e65100 !important;
        background: #fff3e8 !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        white-space: nowrap;
    }

    body.page-main .section-link::after {
        content: none !important;
    }

    body.page-main .fab-container,
    .fab-container {
        display: none !important;
    }

    /* Shared 2-row horizontal scroller for brands + categories */
    body.page-main .brand-scroll-grid,
    body.page-main .category-scroll-grid,
    body.page-main .brands-section .brands-grid,
    body.page-main .categories-main-section .categories-grid {
        display: grid !important;
        grid-template-columns: none !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-flow: column !important;
        gap: 8px !important;
        align-content: start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        flex-wrap: nowrap !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.page-main .brand-scroll-grid::-webkit-scrollbar,
    body.page-main .category-scroll-grid::-webkit-scrollbar,
    body.page-main .brands-section .brands-grid::-webkit-scrollbar,
    body.page-main .categories-main-section .categories-grid::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    body.page-main .home-scroll-line {
        position: relative;
        width: 48px;
        height: 2px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: #efe4da;
        overflow: hidden;
        pointer-events: none;
    }

    body.page-main .home-scroll-line[hidden] {
        display: none !important;
    }

    body.page-main .home-scroll-line i {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 16px;
        border-radius: inherit;
        background: #f87600;
    }

    /* 4 columns x 2 rows = 8 brands per viewport */
    body.page-main .brands-section .brand-scroll-grid,
    body.page-main .brands-section .brands-grid {
        grid-auto-columns: calc((100% - 24px) / 4) !important;
        gap: 8px !important;
    }

    /* 5 columns x 2 rows = 10 categories per viewport */
    body.page-main .categories-main-section .category-scroll-grid,
    body.page-main .categories-main-section .categories-grid {
        grid-auto-columns: calc((100% - 32px) / 5) !important;
        gap: 8px !important;
    }

    body.page-main .brands-section .category-card,
    body.page-main .categories-main-section .category-card,
    body.page-main .brands-section .category-card:hover,
    body.page-main .categories-main-section .category-card:hover,
    body.page-main .brands-section .category-card:focus,
    body.page-main .categories-main-section .category-card:focus,
    body.page-main .brands-section .category-card:focus-visible,
    body.page-main .categories-main-section .category-card:focus-visible,
    body.page-main .brands-section .category-card:active,
    body.page-main .categories-main-section .category-card:active {
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        outline: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        text-decoration: none !important;
        color: inherit !important;
        scroll-snap-align: start;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        gap: 4px !important;
        flex: none !important;
    }

    body.page-main .brands-section .category-icon,
    body.page-main .brands-section .brand-card .category-icon {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        flex: 0 0 52px !important;
        padding: 5px !important;
        margin: 0 auto !important;
        border: 1.5px solid rgba(248, 118, 0, 0.38) !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body.page-main .brands-section .category-icon img,
    body.page-main .brands-section .brand-card .category-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    body.page-main .brands-section .brand-card .category-name {
        display: none !important;
    }

    body.page-main .brands-section .category-card::before,
    body.page-main .categories-main-section .category-card::before {
        display: none !important;
    }

    body.page-main .product-sections {
        padding: 4px 12px 8px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    body.page-main .products-section {
        margin: 0 !important;
        padding: 14px 12px !important;
        background: #fff;
        border: 1px solid rgba(248, 118, 0, 0.1);
        border-radius: 20px;
        box-shadow: var(--card-shadow);
    }

    body.page-main .products-section .section-header {
        margin: 0 0 12px !important;
        padding: 0 !important;
        gap: 8px;
    }

    body.page-main .products-section .section-header::after {
        display: none !important;
    }

    body.page-main .home-strip-section {
        padding: 8px !important;
        background: #fff !important;
        border: 1px solid rgba(248, 118, 0, 0.28) !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 10px rgba(248, 118, 0, 0.06) !important;
    }

    body.page-main .home-strip-section .header-icon {
        display: none !important;
    }

    body.page-main .home-strip-section .section-header {
        margin: 0 0 6px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        background: transparent !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.page-main .home-strip-section .section-title {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 5px 11px !important;
        color: #c45c00 !important;
        font-size: 0.86rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
        background: #fff !important;
        border: 1px solid rgba(248, 118, 0, 0.42) !important;
        border-radius: 999px !important;
        box-shadow: 0 1px 4px rgba(248, 118, 0, 0.08) !important;
    }

    body.page-main .home-strip-section .section-title i {
        color: #f87600;
        font-size: 0.72rem;
        line-height: 1;
    }

    body.page-main .home-strip-section .section-header .section-link,
    body.page-main .home-strip-section .section-header .section-link:hover,
    body.page-main .home-strip-section .section-header .section-link:focus {
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #c45c00 !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        transform: none !important;
    }

    body.page-main .home-strip-section .section-header .section-link::after {
        content: " ›" !important;
        font-size: 1rem;
        line-height: 1;
        font-weight: 500;
    }

    body.page-main .home-strip-section .products-slider-container,
    body.page-main .home-strip-section .products-swiper {
        padding: 0 !important;
        margin: 0 !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card {
        border-radius: 14px !important;
        box-shadow: 0 1px 6px rgba(54, 37, 21, 0.05) !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .product-image-wrapper {
        aspect-ratio: 1 / 1 !important;
        max-height: 92px !important;
        background: #fffaf4 !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .product-image-wrapper img.product-image {
        padding: 4px !important;
        background: transparent !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .product-info {
        padding: 6px 8px 8px !important;
        gap: 4px !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .product-name {
        min-height: 0 !important;
        margin: 0 !important;
        color: #3a2a22 !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .product-price,
    body.page-main .home-strip-section .products-swiper .slider-product-card .current-price {
        font-size: 0.86rem !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .original-price {
        font-size: 0.6rem !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .price-row {
        flex-wrap: wrap;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .price-unit {
        font-size: 0.58em;
        font-weight: 600;
        color: #8a7463;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .card-deal-price {
        flex: 1 0 100%;
        margin-top: 2px;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .card-deal-unit,
    body.page-main .home-strip-section .products-swiper .slider-product-card .card-deal-amt {
        font-size: 0.54rem;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .category-tag,
    body.page-main .home-strip-section .products-swiper .slider-product-card .brand-tag {
        max-width: 100%;
        padding: 1px 6px !important;
        font-size: 0.5rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .favorite-btn {
        top: 5px !important;
        right: 5px !important;
        width: 26px !important;
        height: 26px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .favorite-btn i {
        font-size: 0.7rem !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .view-icon,
    body.page-main .home-strip-section .products-swiper .slider-product-card .select-btn-slider {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 0.62rem !important;
        box-shadow: 0 2px 6px rgba(248, 118, 0, 0.22) !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .view-icon {
        right: 6px !important;
        bottom: 6px !important;
    }

    body.page-main .home-strip-section .products-swiper .slider-product-card .new-badge {
        top: 5px !important;
        left: 5px !important;
        padding: 2px 5px !important;
        font-size: 0.5rem !important;
    }

    body.page-main .products-swiper .swiper-slide,
    body.page-main .products-swiper .swiper-slide-active,
    body.page-main .products-swiper .swiper-slide-next,
    body.page-main .products-swiper .swiper-slide-prev {
        transform: none !important;
        opacity: 1 !important;
    }

    body.page-main .products-swiper .swiper-slide-active .slider-product-card,
    body.page-main .products-swiper .swiper-slide:not(.swiper-slide-active) .slider-product-card,
    body.page-main .products-swiper .slider-product-card {
        transform: none !important;
        opacity: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
        background: #fff !important;
        border: 1px solid rgba(54, 37, 21, 0.06) !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 10px rgba(54, 37, 21, 0.05) !important;
    }

    body.page-main .products-swiper .slider-product-card:hover,
    body.page-main .products-swiper .slider-product-card:active {
        transform: none !important;
    }

    body.page-main .all-products-section {
        margin: 0 !important;
        padding: 12px 10px 10px !important;
        background: #fff !important;
        border: 1px solid rgba(248, 118, 0, 0.14) !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 10px rgba(54, 37, 21, 0.04) !important;
    }

    body.page-main .all-products-header-card {
        margin: 0 0 10px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.page-main .all-products-header-card::before,
    body.page-main .all-products-header-card::after {
        display: none !important;
    }

    body.page-main .all-products-section .aph-top-row {
        display: flex !important;
        align-items: center !important;
        margin: 0 0 10px !important;
        gap: 8px !important;
    }

    body.page-main .all-products-section .aph-subtitle,
    body.page-main .all-products-section .aph-count-badge {
        display: none !important;
    }

    body.page-main .all-products-section .aph-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        color: #f87600 !important;
        font-size: 1.05rem !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.page-main .all-products-section .aph-icon::after {
        display: none !important;
        animation: none !important;
    }

    body.page-main .all-products-section .aph-title-area {
        flex: 1 1 auto !important;
        min-width: 0;
    }

    body.page-main .all-products-section .aph-title {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #2b1a12 !important;
        font-size: 1.22rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.03em !important;
        line-height: 1.15 !important;
        background: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.page-main .all-products-section .aph-title::before {
        content: none !important;
        display: none !important;
    }

    body.page-main .aph-filters,
    body.page-main .all-products-section .aph-filters {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
        overflow: visible;
        padding: 3px !important;
        background: rgba(248, 118, 0, 0.08);
        border: 1px solid rgba(248, 118, 0, 0.2);
        border-radius: 14px;
        scrollbar-width: none;
    }

    body.page-main .aph-filters::-webkit-scrollbar {
        display: none;
    }

    body.page-main .all-products-section .aph-filter-pill,
    body.page-main .aph-filter-pill {
        flex: none;
        width: 100%;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 40px;
        padding: 8px 6px !important;
        border: 0 !important;
        border-radius: 11px !important;
        background: transparent !important;
        color: #8a5a2a !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body.page-main .all-products-section .aph-filter-pill::before,
    body.page-main .aph-filter-pill::before {
        display: none !important;
    }

    body.page-main .all-products-section .aph-filter-pill i {
        font-size: 0.78rem !important;
        color: inherit !important;
    }

    body.page-main .all-products-section .aph-filter-pill[data-filter="all"],
    body.page-main .all-products-section .aph-filter-pill[data-filter="promotion"],
    body.page-main .all-products-section .aph-filter-pill[data-filter="bestseller"] {
        background: transparent !important;
        color: #8a5a2a !important;
    }

    body.page-main .all-products-section .aph-filter-pill.active,
    body.page-main .all-products-section .aph-filter-pill.active[data-filter="all"],
    body.page-main .all-products-section .aph-filter-pill.active[data-filter="promotion"],
    body.page-main .all-products-section .aph-filter-pill.active[data-filter="bestseller"],
    body.page-main .aph-filter-pill.active {
        color: #fff !important;
        background: #f87600 !important;
        border-color: transparent !important;
        box-shadow: 0 4px 10px rgba(248, 118, 0, 0.28) !important;
        transform: none !important;
    }

    body.page-main .all-products-section .aph-filter-pill:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    body.page-main .all-products-section .aph-filter-pill:focus-visible {
        outline: 2px solid #f87600;
        outline-offset: 2px;
    }

    body.page-main .all-products-section .products-grid-container {
        padding: 0 !important;
        gap: 10px !important;
    }

    body.page-main .all-products-section .product-card {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 16px !important;
        border: 1px solid rgba(54, 37, 21, 0.07) !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(54, 37, 21, 0.05) !important;
        overflow: hidden;
    }

    body.page-main .all-products-section .product-card .product-image-wrapper {
        background: #fff !important;
    }

    body.page-main .all-products-section .product-card .product-image-wrapper img.product-image {
        padding: 8px !important;
        object-fit: contain !important;
        background: #fff !important;
    }

    body.page-main .all-products-section .product-card .product-info {
        display: flex !important;
        flex-direction: column !important;
        padding: 8px 10px 10px !important;
        gap: 5px !important;
    }

    body.page-main .all-products-section .product-card .product-meta,
    body.page-main .all-products-section .product-card .category-brand-info {
        margin: 0 !important;
        gap: 4px !important;
    }

    body.page-main .all-products-section .product-card .category-tag,
    body.page-main .all-products-section .product-card .brand-tag {
        max-width: 100%;
        padding: 1px 6px !important;
        border-radius: 999px !important;
        font-size: 0.58rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-main .all-products-section .product-card .product-name {
        min-height: 2.4em !important;
        margin: 0 !important;
        color: #2b1a12 !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }

    body.page-main .all-products-section .product-card .product-footer {
        margin-top: auto !important;
        padding-top: 4px !important;
    }

    body.page-main .all-products-section .product-card .price-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    body.page-main .all-products-section .product-card .price-unit {
        font-size: 0.58em !important;
        font-weight: 600 !important;
        color: #8a7463 !important;
        margin-left: 1px;
    }

    body.page-main .all-products-section .product-card .card-deal-price {
        flex: 1 0 100% !important;
        margin-top: 3px;
    }

    body.page-main .all-products-section .product-card .price-section {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 6px;
        min-width: 0;
    }

    body.page-main .all-products-section .product-card .current-price,
    body.page-main .all-products-section .product-card .product-price {
        display: inline-flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 3px 8px !important;
        color: #f87600 !important;
        font-size: 1.22rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.03em !important;
        line-height: 1.1 !important;
        background: #fff3e8;
        border-radius: 8px;
    }

    body.page-main .all-products-section .product-card .original-price {
        font-size: 0.68rem !important;
        color: #b5a39a !important;
    }

    body.page-main .all-products-section .product-card .discount-badge {
        padding: 2px 6px !important;
        border-radius: 999px !important;
        font-size: 0.58rem !important;
        font-weight: 700 !important;
    }

    body.page-main .all-products-section .product-card .favorite-btn {
        top: 6px !important;
        right: 6px !important;
        width: 28px !important;
        height: 28px !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(54, 37, 21, 0.1) !important;
    }

    body.page-main .all-products-section .product-card .add-to-cart-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 50% !important;
        font-size: 0.78rem !important;
        box-shadow: 0 3px 8px rgba(248, 118, 0, 0.28) !important;
    }

    body.page-main .load-more-section {
        margin: 8px 0 0 !important;
        padding: 0 !important;
    }

    body.page-main .load-more-btn {
        width: 100%;
        min-height: 42px;
        border: 0 !important;
        border-radius: 12px !important;
        color: #fff !important;
        background: #f87600 !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 12px rgba(248, 118, 0, 0.18) !important;
    }

    body.page-main .bottom-nav {
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid #efe4da;
        box-shadow: 0 -6px 20px rgba(54, 37, 21, 0.06);
    }

    body.page-main .bottom-nav .nav-item.active {
        color: #f87600 !important;
        background: #fff3e8;
    }

    .app-header {
        min-height: var(--header-height);
        box-shadow: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .hero-section {
        padding: 14px 16px 18px !important;
    }

    .hero-section::before,
    .hero-section::after {
        animation: none !important;
        opacity: 0.35;
    }

    .search-container-main,
    .search-container-main input,
    .search-bar {
        border-radius: 16px !important;
    }

    .brands-grid .category-card,
    .categories-grid .category-card {
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-decoration: none;
        color: inherit;
        scroll-snap-align: start;
        width: auto !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .categories-grid .category-icon {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        aspect-ratio: 1 / 1;
        flex-basis: 52px !important;
        margin: 0 auto !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 50% !important;
        background: transparent !important;
        overflow: hidden;
    }

    .categories-grid .category-icon {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        flex-basis: 46px !important;
    }

    .brands-section .brand-card .category-icon {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        flex: 0 0 52px !important;
        padding: 5px !important;
        border: 1.5px solid rgba(248, 118, 0, 0.38) !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .brands-grid .category-name {
        display: none !important;
    }

    .categories-grid .category-name {
        font-size: 0.68rem !important;
        font-weight: 500 !important;
        min-height: 0 !important;
        max-height: 2.4em !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
        color: #6b5346 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }

    .products-grid-container,
    .product-list-container {
        gap: 10px !important;
        padding: 8px 10px 16px !important;
        grid-auto-rows: auto !important;
        align-items: start !important;
    }

    .products-grid-container .product-card,
    .product-list-container .product-card,
    .product-card {
        min-height: 0 !important;
        border-radius: 16px;
        border: 1px solid rgba(248, 118, 0, 0.1);
        box-shadow: var(--card-shadow);
        background: #fff;
        transform: none !important;
    }

    .product-card:hover,
    .product-card:active {
        transform: none !important;
    }

    .products-grid-container .product-card .product-image-wrapper,
    .product-list-container .product-card .product-image-wrapper,
    .product-card .product-image-wrapper {
        aspect-ratio: 1 / 1 !important;
        flex-basis: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        background: #fffaf4;
    }

    .products-grid-container .product-card .product-info,
    .product-list-container .product-card .product-info,
    .product-card .product-info {
        padding: 8px 10px 10px !important;
        flex: 0 0 auto !important;
        margin-top: 0 !important;
        min-height: 0 !important;
    }

    .product-card .product-name {
        font-size: 0.86rem !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.5em;
        margin-bottom: 6px !important;
    }

    .product-card .price-row {
        align-items: flex-end;
    }

    .product-card .current-price,
    .product-card .product-price {
        font-size: 0.98rem !important;
        font-weight: 700;
    }

    .fab-container {
        display: none !important;
    }

    .bottom-nav {
        min-height: var(--bottom-nav-height);
        padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .bottom-nav .nav-item {
        min-height: 48px;
        border-radius: 14px;
    }

    .bottom-nav .nav-item span {
        font-size: 0.7rem;
        font-weight: 600;
    }

    .slider-product-card {
        min-height: 0 !important;
        box-shadow: var(--card-shadow);
    }
}

/* Desktop: hide redundant FAB (cart already in top nav) */
@media (min-width: 1100px) {
    body.page-main .header-home-meta {
        display: none !important;
    }

    body.page-main .fab-container,
    .fab-container {
        display: none !important;
    }

    body.page-main .search-right-image {
        display: none !important;
    }

    body.page-main .brands-section,
    body.page-main .categories-main-section {
        position: relative;
        padding-top: 28px !important;
    }

    body.page-main .home-see-all {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 3;
        padding: 0;
        background: transparent;
        color: #c45c00;
        font-size: 0.78rem;
        font-weight: 600;
        text-decoration: none;
    }

    /* Categories keep 2-row horizontal swipe on desktop too */
    .categories-main-section .categories-grid,
    #category-grid-dynamic.category-scroll-grid,
    .brands-section .brands-grid,
    #brand-grid-dynamic.brand-scroll-grid {
        display: grid !important;
        grid-template-columns: none !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-flow: column !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        max-height: none !important;
        padding-bottom: 0 !important;
        scrollbar-width: none;
    }

    #brand-grid-dynamic::-webkit-scrollbar,
    #category-grid-dynamic::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    body.page-main .home-scroll-line {
        position: relative;
        width: 48px;
        height: 2px;
        margin: 12px auto 0;
        border-radius: 999px;
        background: #efe4da;
        overflow: hidden;
    }

    body.page-main .home-scroll-line i {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 16px;
        border-radius: inherit;
        background: #f87600;
    }

    .brands-section .brands-grid,
    #brand-grid-dynamic.brand-scroll-grid {
        grid-auto-columns: calc((100% - 36px) / 4) !important;
    }

    .categories-main-section .categories-grid,
    #category-grid-dynamic.category-scroll-grid {
        grid-auto-columns: calc((100% - 48px) / 5) !important;
    }

    .categories-main-section .category-card,
    .brands-section .category-card {
        width: auto !important;
        flex: none !important;
    }

    body.page-main .promotions-section:not(.has-promos) {
        display: none !important;
    }
}

/* Landing — same typeface as the shop */
body.lp-body {
    font-family: "Kanit", "Noto Sans Thai", "Mitr", sans-serif;
}

body.lp-body .lp-brand-name {
    font-family: "Kanit", "Mitr", sans-serif;
}

@media (max-width: 640px) {
    body.lp-body .lp-hero {
        padding: 22px 16px 48px;
    }

    body.lp-body .lp-hero h1 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.25;
    }

    body.lp-body .lp-product-card {
        width: 148px;
    }
}

/* Product detail — use the real phone width */
@media (max-width: 767px) {
    html,
    body,
    .app-container,
    .product-detail-page,
    .pd-page,
    .detail-wrapper,
    .product-container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Login — phone-first card, hide desktop side panel */
@media (max-width: 991px) {
    body:not(.page-login) .login-pc-panel {
        display: none !important;
    }

    body:not(.page-login) .login-container {
        width: min(420px, calc(100% - 28px)) !important;
        margin: 24px auto 40px !important;
        border-radius: 22px !important;
        box-shadow: 0 10px 28px rgba(54, 37, 21, 0.1) !important;
    }
}

/* Cart — larger tap targets */
@media (max-width: 1099px) {
    .cart-item,
    .cart-list-item {
        border-radius: 16px;
    }

    .checkout-btn,
    .btn-checkout,
    .pay-btn {
        min-height: 50px;
        border-radius: 16px;
        font-weight: 700;
    }
}

.barcode-scan-modal[hidden] { display: none !important; }
.barcode-scan-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(20, 12, 6, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}
.barcode-scan-sheet {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 20px 20px 16px 16px;
    padding: 14px 14px 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.barcode-scan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.barcode-scan-close {
    border: 0;
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: #374151;
}
#barcode-reader {
    position: relative;
    width: 100%;
    height: 180px;
    max-height: 180px;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    z-index: 0;
}
#barcode-reader video,
#barcode-reader canvas,
#barcode-reader img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
}
#qr-shaded-region {
    pointer-events: none !important;
}
.barcode-scan-hint {
    margin: 10px 0 8px;
    font-size: 0.8rem;
    color: #78716c;
}
.barcode-manual-form {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 8px;
}
.barcode-manual-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    background: #fff;
}
.barcode-manual-form button {
    border: 0;
    border-radius: 10px;
    background: #f87600;
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
}

@media (min-width: 768px) {
    body.page-main .home-poster-section.has-posters {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.page-main .home-poster-section.has-posters .home-poster-swiper,
    body.page-main .home-poster-section.has-posters .swiper-wrapper,
    body.page-main .home-poster-section.has-posters .swiper-slide {
        height: 340px;
        max-height: 340px;
    }

    body.page-main .home-poster-slide {
        aspect-ratio: auto;
        height: 340px;
        max-height: 340px;
    }

    body.page-main .home-poster-slide img {
        object-fit: contain;
        background: #fff7ed;
    }
}

@media (min-width: 1100px) {
    body.page-main .poster-branch-btn,
    body.page-main .header-brand-name {
        display: none !important;
    }

    body.page-main .home-top-stack {
        display: flex;
        flex-direction: column;
    }

    body.page-main .home-top-stack .hero-section {
        order: 1;
    }

    body.page-main .home-poster-section,
    body.page-main .home-top-stack .home-poster-section,
    body.page-main .home-poster-section[hidden] {
        display: none !important;
    }

    body.page-main .home-top-stack + .desktop-hero-row {
        margin-top: 24px;
    }
    :is(body.page-main, body.page-search) .search-tools {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 8px 0 4px;
        padding-left: 10px;
        border-left: 1px solid #f0e0d0;
    }
    :is(body.page-main, body.page-search) .barcode-search-btn,
    :is(body.page-main, body.page-search) .image-search-btn {
        width: 40px;
        height: 40px;
        margin: 0;
        border: 1.5px solid #ffd9b3;
        border-radius: 12px;
        background: #fff5ec;
        color: #f87600;
    }

    body.page-search .search-helpers {
        margin: 0 0 16px;
    }

    body.page-search .search-helpers-track {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible;
        padding: 0;
    }

    body.page-search .search-helper-chip {
        height: 36px;
        line-height: 36px;
        padding: 0 14px;
        border: 1px solid #f0d4b8;
        border-radius: 999px;
        background: #fff;
        color: #6b3f1f;
        font-size: 0.88rem;
        font-weight: 600;
        text-decoration: none;
    }

    body.page-search .search-helper-chip.is-active {
        background: #f87600;
        border-color: #f87600;
        color: #fff;
    }
}

.branch-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 16, 4, 0.55);
}

.branch-modal-overlay.active {
    display: flex;
}

.branch-modal-content {
    position: relative;
    width: min(420px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 22px 16px 16px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(54, 37, 21, 0.28);
}

.branch-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f0ec;
    color: #6b5648;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.branch-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 40px 16px 4px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0e6dc;
}

.branch-modal-mark {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f87600;
    color: #fff;
    font-size: 1.05rem;
}

.branch-modal-head h3 {
    margin: 0;
    color: #3e2723;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.branch-modal-head p {
    margin: 4px 0 0;
    color: #8a7464;
    font-size: 0.82rem;
    line-height: 1.4;
}

.branch-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border: 2px solid #efe4da;
    border-radius: 16px;
    background: #faf7f3;
    color: #3e2723;
    text-decoration: none;
}

.branch-option-item.branch-option-1 .branch-pick-icon {
    background: #3f4f6b;
    color: #fff;
}

.branch-option-item.branch-option-2 .branch-pick-icon {
    background: #f87600;
    color: #fff;
}

.branch-option-item.active {
    border-color: #f87600;
    background: #fff4e8;
    box-shadow: 0 0 0 3px rgba(248, 118, 0, 0.16);
}

.branch-pick-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.2rem;
}

.branch-pick-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 2px;
}

.branch-pick-text em {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 2px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f87600;
    color: #fff;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.branch-pick-text strong {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
}

.branch-pick-text small {
    color: #8a7464;
    font-size: 0.76rem;
    line-height: 1.35;
}

.branch-pick-state {
    flex-shrink: 0;
    color: #f87600;
    font-size: 1.35rem;
}

.branch-pick-go {
    flex-shrink: 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f87600;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

@media (max-width: 1099px) {
    :is(body.page-brand, body.page-category) {
        background: #fffcf9 !important;
        padding-top: 56px !important;
    }

    :is(body.page-brand, body.page-category) .app-header {
        height: 56px !important;
        min-height: 56px;
        padding: 0 12px !important;
        background: #f87600 !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
    }

    :is(body.page-brand, body.page-category) .header-icons .cart-icon-wrapper {
        width: 34px !important;
        height: 34px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    :is(body.page-brand, body.page-category) .header-icons .profile-avatar {
        width: 28px !important;
        height: 28px !important;
        border-width: 1.5px !important;
        box-shadow: none !important;
    }

    :is(body.page-brand, body.page-category) .sticky-nav-container {
        top: 56px !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(54, 37, 21, 0.04) !important;
        border-bottom: 1px solid rgba(248, 118, 0, 0.12) !important;
    }

    :is(body.page-brand, body.page-category) .categories-nav-bar {
        padding: 8px 10px 6px !important;
    }

    :is(body.page-brand, body.page-category) .categories-nav-scroll-container {
        gap: 6px !important;
    }

    :is(body.page-brand, body.page-category) .category-nav-item {
        min-height: 34px;
        padding: 6px 12px !important;
        border: 1px solid #eadfd4 !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #6b5648 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    :is(body.page-brand, body.page-category) .category-nav-item i,
    :is(body.page-brand, body.page-category) .category-nav-item.filter-item.purchased i,
    :is(body.page-brand, body.page-category) .category-nav-item.filter-item.new-products i,
    :is(body.page-brand, body.page-category) .category-nav-item.filter-item.bestseller i {
        color: inherit !important;
    }

    :is(body.page-brand, body.page-category) .category-nav-item.active {
        color: #fff !important;
        background: #f87600 !important;
        border-color: #f87600 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    :is(body.page-brand, body.page-category) .category-nav-item.active i {
        color: #fff !important;
    }

    :is(body.page-brand, body.page-category) .brands-nav-bar {
        padding: 4px 8px 10px !important;
    }

    :is(body.page-brand, body.page-category) .brand-nav-item {
        min-width: 64px;
        padding: 6px 8px !important;
        background: #fff !important;
        border: 1px solid #f0e6dc !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    :is(body.page-brand, body.page-category) .brand-nav-item .icon-wrapper {
        background: #fff !important;
    }

    :is(body.page-brand, body.page-category) .brand-nav-item.active {
        color: #f87600 !important;
        background: #fff3e8 !important;
        border-color: #f87600 !important;
        box-shadow: none !important;
    }

    :is(body.page-brand, body.page-category) .brand-nav-item.active::after {
        display: none !important;
    }

    :is(body.page-brand, body.page-category) .products-section {
        margin: 10px 12px 88px !important;
        padding: 10px !important;
        background: #fff !important;
        border: 1px solid rgba(248, 118, 0, 0.14) !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 10px rgba(54, 37, 21, 0.04) !important;
        min-height: 0 !important;
    }

    :is(body.page-brand, body.page-category) .products-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    :is(body.page-brand, body.page-category) .product-card {
        border-radius: 16px !important;
        border: 1px solid rgba(54, 37, 21, 0.07) !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(54, 37, 21, 0.05) !important;
        transform: none !important;
    }

    :is(body.page-brand, body.page-category) .product-card .product-image-wrapper {
        background: #fff !important;
    }

    :is(body.page-brand, body.page-category) .product-card .product-image-wrapper img.product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        background: #fff !important;
        transform: none !important;
    }

    :is(body.page-brand, body.page-category) .product-card .product-info {
        padding: 8px 10px 10px !important;
    }

    :is(body.page-brand, body.page-category) .product-card .product-name {
        color: #2b1a12 !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        min-height: 2.4em !important;
    }

    :is(body.page-brand, body.page-category) .product-card .brand-tag,
    :is(body.page-brand, body.page-category) .product-card .category-tag {
        padding: 1px 6px !important;
        font-size: 0.58rem !important;
    }

    :is(body.page-brand, body.page-category) .product-card .current-price,
    :is(body.page-brand, body.page-category) .product-card .product-price {
        display: inline-flex !important;
        align-items: center;
        padding: 3px 8px !important;
        color: #f87600 !important;
        font-size: 1.22rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.03em !important;
        background: #fff3e8;
        border-radius: 8px;
    }

    :is(body.page-brand, body.page-category) .product-card .add-to-cart-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 50% !important;
        box-shadow: 0 3px 8px rgba(248, 118, 0, 0.28) !important;
    }

    :is(body.page-brand, body.page-category) .bottom-nav {
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid #efe4da;
        box-shadow: 0 -6px 20px rgba(54, 37, 21, 0.06);
    }

    :is(body.page-brand, body.page-category) .bottom-nav .nav-item.active {
        color: #f87600 !important;
        background: #fff3e8;
    }

    body.page-category .groups-nav-bar {
        padding: 0 8px 10px !important;
        background: #fff !important;
    }

    body.page-category .groups-nav-scroll-container {
        gap: 6px !important;
    }

    body.page-category .category-nav-item.group-item {
        background: #fff !important;
        border-color: #eadfd4 !important;
        color: #6b5648 !important;
        box-shadow: none !important;
    }

    body.page-category .category-nav-item.group-item.active {
        color: #fff !important;
        background: #f87600 !important;
        border-color: #f87600 !important;
        box-shadow: none !important;
    }

    body.page-category .product-card .group-tag {
        padding: 1px 6px !important;
        font-size: 0.58rem !important;
    }
}
