.pf-shell,
#pf-quick-view {
    display: none;
}

@media (max-width: 1024px) {
    .protstar-food-enabled .pf-shell {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: #ffffff;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-top: 0;
        padding-top: 0;
    }

    /* 清除主题主区域可能的顶部间距，贴合 header */
    .protstar-food-enabled .site-main,
    .protstar-food-enabled .content-area,
    .protstar-food-enabled .page-wrapper,
    .protstar-food-enabled .row {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* 隐藏默认商店内容（不隐藏头部容器，避免遮挡壳层） */
    .protstar-food-enabled .woocommerce-breadcrumb,
    .protstar-food-enabled .woocommerce-products-header,
    .protstar-food-enabled .woocommerce-notices-wrapper,
    .protstar-food-enabled .woocommerce-result-count,
    .protstar-food-enabled .woocommerce-ordering,
    .protstar-food-enabled ul.products,
    .protstar-food-enabled .woocommerce-pagination,
    .protstar-food-enabled .widget-area,
    .protstar-food-enabled .page-title-inner,
    .protstar-food-enabled .category-filtering,
    .protstar-food-enabled .shop-container .col,
    .protstar-food-enabled .site-footer,
    .protstar-food-enabled .footer,
    .protstar-food-enabled .footer-wrapper,
    .protstar-food-enabled .page-footer {
        display: none !important;
    }

    .protstar-food-enabled .site-main,
    .protstar-food-enabled .content-area {
        width: 100%;
    }

    .pf-topbar {
        padding: 12px 14px;
        font-weight: 600;
        font-size: 16px;
        position: sticky;
        top: 0;
        z-index: 5;
        background: #ffffff;
        border-bottom: 1px solid #eee;
    }

    .pf-layout {
        display: flex;
        flex: 1;
        min-height: 0;
    }

    .pf-sidenav {
        width: 20%;
        background: #f9f9f9;
        overflow-y: auto;
        max-height: calc(100vh - 64px);
        position: sticky;
        top: 0;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }

    .pf-sidenav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .pf-sidenav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .pf-sidenav li {
        padding: 12px 10px;
        line-height: 1.3;
        cursor: pointer;
        word-break: break-word;
    }

    .pf-sidenav li.active {
        background: #ffffff;
        font-weight: 700;
    }

    .pf-products {
        width: 80%;
        overflow-y: auto;
        max-height: calc(100vh - 64px);
        padding: 8px 8px 80px;
        background: #ffffff;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }

    .pf-products::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .pf-product-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .pf-product-card {
        display: flex;
        gap: 10px;
        padding: 10px 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .pf-product-thumb {
        flex: 0 0 45%;
        border-radius: 6px;
        overflow: hidden;
        background: #fafafa;
        aspect-ratio: 1 / 1;
    }

    .pf-product-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .pf-product-meta {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto 1fr auto;
        column-gap: 8px;
        row-gap: 6px;
    }

    .pf-product-title {
        grid-column: 1 / span 2;
        font-size: 13px;
        font-weight: 600;
        margin: 0;
        line-height: 1.35;
    }

    .pf-product-price {
        font-size: 14px;
        font-weight: 700;
        color: #333;
        align-self: end;
    }

    .pf-add-btn {
        justify-self: end;
        align-self: end;
        background: #2ea3f2;
        color: #ffffff;
        border: none;
        border-radius: 4px;
        padding: 4px 10px;
        font-size: 13px;
        cursor: pointer;
        transition: transform 0.12s ease, box-shadow 0.12s ease;
        height: 28px;
        line-height: 20px;
    }


    .pf-add-btn:hover {
        box-shadow: 0 4px 8px rgba(46, 163, 242, 0.35);
        transform: translateY(-1px);
    }

    .pf-add-btn:active {
        transform: translateY(0);
    }

    .pf-empty {
        padding: 18px 8px;
        color: #777;
        text-align: center;
    }

    .pf-cart-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        height: 58px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 14px;
        background: #ffffff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #f1f1f1;
    }

    .pf-cart-total {
        font-weight: 700;
        font-size: 16px;
        color: #222;
    }

    .pf-checkout-btn {
        background: #2ea3f2;
        color: #ffffff;
        padding: 10px 16px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 4px 10px rgba(46, 163, 242, 0.32);
    }

    /* 快速显示弹层 */
    #pf-qv-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 35;
        display: none;
    }

    #pf-qv-overlay.active {
        display: block;
    }

    #pf-quick-view {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 80vh;
        background: #ffffff;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        transform: translateY(105%);
        transition: transform 0.28s ease;
        z-index: 40;
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #pf-quick-view.active {
        transform: translateY(0);
    }

    .pf-qv-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding: 12px 14px 0 14px;
    }

    .pf-qv-title {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }

    .pf-qv-close {
        background: transparent;
        border: none;
        font-size: 18px;
        cursor: pointer;
    }

    .pf-qv-content {
        flex: 1;
        overflow-y: auto;
        border-radius: 10px;
        background: #fff;
        padding: 0;
    }

    .pf-qv-loading-text {
        padding: 16px;
        text-align: center;
        color: #555;
    }

    /* 弹窗内的产品布局与画廊基础样式 */
    /* 画廊/摘要沿用主题默认布局，尽量少改 */

    /* 隐藏弹窗内的关联产品与社交分享 */
    .pf-qv-content .related,
    .pf-qv-content .related-products-wrapper,
    .pf-qv-content .product-section.related,
    .pf-qv-content .social-icons,
    .pf-qv-content .share-icons,
    .pf-qv-content .product-share,
    .pf-qv-content .share-icons-wrapper {
        display: none !important;
    }

    .pf-qv-thumb img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .pf-qv-desc {
        color: #555;
        font-size: 14px;
        line-height: 1.5;
    }

    .pf-qv-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid #f1f1f1;
    }

    .pf-qv-price {
        font-size: 16px;
        font-weight: 700;
    }

    .pf-qv-add {
        background: #2ea3f2;
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 8px;
        font-weight: 700;
        cursor: pointer;
    }
}

