/*
Theme Name: Leo
Theme URI: https://www.svipwebs.com
Author: 七云网络
Author URI: https://www.svipwebs.com
Description: 高性能 WooCommerce 外贸零售主题，专为替换电池与电源适配器打造。前端 JSON 即时搜索（不依赖 admin-ajax），性能优先，兼顾安全。作者微信：qywz166。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: leo
*/

/* ============================================================
   Leo — Design tokens
   设计体系：深蓝主色 + 克制橙强调 + 中性灰 + 线性图标
   ============================================================ */
:root{
  --blue:#1e40af;
  --blue-d:#1e293b;
  --ink:#0f172a;
  --gray:#64748b;
  --line:#e2e8f0;
  --bg:#f8fafc;
  --accent:#f97316;
  --accent-d:#ea660c;
  --radius:12px;
  --shadow:0 1px 3px rgba(15,23,42,.08),0 8px 24px rgba(15,23,42,.04);
  --wrap:1200px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:#fff;line-height:1.5;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:8px;padding:12px 22px;font-weight:600;font-size:15px;cursor:pointer;transition:.15s;line-height:1.2;font-family:inherit}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-d)}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{background:var(--blue-d)}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-outline{background:#fff;color:var(--blue);border:1.5px solid var(--blue)}
.btn-outline:hover{background:var(--blue);color:#fff}

/* Icon system */
.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0;display:inline-block}

/* ===== Top bar ===== */
.topbar{background:var(--ink);color:#cbd5e1;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:40px;flex-wrap:wrap}
.topbar span{display:inline-flex;align-items:center;gap:7px}
.topbar .tb-left span{margin-right:24px}
.topbar .tb-left b{color:#fff;font-weight:600}
.topbar .tb-left .icon{width:16px;height:16px;color:#60a5fa}
.topbar .tb-right span{margin-left:20px;cursor:pointer}
.topbar .tb-right .icon{width:15px;height:15px}

/* ===== Header ===== */
.site-header{border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:40}
.head{display:flex;align-items:center;gap:30px;height:80px}
.logo{font-size:24px;font-weight:800;letter-spacing:-.5px;display:flex;align-items:center;gap:10px;color:var(--ink)}
.logo .mark{width:38px;height:38px;border-radius:10px;background:var(--blue);display:inline-flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}
.logo .mark .icon{width:22px;height:22px;stroke-width:2.2}
.logo .name b{color:var(--blue)}
.search-form{flex:1;display:flex;align-items:center;border:1.5px solid var(--line);border-radius:10px;overflow:hidden;max-width:560px;transition:.15s;background:#fff}
.search-form:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,64,175,.1)}
.search-form .si{padding-left:14px;color:var(--gray);display:flex}
.search-form input{flex:1;border:0;padding:13px 14px;font-size:15px;outline:none;background:transparent;font-family:inherit}
.search-form button{background:var(--blue);color:#fff;border:0;padding:0 24px;align-self:stretch;font-weight:600;cursor:pointer;font-family:inherit}
.search-form button:hover{background:var(--blue-d)}
.search-wrap{position:relative;flex:1;max-width:560px}
.search-wrap .search-form{max-width:none}
.head-icons{display:flex;align-items:center;gap:26px;margin-left:auto;font-size:13px;font-weight:600}
.head-icons .ic{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink);cursor:pointer;position:relative}
.head-icons .ic .icon{width:23px;height:23px;color:var(--ink)}
.head-icons .ic:hover,.head-icons .ic:hover .icon{color:var(--blue)}
.cart-badge i{position:absolute;top:-7px;right:6px;background:var(--ink);color:#fff;font-size:11px;font-style:normal;font-weight:700;border-radius:10px;padding:0 6px;line-height:17px}
.menu-toggle{display:none;background:none;border:0;cursor:pointer;color:var(--ink)}

/* Search dropdown results */
.search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:60;overflow:hidden;max-height:70vh;overflow-y:auto}
.search-results[hidden]{display:none}
.search-result{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);transition:.12s}
.search-result:last-child{border-bottom:0}
.search-result:hover{background:var(--bg)}
.search-result img,.search-result .result-thumb{width:48px;height:48px;border-radius:8px;object-fit:contain;background:var(--bg);flex-shrink:0}
.search-result strong{display:block;font-size:14px;color:var(--ink);line-height:1.3}
.search-result small{display:block;font-size:12px;color:var(--gray);margin-top:2px}
.search-empty{padding:18px 16px;font-size:14px;color:var(--gray)}
.search-more{display:block;padding:12px 16px;text-align:center;font-size:13px;font-weight:600;color:var(--blue);background:var(--bg)}

/* ===== Nav ===== */
.site-nav{background:#fff;border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;gap:30px;height:52px;font-weight:600;font-size:15px}
.nav .cats{display:flex;align-items:center;gap:9px;background:var(--blue);color:#fff;padding:10px 18px;border-radius:8px}
.nav .cats .icon{width:18px;height:18px}
.nav .cats .cats-chev{width:15px;height:15px;transition:transform .18s}
/* Mega menu — 左 tab / 右内容 */
.cats-wrap{position:relative}
.cats-wrap .mega-menu{position:absolute;top:100%;left:0;margin-top:10px;width:880px;max-width:94vw;min-height:344px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.2);padding:16px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s,transform .18s;z-index:70}
.cats-wrap::before{content:"";position:absolute;top:100%;left:0;right:0;height:14px}
.cats-wrap:hover .mega-menu,.cats-wrap:focus-within .mega-menu{opacity:1;visibility:visible;transform:translateY(0)}
.cats-wrap:hover .cats-chev{transform:rotate(180deg)}
.mega-item{width:228px}
/* 左侧 tab */
.mega-tab{display:flex;align-items:center;gap:11px;padding:13px 14px;border-radius:10px;color:var(--ink);font-weight:600;font-size:14px;transition:.12s}
.mega-tab-name{flex:1;line-height:1.25}
.mega-tab-cnt{font-size:11px;color:#94a3b8;background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:1px 8px;font-weight:600}
.mega-tab-chev{width:15px;height:15px;color:var(--gray);transform:rotate(-90deg)}
.mega-ic{width:34px;height:34px;border-radius:9px;background:var(--bg);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;color:var(--blue);flex-shrink:0}
.mega-ic .icon{width:19px;height:19px}
.mega-item:hover .mega-tab{background:var(--blue);color:#fff}
.mega-item:hover .mega-ic{background:rgba(255,255,255,.15);border-color:transparent;color:#fff}
.mega-item:hover .mega-tab-cnt{background:rgba(255,255,255,.2);border-color:transparent;color:#fff}
.mega-item:hover .mega-tab-chev{color:#fff}
/* 右侧内容面板：left 与 tab 列贴合（重叠 4px）消除 hover 死区 */
.mega-panel{position:absolute;top:16px;right:16px;left:240px;padding-left:28px;border-left:1px solid var(--line);opacity:0;visibility:hidden}
.mega-item:first-child .mega-panel{opacity:1;visibility:visible}
.mega-menu:hover .mega-item:not(:hover):first-child .mega-panel{opacity:0;visibility:hidden}
.mega-item:hover .mega-panel{opacity:1;visibility:visible}
.mega-panel-head{display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:700;color:var(--ink);margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.mega-panel-head:hover{color:var(--blue)}
.mega-all{font-size:12px;font-weight:600;color:var(--blue);white-space:nowrap}
.mega-list{list-style:none;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 28px;align-content:start}
.mega-list li{margin:0;min-width:0}
.mega-list a{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13.5px;font-weight:500;color:var(--gray);padding:8px 0}
.mega-list a span:first-child,.mega-list a:not(:has(.cnt)){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mega-list a:hover{color:var(--blue)}
.mega-list .cnt{font-size:11px;color:#94a3b8;background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:1px 7px;font-weight:600;flex-shrink:0}
.mega-empty{color:var(--gray);font-size:13px}
.nav ul{display:flex;align-items:center;gap:30px;list-style:none}
.nav a{color:var(--ink);padding:4px 0}
.nav a:hover{color:var(--blue)}
.nav .spacer{margin-left:auto;color:var(--gray);font-weight:600;font-size:14px;display:flex;align-items:center;gap:7px}
.nav .spacer .icon{width:16px;height:16px}

/* ===== Hero ===== */
.hero{background:#101a2e;color:#fff;padding:60px 0;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:48px 48px;-webkit-mask-image:linear-gradient(120deg,#000,transparent 70%);mask-image:linear-gradient(120deg,#000,transparent 70%);pointer-events:none}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;position:relative;z-index:1}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#bfdbfe;font-size:13px;font-weight:600;padding:6px 14px;border-radius:30px;margin-bottom:20px}
.eyebrow .icon{width:15px;height:15px}
.hero h1{font-size:46px;line-height:1.12;letter-spacing:-1px;margin-bottom:18px}
.hero h1 span{color:#fff;border-bottom:3px solid rgba(255,255,255,.35);padding-bottom:2px}
.hero p{color:#cbd5e1;font-size:17px;margin-bottom:28px;max-width:500px}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap}
.stat{display:flex;gap:34px;margin-top:30px}
.stat div b{font-size:24px;display:block}
.stat div span{font-size:13px;color:#cbd5e1}

/* Hero category showcase */
.showcase{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.scard{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.18);transition:.18s;color:var(--ink)}
.scard:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(0,0,0,.26)}
.scard .pic{aspect-ratio:4/3;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#94a3b8;border-bottom:1px solid var(--line);overflow:hidden}
.scard .pic img{width:100%;height:100%;object-fit:cover}
.scard .pic .icon{width:42px;height:42px;stroke-width:1.3}
.scard .cap{padding:13px 15px;display:flex;align-items:center;justify-content:space-between}
.scard .cap b{font-size:14px;font-weight:600;color:var(--ink)}
.scard .cap .icon{width:16px;height:16px;color:var(--gray)}
.scard:hover .cap .icon{color:var(--blue)}

/* ===== Trust strip ===== */
.trust{border-bottom:1px solid var(--line);background:var(--bg)}
.trust .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;padding:24px 20px}
.trust .t{display:flex;align-items:center;gap:13px}
.trust .t .ti{width:46px;height:46px;border-radius:11px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--blue);flex-shrink:0}
.trust .t .ti .icon{width:24px;height:24px}
.trust .t b{display:block;font-size:14px}
.trust .t span{font-size:12px;color:var(--gray)}

/* ===== Section ===== */
.section{padding:60px 0}
.sec-head{text-align:center;margin-bottom:38px}
.sec-head h2{font-size:30px;letter-spacing:-.5px}
.sec-head p{color:var(--gray);margin-top:8px}

/* Category cards */
.cats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.ccard{border:1px solid var(--line);border-radius:var(--radius);padding:28px 22px;text-align:center;transition:.18s;background:#fff;color:var(--ink)}
.ccard:hover{border-color:var(--blue);box-shadow:var(--shadow);transform:translateY(-3px)}
.ccard .emo{width:66px;height:66px;border-radius:16px;background:var(--bg);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;color:var(--blue)}
.ccard .emo .icon{width:32px;height:32px;stroke-width:1.6}
.ccard h4{font-size:17px;margin-bottom:6px}
.ccard p{font-size:13px;color:var(--gray);margin-bottom:14px}
.ccard .more{color:var(--blue);font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:5px}
.ccard .more .icon{width:15px;height:15px}

/* Product grid */
.pg-bg{background:var(--bg)}
.prods{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.pcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.18s;display:flex;flex-direction:column}
.pcard:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
.pcard .img{height:200px;background:var(--bg);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.pcard .img img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.pcard .img .icon{width:76px;height:76px;color:#94a3b8;stroke-width:1.2}
.pcard .tag{position:absolute;top:12px;left:12px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;padding:3px 9px;border-radius:6px}
.pcard .tag.neutral{background:var(--ink)}
.pcard .body{padding:16px;display:flex;flex-direction:column;flex:1}
.pcard .brand{font-size:11px;color:var(--gray);text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.pcard h4{font-size:15px;margin:5px 0 8px;line-height:1.35;min-height:40px}
.pcard h4 a:hover{color:var(--blue)}
.pcard .stars{display:flex;align-items:center;gap:3px;font-size:13px;margin-bottom:8px;color:var(--gray)}
.pcard .stars .icon{width:14px;height:14px;color:#f59e0b;fill:#f59e0b;stroke:none}
.pcard .price{font-size:20px;font-weight:800;color:var(--ink);margin-top:auto}
.pcard .price s,.pcard .price del{font-size:14px;color:var(--gray);font-weight:500;margin-left:6px}
.pcard .add{margin-top:12px;width:100%;justify-content:center}
.pcard .add .icon{width:17px;height:17px}

/* Why us */
.why{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.why .w{padding:30px;border:1px solid var(--line);border-radius:var(--radius)}
.why .w .emo{width:54px;height:54px;border-radius:13px;background:var(--bg);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--blue);margin-bottom:16px}
.why .w .emo .icon{width:27px;height:27px}
.why .w h4{font-size:18px;margin-bottom:8px}
.why .w p{color:var(--gray);font-size:14px}

/* CTA band */
.cta{background:linear-gradient(120deg,var(--blue),var(--blue-d));color:#fff;border-radius:18px;padding:48px;text-align:center}
.cta h2{font-size:30px;margin-bottom:10px}
.cta p{color:#dbeafe;margin-bottom:24px}
.cta .btn{justify-content:center}

/* Quote modal */
.leo-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:110;backdrop-filter:blur(3px)}
.leo-modal-backdrop[hidden]{display:none}
.leo-quote-modal{position:fixed;inset:0;z-index:111;display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease}
.leo-quote-modal.open{opacity:1;visibility:visible;pointer-events:auto}
.leo-quote-panel{position:relative;width:min(720px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:16px;border:1px solid var(--line);box-shadow:0 30px 90px rgba(15,23,42,.32);padding:34px}
.leo-modal-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.leo-modal-close:hover{border-color:var(--blue);color:var(--blue);background:var(--bg)}
.leo-modal-close .icon{width:20px;height:20px}
.leo-quote-head{padding-right:46px;margin-bottom:24px}
.leo-quote-head span{display:inline-flex;background:#eff6ff;color:var(--blue);border:1px solid #bfdbfe;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:800;margin-bottom:14px}
.leo-quote-head h2{font-size:30px;line-height:1.18;margin-bottom:10px;color:var(--ink)}
.leo-quote-head p{font-size:15px;line-height:1.7;color:#475569;max-width:560px}
.leo-quote-form .fluentform{margin-top:0}
.leo-quote-form .ff-el-group{margin-bottom:18px}
.leo-quote-form .ff-el-input--label label{font-weight:700;color:var(--ink);font-size:14px;margin-bottom:7px}
.leo-quote-form .ff-el-form-control{border:1px solid var(--line);border-radius:10px;padding:13px 14px;font-family:inherit;font-size:15px;color:var(--ink);box-shadow:none}
.leo-quote-form textarea.ff-el-form-control{min-height:132px;resize:vertical}
.leo-quote-form .ff-el-form-control:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,64,175,.1);outline:none}
.leo-quote-form .ff-btn-submit{background:var(--accent)!important;border:0!important;border-radius:8px!important;color:#fff!important;font-weight:800!important;padding:13px 24px!important;font-family:inherit!important}
.leo-quote-form .ff-btn-submit:hover{background:var(--accent-d)!important}

/* ===== WooCommerce archive / shop ===== */
.shop-head{background:var(--bg);border-bottom:1px solid var(--line);padding:36px 0}
.shop-head h1{font-size:30px;letter-spacing:-.5px}
.shop-head .crumb{font-size:13px;color:var(--gray);margin-bottom:8px}
.shop-head .crumb a:hover{color:var(--blue)}
.shop-head .term-desc{color:var(--gray);margin-top:8px;max-width:760px}
.shop-layout{display:grid;grid-template-columns:240px 1fr;gap:32px;padding:40px 0}
.shop-sidebar{align-self:start;position:sticky;top:96px}
.shop-sidebar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.shop-sidebar h3{font-size:14px;text-transform:uppercase;letter-spacing:.5px;color:var(--gray);margin:0}
.sidebar-close{display:none;background:none;border:0;cursor:pointer;color:var(--ink);padding:4px}
.shop-sidebar .cat-all{display:block;font-size:14px;font-weight:600;color:var(--ink);padding:10px 0;border-bottom:1px solid var(--line)}
.shop-sidebar .cat-all:hover{color:var(--blue)}
.shop-sidebar .cat-all.is-current{color:var(--blue)}
.cat-tree{list-style:none;margin:0}
.cat-branch{border-bottom:1px solid var(--line)}
.cat-tree details{padding:0}
.cat-tree summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:11px 0}
.cat-tree summary::-webkit-details-marker{display:none}
.cat-parent{font-size:14px;font-weight:600;color:var(--ink);flex:1}
.cat-parent:hover{color:var(--blue)}
.cat-parent[aria-current="page"]{color:var(--blue)}
.cat-parent.solo{display:flex;align-items:center;justify-content:space-between;padding:11px 0}
.cat-tree .chev{width:16px;height:16px;color:var(--gray);transition:transform .18s;flex-shrink:0;margin-left:8px}
.cat-tree details[open]>summary .chev{transform:rotate(180deg)}
.cat-children{list-style:none;margin:0 0 10px;padding-left:2px;border-left:2px solid var(--line)}
.cat-children li{margin:0}
.cat-children a{display:flex;align-items:center;justify-content:space-between;font-size:13.5px;color:var(--gray);padding:7px 0 7px 14px}
.cat-children a:hover{color:var(--blue)}
.cat-children .is-current>a,.cat-children a[aria-current="page"]{color:var(--blue);font-weight:600}
.cat-children .cnt,.cat-parent .cnt{font-size:11px;color:#94a3b8;background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:1px 8px;font-weight:600;margin-left:8px}
.shop-filter-toggle{display:none;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--line);border-radius:8px;padding:11px 16px;font-weight:600;font-size:14px;color:var(--ink);cursor:pointer;font-family:inherit;margin-bottom:18px}
.shop-filter-toggle .icon{width:18px;height:18px;color:var(--blue)}
.shop-sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:50}
.shop-sidebar-backdrop[hidden]{display:none}
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.shop-toolbar .count{font-size:14px;color:var(--gray)}
.woocommerce-pagination ul{display:flex;gap:8px;list-style:none;justify-content:center;margin-top:36px}
.woocommerce-pagination a,.woocommerce-pagination span{display:inline-flex;min-width:40px;height:40px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;font-weight:600;color:var(--ink)}
.woocommerce-pagination .current{background:var(--blue);color:#fff;border-color:var(--blue)}

/* ===== Single product ===== */
.single-wrap{padding:40px 0}
.single-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.single-gallery img{width:100%;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.single-summary .crumb{font-size:13px;color:var(--gray);margin-bottom:12px}
.single-summary .brand-tag{display:inline-block;font-size:12px;font-weight:600;color:var(--blue);background:var(--bg);border:1px solid var(--line);padding:4px 11px;border-radius:30px;margin-bottom:12px}
.single-summary h1{font-size:28px;line-height:1.2;letter-spacing:-.5px;margin-bottom:14px}
.single-summary .price{font-size:30px;font-weight:800;margin-bottom:18px}
.single-summary .price del{font-size:18px;color:var(--gray);font-weight:500;margin-left:8px}
.single-summary .short{color:var(--gray);margin-bottom:22px;line-height:1.6}
.single-summary form.cart{display:flex;gap:12px;align-items:center;margin-bottom:24px;flex-wrap:wrap}
.single-summary .quantity input{width:72px;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:15px;text-align:center;font-family:inherit}
.single-assure{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid var(--line);padding-top:20px}
.single-assure .a{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--gray)}
.single-assure .a .icon{width:20px;height:20px;color:var(--blue)}
.single-tabs{margin-top:48px}
.single-tabs h2{font-size:22px;margin-bottom:18px}
.svip-spec-table,.shop_attributes,.single-tabs table{width:100%;border-collapse:collapse;font-size:14px}
.svip-spec-table th,.svip-spec-table td,.shop_attributes th,.shop_attributes td{text-align:left;padding:11px 16px;border:1px solid var(--line)}
.svip-spec-table th,.shop_attributes th{background:var(--bg);font-weight:600;width:34%;color:var(--ink)}
.svip-spec-table td,.shop_attributes td{color:var(--gray)}
.related h2{font-size:24px;margin:0 0 24px;text-align:center}

/* ===== Footer ===== */
.site-footer{background:var(--ink);color:#94a3b8;padding:56px 0 26px;font-size:14px;margin-top:60px}
.f-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;margin-bottom:38px}
.site-footer h5{color:#fff;font-size:15px;margin-bottom:16px}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:10px}
.site-footer a:hover{color:#fff}
.f-logo{font-size:22px;font-weight:800;color:#fff;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.f-logo .mark{width:32px;height:32px;border-radius:9px;background:var(--blue);display:inline-flex;align-items:center;justify-content:center}
.f-logo .mark .icon{width:19px;height:19px;color:#fff;stroke-width:2.2}
.f-pay{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.f-pay span{background:#1e293b;border:1px solid #334155;border-radius:6px;padding:6px 11px;font-size:12px;font-weight:600;color:#cbd5e1}
.f-bot{border-top:1px solid #1e293b;padding-top:22px;text-align:center;font-size:13px}
.f-bot a:hover{color:#fff}

/* ===== Responsive ===== */
@media(max-width:1024px){
  .hero-grid,.cats-grid,.prods,.why,.f-grid{grid-template-columns:1fr 1fr}
  .shop-layout{grid-template-columns:1fr;position:relative}
  .shop-filter-toggle{display:inline-flex}
  /* 侧栏改为左侧滑入抽屉 */
  .shop-sidebar{position:fixed;top:0;left:0;bottom:0;width:300px;max-width:86vw;background:#fff;z-index:60;padding:20px;overflow-y:auto;box-shadow:0 10px 40px rgba(15,23,42,.25);transform:translateX(-100%);transition:transform .26s ease;top:0}
  .shop-sidebar.open{transform:translateX(0)}
  .sidebar-close{display:inline-flex}
}
@media(max-width:768px){
  .topbar{display:none}
  .head{gap:14px;height:64px}
  .search-wrap{display:none}
  .site-nav{display:none}
  .menu-toggle{display:inline-flex}
  .head-icons{gap:16px}
  .head-icons .ic span{display:none}
  .hero h1{font-size:32px}
  .single-grid{grid-template-columns:1fr;gap:28px}
  .topbar .tb-right{display:none}
  .mobile-menu.open{display:block}
  .shop-toolbar{flex-direction:column;align-items:flex-start;gap:12px}
  .leo-quote-modal{padding:12px;align-items:flex-start;overflow:auto}
  .leo-quote-panel{max-height:none;padding:24px;margin:22px 0;border-radius:14px}
  .leo-quote-head{padding-right:38px}
  .leo-quote-head h2{font-size:24px}
}
@media(max-width:560px){
  .cats-grid,.prods,.why,.f-grid,.hero-grid,.showcase{grid-template-columns:1fr}
  .single-assure{grid-template-columns:1fr}
}

/* Mobile menu */
.mobile-menu{display:none;border-top:1px solid var(--line);background:#fff}
.mobile-menu ul{list-style:none;padding:8px 0}
.mobile-menu a{display:block;padding:12px 20px;font-weight:600;border-bottom:1px solid var(--line)}

/* ===== Header wishlist badge ===== */
.head-icons .wish-badge i,.cart-badge i{position:absolute;top:-7px;right:6px;background:var(--ink);color:#fff;font-size:11px;font-style:normal;font-weight:700;border-radius:10px;padding:0 6px;line-height:17px}
.head-icons .wish-badge i{background:var(--accent)}

/* ===== Product card wishlist heart ===== */
.pcard{position:relative}
.wish-btn{position:absolute;top:12px;right:12px;z-index:3;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 6px rgba(15,23,42,.08);transition:.15s;padding:0}
.wish-btn:hover{border-color:#ef4444;transform:scale(1.08)}
.wish-btn .icon{width:18px;height:18px;color:#94a3b8}
.wish-btn .wish-on{display:none;color:#ef4444}
.wish-btn .wish-off{display:block}
.wish-btn:hover .wish-off{color:#ef4444}
.wish-btn.is-saved .wish-off{display:none}
.wish-btn.is-saved .wish-on{display:block}
.wish-btn.is-saved{border-color:#fecaca;background:#fef2f2}
@keyframes leo-pop{0%{transform:scale(1)}45%{transform:scale(1.3)}100%{transform:scale(1)}}
.wish-btn.is-saved .wish-on{animation:leo-pop .28s ease}

/* ===== Add-to-cart button states ===== */
.btn.add.loading{opacity:.6;pointer-events:none}
.btn.add.added{background:var(--blue);color:#fff;border-color:var(--blue)}

/* ===== Cart drawer ===== */
.leo-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:80}
.leo-drawer-backdrop[hidden]{display:none}
.leo-cart-drawer{position:fixed;top:0;right:0;bottom:0;width:400px;max-width:90vw;background:#fff;z-index:90;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .28s ease;box-shadow:-10px 0 40px rgba(15,23,42,.18)}
.leo-cart-drawer.open{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line)}
.drawer-head h3{font-size:18px;display:flex;align-items:center;gap:10px}
.drawer-head h3 .icon{width:22px;height:22px;color:var(--blue)}
.drawer-close{background:none;border:0;cursor:pointer;color:var(--ink);padding:4px;display:inline-flex}
.drawer-close .icon{width:22px;height:22px}
.drawer-body{flex:1;overflow-y:auto;padding:8px 22px}
.cart-empty{text-align:center;padding:60px 20px;color:var(--gray)}
.cart-empty .icon{width:48px;height:48px;color:#cbd5e1;margin-bottom:14px}
.cart-empty p{margin-bottom:20px}
.cart-lines{list-style:none;margin:0}
.cart-line{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);align-items:center}
.cl-thumb{width:64px;height:64px;border-radius:8px;overflow:hidden;background:var(--bg);flex-shrink:0}
.cl-thumb img{width:100%;height:100%;object-fit:contain}
.cl-info{flex:1;min-width:0}
.cl-name{display:block;font-size:14px;font-weight:600;color:var(--ink);line-height:1.35;margin-bottom:4px}
.cl-name:hover{color:var(--blue)}
.cl-meta{font-size:13px;color:var(--gray)}
.cl-remove{color:#94a3b8;display:inline-flex;padding:4px;flex-shrink:0}
.cl-remove:hover{color:#ef4444}
.cl-remove .icon{width:16px;height:16px}
.cart-foot{padding:20px 0 8px;position:sticky;bottom:0;background:#fff}
.cart-subtotal{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:15px}
.cart-subtotal strong{font-size:20px}
.cart-foot .btn{width:100%;justify-content:center;margin-bottom:10px}

/* ===== Wishlist page empty ===== */
.wishlist-empty{text-align:center;padding:70px 20px;color:var(--gray)}
.wishlist-empty .icon{width:54px;height:54px;color:#cbd5e1;margin-bottom:16px}
.wishlist-empty h3{font-size:20px;color:var(--ink);margin-bottom:8px}
.wishlist-empty p{margin-bottom:22px}
[data-leo-wishlist-grid] .btn.btn-outline{margin-top:12px;width:100%;justify-content:center;text-align:center}

@media(max-width:768px){
  .head-icons .wish-badge{display:none}
}

/* ===== Detail polish pass ===== */
.logo{flex-shrink:0;min-width:150px}
.logo img{width:auto;height:44px;max-width:190px;object-fit:contain}
.f-logo{display:inline-flex;margin-bottom:18px}
.f-logo img{width:auto;height:46px;max-width:210px;object-fit:contain;filter:brightness(0) invert(1)}

.nav .cats,.nav .cats:hover,.nav .cats:focus,.cats-wrap:hover .cats,.cats-wrap:focus-within .cats{color:#fff;background:var(--blue)}
.nav .cats .icon,.cats-wrap:hover .cats .icon,.cats-wrap:focus-within .cats .icon{color:#fff}
.cats-wrap::before{display:none}
.cats-wrap .mega-menu{left:0;margin-top:0;width:calc(var(--wrap) - 40px);max-width:calc(100vw - 40px);min-height:420px;padding:22px;border-radius:14px;box-shadow:0 26px 70px rgba(15,23,42,.22);pointer-events:none}
.cats-wrap:hover>.mega-menu,.cats-wrap:focus-within>.mega-menu{pointer-events:auto}
.mega-item{width:280px}
.mega-panel{left:304px;top:22px;right:22px;padding-left:34px}
.mega-panel-head{font-size:20px;margin-bottom:22px;padding-bottom:18px}
.mega-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 32px}
.mega-list a{font-size:14px;padding:10px 0}
.mega-tab{padding:15px 16px;font-size:15px}
.mega-ic{width:38px;height:38px}

.shop-head{background:linear-gradient(120deg,#f8fafc 0%,#eef4ff 54%,#fff7ed 100%);padding:48px 0;border-bottom:1px solid var(--line)}
.shop-head .wrap{position:relative}
.shop-head h1{font-size:36px;line-height:1.15;margin-bottom:10px}
.shop-head .term-desc{font-size:16px;line-height:1.7;max-width:820px;color:#475569}
.shop-head .term-desc:empty::before{content:"Shop certified replacement batteries and chargers by category, brand, model or part number. Fast matching, secure checkout, worldwide tracked shipping and a 12-month warranty.";display:block}
.shop-head .crumb{margin-bottom:12px}
.shop-head::after{content:"";display:block}
.page-wrap{padding-top:48px;padding-bottom:48px}
.woocommerce-cart .page-wrap,.woocommerce-checkout .page-wrap{max-width:var(--wrap)}
.page-wrap article>h1{font-size:38px;line-height:1.16;margin-bottom:22px}
.page-wrap .entry-content{font-size:16px;line-height:1.75;color:#334155}
.page-wrap .entry-content h2{font-size:26px;line-height:1.25;margin:34px 0 12px;color:var(--ink)}
.page-wrap .entry-content h3{font-size:20px;margin:26px 0 10px;color:var(--ink)}
.page-wrap .entry-content p,.page-wrap .entry-content ul,.page-wrap .entry-content ol{margin-bottom:16px}
.page-wrap .entry-content ul,.page-wrap .entry-content ol{padding-left:22px}
.page-wrap .entry-content a{color:var(--blue);font-weight:600}

.blog-hero,.post-hero{background:linear-gradient(120deg,#f8fafc 0%,#eef4ff 54%,#fff7ed 100%);border-bottom:1px solid var(--line);padding:52px 0}
.blog-hero .crumb,.post-hero .crumb{font-size:13px;color:var(--gray);margin-bottom:12px}
.blog-hero .crumb a,.post-hero .crumb a{color:var(--blue)}
.blog-hero h1,.post-hero h1{font-size:42px;line-height:1.12;letter-spacing:-.5px;max-width:900px;margin-bottom:14px}
.blog-hero p,.post-hero p{font-size:17px;line-height:1.7;color:#475569;max-width:860px}
.blog-wrap{padding-top:48px;padding-bottom:48px}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.blog-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.blog-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.18s}
.blog-card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
.blog-card-media{height:190px;background:var(--bg);display:flex;align-items:center;justify-content:center;color:#94a3b8;border-bottom:1px solid var(--line)}
.blog-card-media img{width:100%;height:100%;object-fit:cover}
.blog-card-media .icon{width:58px;height:58px;stroke-width:1.2}
.blog-card-body{padding:20px;display:flex;flex-direction:column;flex:1}
.blog-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;font-weight:600;color:#64748b;margin-bottom:10px}
.blog-meta span{background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.blog-card h2{font-size:20px;line-height:1.3;margin-bottom:10px}
.blog-card h2 a:hover{color:var(--blue)}
.blog-card p{color:var(--gray);font-size:14px;line-height:1.65;margin-bottom:16px}
.blog-more{margin-top:auto;color:var(--blue);font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:6px}
.blog-more .icon{width:15px;height:15px}
.blog-empty{padding:60px 0;text-align:center}
.post-featured{margin-top:34px}
.post-featured img{width:100%;max-height:480px;object-fit:cover;border-radius:var(--radius);border:1px solid var(--line)}
.post-content-wrap{padding-top:36px;padding-bottom:12px}
.post-content{max-width:860px;margin:0 auto;font-size:17px;line-height:1.82;color:#334155}
.post-content h2{font-size:28px;line-height:1.25;margin:38px 0 14px;color:var(--ink)}
.post-content h3{font-size:21px;margin:28px 0 10px;color:var(--ink)}
.post-content p,.post-content ul,.post-content ol{margin-bottom:18px}
.post-content ul,.post-content ol{padding-left:24px}
.post-content a{color:var(--blue);font-weight:700}
.post-content table{width:100%;border-collapse:collapse;margin:24px 0;font-size:15px}
.post-content th,.post-content td{border:1px solid var(--line);padding:12px;text-align:left}
.post-content th{background:var(--bg);color:var(--ink)}

.pcard h4{min-height:42px;margin:6px 0 10px}
.pcard-title-link{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px;line-height:1.4}

.woocommerce-ordering{position:relative}
.woocommerce-ordering select{appearance:none;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink);font-family:inherit;font-size:14px;font-weight:600;line-height:1.2;padding:12px 42px 12px 16px;min-width:220px;box-shadow:0 1px 2px rgba(15,23,42,.04);cursor:pointer}
.woocommerce-ordering::after{content:"";position:absolute;right:16px;top:50%;width:9px;height:9px;border-right:2px solid var(--gray);border-bottom:2px solid var(--gray);transform:translateY(-65%) rotate(45deg);pointer-events:none}
.woocommerce-ordering select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,64,175,.1)}

.single-summary form.cart{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:var(--shadow)}
.single-summary form.cart .single_add_to_cart_button{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:13px 28px;font-weight:700;font-size:15px;font-family:inherit;cursor:pointer;transition:.15s}
.single-summary form.cart .single_add_to_cart_button:hover{background:var(--accent-d);transform:translateY(-1px)}
.single-summary form.cart .quantity input{height:48px;border-radius:8px}

.related.products .products,.related.products ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;list-style:none;margin:0;padding:0}
.related.products li.product{width:auto!important;margin:0!important;float:none!important}
.related.products .prods{grid-template-columns:repeat(4,minmax(0,1fr))}

.woocommerce-cart .entry-content>.wp-block-woocommerce-cart,.woocommerce-checkout .entry-content>.wp-block-woocommerce-checkout,.woocommerce-checkout [data-block-name="woocommerce/checkout"]{max-width:none;margin:0 auto;padding:0}
.woocommerce-checkout [data-block-name="woocommerce/checkout"] > *{max-width:none}
.woocommerce-cart .entry-content,.woocommerce-checkout .entry-content{max-width:none}
.wp-block-woocommerce-checkout.alignwide.wc-block-checkout{padding-left:0!important;padding-right:0!important}
.wp-block-woocommerce-cart.alignwide.wc-block-cart{padding-left:0!important;padding-right:0!important}
.wc-block-components-product-name{margin-top:0!important;font-size:16px!important;line-height:1.2!important}
.wp-block-woocommerce-cart .wc-block-components-sidebar,.wp-block-woocommerce-checkout .wc-block-components-sidebar{position:sticky;top:112px;align-self:flex-start}
.wc-block-cart__submit-button.contained,.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,.wp-block-woocommerce-checkout .wc-block-components-button,.wp-block-woocommerce-cart .wc-block-components-button{background:var(--accent)!important;color:#fff!important;border:0!important;border-radius:10px!important;min-height:48px!important;font-weight:800!important;box-shadow:none!important}
.wc-block-cart__submit-button.contained:hover,.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover,.wp-block-woocommerce-checkout .wc-block-components-button:hover,.wp-block-woocommerce-cart .wc-block-components-button:hover{background:var(--accent-d)!important;color:#fff!important}

.leo-spinner{width:17px;height:17px;border:2px solid rgba(255,255,255,.55);border-top-color:currentColor;border-radius:50%;display:inline-block;animation:leo-spin .7s linear infinite}
@keyframes leo-spin{to{transform:rotate(360deg)}}
.btn.add.loading{opacity:1;background:var(--blue);border-color:var(--blue);color:#fff;cursor:wait}
.btn.add.view-cart{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.add.view-cart:hover{background:var(--blue-d);border-color:var(--blue-d)}
.pcard .add{min-height:43px}
.pcard .added_to_cart{display:none!important}

@media(min-width:1201px){
  .cats-wrap .mega-menu{width:1160px}
}

@media(max-width:1024px){
  .related.products .products,.related.products ul.products,.related.products .prods{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wp-block-woocommerce-cart .wc-block-components-sidebar,.wp-block-woocommerce-checkout .wc-block-components-sidebar{position:static}
  .blog-grid,.blog-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:768px){
  .wrap,.trust .wrap{padding-left:10px;padding-right:10px}
  .woocommerce-cart .entry-content>.wp-block-woocommerce-cart,.woocommerce-checkout .entry-content>.wp-block-woocommerce-checkout,.woocommerce-checkout [data-block-name="woocommerce/checkout"]{padding-left:0;padding-right:0}
  .topbar .wrap,.head,.mobile-menu a{padding-left:10px;padding-right:10px}
  .logo{min-width:116px}
  .logo img{height:38px;max-width:150px}
  .shop-head{padding:34px 0}
  .shop-head h1{font-size:28px}
  .shop-head .term-desc{font-size:14px}
  .woocommerce-ordering select{width:100%;min-width:0}
  .ordering,.woocommerce-ordering{width:100%}
  .page-wrap article>h1,.blog-hero h1,.post-hero h1{font-size:30px}
  .blog-hero,.post-hero{padding:36px 0}
  .blog-grid,.blog-grid.compact{grid-template-columns:1fr}
  .blog-card-media{height:170px}
  .post-content{font-size:16px}
}

@media(max-width:560px){
  .prods{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .pcard .img{height:auto;aspect-ratio:1/1}
  .pcard .body{padding:12px}
  .pcard .brand{font-size:10px}
  .pcard h4{font-size:13px;min-height:38px}
  .pcard-title-link{min-height:38px;line-height:1.45}
  .pcard .price{font-size:16px}
  .pcard .add{font-size:12px;padding:10px 8px;gap:5px}
  .pcard .stars{display:none}
  .wish-btn{width:30px;height:30px;top:8px;right:8px}
  .related.products .products,.related.products ul.products,.related.products .prods{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .single-summary form.cart{align-items:stretch}
  .single-summary form.cart .single_add_to_cart_button{flex:1}
}

/* ===== Static page breathing layout ===== */
.page-hero{background:linear-gradient(120deg,#f8fafc 0%,#eef4ff 56%,#fff7ed 100%);border-bottom:1px solid var(--line);padding:58px 0 52px}
.page-hero .crumb{font-size:13px;color:var(--gray);margin-bottom:14px}
.page-hero .crumb a{color:var(--blue);font-weight:700}
.page-hero h1{font-size:42px;line-height:1.12;letter-spacing:-.5px;max-width:900px;margin:0}
.page-hero p{font-size:17px;line-height:1.75;color:#475569;max-width:820px;margin-top:16px}
.page-wrap{padding-top:64px;padding-bottom:72px}
.page-shell{max-width:none;margin:0}
.store-flow-page .page-shell{max-width:none}
.store-flow-page{padding-top:48px;padding-bottom:48px}
.page-shell>.entry-content{display:block}
.page-shell:not(.product)>.entry-content>*{max-width:none;margin-left:0;margin-right:0}
.page-shell:not(.product)>.entry-content>.contact-layout{max-width:none}
.page-shell:not(.product)>.entry-content>h2{position:relative;margin:48px auto 18px;padding-top:0;font-size:28px;line-height:1.22;letter-spacing:-.2px}
.page-shell:not(.product)>.entry-content>h2:first-child{margin-top:0}
.page-shell:not(.product)>.entry-content>h2::before{content:"";display:block;width:48px;height:3px;background:var(--accent);border-radius:999px;margin-bottom:16px}
.page-shell:not(.product)>.entry-content>p{font-size:17px;line-height:1.86;color:#475569;margin-bottom:22px}
.page-shell:not(.product)>.entry-content>ul,.page-shell:not(.product)>.entry-content>ol{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px 28px 24px 48px;margin:22px auto 30px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.page-shell:not(.product)>.entry-content li{font-size:16px;line-height:1.75;color:#475569;margin:8px 0;padding-left:2px}
.page-shell:not(.product)>.entry-content li::marker{color:var(--blue)}
.page-shell:not(.product)>.entry-content strong{color:var(--ink)}
.page-shell:not(.product)>.entry-content blockquote{border-left:4px solid var(--blue);background:var(--bg);padding:18px 22px;margin:28px auto;border-radius:0 10px 10px 0;color:#475569}
.page-shell:not(.product)>.entry-content table{width:100%;border-collapse:collapse;margin:28px auto;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.page-shell:not(.product)>.entry-content th,.page-shell:not(.product)>.entry-content td{border:1px solid var(--line);padding:14px 16px;text-align:left}
.page-shell:not(.product)>.entry-content th{background:var(--bg);color:var(--ink)}
.contact-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px;align-items:start}
.contact-info-panel,.contact-form-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:32px;box-shadow:var(--shadow)}
.contact-info-panel{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.contact-kicker{display:inline-flex;align-items:center;background:#eff6ff;color:var(--blue);border:1px solid #bfdbfe;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:800;margin-bottom:18px}
.contact-layout h2{font-size:28px;line-height:1.22;margin:0 0 12px;color:var(--ink)}
.contact-layout p{font-size:16px;line-height:1.75;color:#475569;margin-bottom:22px}
.contact-info-list{display:grid;grid-template-columns:1fr;gap:14px;margin-top:24px}
.contact-info-item{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff}
.contact-info-icon{width:42px;height:42px;border-radius:11px;background:#eff6ff;border:1px solid #bfdbfe;color:var(--blue);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.contact-info-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contact-info-item strong{display:block;color:var(--ink);font-size:15px;margin-bottom:5px}
.contact-info-item span:not(.contact-info-icon){display:block;color:#64748b;font-size:14px;line-height:1.6}
.contact-form-panel .fluentform{margin-top:22px}
.contact-form-panel .ff-el-group{margin-bottom:18px}
.contact-form-panel .ff-el-input--label label{font-weight:700;color:var(--ink);font-size:14px;margin-bottom:7px}
.contact-form-panel .ff-el-form-control{border:1px solid var(--line);border-radius:10px;padding:13px 14px;font-family:inherit;font-size:15px;color:var(--ink);box-shadow:none}
.contact-form-panel textarea.ff-el-form-control{min-height:132px;resize:vertical}
.contact-form-panel .ff-el-form-control:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,64,175,.1);outline:none}
.contact-form-panel .ff-btn-submit{background:var(--accent)!important;border:0!important;border-radius:8px!important;color:#fff!important;font-weight:800!important;padding:13px 24px!important;font-family:inherit!important}
.contact-form-panel .ff-btn-submit:hover{background:var(--accent-d)!important}
.contact-form-panel .ff-message-success{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:10px;padding:14px 16px}

@media(max-width:768px){
  .page-hero{padding:38px 0 34px}
  .page-hero h1{font-size:30px}
  .page-hero p{font-size:15px}
  .page-wrap{padding-top:38px;padding-bottom:48px}
  .page-shell:not(.product)>.entry-content>h2{font-size:24px;margin-top:36px}
  .page-shell:not(.product)>.entry-content>p{font-size:16px;line-height:1.78}
  .page-shell:not(.product)>.entry-content>ul,.page-shell:not(.product)>.entry-content>ol{padding:20px 20px 20px 38px}
  .contact-layout{grid-template-columns:1fr;gap:18px}
  .contact-info-panel,.contact-form-panel{padding:22px}
  .contact-layout h2{font-size:24px}
}

/* ===== Final layout refinements: contact and blog category ===== */
@media(min-width:769px){
  .contact-layout{align-items:stretch}
  .contact-info-panel,.contact-form-panel{height:100%}
  .blog-wrap{max-width:var(--wrap)}
  .blog-list{display:grid;grid-template-columns:1fr;gap:24px}
  .blog-list .blog-card{display:grid;grid-template-columns:360px minmax(0,1fr);align-items:stretch;min-height:240px}
  .blog-list .blog-card:hover{transform:translateY(-2px)}
  .blog-list .blog-card-media{height:auto;min-height:100%;border-bottom:0;border-right:1px solid var(--line)}
  .blog-list .blog-card-media img{height:100%;object-fit:cover}
  .blog-list .blog-card-body{padding:28px}
  .blog-list .blog-card h2{font-size:24px;line-height:1.25}
  .blog-list .blog-card p{font-size:15px;line-height:1.75}
}
@media(max-width:768px){
  .blog-list{grid-template-columns:1fr}
  .blog-list .blog-card{display:flex;flex-direction:column;min-height:0}
  .blog-list .blog-card-media{height:190px;min-height:0;border-right:0;border-bottom:1px solid var(--line)}
  .blog-list .blog-card-body{padding:20px}
  .blog-list .blog-card h2{font-size:20px}
}
