/*
Theme Name: CHAMPIONS High Fidelity
Theme URI: https://www.gz-champions.com/
Author: Guangzhou Champions Tech Ltd.
Description: A focused B2B storefront theme for CHAMPIONS with WooCommerce and WPForms support.
Version: 1.0.5
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: champions-hifi
*/

:root {
  --navy: #06152d;
  --navy-2: #0b1b3d;
  --blue: #0a63f6;
  --pale: #f5f8fc;
  --white: #fff;
  --text: #071733;
  --muted: #64748b;
  --line: #e4ebf5;
  --shadow: 0 18px 50px rgba(9, 34, 78, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); font-family: Inter, Manrope, Arial, sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.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; }

.site-header { position: sticky; top: 0; z-index: 50; height: 66px; border-bottom: 1px solid #edf2f8; background: rgba(255, 255, 255, .96); box-shadow: 0 6px 22px rgba(9, 34, 78, .04); backdrop-filter: blur(12px); }
.header-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-width: 178px; color: var(--navy); font-size: 18px; font-weight: 900; line-height: 1; letter-spacing: .02em; }
.brand img { max-width: 150px; max-height: 50px; object-fit: contain; }
.brand small { display: block; margin-top: 5px; color: #53627a; font-size: 8px; font-weight: 700; letter-spacing: .03em; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); color: #24354d; font-size: 13px; font-weight: 800; }
.primary-nav a { position: relative; padding: 25px 0; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: 14px; left: 0; height: 2px; background: var(--blue); }
.mobile-nav { display: none; }
.mobile-nav summary { cursor: pointer; list-style: none; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 900; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 24px; top: 58px; width: min(290px, calc(100vw - 48px)); padding: 12px; display: grid; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.mobile-nav a { padding: 12px; border-bottom: 1px solid var(--line); font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 900; white-space: nowrap; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 26px rgba(10, 99, 246, .22); }
.btn-outline { color: var(--navy-2); border-color: #cbd9ed; background: #fff; }
.btn-dark { color: #fff; border-color: rgba(255, 255, 255, .25); background: var(--navy); }

.hero, .page-hero { position: relative; overflow: hidden; border-bottom: 1px solid #edf2f8; background: linear-gradient(112deg, #fff 0%, #f8fbff 55%, #eaf3ff 100%); }
.hero::before, .page-hero::before { content: ""; position: absolute; right: -120px; bottom: 45px; width: 760px; height: 240px; border-radius: 999px; background: linear-gradient(140deg, rgba(10, 99, 246, .17), transparent); transform: rotate(-14deg); }
.hero-inner { position: relative; min-height: 540px; padding: 58px 0; display: grid; grid-template-columns: 1.02fr .98fr; gap: 34px; align-items: center; }
.page-hero-inner { position: relative; min-height: 350px; padding: 52px 0; display: grid; grid-template-columns: 1fr .95fr; gap: 34px; align-items: center; }
.kicker { margin-bottom: 12px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
h1 { margin: 0 0 22px; color: #081a39; font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -.04em; }
h2.section-title { margin: 0 0 12px; text-align: center; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -.025em; }
.section-sub { max-width: 700px; margin: 0 auto 34px; color: var(--muted); text-align: center; line-height: 1.7; }
.hero p, .page-hero p { max-width: 600px; margin: 0 0 28px; color: #42526b; font-size: 16px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.breadcrumb { margin-bottom: 26px; color: #6a7a91; font-size: 12px; }
.breadcrumb b { color: var(--blue); }

.art { min-height: 410px; }
.product-art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; padding: 24px; }
.product-art img { width: 100%; height: 100%; min-height: 175px; display: block; object-fit: cover; border: 1px solid rgba(255, 255, 255, .8); border-radius: 22px; background: #fff; box-shadow: 0 24px 50px rgba(8, 22, 45, .16); }
.product-art img:first-child { grid-row: 1 / 3; }

.section { padding: 72px 0; }
.compact { padding: 48px 0; }
.pale { background: var(--pale); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 32px rgba(9, 34, 78, .05); transition: .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--blue); border-radius: 11px; color: var(--blue); background: #f3f8ff; font-weight: 900; }
.stats { position: relative; z-index: 3; margin-top: -28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.stat { min-height: 92px; padding: 20px 14px; display: flex; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid #edf2f8; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--blue); font-size: 18px; }
.stat span { color: #66758b; font-size: 11px; font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { padding: 22px; }
.category-card img.thumb { width: 100%; object-fit: cover; }
.category-card h3 { margin: 18px 0 8px; }
.category-card p { min-height: 48px; margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.thumb { position: relative; overflow: hidden; height: 150px; margin-bottom: 12px; border-radius: 14px; background: linear-gradient(145deg, #eff6ff, #dce8f7); }
.thumb::after { content: ""; position: absolute; top: 20px; left: 50%; width: 78px; height: 116px; border-radius: 18px; background: linear-gradient(145deg, #fff, #9aaabd); box-shadow: 18px 6px 0 #1a2433; transform: translateX(-50%); }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.step { padding: 24px 14px; text-align: center; }
.step-no { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 11px; font-weight: 900; }
.step h3 { margin: 8px 0; font-size: 14px; }
.step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 26px; }
.benefit h3 { margin: 14px 0 8px; font-size: 16px; }
.benefit p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { padding: 14px; }
.product-card img, .product-placeholder { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 14px; background: linear-gradient(145deg, #f7fbff, #dfe9f5); }
.product-card h3 { margin: 14px 0 6px; font-size: 15px; line-height: 1.35; }
.product-card p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.tag { display: inline-flex; margin: 0 5px 12px 0; padding: 5px 9px; border-radius: 999px; color: #2d6ce8; background: #eef5ff; font-size: 10px; font-weight: 900; }

.woocommerce-page main.products-catalog-page { padding: 0; }
.catalog-hero h1 { font-size: clamp(42px, 5vw, 58px); }
.catalog-art { position: relative; min-height: 320px; }
.catalog-phone { position: absolute; top: 30px; width: 125px; height: 230px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 26px; box-shadow: 0 28px 60px rgba(8, 22, 45, .18), inset 0 0 0 2px rgba(255, 255, 255, .35); }
.catalog-phone::before { content: ""; position: absolute; top: 17px; left: 17px; width: 46px; height: 46px; border-radius: 15px; background: #172033; box-shadow: 0 0 0 5px rgba(255, 255, 255, .48); }
.catalog-phone::after { content: ""; position: absolute; top: 94px; left: 31px; width: 62px; height: 62px; border: 11px solid rgba(255, 255, 255, .72); border-radius: 50%; }
.catalog-phone-1 { left: 1%; background: rgba(255, 255, 255, .55); border-color: #c9d5e4; transform: rotate(-8deg); }
.catalog-phone-2 { left: 24%; top: 14px; background: linear-gradient(145deg, #0d243e, #637e9b); transform: rotate(-4deg); }
.catalog-phone-3 { left: 48%; top: 14px; background: linear-gradient(145deg, #b07145, #5d301c); transform: rotate(5deg); }
.catalog-phone-4 { left: 72%; background: linear-gradient(145deg, #111820, #343c49); transform: rotate(9deg); }
.catalog-airpod { position: absolute; left: 39%; bottom: 8px; width: 120px; height: 72px; border-radius: 24px; background: #141922; box-shadow: 0 22px 45px rgba(0, 0, 0, .22); }
.catalog-airpod::before { content: ""; position: absolute; top: -25px; left: 30px; width: 62px; height: 46px; border-radius: 28px 28px 16px 16px; background: #fff; }
.catalog-wallet { position: absolute; right: 14%; bottom: -2px; width: 92px; height: 132px; border-radius: 17px; background: #586b50; box-shadow: 0 24px 48px rgba(8, 22, 45, .18); }
.catalog-wallet::after { content: ""; position: absolute; top: 28px; right: 14px; bottom: 28px; left: 14px; border: 2px solid rgba(0, 0, 0, .22); border-radius: 9px; }
.catalog-tabs-section { padding: 38px 0 0; }
.catalog-tabs { display: flex; gap: 12px; overflow-x: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); scrollbar-width: thin; }
.catalog-tab { min-width: 138px; padding: 14px 18px; border-radius: 10px; color: #334155; text-align: center; font-size: 12px; font-weight: 900; }
.catalog-tab:hover, .catalog-tab.active { color: #fff; background: var(--blue); }
.catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; }
.catalog-sidebar { position: sticky; top: 86px; align-self: start; padding: 22px; }
.catalog-filter { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.catalog-filter h2 { margin: 0 0 14px; font-size: 15px; }
.catalog-check { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px -8px; padding: 7px 8px; border-radius: 8px; color: #44546a; font-size: 12px; line-height: 1.3; }
.catalog-check > span:first-child { display: flex; align-items: center; gap: 8px; }
.catalog-check strong { color: #7b8aa0; font-size: 11px; }
.catalog-check:hover, .catalog-check.active { color: var(--blue); background: #f1f6ff; }
.catalog-check.active strong { color: var(--blue); }
.catalog-box { width: 17px; height: 17px; flex: 0 0 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c7d4e7; border-radius: 4px; color: #fff; background: #fff; font-size: 11px; font-weight: 900; }
.catalog-check.active .catalog-box { border-color: var(--blue); background: var(--blue); }
.catalog-services { display: grid; gap: 10px; color: #55657a; font-size: 12px; }
.catalog-services span::before { content: "✓"; margin-right: 8px; color: var(--blue); font-weight: 900; }
.catalog-sidebar-cta { width: 100%; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) 210px auto; gap: 12px; align-items: center; margin-bottom: 20px; }
.catalog-search, .catalog-sort { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: #526176; background: #fff; }
.catalog-search:focus, .catalog-sort:focus { border-color: var(--blue); outline: 3px solid rgba(10, 99, 246, .12); }
.catalog-result-count { grid-column: 1 / -1; color: #64748b; font-size: 12px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.catalog-product-card { display: flex; flex-direction: column; overflow: hidden; }
.catalog-product-media { display: block; padding: 14px 14px 0; }
.catalog-product-image, .catalog-product-placeholder { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 14px; background: linear-gradient(145deg, #f7fbff, #dfe9f5); }
.catalog-product-body { flex: 1; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; }
.catalog-product-body h2 { min-height: 59px; margin: 0 0 8px; display: -webkit-box; overflow: hidden; color: var(--navy-2); font-size: 15px; line-height: 1.32; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-product-body p { min-height: 36px; margin: 0 0 11px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-product-tags { min-height: 34px; }
.catalog-product-tags .tag { margin-bottom: 10px; }
.catalog-view-button { width: 100%; margin-top: auto; min-height: 42px; }
.catalog-pagination { margin-top: 32px; }
.catalog-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.catalog-pagination a, .catalog-pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: #38506f; background: #fff; font-size: 12px; font-weight: 900; }
.catalog-pagination a:hover, .catalog-pagination .current { color: #fff; border-color: var(--blue); background: var(--blue); }
.catalog-empty { padding: 48px; text-align: center; }
.catalog-empty h2 { margin-top: 0; }
.catalog-empty p { color: var(--muted); }
.catalog-mini-cta { margin-top: 36px; padding: 32px 34px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, #07162f, #0b3c82); }
.catalog-mini-cta h2 { margin: 0 0 8px; font-size: 27px; }
.catalog-mini-cta p { max-width: 650px; margin: 0; color: #d6e5fb; font-size: 13px; line-height: 1.6; }
.dark-banner { position: relative; min-height: 230px; padding: 40px; display: grid; grid-template-columns: 1.35fr .9fr; align-items: center; overflow: hidden; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #07162f, #07192f 45%, rgba(7, 25, 47, .84)); }
.dark-banner h2 { margin: 0 0 10px; font-size: 34px; line-height: 1.08; }
.dark-banner p { max-width: 520px; color: #d9e6fb; line-height: 1.6; }
.dark-banner::after { content: ""; position: absolute; right: 38px; bottom: 20px; width: 320px; height: 130px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02)); }
.dark-banner > * { position: relative; z-index: 1; }
.compare { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row div { padding: 16px 20px; font-size: 13px; }
.compare-row.header div { background: #f8fbff; font-weight: 900; }
.compare-row div:nth-child(2) { color: #fff; background: var(--blue); font-weight: 900; }
.overview { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 42px; }
.factory-window { overflow: hidden; min-height: 340px; border-radius: 20px; background: linear-gradient(145deg, #eef5ff, #c8d8eb); box-shadow: var(--shadow); }
.factory-window img { width: 100%; height: 100%; min-height: 340px; display: block; object-fit: cover; }
.faq-layout { display: grid; grid-template-columns: 1fr 330px; gap: 32px; }
.faq-card { padding: 26px; margin-bottom: 22px; }
.faq-card h2 { margin-top: 0; }
.faq-card details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-card details:last-child { border-bottom: 0; }
.faq-card summary { cursor: pointer; font-size: 14px; font-weight: 900; }
.faq-card details p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.help-card { position: sticky; top: 90px; align-self: start; padding: 28px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; }
.form-card, .contact-card { padding: 28px; }
.contact-card h2, .form-card h2 { margin-top: 0; }
.info-row { padding: 18px 0; display: grid; grid-template-columns: 46px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.wpforms-container input, .wpforms-container select, .wpforms-container textarea { border: 1px solid var(--line) !important; border-radius: 10px !important; background: #fff !important; }
.wpforms-container button[type="submit"] { width: 100% !important; min-height: 48px !important; border: 0 !important; border-radius: 8px !important; color: #fff !important; background: var(--blue) !important; font-weight: 900 !important; }
.entry-content { min-height: 50vh; padding: 64px 0; }

.site-footer { padding: 50px 0 28px; color: #fff; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.15fr 1.25fr; gap: 36px; }
.site-footer h3 { margin: 0 0 15px; font-size: 15px; }
.site-footer p, .site-footer a { margin: 0; color: #d5e2f6; font-size: 12px; line-height: 1.85; }
.footer-logo { margin-bottom: 10px; font-size: 22px; font-weight: 900; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9fb4d3; text-align: center; font-size: 11px; }
.floating-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 10px 15px; border-radius: 999px; color: #fff; background: #1fa855; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); font-size: 12px; font-weight: 900; }

.woocommerce-page main { padding: 56px 0; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 14px !important; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 32px rgba(9, 34, 78, .05); }
.woocommerce ul.products li.product img { border-radius: 14px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 8px !important; color: #fff !important; background: var(--blue) !important; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; }

@media (max-width: 1050px) {
  .container { width: min(100% - 30px, 760px); }
  .primary-nav, .header-cta { display: none; }
  .mobile-nav { position: relative; display: block; }
  .hero-inner, .page-hero-inner, .overview, .faq-layout, .contact-grid, .dark-banner, .catalog-layout, .catalog-mini-cta { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 35px; }
  .art { min-height: 350px; }
  .stats-grid, .category-grid, .timeline, .grid-4, .product-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .help-card { position: static; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-mini-cta { align-items: start; }
}

@media (max-width: 620px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 28px, 520px); }
  h1 { font-size: 38px; }
  .hero-inner { min-height: auto; padding-top: 64px; }
  .page-hero-inner { padding: 54px 0 32px; }
  .art { min-height: 300px; }
  .product-art { padding: 8px; gap: 8px; }
  .product-art img { min-height: 135px; border-radius: 14px; }
  .stats { margin-top: 0; padding-top: 20px; }
  .stats-grid, .category-grid, .timeline, .grid-4, .product-grid, .footer-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .compare { overflow-x: auto; }
  .compare-row { min-width: 650px; }
  .dark-banner { padding: 30px 24px; }
  .dark-banner::after { opacity: .3; }
  .floating-whatsapp { right: 12px; bottom: 12px; }
  .catalog-art { min-height: 265px; transform: scale(.86); transform-origin: left center; }
  .catalog-tabs-section { padding-top: 24px; }
  .catalog-tabs { margin-right: -14px; margin-left: -14px; border-radius: 0; }
  .catalog-toolbar, .catalog-grid { grid-template-columns: 1fr; }
  .catalog-sidebar { padding: 18px; }
  .catalog-product-body h2, .catalog-product-body p { min-height: auto; }
  .catalog-mini-cta { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
