/*
Theme Name: FLUX AUD
Theme URI: https://flux-aud.com/
Author: Site Studio
Description: A WooCommerce-ready storefront theme inspired by the supplied FLUX AUD reference.
Version: 3.1.5
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: flux-aud
*/

:root {
  --flux-black: #050505;
  --flux-ink: #1d1f21;
  --flux-muted: #777;
  --flux-line: #e7e7e7;
  --flux-green: #37b653;
  --flux-red: #ae2238;
  --flux-pink: #f6cedc;
  --flux-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--flux-ink); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.flux-socialbar { min-height: 72px; border-bottom: 1px solid #ddd; background: #f7f7f7; display: flex; align-items: center; justify-content: center; }
.flux-socialbar-inner { width: min(100%, 1280px); padding: 8px 20px; display: flex; align-items: center; gap: 12px; }
.flux-facebook-mark { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #334b69 0 20%, #080c16 21% 68%, #da3a87 69% 73%, #1b1b1b 74%); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: center; border: 2px solid #111; }
.flux-social-copy { line-height: 1.1; min-width: 120px; }
.flux-social-copy strong { display: block; font-size: 16px; }
.flux-social-copy span { display: block; color: #666; font-size: 13px; margin-top: 3px; }
.flux-avatar-stack { display: flex; align-items: center; gap: 5px; }
.flux-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.flux-avatar:nth-child(1) { background: #556f89; }
.flux-avatar:nth-child(2) { background: #c48a71; }
.flux-avatar:nth-child(3) { background: #717c62; }
.flux-avatar:nth-child(4) { background: #97819a; }
.flux-follow { margin-left: 12px; padding: 10px 18px; border-radius: 7px; background: #2878d6; color: #fff; font-weight: 700; }
.flux-trustbar { min-height: 50px; display: flex; align-items: center; justify-content: center; background: #fff; }
.flux-trustbar a { border: 1px solid #63b58d; padding: 10px 20px; font-weight: 700; }
.flux-trustbar em { color: #37a66d; font-style: normal; margin: 0 4px; }

.site-header { position: relative; z-index: 20; background: var(--flux-black); color: #fff; }
.home .site-header { position: absolute; top: 156px; left: 0; width: 100%; background: transparent; }
.admin-bar.home .site-header { top: 188px; }
.flux-nav { width: min(100%, var(--flux-max)); min-height: 92px; margin: 0 auto; padding: 14px 20px 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; }
.flux-brand { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 62px; border: 2px solid #e3399c; border-radius: 2px; background: #0e1a2a; box-shadow: 0 0 16px rgba(223, 52, 154, .35); color: #fff; font-weight: 800; font-size: 15px; line-height: .9; text-align: center; letter-spacing: -.03em; }
.flux-menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; margin: 0; padding: 0; font-size: 13px; }
.flux-menu a { color: #fff; opacity: .95; transition: opacity .2s, color .2s; }
.flux-menu a:hover, .flux-menu .current-menu-item > a { color: #ffd0dd; opacity: 1; }
.flux-tools { display: flex; align-items: center; gap: 18px; position: absolute; right: 26px; bottom: 21px; }
.flux-tool { width: 23px; height: 23px; display: inline-grid; place-items: center; color: #fff; }
.flux-search-icon { border: 1px solid #fff; border-radius: 50%; position: relative; width: 15px; height: 15px; }
.flux-search-icon::after { content: ""; width: 7px; height: 1px; background: #fff; position: absolute; right: -5px; bottom: -3px; transform: rotate(48deg); }
.flux-bag-icon { border: 1px solid #fff; width: 13px; height: 15px; position: relative; }
.flux-bag-icon::before { content: ""; position: absolute; width: 7px; height: 5px; border: 1px solid #fff; border-bottom: 0; border-radius: 7px 7px 0 0; top: -6px; left: 2px; }
.flux-login { position: absolute; right: 26px; top: 20px; font-size: 13px; }

.flux-hero { min-height: 710px; position: relative; overflow: hidden; background: #090909; }
.flux-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .65s ease; background-position: center; background-size: cover; }
.flux-slide.is-active { opacity: 1; }
.flux-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.44), rgba(0,0,0,.08) 50%, rgba(0,0,0,.55)); }
.flux-hero-content { width: min(100%, 760px); position: relative; z-index: 2; min-height: 710px; margin: 0 auto; padding: 250px 24px 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
.flux-hero-content h1 { margin: 0; font-size: clamp(36px, 6vw, 76px); line-height: .98; letter-spacing: .02em; text-transform: uppercase; }
.flux-hero-content p { max-width: 560px; margin: 20px auto 28px; font-size: 16px; }
.flux-hero-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 164px; padding: 13px 24px; border: 1px solid #fff; color: #fff; font-weight: 700; transition: background .2s, color .2s; }
.flux-hero-cta:hover { background: #fff; color: #111; }
.flux-slide-dots { position: absolute; z-index: 3; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.flux-slide-dots button { width: 9px; height: 9px; border: 1px solid #fff; border-radius: 50%; padding: 0; background: transparent; cursor: pointer; }
.flux-slide-dots button.is-active { background: #fff; }

.flux-main { width: min(100%, var(--flux-max)); margin: 0 auto; padding: 64px 20px 90px; }
.flux-section { margin: 0 0 72px; }
.flux-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--flux-line); padding-bottom: 14px; }
.flux-section-heading h2 { margin: 0; font-size: 25px; text-transform: uppercase; letter-spacing: .06em; }
.flux-section-heading a { color: var(--flux-muted); font-size: 13px; }
.flux-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flux-product-card { min-width: 0; display: block; background: #fff; }
.flux-product-media { aspect-ratio: 1 / 1.16; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 45% 35%, #a65c42 0, #3f1e1d 44%, #0c0b0c 100%); color: #fff; text-align: center; padding: 18px; }
.flux-product-media::before { content: ""; position: absolute; width: 44%; height: 72%; border: 1px solid rgba(255,255,255,.55); background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(0,0,0,.35)); box-shadow: 0 10px 26px rgba(0,0,0,.35); transform: rotate(-3deg); }
.flux-product-media.has-image { background-position: center; background-size: cover; }
.flux-product-media.has-image::before { display: none; }
.flux-product-media span { position: relative; z-index: 1; max-width: 75%; font-weight: 800; font-size: 15px; line-height: 1.2; text-transform: uppercase; }
.flux-product-badge { position: absolute; z-index: 2; left: 10px; top: 10px; background: var(--flux-red); color: #fff; padding: 5px 8px; font-size: 11px; font-weight: 700; }
.flux-product-info { padding: 12px 2px 0; }
.flux-product-info h3 { margin: 0 0 6px; min-height: 42px; font-size: 14px; line-height: 1.35; text-transform: uppercase; }
.flux-product-rating { color: #555; font-size: 12px; }
.flux-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.flux-price strong { color: var(--flux-red); font-size: 16px; }
.flux-price del { color: #999; font-size: 13px; }
.flux-view-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; border-bottom: 1px solid currentColor; color: #555; font-size: 13px; }
.flux-empty-collection { grid-column: 1 / -1; margin: 0; padding: 34px 20px; border: 1px solid var(--flux-line); color: #777; text-align: center; }

.flux-tracking { background: #f7f7f7; border-top: 1px solid var(--flux-line); border-bottom: 1px solid var(--flux-line); padding: 42px 20px; }
.flux-tracking-inner { width: min(100%, 1160px); margin: 0 auto; }
.flux-tracking h2 { margin: 0 0 6px; font-size: 27px; }
.flux-tracking p { margin: 0 0 18px; color: #666; }
.flux-tracking-table { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.flux-tracking-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid #e3e3e3; font-size: 13px; }
.flux-tracking-row small { display: block; color: #999; margin-top: 3px; }
.flux-status { align-self: center; color: var(--flux-green); font-weight: 700; }

/* 旧悬浮按钮样式已由下方 .flux-fab 版本取代 */

.flux-modal { position: fixed; z-index: 10010; inset: 0; display: none; place-items: center; padding: 20px; overflow-y: auto; background: rgba(0,0,0,.58); }
.flux-modal.is-open { display: grid; }
.flux-modal-card { position: relative; width: min(100%, 690px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px 40px 36px; margin: auto; background: linear-gradient(135deg, #ffe8b5, #f5c5d4 55%, #9bbdf5); text-align: center; box-shadow: 0 20px 70px rgba(0,0,0,.36); }
.flux-modal-close { position: absolute; top: 6px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.flux-modal-card h2 { margin: 0 0 18px; font-size: 27px; }
.flux-modal-card p { margin: 9px 0; color: #444; }
.flux-modal-card ul { max-width: 460px; margin: 24px auto 0; padding: 0; list-style: none; text-align: left; }
.flux-modal-card li { margin: 7px 0; }

.site-footer { background: #161718; color: #ddd; padding: 46px 20px 20px; }
.flux-footer-inner { width: min(100%, var(--flux-max)); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.site-footer h2, .site-footer h3 { margin: 0 0 12px; color: #fff; font-size: 16px; }
.site-footer p { margin: 0; color: #aaa; font-size: 13px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; font-size: 13px; color: #aaa; }
.site-footer li a:hover { color: #fff; }
.flux-footer-bottom { width: min(100%, var(--flux-max)); margin: 34px auto 0; padding-top: 16px; border-top: 1px solid #333; color: #888; font-size: 12px; }

.flux-inner-wrap { width: min(100%, var(--flux-max)); margin: 0 auto; padding: 54px 20px 90px; }
.flux-inner-wrap h1 { margin: 0 0 30px; font-size: 34px; }
.woocommerce .site-main, .woocommerce-page .site-main { width: min(100%, var(--flux-max)); margin: 0 auto; padding: 50px 20px 90px; }
.woocommerce-products-header { margin-bottom: 25px; }
.woocommerce-products-header h1 { margin: 0; font-size: 30px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; float: none; }
.woocommerce ul.products li.product a img { margin: 0; aspect-ratio: 1 / 1.16; object-fit: cover; }
.woocommerce ul.products li.product .price { color: var(--flux-red); }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product .product_title { font-size: 32px; }
.woocommerce div.product form.cart .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 0; background: var(--flux-black); color: #fff; padding: 13px 20px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--flux-red); }
.woocommerce div.product .woocommerce-product-gallery__image img { width: 100%; }

@media (max-width: 980px) {
  .flux-product-grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flux-tracking-table { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flux-tools { right: 18px; }
  .flux-menu { gap: 15px; }
}
@media (max-width: 680px) {
  .flux-socialbar-inner { padding: 8px 12px; }
  .flux-avatar-stack { display: none; }
  .flux-follow { margin-left: auto; }
  .flux-trustbar { min-height: 44px; }
  .flux-trustbar a { padding: 7px 12px; font-size: 13px; }
  .home .site-header { top: 150px; }
  .admin-bar.home .site-header { top: 196px; }
  .flux-nav { min-height: 105px; gap: 10px; padding-top: 10px; }
  .flux-brand { width: 72px; height: 48px; font-size: 12px; }
  .flux-menu { gap: 9px 13px; font-size: 12px; }
  .flux-tools { display: none; }
  .flux-login { top: 12px; right: 14px; }
  .flux-hero, .flux-hero-content { min-height: 610px; }
  .flux-hero-content { padding-top: 190px; }
  .flux-hero-content h1 { font-size: 40px; }
  .flux-main { padding-top: 42px; }
  .flux-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .flux-product-info h3 { font-size: 12px; min-height: 34px; }
  .flux-tracking-table { grid-template-columns: 1fr; }
  .flux-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce div.product .product_title { font-size: 25px; }
  .flux-modal-card { padding: 30px 20px 24px; }
}

/* ============ FLUX AUD 商品详情页（对照原站精确复刻 v2） ============ */
:root { --flux-buy: #FF0000; --flux-orig: #999; --flux-star: #F88407; --flux-tag: #AE2238; }
.woocommerce div.product { max-width: var(--flux-max); margin: 20px auto 44px; padding: 0 20px; align-items: start; }
.flux-single-breadcrumb { max-width: var(--flux-max); margin: 18px auto 0; padding: 0 20px; font-size: 12px; color: var(--flux-muted); letter-spacing: .03em; }
.flux-single-breadcrumb a { color: var(--flux-muted); }
.flux-single-breadcrumb a:hover { color: var(--flux-ink); }
.flux-single-breadcrumb .sep { margin: 0 8px; color: #ccc; }
.woocommerce div.product div.summary { align-self: start; }
.woocommerce div.product .product_title { font-size: 30px; font-weight: 700; color: #1D1F21; letter-spacing: 1px; margin: 0 0 6px; line-height: 1.2; }
.flux-single-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--flux-muted); margin: 0 0 14px; }
.flux-single-rating .stars { color: var(--flux-star); letter-spacing: 2px; font-size: 15px; }
.flux-single-rating strong { color: var(--flux-ink); }
.flux-single-rating a { color: var(--flux-muted); text-decoration: underline; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--flux-buy); font-size: 26px; font-weight: 700; margin: 6px 0 16px; display: block; line-height: 1.1; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { color: var(--flux-orig); font-size: 16px; font-weight: 400; margin-right: 10px; opacity: 1; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce span.onsale { background: var(--flux-tag); color: #fff; border-radius: 3px; min-height: auto; min-width: auto; line-height: 1; padding: 6px 10px; font-weight: 700; font-size: 12px; top: 10px; left: 10px; margin: 0; }
.flux-discount-tag { display: inline-block; background: var(--flux-tag); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #666; font-size: 14px; border-top: 1px solid var(--flux-line); padding-top: 14px; margin-bottom: 18px; }
.woocommerce div.product form.cart { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity input.qty { width: 74px; min-height: 50px; border: 1px solid #ddd; text-align: center; font-size: 16px; border-radius: 3px; }
.woocommerce div.product form.cart .button.single_add_to_cart_button { flex: 1 1 auto; min-width: 210px; background: #000; color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 16px 24px; border-radius: 3px; transition: opacity .15s; }
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover { opacity: .85; background: #000; }
.flux-secondary-btn { display: block; text-align: center; background: #fff; color: #1D1F21; border: 1px solid #1D1F21; border-radius: 3px; padding: 13px 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 13px; margin-top: 12px; }
.flux-secondary-btn:hover { background: #1D1F21; color: #fff; }
.flux-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--flux-line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 13px; color: #444; }
.flux-trust li { display: flex; align-items: center; gap: 8px; }
.flux-trust .ic { font-size: 15px; }
.woocommerce div.product .product_meta { margin-top: 18px; font-size: 12px; color: var(--flux-muted); border-top: 1px solid var(--flux-line); padding-top: 14px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .product_meta a { color: var(--flux-ink); }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 14px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; border-bottom: 1px solid var(--flux-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--flux-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; margin: 0 24px 0 0; padding: 0 0 12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid #000; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--flux-muted); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #000; }
.woocommerce div.product .woocommerce-tabs .panel { padding-top: 20px; color: #666; }
.woocommerce #reviews .star-rating { color: var(--flux-star); }
.woocommerce .related.products, .woocommerce .upsells.products { grid-column: 1 / -1; margin-top: 20px; border-top: 1px solid var(--flux-line); padding-top: 24px; }
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.woocommerce .related.products ul.products li.product .price { color: var(--flux-buy); font-weight: 700; }
@media (max-width: 782px) {
  .woocommerce div.product .product_title { font-size: 23px; }
  .woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 23px; }
  .flux-trust { grid-template-columns: 1fr; }
  .woocommerce div.product form.cart .button.single_add_to_cart_button { min-width: 0; width: 100%; }
}

/* 移除商店/商品页残留侧边栏(兜底)-> 全宽复刻原站 */
#sidebar, #secondary.widget-area, .woocommerce #secondary { display: none !important; }
.woocommerce .content-area, .woocommerce-page .content-area, .content-area > .site-main { width: 100%; max-width: 100%; float: none; }

/* ===== 顶部导航滚动固定(复刻原站) ===== */
.site-header { position: sticky; top: 0; z-index: 90; transition: background .2s ease, box-shadow .2s ease; }
body.admin-bar .site-header { top: 32px; }
.site-header.flux-scrolled { background: var(--flux-black); box-shadow: 0 3px 14px rgba(0,0,0,.28); }
.site-header.flux-scrolled .flux-nav { min-height: 70px; padding-top: 8px; padding-bottom: 12px; }
.home .site-header.flux-scrolled { position: fixed; top: 0; left: 0; width: 100%; }
body.admin-bar.home .site-header.flux-scrolled { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar.home .site-header.flux-scrolled { top: 46px; }
  .site-header.flux-scrolled .flux-nav { min-height: 60px; }
}

/* ===== 覆盖:滚动固定导航改为白底(精确复刻 fluxaud.com) ===== */
.site-header { z-index: 95; }
.site-header.flux-scrolled { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.13); }
.site-header.flux-scrolled .flux-nav { min-height: 64px; padding-top: 8px; padding-bottom: 10px; }
.site-header.flux-scrolled .flux-menu a { color: #1D1F21; opacity: 1; }
.site-header.flux-scrolled .flux-menu a:hover,
.site-header.flux-scrolled .flux-menu .current-menu-item > a { color: var(--flux-red); }
.site-header.flux-scrolled .flux-login a,
.site-header.flux-scrolled .flux-tool { color: #1D1F21; }
.site-header.flux-scrolled .flux-search-icon,
.site-header.flux-scrolled .flux-bag-icon { border-color: #1D1F21; }
.site-header.flux-scrolled .flux-search-icon::after,
.site-header.flux-scrolled .flux-bag-icon::before { background: #1D1F21; }

/* 修复:固定导航 z-index 提到最高层,避免被商品图/Elementor 内容遮住 */
.site-header { z-index: 9999 !important; }
.site-header.flux-scrolled { z-index: 9999 !important; }

/* ============================================================
   FLUX — 全套交互组件(汉堡/下拉/搜索浮层/购物车抽屉/toast/返回顶部)
   ============================================================ */

/* 通用:锁定滚动 */
body.flux-no-scroll { overflow: hidden; }

/* ---- 汉堡按钮(桌面隐藏) ---- */
.flux-burger { display: none; position: absolute; left: 18px; bottom: 24px; width: 30px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 3; }
.flux-burger span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .28s ease, opacity .2s ease, top .28s ease, background .2s; }
.flux-burger span:nth-child(1) { top: 2px; }
.flux-burger span:nth-child(2) { top: 10px; }
.flux-burger span:nth-child(3) { top: 18px; }
.site-header.flux-scrolled .flux-burger span { background: #1D1F21; }
.flux-nav-open .flux-burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.flux-nav-open .flux-burger span:nth-child(2) { opacity: 0; }
.flux-nav-open .flux-burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---- 下拉子菜单(桌面 hover / 移动 tap) ---- */
.flux-menu li { position: relative; }
.flux-menu .flux-caret { display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .2s; }
.flux-menu ul.sub-menu, .flux-menu li > ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 190px; background: #fff; border: 1px solid var(--flux-line); box-shadow: 0 14px 34px rgba(0,0,0,.16); border-radius: 4px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 50; }
.flux-menu ul.sub-menu li, .flux-menu li > ul li { display: block; width: 100%; }
.flux-menu ul.sub-menu a, .flux-menu li > ul a { display: block; padding: 9px 18px; color: var(--flux-ink) !important; white-space: nowrap; font-size: 13px; }
.flux-menu ul.sub-menu a:hover, .flux-menu li > ul a:hover { background: #f6f6f6; color: var(--flux-red) !important; }
@media (min-width: 901px) {
  .flux-menu li:hover > ul.sub-menu, .flux-menu li:hover > ul { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .flux-menu li:hover > a .flux-caret { transform: rotate(180deg); }
}

/* ---- 搜索浮层 ---- */
.flux-search-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-start; justify-content: center; padding: 16vh 20px 0; background: rgba(5,5,5,.9); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.flux-search-overlay.is-open { opacity: 1; visibility: visible; }
.flux-search-close { position: absolute; top: 22px; right: 28px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.flux-search-form { width: min(100%, 680px); display: flex; border-bottom: 2px solid #fff; }
.flux-search-form input[type="search"] { flex: 1; padding: 14px 4px; border: 0; background: transparent; color: #fff; font-size: 26px; outline: none; }
.flux-search-form input[type="search"]::placeholder { color: rgba(255,255,255,.55); }
.flux-search-submit { border: 0; background: transparent; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; padding: 0 8px; }

/* ---- 购物车角标 ---- */
.flux-cart-trigger { position: relative; }
.flux-cart-count { position: absolute; top: -8px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--flux-red); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.flux-cart-count.is-empty { display: none; }

/* ---- 购物车抽屉 ---- */
.flux-drawer-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
.flux-drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.flux-cart-drawer { position: fixed; top: 0; right: 0; z-index: 10001; width: min(92vw, 380px); height: 100%; background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.flux-cart-drawer.is-open { transform: translateX(0); }
.flux-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--flux-line); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.flux-cart-close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--flux-ink); }
.flux-cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.flux-cart-body .woocommerce-mini-cart__empty-message { color: var(--flux-muted); text-align: center; margin-top: 30px; }
.flux-cart-body ul.cart_list { list-style: none; margin: 0; padding: 0; }
.flux-cart-body ul.cart_list li { padding: 12px 0; border-bottom: 1px solid var(--flux-line); font-size: 13px; }
.flux-cart-body ul.cart_list li img { width: 46px; float: right; height: auto; }
.flux-cart-body .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 15px; border-top: 2px solid var(--flux-ink); margin-top: 8px; }
.flux-cart-body .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; padding: 0; }
.flux-cart-body .woocommerce-mini-cart__buttons a { text-align: center; }

/* ---- Toast ---- */
.flux-toast-host { position: fixed; z-index: 10002; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.flux-toast { background: var(--flux-ink); color: #fff; padding: 12px 22px; border-radius: 4px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
.flux-toast.is-in { opacity: 1; transform: translateY(0); }

/* ---- 返回顶部 ---- */
.flux-top { position: fixed; z-index: 39; left: 18px; bottom: 24px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--flux-ink); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.flux-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---- 商品卡片 hover ---- */
.flux-card-fx { transition: transform .25s ease, box-shadow .25s ease; }
.flux-card-fx:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.woocommerce ul.products li.product.flux-card-fx a img { transition: transform .4s ease; }
.woocommerce ul.products li.product.flux-card-fx:hover a img { transform: scale(1.05); }

/* ---- 移动端:汉堡抽屉菜单 ---- */
@media (max-width: 900px) {
  .flux-burger { display: block; }
  .flux-tools { display: flex !important; right: 18px; bottom: 24px; gap: 14px; }
  .flux-nav { position: relative; }
  .flux-menu { position: fixed; top: 0; left: 0; z-index: 9998; width: min(80vw, 320px); height: 100%; margin: 0; padding: 84px 0 30px; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 0; background: var(--flux-black); box-shadow: 4px 0 24px rgba(0,0,0,.3); transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; }
  .flux-nav-open .flux-menu { transform: translateX(0); }
  .flux-menu > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .flux-menu > li > a { display: block; padding: 15px 22px; font-size: 15px; }
  .flux-menu .flux-caret { float: right; border-top-color: #fff; padding: 6px; margin-top: 2px; }
  .flux-menu ul.sub-menu, .flux-menu li > ul { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; width: 100%; background: rgba(255,255,255,.04); border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  .flux-menu li.flux-sub-open > ul.sub-menu, .flux-menu li.flux-sub-open > ul { display: block; }
  .flux-menu ul.sub-menu a, .flux-menu li > ul a { color: #fff !important; padding-left: 34px; }
  .flux-menu ul.sub-menu a:hover, .flux-menu li > ul a:hover { background: rgba(255,255,255,.08); color: #fff !important; }
  .site-header.flux-scrolled .flux-burger span { background: #1D1F21; }
  .site-header.flux-scrolled .flux-menu a { color: #fff; }
}

/* ============================================================
   FLUX — 特性条 + 彩色悬浮联系按钮
   ============================================================ */

/* ---- 特性条(页脚上方 4 栏) ---- */
.flux-feature-bar { width: 100%; padding: 30px 20px; background: #fff; }
.flux-feature-inner { width: min(100%, var(--flux-max)); margin: 0 auto; border: 1px solid var(--flux-line); border-radius: 4px; display: grid; grid-template-columns: repeat(4, 1fr); }
.flux-feature { display: flex; align-items: center; gap: 14px; padding: 22px 24px; position: relative; }
.flux-feature + .flux-feature::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; border-left: 1px dashed var(--flux-line); }
.flux-feature-ic { flex: none; color: var(--flux-ink); display: inline-grid; place-items: center; }
.flux-feature-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flux-feature-copy strong { font-size: 16px; font-weight: 700; color: var(--flux-ink); letter-spacing: .01em; }
.flux-feature-copy span { font-size: 12.5px; color: var(--flux-muted); line-height: 1.35; }
@media (max-width: 900px) {
  .flux-feature-inner { grid-template-columns: 1fr 1fr; }
  .flux-feature:nth-child(2n)::before, .flux-feature + .flux-feature::before { display: none; }
  .flux-feature:nth-child(2n)::before { display: block; }
}
@media (max-width: 560px) {
  .flux-feature-inner { grid-template-columns: 1fr; }
  .flux-feature::before { display: none !important; }
  .flux-feature { border-top: 1px dashed var(--flux-line); }
  .flux-feature:first-child { border-top: 0; }
}

/* ---- 悬浮联系按钮(彩色圆形) ---- */
.flux-floating { position: fixed; z-index: 9998; right: 16px; top: 50%; transform: translateY(-50%); bottom: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; padding: 0; }
.flux-fab.is-empty { cursor: default; }
@media (max-width: 560px) { .flux-floating { right: 10px; gap: 10px; } }
.flux-floating a.flux-fab { width: 50px; height: 50px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.22); color: #fff; flex: none; margin: 0; transition: transform .18s ease, box-shadow .18s ease; }
.flux-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 22px rgba(0,0,0,.28); }
.flux-fab svg { display: block; }
.flux-fab-mail { background: #F44A5A; }
.flux-fab-wa   { background: #45C15A; }
.flux-fab-ms   { background: #2D7FF9; }
.flux-fab-chat { background: #4E5BD6; }
/* 返回顶部按钮避让悬浮栏 */
.flux-top { bottom: 24px; left: 18px; }
@media (max-width: 560px) {
  .flux-fab { width: 42px; height: 42px; }
}

/* ===== Log in + 搜索 + 购物车 合并到同一行(右上角) ===== */
.flux-account { position: absolute; right: 24px; top: 22px; display: flex; align-items: center; gap: 18px; z-index: 5; }
.flux-account .flux-login { position: static; right: auto; top: auto; font-size: 13px; }
.flux-account .flux-tools { position: static; right: auto; bottom: auto; display: flex; align-items: center; gap: 16px; }
.site-header.flux-scrolled .flux-account .flux-login a { color: #1D1F21; }
@media (max-width: 900px) {
  .flux-account { right: 16px; top: 18px; gap: 12px; }
  .flux-account .flux-tools { display: flex !important; }
}
@media (max-width: 560px) {
  .flux-account .flux-login { display: none; } /* 手机太窄时只留搜索/购物车 */
}

/* ============================================================
   我的账户 / 登录·注册 页(品牌风格卡片)
   ============================================================ */
.woocommerce-account .woocommerce { max-width: 960px; margin: 46px auto; }
.woocommerce-account .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; align-items: start; }
.woocommerce-account .u-column1, .woocommerce-account .u-column2,
.woocommerce-account .col-1, .woocommerce-account .col-2 { width: 100% !important; max-width: none !important; float: none !important; margin: 0 !important; }
.woocommerce-account form.login, .woocommerce-account form.register { border: 1px solid var(--flux-line); border-radius: 10px; padding: 30px 28px 34px; box-shadow: 0 8px 28px rgba(0,0,0,.06); margin: 0; background: #fff; }
.woocommerce-account h2 { font-size: 21px; letter-spacing: .01em; margin: 0 0 18px; }
.woocommerce-account form .form-row { margin-bottom: 16px; }
.woocommerce-account form .form-row label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--flux-ink); }
.woocommerce-account form .form-row input.input-text,
.woocommerce-account form .form-row input[type="password"] { width: 100%; padding: 12px 14px; border: 1px solid var(--flux-line); border-radius: 7px; font-size: 14px; box-sizing: border-box; }
.woocommerce-account form .form-row input.input-text:focus,
.woocommerce-account form .form-row input[type="password"]:focus { outline: none; border-color: var(--flux-ink); }
.woocommerce-account form.login button.button, .woocommerce-account form.register button.button,
.woocommerce-account .woocommerce-form-login__submit, .woocommerce-account .woocommerce-form-register__submit { width: 100%; background: var(--flux-ink) !important; color: #fff !important; border: 0 !important; border-radius: 7px !important; padding: 13px 20px !important; font-weight: 700; margin-top: 4px; cursor: pointer; }
.woocommerce-account .woocommerce-form-login__rememberme { font-size: 13px; color: var(--flux-muted); }
.woocommerce-account .lost_password { font-size: 13px; margin-top: 12px; }
.woocommerce-account .lost_password a { color: var(--flux-red); }
.woocommerce-account .woocommerce-privacy-policy-text { font-size: 12px; color: var(--flux-muted); margin-top: 8px; }
/* 登录后仪表盘 */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border: 1px solid var(--flux-line); border-radius: 7px; margin-bottom: 8px; color: var(--flux-ink); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--flux-ink); color: #fff; }
@media (max-width: 640px) { .woocommerce-account .u-columns { grid-template-columns: 1fr; } }

/* ============================================================
   极简登录/注册页(单列居中,匹配指定排版)
   ============================================================ */
body.woocommerce-account:not(.logged-in) .flux-inner-wrap article > h1,
body.woocommerce-account:not(.logged-in) .entry-title,
body.woocommerce-account:not(.logged-in) .page-title { display: none; }
.woocommerce-account #customer_login.u-columns { display: block; width: 100%; max-width: 620px; margin: 24px auto 10px; }
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 { width: 100% !important; max-width: none !important; float: none !important; margin: 0 !important; }
.woocommerce-account #customer_login .u-column2 { display: none; }
.woocommerce-account.flux-show-register #customer_login .u-column1 { display: none; }
.woocommerce-account.flux-show-register #customer_login .u-column2 { display: block; }
.woocommerce-account #customer_login h2 { text-align: center; font-size: clamp(34px, 5vw, 52px); font-weight: 400; color: var(--flux-ink); margin: 8px 0 46px; border: 0; }
.woocommerce-account #customer_login form.login,
.woocommerce-account #customer_login form.register { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; }
.woocommerce-account #customer_login form .form-row { margin-bottom: 22px; }
.woocommerce-account #customer_login form .form-row > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.woocommerce-account #customer_login form .woocommerce-form-login__rememberme { display: none; }
.woocommerce-account #customer_login form .form-row input.input-text,
.woocommerce-account #customer_login form .form-row input[type="password"] { width: 100%; background: #f5f5f5; border: 0; border-radius: 10px; padding: 24px 26px; font-size: 20px; box-sizing: border-box; color: var(--flux-ink); }
.woocommerce-account #customer_login form .form-row input.input-text::placeholder,
.woocommerce-account #customer_login form .form-row input[type="password"]::placeholder { color: #9a9a9a; }
.woocommerce-account #customer_login form .form-row input:focus { outline: none; box-shadow: 0 0 0 2px rgba(0,0,0,.12); }
.woocommerce-account #customer_login .password-input { display: block; position: relative; width: 100%; }
.woocommerce-account #customer_login .show-password-input { position: absolute; top: 50%; transform: translateY(-50%); right: 24px; }
.woocommerce-account #customer_login form button.button { width: 100%; background: #000 !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; padding: 24px !important; font-size: 22px !important; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; margin-top: 4px; }
.woocommerce-account #customer_login form button.button:hover { background: #1a1a1a !important; }
.woocommerce-account .woocommerce-privacy-policy-text { text-align: center; margin-top: 16px; }
.flux-auth-links { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 28px 0 0; }
.flux-auth-links a { color: #555; text-decoration: underline; font-size: 17px; }
.flux-auth-links a:hover { color: var(--flux-ink); }
.flux-auth-back { display: block; width: 100%; text-align: center; margin-top: 24px; color: #555; text-decoration: underline; font-size: 17px; }

/* ============================================================
   商品详情页:套餐档位卡片 + 数量器 + Buy It Now(买box 布局)
   ============================================================ */
.variations_form.flux-tiers-on .variations { display: none; }
.flux-tiers { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 22px; }
.flux-tier { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--flux-line); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.flux-tier:hover { border-color: #bbb; }
.flux-tier.is-active { border-color: var(--flux-ink); background: #f7f7f7; }
.flux-tier-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #bbb; position: relative; }
.flux-tier.is-active .flux-tier-radio { border-color: var(--flux-ink); }
.flux-tier.is-active .flux-tier-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--flux-ink); }
.flux-tier-name { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.25; }
.flux-tier-p { text-align: right; display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.flux-tier-price { color: var(--flux-buy, #FF0000); font-weight: 700; font-size: 16px; }
.flux-tier-old { color: #999; text-decoration: line-through; font-size: 13px; }

/* 数量加减器 */
.woocommerce div.product form.cart .quantity { display: inline-flex; align-items: center; border: 1px solid var(--flux-line); border-radius: 8px; overflow: hidden; margin: 0 0 4px; }
.woocommerce div.product form.cart .quantity .flux-qminus,
.woocommerce div.product form.cart .quantity .flux-qplus { width: 46px; height: 50px; border: 0; background: #f5f5f5; font-size: 22px; line-height: 1; cursor: pointer; color: var(--flux-ink); }
.woocommerce div.product form.cart .quantity .flux-qminus:hover,
.woocommerce div.product form.cart .quantity .flux-qplus:hover { background: #ececec; }
.woocommerce div.product form.cart .quantity input.qty { width: 60px; height: 50px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; background: #fff; }
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 加购 + 立即购买 两按钮一行 */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity { flex: 0 0 100%; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 44%; min-width: 150px; background: #fff !important; color: var(--flux-ink) !important; border: 2px solid var(--flux-ink) !important; border-radius: 8px !important; padding: 15px 18px !important; font-weight: 700; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: #f5f5f5 !important; }
.woocommerce div.product form.cart .flux-buynow { flex: 1 1 44%; min-width: 150px; background: #000 !important; color: #fff !important; border: 2px solid #000 !important; border-radius: 8px !important; padding: 15px 18px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.woocommerce div.product form.cart .flux-buynow:hover { background: #1a1a1a !important; }

/* Save 徽标 */
.flux-save { display: inline-block; margin-left: 10px; background: var(--flux-tag, #AE2238); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 5px; vertical-align: middle; }

@media (max-width: 520px) {
  .woocommerce div.product form.cart .single_add_to_cart_button,
  .woocommerce div.product form.cart .flux-buynow { flex: 1 1 100%; }
}

/* 隐藏商品页 ShopEngine 收藏/对比图标 */
.single-product .shopengine-wishlist,
.single-product .shopengine-comparison,
.single-product .shopengine_add_to_list_action,
.single-product .shopengine_comparison_add_to_list_action,
.single-product .shopengine-icon-add_to_favourite_1,
.single-product .shopengine-icon-product_compare_1 { display: none !important; }
/* 短描述移到底部后的间距 */
.single-product .woocommerce-product-details__short-description { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--flux-line); }

/* 价格只在顶部显示:隐藏档位下方重复的变体价格 */
.single-product .woocommerce-variation-price { display: none !important; }
.single-product .summary .price .flux-save { margin-left: 12px; }
/* 数量器居中、简洁 */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity { flex: 0 0 100%; display: flex; justify-content: center; align-items: center; gap: 10px; border: 0; margin: 8px 0 16px; overflow: visible; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity .flux-qminus,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity .flux-qplus { width: 46px; height: 46px; border: 1px solid var(--flux-line); background: #fff; border-radius: 8px; font-size: 22px; color: var(--flux-ink); }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity input.qty { width: 54px; height: 46px; border: 0; text-align: center; font-size: 18px; background: transparent; }

/* Facebook 社交条自定义头像 */
.flux-fb-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #111; flex: none; }


/* ============================================================
   结账页:安全提示 + Guaranteed Safe Checkout 徽标
   ============================================================ */
.flux-checkout-notice { max-width: 1040px; margin: 22px auto 8px; padding: 16px 20px; border: 1px solid var(--flux-line); border-left: 4px solid var(--flux-ink); border-radius: 8px; background: #fafafa; }
.flux-checkout-notice strong { display: block; font-size: 15px; margin-bottom: 5px; color: var(--flux-ink); }
.flux-checkout-notice p { margin: 0; font-size: 13px; color: var(--flux-muted); line-height: 1.55; }
.flux-safe-checkout { max-width: 1040px; margin: 26px auto 10px; padding: 16px; border: 1px solid var(--flux-line); border-radius: 8px; text-align: center; }
.flux-safe-checkout .flux-safe-title { display: block; font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--flux-ink); margin-bottom: 12px; }
.flux-safe-checkout img { max-width: 340px; width: 100%; height: auto; }


/* ============================================================
   18+ 年龄验证弹窗
   ============================================================ */
.flux-agegate { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8,8,10,.94); }
.flux-agegate-card { max-width: 440px; width: 100%; background: #fff; border-radius: 14px; padding: 40px 34px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.flux-agegate-logo { display: inline-block; background: #0a0b0e; color: #F5A623; font-weight: 800; font-size: 22px; letter-spacing: .04em; padding: 10px 18px; border-radius: 8px; margin-bottom: 24px; }
.flux-agegate-card h2 { margin: 0 0 12px; font-size: 24px; color: var(--flux-ink); }
.flux-agegate-card p { margin: 0 0 26px; font-size: 14px; color: var(--flux-muted); line-height: 1.6; }
.flux-agegate-btns { display: flex; flex-direction: column; gap: 12px; }
.flux-agegate-yes { background: var(--flux-ink); color: #fff; border: 0; border-radius: 8px; padding: 15px; font-size: 16px; font-weight: 700; cursor: pointer; }
.flux-agegate-yes:hover { background: #000; }
.flux-agegate-no { background: #fff; color: var(--flux-muted); border: 1px solid var(--flux-line); border-radius: 8px; padding: 13px; font-size: 14px; cursor: pointer; }
.flux-agegate-no:hover { background: #f5f5f5; }
.flux-agegate-card small { display: block; margin-top: 20px; font-size: 11px; color: #b3b3b3; }

/* 隐藏未配置链接的联系按钮(填了链接自动显示) */
.flux-fab.is-empty { display: none !important; }

/* ===== 促销条 / 隐藏评分 / 免邮提示 ===== */
.flux-announce { background: #0a0b0e; color: #fff; text-align: center; font-size: 13px; letter-spacing: .02em; padding: 9px 16px; line-height: 1.4; }
.flux-announce span { color: #eee; }
.flux-announce b { color: #F5A623; font-weight: 700; }
.flux-single-rating, .flux-product-rating { display: none !important; }
.flux-ship-nudge { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; padding: 11px 14px; border-radius: 8px; background: #eef8f0; color: #2b7a3b; font-size: 14px; font-weight: 600; }
.flux-ship-nudge b { font-weight: 800; }
.flux-ship-nudge.is-away { background: #fff5e9; color: #b56a12; }

/* ============================================================
   迷你购物车抽屉 — 紧凑重排(图左·名中·×右上)
   ============================================================ */
.flux-cart-drawer { width: min(90vw, 366px); }
.flux-cart-head { padding: 15px 18px; font-size: 13px; letter-spacing: .04em; }
.flux-cart-body { padding: 6px 18px 18px; }
.flux-cart-body .woocommerce-mini-cart.cart_list, .flux-cart-body ul.product_list_widget { margin: 0; padding: 0; list-style: none; }
.flux-cart-body li.mini_cart_item { position: relative; padding: 12px 26px 12px 0; margin: 0; border-bottom: 1px solid var(--flux-line); font-size: 13px; }
.flux-cart-body li.mini_cart_item > a:not(.remove) { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--flux-ink) !important; line-height: 1.35; text-decoration: none; }
.flux-cart-body li.mini_cart_item img { width: 50px !important; height: 50px !important; object-fit: contain; float: none !important; margin: 0 !important; flex: none; border: 1px solid var(--flux-line); border-radius: 6px; background: #fafafa; padding: 3px; box-sizing: border-box; }
.flux-cart-body li.mini_cart_item .quantity { display: block; margin: 5px 0 0 62px; font-size: 12.5px; color: var(--flux-muted); font-weight: 600; }
.flux-cart-body li.mini_cart_item .quantity .amount { color: var(--flux-ink); }
.flux-cart-body li.mini_cart_item a.remove.remove_from_cart_button { position: absolute !important; top: 12px; right: 0; margin: 0 !important; width: 20px; height: 20px; line-height: 18px !important; text-align: center; font-size: 15px !important; color: #bbb !important; border: 0 !important; background: transparent !important; border-radius: 50%; text-decoration: none; }
.flux-cart-body li.mini_cart_item a.remove.remove_from_cart_button:hover { color: #fff !important; background: var(--flux-red) !important; }
.flux-cart-body p.woocommerce-mini-cart__total { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 0 !important; padding: 13px 0 0 !important; border-top: 2px solid var(--flux-ink); font-size: 15px; }
.flux-cart-body p.woocommerce-mini-cart__total .amount { color: var(--flux-red); font-weight: 800; font-size: 17px; }
.flux-cart-body p.woocommerce-mini-cart__buttons { display: flex; gap: 10px; margin: 14px 0 0 !important; padding: 0 !important; }
.flux-cart-body p.woocommerce-mini-cart__buttons a { flex: 1; text-align: center; padding: 12px 8px !important; margin: 0 !important; border-radius: 7px !important; font-weight: 700; font-size: 13px; }
.flux-cart-body p.woocommerce-mini-cart__buttons a.button:not(.checkout) { background: #fff !important; color: var(--flux-ink) !important; border: 1.5px solid var(--flux-ink) !important; }
.flux-cart-body p.woocommerce-mini-cart__buttons a.checkout { background: #000 !important; color: #fff !important; border: 1.5px solid #000 !important; }
.flux-cart-body p.woocommerce-mini-cart__empty-message { text-align: center; color: var(--flux-muted); margin: 26px 0; }


/* ===== Cart drawer — image-2 layout (Store API) ===== */
.flux-cart-body { padding: 0 18px 18px; }
.flux-ci-empty { text-align: center; color: #888; font-size: 14px; padding: 40px 0; }
.flux-ci-list { padding-top: 4px; }
.flux-ci { position: relative; display: flex; gap: 12px; padding: 16px 22px 16px 0; border-bottom: 1px solid var(--flux-line); }
.flux-ci-img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: 0 0 64px; background: #f5f5f5; }
.flux-ci-info { flex: 1; min-width: 0; }
.flux-ci-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: #111; }
.flux-ci-var { margin-top: 3px; font-size: 12px; color: #8a8a8a; }
.flux-ci-var span { margin-right: 8px; text-transform: capitalize; }
.flux-ci-price { margin-top: 6px; font-size: 14px; font-weight: 700; color: #111; }
.flux-ci-qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid #dcdcdc; border-radius: 6px; overflow: hidden; }
.flux-ci-qty button { width: 30px; height: 28px; border: 0; background: #fff; font-size: 16px; line-height: 1; color: #333; cursor: pointer; transition: background .15s; }
.flux-ci-qty button:hover { background: #f2f2f2; }
.flux-ci-qty span { min-width: 34px; text-align: center; font-size: 13px; font-weight: 600; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; height: 28px; line-height: 28px; }
.flux-ci-remove { position: absolute; top: 12px; right: 0; width: 22px; height: 22px; border: 0; background: none; font-size: 20px; line-height: 1; color: #bbb; cursor: pointer; transition: color .15s; }
.flux-ci-remove:hover { color: #111; }
.flux-ci-totals { padding: 16px 0 6px; }
.flux-ci-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #444; padding: 6px 0; }
.flux-ci-grand { font-size: 16px; font-weight: 700; color: #111; }
.flux-ci-checkout { display: block; margin: 10px 0 0; padding: 15px; background: #111; color: #fff; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .06em; border-radius: 6px; text-decoration: none; transition: background .15s; }
.flux-ci-checkout:hover { background: #000; }
.flux-ci-foot { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 4px; }
.flux-ci-empty-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #e2e2e2; border-radius: 6px; background: #fff; color: #666; cursor: pointer; transition: all .15s; }
.flux-ci-empty-btn:hover { color: #c0392b; border-color: #e0b4ad; }
.flux-ci-viewcart { font-size: 13px; font-weight: 600; color: #111; text-decoration: underline; text-underline-offset: 3px; }
.flux-ci-viewcart:hover { color: #555; }

.flux-cart-body.is-busy { opacity: .55; pointer-events: none; transition: opacity .12s; }

.flux-cart-source { display: none !important; }

/* hero mobile fit — stop headline overflow on small screens */
@media (max-width: 600px) {
  .flux-hero, .flux-hero-content { min-height: 460px; }
  .flux-hero-content { padding: 140px 20px 46px; }
  .flux-hero-content h1 { font-size: clamp(26px, 8.4vw, 40px); letter-spacing: .01em; word-break: normal; overflow-wrap: break-word; }
  .flux-hero-content p { font-size: 14px; }
}

/* remove redundant SHOP NOW overlay on product cards (card is already a link) */
.flux-product-badge { display: none !important; }

/* footer store address */
.flux-footer-addr { margin: 12px 0 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.62); }
.flux-footer-addr-ic { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22currentColor%22%3E%3Cpath d=%22M12 2C8.1 2 5 5.1 5 9c0 5.3 7 13 7 13s7-7.7 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z%22/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22currentColor%22%3E%3Cpath d=%22M12 2C8.1 2 5 5.1 5 9c0 5.3 7 13 7 13s7-7.7 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z%22/%3E%3C/svg%3E") center/contain no-repeat; }
