/*
Theme Name: Taixing POC
Description: Cross-border trade platform showcase for the Taixing WordPress POC.
Version: 0.4.8
Text Domain: taixing-poc
*/

:root {
  --navy: #10294f;
  --navy-deep: #091c39;
  --ink: #142b50;
  --muted: #737d8e;
  --red: #e3082d;
  --gold: #e7b426;
  --paper: #f5f8fc;
  --line: #e5e9f0;
  --white: #fff;
  --shadow: 0 14px 35px rgba(18, 38, 70, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site-main { min-height: 60vh; }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); box-shadow: 0 3px 12px rgba(0, 0, 0, .16); transition: background .25s, box-shadow .25s; }
.site-header__inner { height: 88px; width: min(100% - 60px, 1500px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 34px; transition: height .25s; }
.site-header.is-scrolled { background: rgba(9, 28, 57, .96); box-shadow: 0 7px 22px rgba(1, 11, 26, .28); }
.site-header.is-scrolled .site-header__inner { height: 70px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--white); }
.site-brand__mark { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 13px; background: linear-gradient(140deg, #e5532e, #f4a92d); color: #fff; font-family: Georgia, serif; font-size: 37px; line-height: 1; box-shadow: 0 7px 15px rgba(237, 92, 33, .32); }
.site-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.site-brand__name { display: grid; gap: 0; line-height: 1.08; }
.site-brand strong { font-size: 22px; letter-spacing: .05em; }
.site-brand small { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .22em; margin-top: 6px; }
.site-nav { display: flex; align-items: center; justify-content: center; margin-left: auto; }
.site-nav__list, .site-footer__links { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 44px); margin: 0; padding: 0; list-style: none; }
.site-nav a { color: rgba(255,255,255,.82); font-weight: 700; font-size: 16px; padding: 30px 0 25px; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a.is-current, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: #fff; border-color: var(--gold); }
.site-nav__list > .menu-item { position: relative; }
.site-nav .menu-item-has-children > a::after { content: "⌄"; display: inline-block; margin-left: 7px; color: var(--gold); font-size: 14px; transform: translateY(-1px); }
.site-nav .sub-menu { position: absolute; z-index: 30; top: calc(100% - 8px); left: -17px; display: none; min-width: 186px; margin: 0; padding: 9px; list-style: none; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: var(--navy); box-shadow: 0 15px 32px rgba(0,0,0,.26); }
.site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { display: block; padding: 10px 11px; border: 0; border-radius: 6px; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.35; white-space: nowrap; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { color: #fff; border: 0; background: rgba(255,255,255,.11); }
.site-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-hotline, .site-header__cta { padding: 11px 18px; border-radius: 8px; font-weight: 800; white-space: nowrap; }
.header-hotline { color: var(--gold); background: var(--white); border: 1px solid #f3cc60; }
.site-header__cta { color: #fff; background: var(--red); box-shadow: 0 8px 18px rgba(227, 8, 45, .31); }
.site-header__account, .site-header__logout { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; font-weight: 800; white-space: nowrap; }
.site-header__account { padding: 8px 16px; color: #fff; border: 1px solid var(--gold); background: rgba(255,255,255,.08); transition: background .2s ease, border-color .2s ease; }
.site-header__account:hover { color: #fff; border-color: var(--gold); background: rgba(255,255,255,.17); }
.site-header__logout { min-height: auto; padding: 4px 0; color: rgba(255,255,255,.76); border-bottom: 1px solid transparent; font-size: 13px; }
.site-header__logout:hover { color: #fff; border-color: var(--gold); }
.site-header__cart { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; color: var(--navy); border: 1px solid #f3cc60; border-radius: 8px; background: #fff7df; box-shadow: 0 7px 16px rgba(0, 0, 0, .16); font-weight: 800; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.site-header__cart:hover { color: var(--navy); background: #fff; transform: translateY(-1px); }
.site-header__cart-icon { font-size: 18px; line-height: 1; }
.site-header__cart-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; color: #fff; border-radius: 999px; background: var(--red); font-size: 12px; line-height: 1; }
.cart-next-step { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; grid-template-columns: 1fr auto; gap: 15px 26px; width: min(470px, calc(100vw - 40px)); padding: 22px; color: var(--ink); border: 1px solid #f2a8b6; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(12, 26, 48, .25); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.cart-next-step.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cart-next-step__copy { display: grid; gap: 5px; }
.cart-next-step__copy strong { color: var(--navy); font-size: 19px; }
.cart-next-step__copy span { color: var(--muted); font-size: 14px; }
.cart-next-step__actions { display: flex; grid-column: 1 / -1; gap: 10px; }
.cart-next-step__actions a, .taixing-cart-success__actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.cart-next-step__view, .taixing-cart-success__secondary { flex: 1; color: var(--red); border: 1px solid #f2a8b6; background: #fff; }
.cart-next-step__checkout, .taixing-cart-success__primary { flex: 1.2; color: #fff; background: var(--red); box-shadow: 0 8px 18px rgba(227, 8, 45, .24); }
.cart-next-step__close { width: 28px; height: 28px; padding: 0; color: var(--muted); border: 0; border-radius: 50%; background: #f5f6f8; font-size: 21px; line-height: 1; cursor: pointer; }
.taixing-cart-success { display: grid; grid-template-columns: 1fr auto; gap: 15px 26px; align-items: center; width: 100%; padding: 5px 0; }
.taixing-cart-success__copy { display: grid; gap: 5px; }
.taixing-cart-success__copy strong { color: var(--navy); font-size: 18px; }
.taixing-cart-success__copy span { color: var(--muted); }
.taixing-cart-success__actions { display: flex; gap: 10px; }
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 66px 0 0; }
.site-footer__inner { width: min(100% - 60px, 1500px); margin: auto; display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); gap: 42px; }
.site-footer__brand p { max-width: 340px; margin: 22px 0 16px; }
.site-footer h2 { margin: 0 0 16px; font-size: 18px; color: var(--gold); }
.site-footer a { display: block; width: fit-content; margin: 9px 0; transition: color .2s; }
.site-footer__links { display: block; }
.site-footer__links a { margin: 9px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 9px 0; }
.footer-demo { display: inline-block; padding: 4px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; color: var(--gold); font-size: 12px; }
.site-footer__note { margin-top: 48px; padding: 18px 30px; background: rgba(0,0,0,.17); color: rgba(255,255,255,.56); font-size: 13px; text-align: center; }

/* Shared controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 13px 23px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12,31,63,.17); }
.button--red { color: #fff; background: var(--red); }
.button--ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.button--navy { color: #fff; background: var(--navy); }
.section-kicker { width: fit-content; margin: 0 auto 10px; padding: 4px 14px; border: 1px solid #f6b5c3; border-radius: 20px; color: var(--red); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.section-heading { max-width: 790px; margin: auto; text-align: center; }
.section-heading h2, .content-page h1 { margin: 0; color: var(--ink); font-size: clamp(32px, 3.1vw, 50px); line-height: 1.25; letter-spacing: -.045em; }
.section-heading p:last-child { margin: 15px auto 0; color: var(--muted); font-size: 17px; }
.trade-section { padding: 100px max(30px, calc((100vw - 1500px) / 2)); }

/* Home hero */
.hero-carousel { position: relative; min-height: 720px; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; pointer-events: none; transition: opacity .65s ease; background-image: linear-gradient(90deg, rgba(4,25,58,.42) 0%, rgba(7,38,77,.17) 44%, rgba(8,24,55,.02) 100%), var(--hero-image); background-size: cover; background-position: center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(11,40,78,.03), transparent 55%, rgba(226,103,36,.04)); mix-blend-mode: multiply; }
.hero-slide--culture { background-image: linear-gradient(90deg, rgba(35,33,65,.52), rgba(92,45,61,.24) 55%, rgba(190,93,47,.05)), var(--hero-image); filter: brightness(1.06) sepia(.08) hue-rotate(318deg); }
.hero-slide--trade { background-image: linear-gradient(90deg, rgba(9,46,91,.54), rgba(4,68,122,.26) 55%, rgba(26,77,115,.08)), var(--hero-image); filter: brightness(1.06) saturate(1.06) hue-rotate(4deg); }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide__content { position: relative; z-index: 2; width: min(100% - 60px, 1500px); margin: 45px auto 150px; padding-right: 44%; }
.hero-chip { width: fit-content; margin: 0 0 30px; padding: 7px 18px; color: var(--gold); border: 1px solid rgba(231,180,38,.55); border-radius: 23px; font-weight: 800; background: rgba(16,41,79,.36); }
.hero-slide h1 { margin: 0; font-size: clamp(44px, 5vw, 84px); line-height: 1.1; letter-spacing: -.07em; }
.hero-slide h2 { margin: 17px 0 21px; color: var(--gold); font-size: clamp(27px, 2.5vw, 39px); line-height: 1.2; }
.hero-slide p:not(.hero-chip) { max-width: 680px; margin: 0; color: rgba(255,255,255,.86); font-size: clamp(16px, 1.2vw, 20px); }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; }
.hero-carousel__controls { position: absolute; z-index: 3; inset: auto 30px 180px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hero-arrow { pointer-events: auto; display: grid; place-items: center; width: 59px; height: 59px; border: 1px solid rgba(255,255,255,.43); border-radius: 100%; color: #fff; background: rgba(255,255,255,.12); font-size: 49px; line-height: 1; font-family: Arial, sans-serif; transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.28); }
.hero-dots { pointer-events: auto; display: flex; align-items: center; gap: 11px; }
.hero-dots button { width: 31px; height: 6px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.58); }
.hero-dots button.is-active { width: 50px; background: var(--gold); }
.hero-stat-row { position: absolute; z-index: 3; left: max(30px, calc((100vw - 1500px) / 2)); bottom: 46px; display: flex; gap: 78px; }
.hero-stat-row div { display: grid; gap: 3px; }
.hero-stat-row b { font-size: 34px; line-height: 1; }
.hero-stat-row span { color: rgba(255,255,255,.72); }

/* Static product showcase */
.featured-products { background: var(--paper); }
.showcase-tabs, .category-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 42px auto 58px; }
.showcase-tabs button, .category-tabs button, .category-tabs a { min-width: 170px; padding: 15px 23px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 8px 17px rgba(20,43,80,.1); font-weight: 800; text-align: center; }
.showcase-tabs button.is-active, .category-tabs button.is-active, .category-tabs a.is-active { color: #fff; background: var(--navy); box-shadow: 0 12px 21px rgba(16,41,79,.25); }
.showcase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.showcase-card { overflow: hidden; background: #fff; border-radius: 18px; box-shadow: var(--shadow); transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .25s ease, box-shadow .25s; will-change: transform; }
.showcase-card:hover { transform: perspective(900px) translateY(-7px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); box-shadow: 0 20px 36px rgba(17,44,82,.15); }
.showcase-card[hidden] { display: none; }
.showcase-card__image { position: relative; height: 274px; overflow: hidden; }
.showcase-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.showcase-card:hover .showcase-card__image img { transform: scale(1.035); }
.showcase-card__image span { position: absolute; top: 17px; left: 17px; padding: 4px 12px; border-radius: 16px; color: #fff; background: var(--red); font-weight: 800; font-size: 13px; }
.showcase-card__body { padding: 24px 25px 26px; }
.showcase-card h3 { margin: 0; font-size: 22px; line-height: 1.35; }
.showcase-card p { min-height: 52px; margin: 12px 0 18px; color: var(--muted); font-size: 15px; }
.showcase-card dl { margin: 0 0 19px; padding-top: 15px; border-top: 1px solid var(--line); }
.showcase-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 14px; }
.showcase-card dt { color: #808a9c; }
.showcase-card dd { margin: 0; color: var(--red); text-align: right; font-weight: 700; }
.showcase-card__body > a { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px; color: var(--red); border: 1px solid #f3a6b4; border-radius: 9px; font-weight: 800; }
.products-more { display: flex; width: fit-content; margin: 48px auto 0; }
.products-more[hidden] { display: none; }

/* Cooperation / about */
.cooperation-section { background: #fff; }
.cooperation-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; max-width: 1180px; margin: 54px auto 0; }
.cooperation-intro { display: grid; align-content: center; justify-items: center; min-height: 360px; padding: 44px; border: 2px dashed #f2b8c2; border-radius: 21px; background: linear-gradient(145deg, #fff, #fff8fa); text-align: center; }
.cooperation-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 100%; color: var(--red); background: #fdecf0; font-size: 48px; line-height: 1; }
.cooperation-intro h3 { margin: 18px 0 8px; font-size: 25px; }
.cooperation-intro p { margin: 0; color: var(--muted); }
.cooperation-intro a { margin-top: 21px; color: var(--red); font-weight: 800; }
.cooperation-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.cooperation-flow li { display: flex; gap: 16px; padding: 28px 22px; border-radius: 16px; background: var(--paper); }
.cooperation-flow b { color: var(--red); font-size: 18px; }
.cooperation-flow h3 { margin: 0; font-size: 19px; }
.cooperation-flow p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(38px, 7vw, 120px); align-items: center; background: var(--paper); }
.about-preview__image { min-height: 470px; border-radius: 0 24px 24px 0; background-color: #dceef4; background-image: linear-gradient(110deg, rgba(12,35,71,.10), rgba(226,136,47,.04)), var(--about-preview-image, url("assets/about-global-market-port.png")); background-position: 52% center; background-repeat: no-repeat; background-size: cover; box-shadow: var(--shadow); }
.about-preview__content .section-kicker { margin-left: 0; }
.about-preview__content h2 { margin: 0; font-size: clamp(30px, 2.25vw, 36px); line-height: 1.3; letter-spacing: -.065em; white-space: nowrap; }
.about-preview__content > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.about-preview ul { padding: 0; list-style: none; }
.about-preview li { position: relative; padding: 7px 0 7px 30px; font-weight: 700; }
.about-preview li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-size: 20px; }
.text-link { color: var(--red); font-size: 18px; font-weight: 800; }
.contact-preview { display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #fff; background: linear-gradient(135deg, var(--navy), #234b85); }
.contact-preview .section-kicker { margin-left: 0; color: var(--gold); border-color: rgba(231,180,38,.5); }
.contact-preview h2 { max-width: 690px; margin: 0; font-size: clamp(33px, 3vw, 49px); line-height: 1.3; }
.contact-preview p:last-child { max-width: 750px; margin: 13px 0 0; color: rgba(255,255,255,.75); }

/* Company, supplier and contact pages */
.content-page { width: min(100% - 60px, 1240px); margin: 0 auto; padding: 84px 0 108px; }
.content-page__header { max-width: 850px; margin: 0 auto 48px; text-align: center; }
.content-page__header .section-kicker { margin-bottom: 13px; }
.page-lead { max-width: 850px; margin: 0 auto 38px; color: var(--muted); font-size: 19px; text-align: center; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.info-card h3 { margin: 0 0 8px; font-size: 21px; }
.info-card p { margin: 0; color: var(--muted); }
.notice { margin: 32px 0 0; padding: 20px 22px; border-left: 4px solid var(--gold); background: #fff8e9; color: #5d512f; }
.join-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.join-flow > div { min-height: 218px; padding: 26px 22px; border-radius: 16px; color: #fff; background: var(--navy); }
.join-flow > div:nth-child(even) { background: #193c70; }
.join-flow b { color: var(--gold); font-size: 14px; letter-spacing: .08em; }
.join-flow h3 { margin: 20px 0 8px; font-size: 21px; }
.join-flow p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; }
.contact-details { display: grid; gap: 18px; }
.contact-detail { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.contact-detail h3 { margin: 0 0 6px; font-size: 18px; }
.contact-detail p { margin: 0; color: var(--muted); }
.contact-form { padding: 38px; border-radius: 19px; background: var(--paper); box-shadow: var(--shadow); }
.contact-form h2 { margin: 0 0 4px; font-size: 28px; }
.contact-form > p { margin: 0 0 23px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; margin-bottom: 17px; color: var(--ink); font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #dbe2ec; border-radius: 8px; color: var(--ink); background: #fff; outline-color: var(--red); font-weight: 400; }
.contact-form textarea { min-height: 116px; resize: vertical; }
.form-message { margin: 13px 0 0; color: var(--red); font-weight: 700; }

/* WooCommerce product gallery follows the reference information layout. */
.shop-hero { padding: 80px 30px 42px; background: var(--paper); text-align: center; }
.shop-hero .section-kicker { margin-bottom: 12px; }
.shop-hero h1 { margin: 0; font-size: clamp(35px, 3.4vw, 52px); line-height: 1.25; }
.shop-hero > p { margin: 13px auto 0; color: var(--muted); font-size: 17px; }
.shop-category-tabs { margin: 36px auto 0; }
.woocommerce { width: min(100% - 60px, 1500px); margin: 0 auto; padding: 58px 0 100px; }
.woocommerce .woocommerce-products-header { display: none; }
.site-main > .page-title { display: none; }
.woocommerce-shop .woocommerce-result-count, .woocommerce-shop .woocommerce-ordering { display: none; }
.woocommerce .woocommerce-result-count { color: var(--muted); }
.woocommerce .woocommerce-ordering select { padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 34px 0 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { position: relative; float: none !important; width: auto !important; margin: 0 !important; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--shadow); transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .25s ease, box-shadow .25s; will-change: transform; }
.woocommerce ul.products li.product:hover { transform: perspective(900px) translateY(-7px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); box-shadow: 0 20px 36px rgba(17,44,82,.15); }
.woocommerce ul.products li.product a img { display: block !important; width: 100%; height: 267px; margin: 0 !important; object-fit: cover; transition: transform .45s ease; }
.woocommerce ul.products li.product:hover > a img { transform: scale(1.035); }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; padding: 22px 24px 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 58px; margin: 0; color: var(--ink); font-size: 21px; line-height: 1.35; }
.woocommerce ul.products li.product .price { margin: 8px 0 0; color: var(--red) !important; font-size: 18px !important; font-weight: 800 !important; }
.woocommerce ul.products li.product .product-trade-meta { display: grid; gap: 5px; margin: 16px 24px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-trade-meta span { display: flex; justify-content: space-between; gap: 8px; color: #818b9a; font-size: 13px; }
.product-trade-meta b { color: var(--red); text-align: right; font-weight: 700; }
.woocommerce ul.products li.product .button { display: flex; width: calc(100% - 48px); min-height: 39px; margin: 16px 24px 25px; padding: 7px 10px; color: var(--red); border: 1px solid #f2a8b6; border-radius: 8px; background: transparent; box-shadow: none; text-align: center; font-size: 15px; }
.woocommerce span.onsale { top: 15px; left: 15px; min-width: auto; min-height: auto; padding: 5px 10px; border-radius: 14px; background: var(--red); line-height: 1.3; }
.woocommerce-page .woocommerce-message, .woocommerce-page .woocommerce-info, .woocommerce-page .woocommerce-error { border-top-color: var(--red); }
.woocommerce-page .button, .woocommerce-page button.button, .woocommerce-page input.button { color: #fff; background: var(--red); border-radius: 7px; }
.woocommerce div.product { max-width: 1100px; margin: 0 auto; }
.woocommerce div.product div.images img { border-radius: 13px; }
.woocommerce div.product .product_title { font-size: 38px; color: var(--ink); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--red); }
.woocommerce table.shop_table { border-color: var(--line); border-radius: 10px; }
.supplier-application { max-width: 900px; margin: 0 auto; padding: 12px 0; }
.supplier-application > .section-kicker { margin-bottom: 12px; }
.supplier-application h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 3vw, 42px); line-height: 1.25; }
.supplier-application > p { max-width: 760px; margin: 0 0 30px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.supplier-application .dokan-vendor-register { display: grid; gap: 14px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.supplier-application .dokan-vendor-register .form-row { float: none; width: 100%; margin: 0; }
.supplier-application .dokan-vendor-register .split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.supplier-application .dokan-vendor-register label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.supplier-application .dokan-vendor-register input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cfd8e5; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.supplier-application .dokan-vendor-register .button { width: auto; min-height: 42px; margin: 0; padding: 10px 18px; }
.supplier-application__form { margin-top: 28px; }
.supplier-application__form h3 { margin: 0 0 16px; color: var(--ink); font-size: 22px; }
.supplier-application__account { padding: 13px 15px; border-radius: 8px; color: var(--navy) !important; background: #edf4ff; }
.supplier-application__consent { display: flex !important; align-items: flex-start; gap: 9px; color: var(--muted) !important; font-size: 14px; font-weight: 400 !important; }
.supplier-application__consent input { width: auto !important; margin-top: 5px; }
.supplier-form-notice { margin: 22px 0; padding: 13px 15px; border-radius: 8px; font-weight: 700; }
.supplier-form-notice.is-success { color: #126333; background: #eaf8ef; }
.supplier-form-notice.is-error { color: #a61d2d; background: #fff0f2; }
.supplier-status { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.supplier-status__label { display: inline-block; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 800; }
.supplier-status p { margin: 10px 0 0; color: var(--muted); }
.supplier-status--approved { border-color: #9fd6b5; background: #f0fbf4; }
.supplier-status--approved .supplier-status__label { background: #16803c; }
.supplier-status--rejected, .supplier-status--suspended { border-color: #f0b7c0; background: #fff6f7; }
.supplier-status--rejected .supplier-status__label, .supplier-status--suspended .supplier-status__label { background: var(--red); }

/* Keep short Chinese titles in the Dokan supplier dashboard on one line. */
.dokan-dashboard-content .woocommerce-layout__header-wrapper > h3.entry-title {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.dealer-application, .dealer-procurement { max-width: 900px; margin: 0 auto; padding: 12px 0; }
.dealer-application > .section-kicker, .dealer-procurement > .section-kicker { margin-bottom: 12px; }
.dealer-application h2, .dealer-procurement h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 3vw, 42px); line-height: 1.25; }
.dealer-application__lead, .dealer-procurement > p { max-width: 770px; color: var(--muted); font-size: 17px; }
.dealer-application__form { margin-top: 28px; }
.dealer-application__form h3 { margin: 0 0 16px; color: var(--ink); font-size: 22px; }
.dealer-application__form h3:not(:first-child) { margin-top: 32px; }
.dealer-application__account { padding: 13px 15px; border-radius: 8px; color: var(--navy); background: #edf4ff; }
.dealer-application__consent { display: flex !important; align-items: flex-start; gap: 9px; color: var(--muted) !important; font-size: 14px; font-weight: 400 !important; }
.dealer-application__consent input { width: auto !important; margin-top: 5px; }
.dealer-form-notice { margin: 22px 0; padding: 13px 15px; border-radius: 8px; font-weight: 700; }
.dealer-form-notice.is-success { color: #126333; background: #eaf8ef; }
.dealer-form-notice.is-error { color: #a61d2d; background: #fff0f2; }
.dealer-status { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.dealer-status__label { display: inline-block; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 800; }
.dealer-status p { margin: 10px 0 0; color: var(--muted); }
.dealer-status--approved { border-color: #9fd6b5; background: #f0fbf4; }
.dealer-status--approved .dealer-status__label { background: #16803c; }
.dealer-status--rejected, .dealer-status--suspended { border-color: #f0b7c0; background: #fff6f7; }
.dealer-status--rejected .dealer-status__label, .dealer-status--suspended .dealer-status__label { background: var(--red); }
.dealer-procurement { padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.dealer-procurement__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Motion is deliberate and restrained: reveal important content as it enters view. */
.reveal-item { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.25,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item:nth-child(2) { transition-delay: .07s; }
.reveal-item:nth-child(3) { transition-delay: .14s; }
.reveal-item:nth-child(4) { transition-delay: .21s; }
.showcase-card__body > a, .woocommerce ul.products li.product .button { position: relative; overflow: hidden; }
.showcase-card__body > a::after, .woocommerce ul.products li.product .button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 25%, rgba(227,8,45,.10) 48%, transparent 70%); transform: translateX(-120%); transition: transform .5s ease; }
.showcase-card:hover .showcase-card__body > a::after, .woocommerce ul.products li.product:hover .button::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal-item { opacity: 1; transform: none; }
}

@media (max-width: 1150px) {
  .site-header__inner { width: min(100% - 38px, 1500px); gap: 18px; }
  .site-nav__list { gap: 19px; }
  .site-nav a { font-size: 14px; }
  .header-hotline { display: none; }
  .showcase-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
  .join-flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header__inner { height: auto; min-height: 74px; width: min(100% - 28px, 1500px); padding: 11px 0; flex-wrap: wrap; }
  .site-brand__mark { width: 39px; height: 39px; border-radius: 10px; font-size: 30px; }
  .site-brand strong { font-size: 18px; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; overflow: visible; }
  .site-nav__list { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px 16px; }
  .site-nav a { padding: 8px 0; font-size: 13px; white-space: nowrap; }
  .site-nav .sub-menu { top: calc(100% + 2px); left: -10px; min-width: 174px; }
  .site-header__cta { padding: 9px 12px; font-size: 13px; }
  .site-header__account { min-height: 38px; padding: 8px 12px; font-size: 13px; }
  .site-header__logout { padding: 4px 0; }
  .site-header__cart { min-height: 38px; padding: 8px 10px; }
  .site-header__cart-label { display: none; }
  .cart-next-step { right: 14px; bottom: 14px; width: calc(100vw - 28px); padding: 18px; }
  .cart-next-step__actions, .taixing-cart-success__actions { flex-direction: column; }
  .cart-next-step__actions a, .taixing-cart-success__actions a { width: 100%; }
  .taixing-cart-success { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 690px; }
  .hero-slide__content { width: min(100% - 38px, 1500px); margin-top: 0; margin-bottom: 175px; padding: 0; }
  .hero-slide h1 { font-size: 47px; }
  .hero-slide h2 { font-size: 28px; }
  .hero-carousel__controls { inset: auto 18px 142px; }
  .hero-arrow { width: 43px; height: 43px; font-size: 36px; }
  .hero-stat-row { left: 20px; right: 20px; bottom: 38px; justify-content: space-between; gap: 10px; }
  .hero-stat-row b { font-size: 22px; }
  .hero-stat-row span { font-size: 12px; }
  .trade-section { padding: 68px 20px; }
  .section-heading h2, .content-page h1 { font-size: 34px; }
  .section-heading p:last-child { font-size: 15px; }
  .showcase-tabs button, .category-tabs button, .category-tabs a { min-width: 0; padding: 11px 13px; font-size: 13px; }
  .showcase-tabs, .category-tabs { gap: 8px; margin: 31px auto 34px; }
  .showcase-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .showcase-card__image { height: 260px; }
  .cooperation-layout, .about-preview, .contact-layout { grid-template-columns: 1fr; }
  .cooperation-flow { grid-template-columns: 1fr; }
  .about-preview { gap: 32px; }
  .about-preview__image { min-height: 290px; margin: 0 -20px; border-radius: 0; }
  .about-preview__content h2 { font-size: 33px; white-space: normal; }
  .contact-preview { display: grid; }
  .site-footer { padding-top: 46px; }
  .site-footer__inner { width: min(100% - 40px, 1500px); grid-template-columns: 1fr; gap: 25px; }
  .content-page { width: min(100% - 40px, 1240px); padding: 62px 0 76px; }
  .page-lead { font-size: 16px; }
  .info-grid, .join-flow, .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .shop-hero { padding: 55px 20px 32px; }
  .woocommerce { width: min(100% - 40px, 1500px); padding: 40px 0 70px; }
  .woocommerce .woocommerce-ordering { float: none; margin: 15px 0; }
  .supplier-application .dokan-vendor-register .split-row { grid-template-columns: 1fr; }
  .dealer-procurement { padding: 26px 20px; }
  .dealer-procurement__actions { flex-direction: column; }
  .dealer-procurement__actions .button { width: 100%; }
}
