/* ===========================================================
   SYVIMIR 商品页：左图右信息 + 下方详情/实拍
   =========================================================== */

.single-product .product-entry-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 458px;
    gap: 48px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 20px 0;
    box-sizing: border-box;
}

/* ---------- 左侧主图 ---------- */
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.single-product .woocommerce-product-gallery img {
    border-radius: 10px;
}
.single-product .flexy-pills {
    margin-top: 12px;
}
.single-product .flexy-pills .flexy-item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e6e8eb;
}
.single-product .flexy-pills .flexy-item.is-active,
.single-product .flexy-pills .flexy-item:hover {
    border-color: #ff4d18;
}

/* ---------- 右侧信息 ---------- */
.single-product .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}
.single-product .summary .entry-title,
.single-product .summary .product_title {
    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 14px;
    color: #14171a;
}
.single-product .summary .price {
    font-size: 28px;
    font-weight: 700;
    color: #ff4d18;
    margin: 0 0 6px;
}
.single-product .summary .price small,
.single-product .summary .price .woocommerce-Price-currencySymbol {
    font-size: 18px;
    font-weight: 600;
}
.single-product .summary .woocommerce-product-details__short-description {
    color: #5c626b;
    font-size: 14px;
    line-height: 1.7;
    margin: 4px 0 18px;
}

/* ---------- 变体表格骨架 ---------- */
.single-product table.syv-variations {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}
.single-product table.syv-variations th.label {
    width: 58px;
    text-align: left;
    vertical-align: top;
    padding: 12px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #8a9099;
    background: none;
    border: 0;
}
.single-product table.syv-variations td.value {
    padding: 8px 0 14px;
    vertical-align: top;
    border: 0;
    background: none;
}
.single-product table.syv-variations tr.syv-row {
    border: 0;
}
.single-product table.syv-variations tr.syv-row--reset td {
    padding: 0;
}

/* 隐藏原生下拉，只做逻辑载体 */
.single-product select.syv-native {
    position: absolute !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ---------- 颜色 SKU 图 ---------- */
.syv-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px;
}
.syv-swatch {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: center;
    font: inherit;
    line-height: 1.2;
}
.syv-swatch__media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid #e6e8eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    position: relative;
}
.syv-swatch__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.syv-swatch__chip {
    display: block;
    width: 100%;
    height: 100%;
}
.syv-swatch__name {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #7b8189;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.syv-swatch:hover .syv-swatch__media {
    border-color: #c9ccd1;
}
.syv-swatch.is-active .syv-swatch__media {
    border-color: #ff4d18;
    box-shadow: 0 0 0 1px #ff4d18 inset;
}
.syv-swatch.is-active .syv-swatch__name {
    color: #ff4d18;
    font-weight: 600;
}
.syv-swatch.is-disabled {
    opacity: .32;
    cursor: not-allowed;
}

/* ---------- 尺码按钮 ---------- */
.syv-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.syv-size {
    min-width: 46px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    background: #fff;
    color: #23272c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.syv-size:hover {
    border-color: #9aa0a6;
}
.syv-size.is-active {
    border-color: #14171a;
    background: #14171a;
    color: #fff;
}
.syv-size.is-disabled {
    opacity: .35;
    text-decoration: line-through;
    cursor: not-allowed;
}
.syv-sizechart-btn {
    height: 36px;
    padding: 0 12px;
    border: 1px dashed #c9ccd1;
    border-radius: 6px;
    background: #fafbfc;
    color: #5c626b;
    font-size: 12px;
    cursor: pointer;
}
.syv-sizechart-btn:hover {
    border-color: #ff4d18;
    color: #ff4d18;
}

/* ---------- 尺码表 ---------- */
.syv-sizechart {
    display: none;
    margin-top: 12px;
    border: 1px solid #eceef1;
    border-radius: 8px;
    padding: 12px 14px 10px;
    background: #fcfcfd;
}
.syv-sizechart.is-open {
    display: block;
}
.syv-sizechart__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #23272c;
}
.syv-units {
    display: inline-flex;
    border: 1px solid #dcdfe3;
    border-radius: 5px;
    overflow: hidden;
}
.syv-units button {
    border: 0;
    background: #fff;
    padding: 3px 9px;
    font-size: 11px;
    cursor: pointer;
    color: #7b8189;
}
.syv-units button.is-on {
    background: #14171a;
    color: #fff;
}
.syv-sizechart__scroll {
    overflow-x: auto;
}
.syv-sizechart table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 320px;
}
.syv-sizechart th,
.syv-sizechart td {
    border-bottom: 1px solid #eef0f2;
    padding: 6px 8px;
    text-align: center;
    color: #3a3f45;
    white-space: nowrap;
}
.syv-sizechart thead th {
    background: #f5f6f8;
    font-weight: 600;
    color: #5c626b;
}
.syv-sizechart tbody th {
    font-weight: 600;
    color: #14171a;
}
.syv-sizechart__note {
    margin: 8px 0 0;
    font-size: 11px;
    color: #9aa0a6;
}

/* ---------- 已选提示 ---------- */
.syv-picked {
    min-height: 0;
    font-size: 13px;
    color: #5c626b;
    margin: 2px 0 10px;
    opacity: 0;
    transition: opacity .15s ease;
}
.syv-picked.is-on {
    opacity: 1;
}

/* ---------- 加购区 ---------- */
.single-product .single_variation_wrap .woocommerce-variation-price {
    margin: 0 0 10px;
    font-size: 20px;
    color: #ff4d18;
    font-weight: 700;
}
.single-product .woocommerce-variation-add-to-cart,
.single-product .ct-product-add-to-cart {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.single-product .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
}
.single-product .quantity .qty {
    width: 56px;
    height: 46px;
    border: 0;
    text-align: center;
    font-size: 14px;
    background: #fff;
}
.single-product .single_add_to_cart_button {
    flex: 1;
    height: 48px;
    border-radius: 6px;
    background: #ff4d18;
    border: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .15s ease;
}
.single-product .single_add_to_cart_button:hover {
    background: #e83f0c;
}
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button:disabled {
    background: #c9ccd1;
    cursor: not-allowed;
}

/* ---------- 服务承诺 ---------- */
.syv-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #eef0f2;
}
.syv-trust__item {
    text-align: center;
}
.syv-trust__t {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #23272c;
}
.syv-trust__d {
    display: block;
    font-size: 11px;
    color: #9aa0a6;
    margin-top: 2px;
}

/* ---------- 下方：详情图 / 实拍图 ---------- */
.syv-sections {
    max-width: 1180px;
    margin: 56px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}
.syv-section {
    margin-bottom: 56px;
}
.syv-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #14171a;
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 4px solid #ff4d18;
    line-height: 1.3;
}
.syv-section__text {
    max-width: 860px;
    font-size: 15px;
    line-height: 1.9;
    color: #3a3f45;
    margin-bottom: 24px;
}
.syv-section__text h4 {
    font-size: 16px;
    margin: 22px 0 8px;
    color: #14171a;
}
.syv-section__text ul {
    margin: 0 0 14px;
    padding-left: 20px;
}
.syv-section__text li {
    margin-bottom: 6px;
}

.syv-detail-imgs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.syv-detail-imgs .syv-shot {
    display: block;
    width: 100%;
    max-width: 860px;
}
.syv-detail-imgs img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.syv-real-imgs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.syv-real-imgs .syv-shot {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f6f8;
}
.syv-real-imgs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.syv-real-imgs .syv-shot:hover img {
    transform: scale(1.04);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .single-product .product-entry-wrapper {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .single-product .product-entry-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 0 14px;
    }
    .single-product .summary .entry-title,
    .single-product .summary .product_title {
        font-size: 20px;
    }
    .single-product .summary .price {
        font-size: 24px;
    }
    .syv-swatches {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 8px;
    }
    .syv-real-imgs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .syv-sections {
        margin-top: 32px;
        padding: 0 14px;
    }
    .syv-section {
        margin-bottom: 36px;
    }
    .syv-section__title {
        font-size: 17px;
    }
    .syv-trust {
        gap: 6px;
    }
}
