/*
Theme Name: 玩序研究所
Description: 臺灣戰鬥陀螺配件 WooCommerce 主題
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.2
Text Domain: wanxu
*/
:root {
    --wx-ink: #12243f;
    --wx-muted: #556785;
    --wx-edge: #d6e2f0;
    --wx-mist: #f3f5f8;
    --wx-blue: #2878e5;
    --wx-button: #1763ca;
    --wx-navy: #071a34;
    --wx-radius: 8px;
    --wx-mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body { margin: 0; }
[hidden] { display: none !important; }
a { text-underline-offset: 3px; }
:where(a, input, select, button, textarea):focus-visible { outline: 3px solid var(--wx-blue); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wanxu-shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
main.wanxu-shell { min-height: 55vh; padding-block: 32px 72px; }
main.wanxu-front { padding-top: 24px; }
.wanxu-readable { max-width: 840px; }
.wanxu-navbar { border-bottom: 1px solid var(--wx-edge); background: #fff; }
.wanxu-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.wanxu-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--wx-ink); text-decoration: none; font-size: 1.22rem; font-weight: 900; white-space: nowrap; }
.wanxu-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--wx-navy); color: #91c9ff; clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%); }
.wanxu-mark svg, .wanxu-nav-actions svg { width: 22px; height: 22px; }
.wanxu-nav-links, .wanxu-nav-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.wanxu-nav-control { display: none; }
.wanxu-nav-links a, .wanxu-nav-cart { white-space: nowrap; text-decoration: none; color: var(--wx-ink); font-weight: 650; font-size: .9rem; }
.wanxu-nav-links a { padding-block: 6px; border-bottom: 2px solid transparent; }
.wanxu-nav-links a:hover, .wanxu-nav-cart:hover { color: var(--wx-button); }
.wanxu-nav-links a:hover { border-bottom-color: var(--wx-blue); }
.wanxu-nav-cart { display: flex; gap: 6px; align-items: center; min-height: 44px; }
.wanxu-cart-count { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding: 0 4px; border: 1px solid #c9dcf6; border-radius: 4px; background: #edf5ff; color: #154b99; font: 750 .75rem var(--wx-mono); }
.wanxu-search { display: flex; align-items: center; border: 1px solid var(--wx-edge); background: var(--wx-mist); border-radius: 5px; }
.wanxu-search input, .wanxu-search button { background: transparent; border: 0; color: inherit; font: inherit; }
.wanxu-search input { width: 117px; padding: 8px 0 8px 9px; min-width: 0; }
.wanxu-search button { display: grid; padding: 8px; cursor: pointer; }
.wanxu-nav-inner .custom-logo { display: block; max-width: 144px; }
.custom-logo-link:has(.wanxu-brand-wordmark) { display: block; aspect-ratio: 3.15; background: #fff; overflow: hidden; }
.custom-logo-link .custom-logo.wanxu-brand-wordmark { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center; }
.wanxu-nav-inner .custom-logo-link:has(.wanxu-brand-wordmark) { width: 202px; min-width: 0; flex: 0 1 202px; }
.wanxu-hero.wp-block-cover { isolation: isolate; min-height: clamp(395px, 40vw, 510px); align-items: center; padding: clamp(28px, 5vw, 72px); border: 1px solid #234772; background: var(--wx-navy); overflow: hidden; clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 27px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.wanxu-hero .wp-block-cover__image-background { left: auto; right: 0; width: 76%; height: 100%; object-position: 50% 52%; }
.wanxu-hero::before, .wanxu-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.wanxu-hero::before { z-index: 1; background-image: linear-gradient(#73aff71c 1px, transparent 1px), linear-gradient(90deg, #73aff71c 1px, transparent 1px); background-size: 33px 33px; mask-image: linear-gradient(90deg, #000, transparent 56%); }
.wanxu-hero::after { background: linear-gradient(90deg, #071a34 0%, #071a34 24%, #071a34eb 38%, #071a3473 56%, #071a341a 74%, transparent 96%); }
.wanxu-hero .wp-block-cover__inner-container { position: relative; z-index: 2; color: #fff; }
.wanxu-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.9rem); font-weight: 900; line-height: 1.1; margin: 8px 0 18px; letter-spacing: -.055em; }
.wanxu-hero p { color: #dbeaff; max-width: 26rem; font-weight: 500; margin: 0 0 24px; }
.wanxu-hero .wanxu-eyebrow { display: flex; align-items: center; gap: 10px; color: #a0ceff; font: 750 .82rem var(--wx-mono); letter-spacing: .08em; margin-bottom: 14px; }
.wanxu-hero .wanxu-eyebrow::before { content: ""; width: 24px; height: 2px; background: #78b9ff; box-shadow: 0 0 12px #63a8ff; }
.wanxu-hero .wp-block-button__link { display: inline-flex; align-items: center; gap: 26px; min-height: 50px; border: 1px solid #78b4ff; border-radius: 5px; background: linear-gradient(115deg, #195bb9, #206cda); color: #fff; box-shadow: 0 6px 22px #0623489c; }
.wanxu-hero .wp-block-button__link::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.wanxu-hero .wp-block-button__link:hover { background: #104fae; }
.wanxu-line-gift { margin-top: clamp(16px, 2.5vw, 30px); padding: clamp(14px, 2.2vw, 26px); border: 1px solid #cbdcf3; border-left: 3px solid var(--wx-blue); border-radius: var(--wx-radius); background: linear-gradient(140deg, #f7fbff, #e9f2ff); }
.wanxu-line-gift-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 15px; }
.wanxu-line-gift-head h2 { margin: 0 0 5px; color: var(--wx-ink); font-size: clamp(1.3rem, 2.4vw, 1.95rem); line-height: 1.28; font-weight: 850; letter-spacing: -.035em; }
.wanxu-line-gift-head p { margin: 0; color: var(--wx-muted); font-size: .92rem; }
.wanxu-line-gift-cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.wanxu-gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.wanxu-gift-grid li { min-width: 0; padding: 8px 8px 10px; border: 1px solid #cad9ec; border-radius: 5px; background: #fff; }
.wanxu-gift-art { display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 5/3; overflow: hidden; border-radius: 3px; background: var(--wx-mist); }
.wanxu-gift-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wanxu-gift-art--acrylic img { object-fit: cover; object-position: center 21%; }
.wanxu-gift-art--raised img { width: 125%; max-width: none; object-fit: cover; }
.wanxu-gift-art--pair { gap: 6px; }
.wanxu-gift-art--pair img { width: 90%; height: auto; max-height: 43%; }
.wanxu-gift-name { margin: 7px 2px 0; color: var(--wx-ink); font-size: .93rem; font-weight: 800; line-height: 1.35; }
.wanxu-gift-pair-note { margin: 3px 2px 0; color: var(--wx-muted); font-size: .76rem; line-height: 1.4; }
.wanxu-section { margin-top: 46px; }
.wanxu-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--wx-edge); }
.wanxu-section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 850; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.035em; }
.wanxu-section-heading h2::before { content: ""; width: 5px; height: .82em; background: var(--wx-blue); transform: skewY(-20deg); }
.wanxu-section-heading a, .wanxu-delivery-callout a { white-space: nowrap; color: #205fae; text-decoration: none; font-weight: 700; font-size: .88rem; }
.wanxu-section-heading a:hover, .wanxu-delivery-callout a:hover { text-decoration: underline; }
.wanxu-category-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.wanxu-category { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 108px; padding: 12px; overflow: hidden; border: 1px solid #cbd9ec; border-radius: 6px; text-decoration: none; color: var(--wx-ink); background: linear-gradient(125deg, #f3f7fc 58%, #e2eeff 58%); font-size: .98rem; font-weight: 800; }
.wanxu-category:is(:hover, :focus-visible) { border-color: #82afe9; background: linear-gradient(125deg, #f1f7ff 58%, #d7e8ff 58%); }
.wanxu-category img { position: absolute; width: 53%; max-width: 113px; height: 100%; inset: 0 0 0 auto; object-fit: contain; mix-blend-mode: multiply; mask-image: linear-gradient(90deg, transparent, #000 20%); }
.wanxu-category-name { position: relative; max-width: 74%; color: var(--wx-ink); }
.wanxu-category-arrow { position: relative; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #c9dcf6; border-radius: 4px; color: var(--wx-button); background: #fff; font-size: .9rem; }
.wanxu-news-preview ul { list-style: none; margin: 0; padding: 0; }
.wanxu-news-preview .wanxu-section-heading { margin-bottom: 0; }
.wanxu-news-preview li { border-bottom: 1px solid var(--wx-edge); }
.wanxu-news-preview li a { display: flex; align-items: center; gap: 19px; text-decoration: none; color: var(--wx-ink); padding: 14px 0; }
.wanxu-news-preview li a span { margin-left: auto; color: var(--wx-button); }
.wanxu-news-preview time, .wanxu-readable .wp-block-post-date { color: var(--wx-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.wanxu-news-list { padding: 0; }
.wanxu-news-list li { border-bottom: 1px solid var(--wx-edge); padding: 16px 0; }
.wanxu-news-list h2 a { color: var(--wx-ink); text-decoration: none; }
.wanxu-delivery-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 36px; padding: 20px; border-left: 3px solid var(--wx-blue); border-radius: var(--wx-radius); background: #eaf3ff; }
.wanxu-delivery-callout a { margin-left: auto; }
.wanxu-footer { background: var(--wx-navy); border-top: 2px solid #204f8a; }
.wanxu-footer-inner { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: 28px; }
.wanxu-footer .wanxu-brand { color: #fff; }
.wanxu-footer .wanxu-mark { background: #193b64; }
.wanxu-footer .custom-logo-link { display: block; width: 174px; max-width: 100%; }
.wanxu-footer .custom-logo { display: block; width: 100%; height: auto; }
.wanxu-footer .custom-logo-link:has(.wanxu-brand-wordmark) { aspect-ratio: 2.95; border: 4px solid #fff; border-radius: 5px; }
.wanxu-footer-inner p, .wanxu-footer-inner small { color: #b4cee9; margin: 6px 0 0; }
.wanxu-footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.wanxu-footer-inner nav a { color: #e2efff; text-decoration: none; font-size: .9rem; }
.wanxu-footer-inner nav a:hover { text-decoration: underline; }
.wanxu-shell h1:not(.wanxu-hero h1) { margin-top: 0; margin-bottom: 18px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.18; font-weight: 850; letter-spacing: -.03em; }
.wanxu-shell .woocommerce-breadcrumb { margin-bottom: 16px; }
.wanxu-page > .wp-block-post-content:not(:has(.woocommerce)) { max-width: 760px; }
.wanxu-readable .wp-block-post-content :is(p, ul, ol), .wanxu-page > .wp-block-post-content :is(h2, p) { margin-top: 1em; }
.wanxu-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.wanxu-filters a { text-decoration: none; border: 1px solid var(--wx-edge); border-radius: 7px; background: var(--wx-mist); color: var(--wx-ink); padding: 6px 12px; font-size: .88rem; }
.wanxu-filters a:is(:hover, [aria-current]) { color: #154b99; background: #e7f1ff; border-color: #abc8ee; }
.wanxu-shell ul.products:is(.products) { clear: both; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0 0 22px; padding: 0; }
.wanxu-shell ul.products::before, .wanxu-shell ul.products::after { display: none; }
.woocommerce-page .wanxu-shell ul.products[class*="columns-"] > li.product,
.wanxu-shell .woocommerce ul.products[class*="columns-"] > li.product { width: 100%; margin: 0; float: none; clear: none; }
.wanxu-shell ul.products > li.product { position: relative; display: flex; flex-direction: column; padding: 9px; border: 1px solid #cbd9ec; border-radius: var(--wx-radius); background: #fff; min-width: 0; }
.wanxu-shell ul.products > li.product::after { content: ""; position: absolute; inset: 0 14px auto auto; width: 28px; height: 2px; background: var(--wx-blue); pointer-events: none; }
.wanxu-shell ul.products > li.product:is(:hover, :focus-within) { border-color: #86b2e9; box-shadow: 0 10px 24px #173d6b14; }
.wanxu-shell ul.products li.product a { text-decoration: none; }
.wanxu-shell ul.products > li.product a img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--wx-mist); border-radius: 5px; margin: 0; }
.wanxu-shell ul.products > li.product .woocommerce-loop-product__title { font-size: 1rem; font-weight: 750; color: var(--wx-ink); margin: 10px 2px 4px; padding: 0; line-height: 1.45; overflow-wrap: anywhere; }
.wanxu-shell ul.products > li.product .price, .wanxu-product .summary .price { color: #164f9c; font-variant-numeric: tabular-nums; font-weight: 800; }
.wanxu-shell ul.products > li.product .price { font-size: 1.06rem; line-height: 1.4; margin: 0 2px 10px; }
.wanxu-shell ul.products > li.product .button { align-self: stretch; margin-top: auto; min-height: 44px; display: grid; place-items: center; text-align: center; }
.wanxu-shell ul.products > li.product .added_to_cart { margin: 5px 2px 0; color: #154b99; font-weight: 700; font-size: .85rem; }
.wanxu-shell .woocommerce-ordering select, .wanxu-shell .variations select, .wanxu-shell :is(.input-text, .woocommerce-input-wrapper select) { border: 1px solid #c9d4e3; border-radius: 7px; padding: 8px 10px; min-height: 40px; color: var(--wx-ink); background: white; font: inherit; }
.wanxu-shell .woocommerce-product-gallery { border-radius: var(--wx-radius); background: var(--wx-mist); overflow: hidden; }
.wanxu-shell .woocommerce-product-gallery img { object-fit: contain; }
.wanxu-product .summary.entry-summary { padding: clamp(14px, 3vw, 28px); border: 1px solid var(--wx-edge); border-top: 3px solid var(--wx-blue); border-radius: var(--wx-radius); background: #f9fbfe; }
.woocommerce .wanxu-product div.product form.cart .variations select { height: auto; min-height: 44px; padding: 8px 35px 8px 12px; line-height: 1.45; font-size: .95rem; background-color: #fff; }
.wanxu-shell .product_meta { border-top: 1px solid var(--wx-edge); margin-top: 18px; padding-top: 14px; color: var(--wx-muted); font-size: .88rem; }
.wanxu-shell .quantity input { min-width: 65px; }
.wanxu-shell .woocommerce-tabs { padding-top: 24px; }
.woocommerce .wanxu-product div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--wx-edge); }
.woocommerce .wanxu-product div.product .woocommerce-tabs ul.tabs li { margin: 0 5px 0 0; border: 1px solid var(--wx-edge); border-radius: 5px 5px 0 0; background: #f1f6fc; }
.woocommerce .wanxu-product div.product .woocommerce-tabs ul.tabs li.active { border-top: 2px solid var(--wx-blue); background: #fff; }
.woocommerce .wanxu-product div.product .woocommerce-tabs ul.tabs::before,
.woocommerce .wanxu-product div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce .wanxu-product div.product .woocommerce-tabs ul.tabs li::after { content: none; }
.wanxu-shell :is(.button.alt, button.button, a.button, .wp-element-button.button),
.wanxu-shell #place_order { background: linear-gradient(115deg, #195bb9, #206cda); color: #fff; border-radius: 5px; font-size: .88rem; font-weight: 750; padding: 10px 13px; line-height: 1.38; min-height: 44px; }
.wanxu-shell :is(.button.alt, button.button, a.button, .wp-element-button.button):hover,
.wanxu-shell #place_order:hover { background: #104fae; color: #fff; }
.wanxu-shell :is(.button.disabled, .button:disabled, .outofstock .button:not([href])) { background: #e2e8f0; color: #445671; }
.wanxu-shell .woocommerce-error a { color: #154b99; }
.wanxu-steps { display: flex; list-style: none; gap: 8px; padding: 0; margin: 0 0 25px; }
.wanxu-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--wx-mist); border-radius: 8px; padding: 9px 5px; color: var(--wx-muted); font-weight: 700; font-size: .88rem; }
.wanxu-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6eaf1; }
.wanxu-steps li[aria-current] { background: #e8f2ff; color: #154b99; }
.wanxu-steps li[aria-current] span { background: var(--wx-button); color: white; }
.wanxu-shell form.checkout { display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); gap: 12px 26px; align-items: start; }
.wanxu-shell form.checkout .woocommerce-NoticeGroup { grid-column: 1/-1; }
.wanxu-delivery-picker { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 18px; min-inline-size: 0; margin: 0 0 12px; padding: 10px 14px 14px; border: 1px solid var(--wx-edge); border-radius: var(--wx-radius); background: var(--wx-mist); }
.wanxu-delivery-picker legend { padding-inline: 5px; font-weight: 800; }
.wanxu-shell .woocommerce .wanxu-delivery-picker ul#shipping_method { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.wanxu-shell .woocommerce .wanxu-delivery-picker ul#shipping_method li { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--wx-edge); border-radius: 8px; background: white; font-size: .9rem; }
.wanxu-shell .woocommerce .wanxu-delivery-picker ul#shipping_method li:has(input:checked), .wanxu-shell .woocommerce .wanxu-delivery-picker ul#shipping_method li:has(input[type=hidden]) { border-color: #8eb8ef; background: #e8f2ff; }
.wanxu-shell .woocommerce .wanxu-delivery-picker ul#shipping_method li input[type=radio] { accent-color: var(--wx-button); margin: 0 0 0 11px; }
.wanxu-delivery-picker label { flex: 1; padding: 11px 10px 11px 0; cursor: pointer; }
.wanxu-delivery-picker li:has(input[type=hidden]) label { padding-inline-start: 11px; cursor: default; }
.wanxu-delivery-total { display: flex; flex-wrap: wrap; align-items: start; gap: 4px 15px; margin: 0; }
.wanxu-delivery-total dt { color: var(--wx-muted); font-size: .8rem; }
.wanxu-delivery-total dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.wanxu-delivery-total [data-wanxu-payable] { color: #154b99; font-size: 1.14rem; }
.wanxu-shell form.checkout #customer_details { grid-column: 1; grid-row: span 2; }
.wanxu-shell #customer_details :is(.col-1, .col-2) { width: 100%; float: none; }
.wanxu-shell #order_review_heading, .wanxu-shell #order_review { grid-column: 2; width: 100%; }
.wanxu-shell #order_review_heading { margin: 0; }
.wanxu-shell :is(.woocommerce-billing-fields, .woocommerce-additional-fields) { padding: 14px 17px; border: 1px solid var(--wx-edge); border-radius: var(--wx-radius); margin-bottom: 12px; }
.wanxu-shell :is(.woocommerce-billing-fields, .woocommerce-additional-fields) h3, .wanxu-checkout-panel h3 { margin: 0 0 10px; }
.wanxu-checkout-panel { border-top: 1px solid var(--wx-edge); margin-top: 12px; padding-top: 12px; }
.wanxu-checkout-panel::after { content: ""; display: table; clear: both; }
.wanxu-order-note summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 650; }
.wanxu-shell .woocommerce-additional-fields:has(.wanxu-order-note:only-child) > h3 { display: none; }
.wanxu-shell .woocommerce-additional-fields:has(.wanxu-order-note) { padding-block: 2px; }
.wanxu-cod-caption { color: var(--wx-muted); white-space: nowrap; }
.wanxu-shell .wanxu-free-shipping { margin: 0 0 8px; color: #154b99; font-size: .9rem; font-weight: 700; }
.wanxu-shell .woocommerce ul#shipping_method li { padding-block: 4px; }
.wanxu-shell #payment { background: var(--wx-mist); }
.wanxu-shell #payment div.payment_box { color: var(--wx-ink); background: #e5effc; }
.wanxu-shell #payment div.payment_box::before { border-bottom-color: #e5effc; }
.wanxu-shell #payment #place_order { width: 100%; }
.wanxu-shell .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }
.wanxu-shell .woocommerce-order-overview li { float: none; }
.wanxu-order-support { padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--wx-edge); border-left: 3px solid var(--wx-blue); border-radius: var(--wx-radius); background: var(--wx-mist); }
.wanxu-order-support h2, .wanxu-order-support p { margin: 0 0 8px; }
.wanxu-order-friend { background: #edf5ff; }
.wanxu-order-friend-action { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; margin-top: 4px; text-align: center; }
.wanxu-order-support-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 8px; margin-top: 12px; }
.wanxu-order-support-link { display: flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 8px 11px; border: 1px solid var(--wx-edge); border-radius: 6px; color: #154b99; background: #fff; text-decoration: none; overflow-wrap: anywhere; }
.wanxu-order-support-link:hover { border-color: var(--wx-blue); background: #edf5ff; }
.wanxu-order-support-link span { font-size: .9rem; }
main.wanxu-page:has(.wanxu-contact) { max-width: 920px; }
.wanxu-page:has(.wanxu-contact) > h1 { margin-bottom: 10px; }
.wanxu-contact-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wanxu-page .wanxu-contact-title h1 { min-width: 0; margin: 0; }
.wanxu-page > .wp-block-post-content:has(.wanxu-contact) { max-width: none; margin-block-start: 0; }
.wanxu-page > .wp-block-post-content:has(.wanxu-contact) > p:first-child { margin: 0 0 22px; color: var(--wx-muted); }
.wanxu-contact-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.wanxu-contact-panel, .wanxu-contact-social-card { min-width: 0; border: 1px solid var(--wx-edge); border-radius: var(--wx-radius); background: #fff; }
.wanxu-contact-panel { padding: clamp(16px, 3.2vw, 26px); }
.wanxu-contact-line { display: grid; align-items: center; gap: 12px; border-color: #c6daf4; background: linear-gradient(135deg, #f0f7ff, #eaf2ff); }
.wanxu-contact-line:has(.wanxu-contact-line-code) { grid-template-columns: minmax(0, 1fr) clamp(108px, 13vw, 132px); }
.wanxu-page .wanxu-contact h2 { margin: 0; color: var(--wx-ink); font-size: 1.2rem; line-height: 1.4; }
.wanxu-page .wanxu-contact-line p { margin: 6px 0 12px; color: var(--wx-muted); font-size: .94rem; }
.wanxu-contact-line h2 a { color: inherit; }
.wanxu-contact-line-action { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.wanxu-contact-line-code { margin: 0; color: var(--wx-muted); text-align: center; font-size: .8rem; }
.wanxu-contact-line-code .wanxu-contact-qr-code { width: 100%; padding: 5px; border: 1px solid var(--wx-edge); border-radius: 6px; }
.wanxu-contact-line-code figcaption { margin-top: 5px; }
.wanxu-contact-direct { display: grid; align-content: center; gap: 14px; }
.wanxu-contact-method a { display: inline-flex; align-items: center; min-height: 44px; color: #154b99; font-weight: 650; overflow-wrap: anywhere; }
.wanxu-contact-social { margin-top: 26px; }
.wanxu-contact-social-grid { display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.wanxu-contact-social-card { padding: 8px 14px; }
.wanxu-contact-social-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; color: var(--wx-ink); font-weight: 750; text-decoration: none; }
a.wanxu-contact-social-link:hover { color: #154b99; text-decoration: underline; }
.wanxu-contact-social-link span { color: #154b99; }
.wanxu-contact-social-card .wanxu-contact-qr-code { margin: 2px auto 8px; }
.wanxu-contact-qr-code { position: relative; width: min(100%, 164px); aspect-ratio: 1; background: #fff; overflow: hidden; }
.wanxu-contact-qr-code img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wanxu-contact-qr--portrait img { position: absolute; top: 0; left: 50%; width: 170%; max-width: none; height: auto; transform: translate(-50%, -22.8%); }
@media (max-width: 620px) {
    .wanxu-contact-social-grid { grid-template-columns: 1fr; }
    .wanxu-contact-social-card { padding-inline: 12px; }
    .wanxu-contact-social-card:has(.wanxu-contact-qr-code) { display: grid; grid-template-columns: minmax(0, 1fr) clamp(160px, 39vw, 170px); align-items: center; gap: 8px; }
    .wanxu-contact-social-card .wanxu-contact-social-link { justify-content: flex-start; gap: 6px; }
    .wanxu-contact-social-card .wanxu-contact-qr-code { width: 100%; margin: 0; }
}
@media (max-width: 980px) {
    .wanxu-nav-inner { flex-wrap: wrap; gap: 8px 15px; padding-block: 12px; }
    .wanxu-nav-links { order: 3; flex: 1 1 100%; }
    .wanxu-hero h1 { font-size: clamp(2.25rem,6.1vw,3.9rem); }
}
@media (max-width: 690px) {
    .wanxu-shell { width: calc(100% - 28px); }
    main.wanxu-shell { padding-block: 20px 45px; }
    .wanxu-nav-links { flex-wrap: wrap; gap: 4px 14px; }
    .wanxu-nav-links a, .wanxu-nav-cart { font-size: .8rem; }
    .wanxu-nav-actions { gap: 8px; }
    .wanxu-search input { width: 76px; font-size: .8rem; }
    .wanxu-nav-actions svg { width: 20px; height: 20px; flex: none; }
    .wanxu-brand { font-size: 1rem; gap: 5px; }
    .wanxu-mark { width: 27px; height: 28px; }
    .wanxu-navbar[data-wanxu-nav-ready] { position: relative; z-index: 5; }
    .wanxu-navbar[data-wanxu-nav-ready] .wanxu-nav-inner { min-height: 64px; flex-wrap: nowrap; gap: 8px; padding-block: 9px; }
    .wanxu-nav-inner > :is(.wanxu-brand, .custom-logo-link) { min-width: 0; }
    .wanxu-nav-inner > .wanxu-brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
    .wanxu-nav-inner .custom-logo { max-width: min(124px, 100%); }
    .wanxu-nav-inner .custom-logo-link:has(.wanxu-brand-wordmark) { width: 178px; min-height: 44px; flex-basis: 178px; }
    .wanxu-navbar[data-wanxu-nav-ready] .wanxu-nav-actions { flex-shrink: 0; gap: 6px; }
    .wanxu-navbar[data-wanxu-nav-ready] .wanxu-nav-control,
    .wanxu-navbar[data-wanxu-nav-ready] .wanxu-nav-cart { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 9px; border: 1px solid var(--wx-edge); border-radius: 7px; color: var(--wx-ink); background: #fff; }
    .wanxu-nav-control { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .wanxu-navbar[data-wanxu-nav-ready] .wanxu-nav-control[aria-expanded="true"], .wanxu-navbar[data-wanxu-nav-ready] .wanxu-nav-cart { background: #edf5ff; border-color: #c6daf4; }
    .wanxu-navbar[data-wanxu-nav-ready] .wanxu-cart-label { display: none; }
    .wanxu-navbar[data-wanxu-nav-ready] .wanxu-cart-count { min-width: 18px; min-height: 18px; border: 0; padding-inline: 3px; background: var(--wx-button); color: #fff; }
    .wanxu-navbar[data-wanxu-nav-ready] :is(.wanxu-nav-links, .wanxu-search) { display: none; position: absolute; inset: calc(100% + 5px) 14px auto; margin: 0; border: 1px solid var(--wx-edge); border-radius: var(--wx-radius); background: #fff; box-shadow: 0 10px 25px #0b25442b; }
    .wanxu-navbar[data-wanxu-open="menu"] .wanxu-nav-links { display: grid; gap: 0; padding: 4px 12px; }
    .wanxu-navbar[data-wanxu-open="menu"] .wanxu-nav-links a { padding: 12px 3px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: .95rem; border-bottom: 1px solid var(--wx-edge); }
    .wanxu-navbar[data-wanxu-open="menu"] .wanxu-nav-links a:last-child { border-bottom: 0; }
    .wanxu-navbar[data-wanxu-open="menu"] .wanxu-nav-links a::after { content: ""; width: 6px; height: 6px; margin-right: 5px; border-top: 2px solid var(--wx-button); border-right: 2px solid var(--wx-button); transform: rotate(45deg); }
    .wanxu-navbar[data-wanxu-open="search"] .wanxu-search { display: flex; padding: 4px; }
    .wanxu-navbar[data-wanxu-open="search"] .wanxu-search input { flex: 1; width: 100%; min-height: 44px; font-size: 1rem; }
    .wanxu-navbar[data-wanxu-open="search"] .wanxu-search button { min-width: 44px; min-height: 44px; place-items: center; border-radius: 5px; background: var(--wx-button); color: #fff; }
    .wanxu-hero.wp-block-cover { min-height: clamp(320px, 104vw, 418px); align-items: end; padding: 23px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 15px 100%, 0 calc(100% - 15px)); }
    .wanxu-hero .wp-block-cover__image-background { width: 100%; height: 65%; object-position: center 54%; }
    .wanxu-hero::before { mask-image: linear-gradient(0deg, #000, transparent 46%); background-size: 25px 25px; }
    .wanxu-hero::after { background: linear-gradient(0deg, #071a34 0%, #071a34 27%, #071a34d9 43%, #071a3459 61%, transparent 88%); }
    .wanxu-hero h1 { font-size: clamp(2.0rem, 9.5vw, 3rem); margin: 7px 0 10px; }
    .wanxu-hero p { font-size: .88rem; margin-bottom: 13px; }
    .wanxu-gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .wanxu-section { margin-top: 32px; }
    .wanxu-shell ul.products:is(.products) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .wanxu-shell ul.products li.product { padding: 7px; }
    .wanxu-shell ul.products li.product .woocommerce-loop-product__title { font-size: .9rem; }
    .wanxu-shell ul.products > li.product .price { font-size: .94rem; }
    .wanxu-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .wanxu-category { min-height: 96px; }
    .wanxu-category:last-child:nth-child(odd) { grid-column: 1/-1; }
    .wanxu-category:last-child:nth-child(odd) img { max-width: 150px; }
    .woocommerce .wanxu-product div.product div.images { margin-bottom: .9rem; }
    .wanxu-product .woocommerce-product-gallery__image img { max-height: min(260px, 67vw); object-fit: contain; }
    .woocommerce .wanxu-product div.product div.images .flex-control-thumbs { display: flex; gap: 6px; margin: 0; padding: 4px 6px 6px; }
    .woocommerce .wanxu-product div.product div.images .flex-control-thumbs li { float: none; width: 54px; }
    .woocommerce .wanxu-product div.product form.cart .single_add_to_cart_button { min-width: min(170px, 55%); }
    .woocommerce .wanxu-product div.product .woocommerce-variation-add-to-cart { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .woocommerce .wanxu-product div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1; }
    .wanxu-shell form.checkout { display: block; }
    .wanxu-delivery-picker { grid-template-columns: 1fr; }
    .wanxu-shell .woocommerce .wanxu-delivery-picker ul#shipping_method li { flex: 1 0 100%; }
    .wanxu-delivery-total { padding-top: 4px; justify-content: space-between; }
    .wanxu-shell form.checkout :is(.input-text, .woocommerce-input-wrapper select) { min-height: 44px; font-size: 1rem; }
    .wanxu-shell form.checkout .form-row { padding: 0; margin: 0 0 12px; }
    .wanxu-shell form.checkout .form-row label { line-height: 1.45; margin-bottom: 5px; font-weight: 650; }
    .wanxu-shell form.checkout :is(#wanxu_brand_field, #wanxu_store_field) { width: 100%; float: none; }
    .wanxu-shell #order_review_heading { margin-bottom: 10px; }
    .wanxu-delivery-callout a { margin-left: 0; width: 100%; }
    .wanxu-shell .wanxu-steps li { font-size: .76rem; gap: 4px; }
    .wanxu-footer-inner { display: grid; gap: 13px; }

    .wanxu-shell .woocommerce-cart-form table.shop_table { display: block; background: transparent; border: 0; margin: 0 0 14px; }
    .wanxu-shell .woocommerce-cart-form table.shop_table tbody { display: block; }
    .wanxu-shell .woocommerce-cart-form tr.cart_item {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) minmax(0, .65fr) 44px;
        grid-template-areas: "image title title remove" "image price price price" "quantity quantity subtotal subtotal";
        gap: 4px 8px;
        align-items: start;
        margin-bottom: 10px;
        padding: 11px;
        border: 1px solid var(--wx-edge);
        border-radius: var(--wx-radius);
        background: #fff;
    }
    .wanxu-shell .woocommerce-cart-form table.shop_table tr.cart_item > td { display: block; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; text-align: start !important; }
    .wanxu-shell .woocommerce-cart-form tr.cart_item td::before { content: none; }
    .wanxu-shell .woocommerce-cart-form td.product-thumbnail { grid-area: image; }
    .wanxu-shell .woocommerce-cart-form td.product-thumbnail img { display: block; width: 100%; min-width: 0; max-width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 5px; background: var(--wx-mist); }
    .wanxu-shell .woocommerce-cart-form td.product-name { grid-area: title; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
    .wanxu-shell .woocommerce-cart-form td.product-name a { color: var(--wx-ink); text-decoration: none; font-weight: 750; }
    .wanxu-shell .woocommerce-cart-form td.product-name a:hover { text-decoration: underline; }
    .wanxu-shell .woocommerce-cart-form td.product-remove { grid-area: remove; }
    .wanxu-shell .woocommerce-cart-form td.product-remove a.remove { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--wx-mist); }
    .wanxu-shell .woocommerce-cart-form td.product-remove a.remove:hover { background: #ffe9e9; color: #9a141e !important; }
    .wanxu-shell .woocommerce-cart-form td.product-price { grid-area: price; font-size: .88rem; color: var(--wx-muted); }
    .wanxu-shell .woocommerce-cart-form td.product-quantity { grid-area: quantity; display: flex !important; align-items: center; gap: 8px; margin-top: 6px; }
    .wanxu-shell .woocommerce-cart-form td.product-subtotal { grid-area: subtotal; display: grid !important; justify-items: end; justify-self: end; align-self: center; margin-top: 6px; font-weight: 800; color: #154b99; }
    .wanxu-shell .woocommerce-cart-form tr.cart_item :is(td.product-quantity, td.product-subtotal)::before { content: attr(data-title); font-size: .76rem; font-weight: 600; color: var(--wx-muted); }
    .wanxu-shell .woocommerce-cart-form td.product-quantity input.qty { min-height: 44px; width: 65px; }
    .wanxu-shell .woocommerce-cart-form table.shop_table td.actions { background: transparent; padding: 0; border: 0; }
    .wanxu-shell .woocommerce-cart-form td.actions button[name="update_cart"]:disabled { display: none; }
    .wanxu-shell .woocommerce .wc-proceed-to-checkout a.checkout-button { padding: 13px; margin-bottom: 0; font-size: 1rem; }
}
