/* MEYINSOR Stage11C extracted static CSS from shop/product.php. JS and PHP dynamic blocks intentionally remain inline. */
:root{--mys-front-container:1300px;--mys-front-line:rgba(165,138,102,.18);--mys-front-ink:#1f1a16;--mys-front-muted:#6f6256;--mys-front-gold:#8b6f4e;}
.meyinsor-product-gift,.meyinsor-product-story{width:100%;max-width:var(--mys-front-container);margin:0 auto 28px;padding:0;}
.meyinsor-product-gift-panel,.meyinsor-product-story-panel{background:linear-gradient(135deg,#fffaf3 0%,#fff 54%,#f4ede2 100%);border:1px solid var(--mys-front-line);border-radius:24px;padding:clamp(22px,2.6vw,34px);box-shadow:0 18px 42px rgba(34,24,15,.07);color:#5f544a;line-height:1.85;}
.meyinsor-product-gift-panel h2,.meyinsor-product-story-panel h2{margin:0 0 10px;font-size:24px;line-height:1.35;color:var(--mys-front-ink);}
.meyinsor-product-gift-panel p,.meyinsor-product-story-panel p{margin:0;color:#5f544a;line-height:1.8;}
.meyinsor-product-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px;}
.meyinsor-product-story-grid .meyinsor-review-card{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--mys-front-line);border-radius:18px;box-shadow:0 12px 28px rgba(34,24,15,.055);}
.meyinsor-product-story-grid .meyinsor-review-body{padding:20px;}
.meyinsor-product-story-grid .meyinsor-review-meta,.meyinsor-product-story-grid .meyinsor-review-head{display:flex;gap:8px 10px;flex-wrap:wrap;align-items:center;line-height:1.4;}
.meyinsor-product-story-grid .meyinsor-review-stars{color:#c79a3a;letter-spacing:2px;white-space:nowrap;}
.meyinsor-product-story-grid .meyinsor-review-meta span,.meyinsor-product-story-grid .meyinsor-review-scene,.meyinsor-product-story-grid .meyinsor-review-product{font-size:12px;color:var(--mys-front-gold);}
.meyinsor-product-story-grid .meyinsor-review-card h3{margin:10px 0 8px;font-size:18px;line-height:1.45;color:#241e18;}
.meyinsor-product-story-grid .meyinsor-review-card p{margin:0;color:#5f544a;font-size:14px;line-height:1.75;word-break:break-word;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
.meyinsor-product-story-grid a{min-width:0;}
@media (max-width:1340px){.meyinsor-product-gift,.meyinsor-product-story{padding:0 20px;}}
@media (max-width:960px){.meyinsor-product-story-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:640px){.meyinsor-product-gift,.meyinsor-product-story{padding:0 14px;margin-bottom:20px;}.meyinsor-product-story-grid{grid-template-columns:1fr;}.meyinsor-product-gift-panel,.meyinsor-product-story-panel{padding:20px;border-radius:18px;}.meyinsor-product-gift-panel h2,.meyinsor-product-story-panel h2{font-size:21px;}}

/* MEYINSOR_PRODUCT_DETAIL_MOBILE_OVERFLOW_STAGE7_R1_START */
/* 商品详情页移动端横向溢出治理：只约束详情页自身容器，不影响全站 URL / 数据逻辑 */
@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .mys_product_detail-wrapper,
    .mys_product_detail-wrapper * {
        box-sizing: border-box !important;
    }

    .mys_product_detail-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: clip !important;
    }

    .mys_product_breadcrumb-nav,
    .mys_product_detail-container,
    .mys_product_media-section,
    .mys_product_info-section,
    .mys_product_header,
    .mys_product_price-section,
    .mys_product_stock-section,
    .mys_product_variants-section,
    .mys_product_quantity-section,
    .mys_product_action-buttons,
    .mys_product_specs-section,
    .mys_product_description-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mys_product_detail-container {
        display: block !important;
        overflow-x: hidden !important;
        padding-bottom: 28px !important;
    }

    .mys_product_info-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }

    .mys_product_header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .mys_product_title,
    .mys_product_price-display,
    .mys_product_price-note,
    .mys_product_stock-section,
    .mys_product_section-title,
    .mys_product_action-hint a,
    .mys_product_action-hint span,
    .mys_product_spec-name,
    .mys_product_spec-value,
    .mys_product_description-content {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .mys_product_main-media-container,
    .mys_product_main-media,
    .mys_product_main-media video,
    .mys_product_main-media img {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mys_product_thumbnails-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .mys_product_thumbnails-scroll {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        scroll-padding-inline: 0 !important;
    }

    .mys_product_thumb-nav-prev,
    .mys_product_thumb-nav-next,
    .mys_product_thumb-nav-btn {
        display: none !important;
    }

    .mys_product_variants-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mys_product_variant-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 10px 8px !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .mys_product_quantity-controls {
        width: 100% !important;
        max-width: 188px !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    .mys_product_quantity-btn {
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
    }

    .mys_product_quantity-input {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .mys_product_action-hint,
    .mys_product_specs-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mys_product_add-to-cart-btn,
    .mys_product_success-message,
    .mys_product_spec-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mys_product_description-content {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .mys_product_description-content img,
    .mys_product_description-content video,
    .mys_product_description-content iframe,
    .mys_product_description-content table {
        max-width: 100% !important;
    }

    .mys_product_description-content table {
        display: block !important;
        overflow-x: auto !important;
        white-space: normal !important;
    }
}

@media (max-width: 380px) {
    .mys_product_detail-wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .mys_product_variants-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .mys_product_price-section,
    .mys_product_stock-section,
    .mys_product_specs-section,
    .mys_product_description-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
/* MEYINSOR_PRODUCT_DETAIL_MOBILE_OVERFLOW_STAGE7_R1_END */
