/*
Theme Name: JGC Components
Description: Industrial electronic components storefront for WooCommerce.
Version: 1.0.0
Text Domain: jgc-components
*/

:root{--navy:#102a43;--blue:#1677d2;--cyan:#09a9c8;--orange:#ff8a1f;--ink:#17212b;--muted:#637381;--line:#e4e9ee;--soft:#f5f8fb;--white:#fff}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif;background:#fff}a{color:inherit;text-decoration:none}.wrap{width:min(1240px,calc(100% - 32px));margin:auto}.topbar{background:#0b2239;color:#cbd8e5;font-size:13px}.topbar .wrap,.mainhead .wrap,.navrow .wrap{display:flex;align-items:center;justify-content:space-between}.topbar .wrap{min-height:34px}.toplinks{display:flex;gap:20px}.mainhead{padding:22px 0;background:#fff}.brand{font-size:30px;font-weight:800;color:var(--navy);letter-spacing:-1px}.brand span{color:var(--orange)}.search{display:flex;flex:1;max-width:630px;margin:0 40px}.search input{width:100%;height:46px;border:2px solid var(--blue);border-radius:5px 0 0 5px;padding:0 16px;font-size:15px}.search button{border:0;background:var(--blue);color:#fff;padding:0 26px;font-weight:700}.head-actions{display:flex;gap:18px;font-size:14px}.navrow{border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 2px 8px #1c35510b}.navrow .wrap{justify-content:flex-start}.cat-toggle{width:250px;background:var(--blue);color:#fff;padding:15px 20px;font-weight:700}.navmenu{display:flex;gap:30px;padding-left:30px;font-weight:600}.hero{background:linear-gradient(100deg,#eaf5fb,#f8fbfd);padding:34px 0}.hero-grid{display:grid;grid-template-columns:250px 1fr 250px;gap:22px}.category-card,.benefits,.panel,.product-card{background:#fff;border:1px solid var(--line);border-radius:6px}.category-card a{display:flex;justify-content:space-between;padding:11px 16px;border-bottom:1px solid #edf1f4;font-size:14px}.hero-main{padding:48px;background:linear-gradient(120deg,#113453,#1d6689);border-radius:8px;color:#fff;min-height:390px;display:flex;flex-direction:column;justify-content:center}.hero-main .eyebrow{color:#72ddf2;text-transform:uppercase;font-weight:700;letter-spacing:2px}.hero-main h1{font-size:44px;line-height:1.08;margin:12px 0}.hero-main p{color:#d4e8f4;max-width:600px;font-size:17px}.btn{display:inline-block;background:var(--orange);color:#fff;padding:13px 22px;border-radius:4px;font-weight:700;margin-top:12px}.benefits{padding:16px}.benefit{padding:15px 5px;border-bottom:1px solid var(--line)}.benefit:last-child{border:0}.benefit b{display:block;color:var(--navy);margin-bottom:5px}.benefit span{font-size:13px;color:var(--muted)}.section{padding:46px 0}.section.soft{background:var(--soft)}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.section-head h2{margin:0;color:var(--navy);font-size:27px}.section-head p{margin:7px 0 0;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.category-tile{background:#fff;border:1px solid var(--line);border-radius:6px;padding:22px 14px;text-align:center;transition:.2s}.category-tile:hover,.product-card:hover{box-shadow:0 8px 26px #17324c18;transform:translateY(-2px)}.category-icon{width:64px;height:64px;border-radius:50%;background:#e7f4fc;color:var(--blue);display:grid;place-items:center;margin:0 auto 14px;font-size:26px}.category-tile b{font-size:14px}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{padding:16px;transition:.2s}.product-card img{width:100%;aspect-ratio:1.2;object-fit:contain}.product-card h3{font-size:15px;line-height:1.45;min-height:44px}.price{font-size:19px;color:#e25b19;font-weight:800}.meta{font-size:12px;color:var(--muted);margin:7px 0}.features{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.feature{padding:26px;background:#fff;border:1px solid var(--line)}.feature h3{color:var(--navy)}footer{background:#0b2239;color:#cad6e0;padding:45px 0 22px}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:36px}footer h4{color:#fff}footer a{display:block;margin:10px 0;color:#b9c8d5}.copyright{border-top:1px solid #284156;margin-top:35px;padding-top:18px;font-size:13px}.page-main{padding:35px 0}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{border:1px solid var(--line);padding:15px;border-radius:6px}.woocommerce span.onsale{background:var(--orange)}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--blue);color:#fff}.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--navy);color:#fff}
@media(max-width:960px){.hero-grid{grid-template-columns:1fr}.category-card,.benefits{display:none}.category-grid{grid-template-columns:repeat(3,1fr)}.products{grid-template-columns:repeat(2,1fr)}.navmenu{overflow:auto}.search{margin:0 15px}.features{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.toplinks,.head-actions{display:none}.mainhead .wrap{display:block}.search{margin:16px 0 0}.hero-main{padding:28px;min-height:330px}.hero-main h1{font-size:32px}.category-grid{grid-template-columns:repeat(2,1fr)}.products,.features,.footer-grid{grid-template-columns:1fr}.navrow .wrap{overflow:auto}.cat-toggle{min-width:190px}.navmenu{min-width:560px}.section{padding:32px 0}}

/* Elecbee layout match v2 */
body{background:#f4f4f4;color:#333;font-family:Arial,"Microsoft YaHei",sans-serif}.wrap{width:min(1420px,calc(100% - 28px))}.topbar{height:32px;background:#373737}.topbar .wrap{min-height:32px;justify-content:flex-end}.toplinks{gap:52px;color:#fff;font-size:13px}.mainhead{background:#1d1d1d;padding:16px 0}.mainhead .wrap{height:66px}.brand{position:relative;width:285px;color:#fff;font-size:25px;font-weight:400;letter-spacing:0}.brand i{color:#ffc31c;font-style:normal;font-size:29px;margin-right:5px}.brand strong{color:#ffc31c}.brand span{color:#eee}.brand small{position:absolute;font-size:7px;left:39px;top:32px;color:#bbb;letter-spacing:.5px}.search{margin:0 auto;max-width:560px}.search input{height:44px;border:0;border-radius:7px 0 0 7px;background:#f2f2f2}.search button{width:54px;font-size:0;background:#eee;color:#222;border-radius:0 7px 7px 0;padding:0}.search button:after{content:'⌕';font-size:25px}.head-actions{min-width:285px;justify-content:flex-end;gap:42px;color:#fff}.head-actions a{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px}.head-actions b{font-size:24px;font-weight:400}.head-actions em{position:absolute;right:-8px;top:-7px;background:#e40013;border-radius:50%;font-size:10px;padding:2px 5px;font-style:normal}.navrow{background:#fff;border:0;padding:14px 0;box-shadow:none}.navrow .wrap{height:62px;border-radius:7px;background:#fff;overflow:hidden}.cat-toggle{align-self:stretch;display:flex;align-items:center;justify-content:space-between;width:340px;background:#ffc21c;color:#333;padding:0 28px;font-size:18px;border-radius:6px}.navmenu{flex:1;justify-content:space-around;align-items:center;padding:0 35px;gap:24px;font-weight:400;font-size:17px}.navmenu i{width:1px;height:18px;background:#bcbcbc}.hero{padding:0 0 20px;background:#f4f4f4}.hero-grid{grid-template-columns:325px 1fr;gap:16px}.category-card{border:0;border-radius:7px;padding:13px 0;min-height:543px}.category-card a{padding:9px 26px;border:0;font-size:15px}.category-card a:hover{color:#f1aa00}.category-card .view-all{font-weight:700}.hero-main{position:relative;overflow:hidden;min-height:543px;padding:0;background:linear-gradient(115deg,#f8fafb 0%,#e7edf0 52%,#b7c2c9 100%);color:#171717;border-radius:7px}.hero-main:after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 48%,rgba(255,255,255,.28));pointer-events:none}.hero-copy{position:relative;z-index:3;width:58%;padding:88px 0 0 40px}.hero-main h1{font-size:58px;line-height:.95;margin:0 0 20px;letter-spacing:-2px}.hero-main p{font-size:19px;line-height:1.35;color:#333}.spec-row{display:flex;gap:24px;margin:25px 0;font-size:13px}.btn{background:#ffc21c;color:#222;border-radius:9px;padding:15px 32px;font-size:16px}.connector-art{position:absolute;z-index:2;right:2%;bottom:65px;width:48%;height:55%}.connector-art i{position:absolute;width:145px;height:95px;border-radius:22px;background:linear-gradient(90deg,#555,#e7e7e7 16%,#7b7b7b 24%,#efefef 38%,#747474 53%,#ddd 70%,#303030);box-shadow:0 20px 25px #26333c55;transform:rotate(-8deg)}.connector-art i:after{content:'';position:absolute;right:-40px;top:7px;width:80px;height:80px;border-radius:50%;background:radial-gradient(circle,#111 0 9%,#c5c5c5 10% 25%,#555 27% 35%,#e7e7e7 37% 55%,#555 57% 63%,#cfcfcf 65%)}.connector-art i:nth-child(2){left:150px;top:80px;transform:rotate(12deg) scale(.8)}.connector-art i:nth-child(3){left:265px;top:-15px;transform:rotate(-3deg) scale(.7)}.connector-art i:nth-child(4){left:310px;top:155px;transform:rotate(9deg) scale(.75);background:linear-gradient(90deg,#111,#333,#080808)}.dots{position:absolute;z-index:4;bottom:20px;left:50%;color:#ddd}.dots b{color:#ffc21c}.trust-strip{background:#fff;text-align:center;padding:30px 0}.trust-strip h1{font-size:28px;margin:0 0 26px}.trust-items{display:grid;grid-template-columns:repeat(4,1fr);max-width:1000px;margin:auto}.trust-items div{border-right:1px solid #ddd}.trust-items div:last-child{border:0}.trust-items b,.trust-items span{display:block}.trust-items b{font-size:20px}.trust-items span{font-size:13px;color:#777;margin-top:4px}.catalog-tabs,.product-section{padding:35px 0}.tabs{display:flex;justify-content:center;gap:5px;border-bottom:1px solid #ddd}.tabs button{border:0;background:none;padding:15px 36px;font-size:18px;font-weight:700;color:#777}.tabs button.active{color:#222;border-bottom:4px solid #ffc21c}.hot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding-top:22px}.hot-grid>a{background:#fff;border-radius:6px;text-align:center;padding:20px}.fake-product{height:170px;display:grid;place-items:center;background:linear-gradient(135deg,#fafafa,#e6e6e6)}.fake-product span{font-size:85px;color:#777}.hot-grid h3{font-size:16px}.product-section{background:#fff}.product-section .section-head h2{font-size:24px}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:16px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product{width:auto!important;margin:0!important;border:1px solid #e5e5e5;border-radius:5px;background:#fff}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:#ffc21c;color:#222}.newsletter{background:#ffc21c;text-align:center;padding:28px 0}.newsletter h3{font-size:22px;margin:0 0 5px}.newsletter p{margin:0 0 15px}.newsletter form{display:flex;max-width:560px;margin:auto}.newsletter input{height:44px;flex:1;border:0;padding:0 15px}.newsletter button{border:0;background:#242424;color:#fff;padding:0 30px}footer{background:#242424}.payments{line-height:2}.page-main{background:#fff;margin:18px auto;max-width:1420px}.elec-home+.newsletter{margin-top:0}
@media(max-width:900px){.mainhead .wrap{height:auto}.brand{width:auto}.head-actions{min-width:auto}.hero-grid{grid-template-columns:1fr}.category-card{display:none}.hero-main{min-height:470px}.hero-copy{width:70%}.hero-main h1{font-size:44px}.connector-art{opacity:.55}.cat-toggle{width:260px}.navmenu{overflow:auto;justify-content:flex-start}.hot-grid{grid-template-columns:repeat(2,1fr)}.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.topbar{display:none}.mainhead{padding:12px 0}.mainhead .wrap{display:block}.brand{display:block}.search{margin:15px 0 0}.head-actions{display:none}.navrow{padding:8px 0}.navrow .wrap{height:48px}.cat-toggle{min-width:155px;width:155px;padding:0 14px;font-size:15px}.navmenu{min-width:560px;font-size:14px}.hero-main{min-height:430px}.hero-copy{width:100%;padding:50px 22px}.hero-main h1{font-size:39px}.hero-main p{font-size:15px}.spec-row{gap:10px;font-size:10px}.connector-art{opacity:.22;right:-15%;width:75%}.trust-items{grid-template-columns:repeat(2,1fr);gap:22px}.trust-items div:nth-child(2){border:0}.tabs{overflow:auto;justify-content:flex-start}.tabs button{white-space:nowrap;padding:12px 20px}.hot-grid{grid-template-columns:1fr 1fr}.fake-product{height:120px}.woocommerce ul.products{grid-template-columns:1fr 1fr}.newsletter form{width:95%}.footer-grid{grid-template-columns:1fr 1fr}}
.language{display:flex;gap:5px}.catalog-page,.product-detail-page{padding:22px 0 45px}.catalog-layout{display:grid;grid-template-columns:290px 1fr;gap:18px}.catalog-sidebar,.catalog-content,.product-detail-page .wrap{background:#fff;border-radius:6px}.catalog-sidebar{padding:18px 0;align-self:start}.catalog-sidebar h3{margin:0;padding:0 20px 15px;border-bottom:1px solid #eee}.catalog-tree,.catalog-tree ul{list-style:none;margin:0;padding:0}.catalog-tree>li{border-bottom:1px solid #eee}.catalog-tree a{display:block;padding:10px 20px;font-size:14px}.catalog-tree>li>a{font-weight:700;position:relative}.catalog-tree>li>a:after{content:'›';position:absolute;right:18px}.catalog-tree ul{display:none;background:#fafafa}.catalog-tree li:hover>ul{display:block}.catalog-tree ul a{padding-left:30px;color:#666}.catalog-tree a:hover{color:#e6a500}.catalog-content{padding:20px;min-width:0}.woocommerce-breadcrumb{font-size:13px!important;color:#888!important}.catalog-heading{border-bottom:1px solid #eee;margin-bottom:18px}.catalog-heading h1{font-size:25px;margin:10px 0}.woocommerce .woocommerce-ordering select{height:38px;border:1px solid #ddd;padding:0 12px}.woocommerce .woocommerce-result-count{font-size:13px}.product-detail-page .wrap{padding:22px}.product-detail-page div.product{display:grid;grid-template-columns:48% 1fr;gap:36px}.product-detail-page div.product .woocommerce-product-gallery{width:100%!important}.product-detail-page div.product .summary{width:100%!important}.product-detail-page div.product .product_title{font-size:26px;line-height:1.3}.product-detail-page div.product p.price{color:#d60000;font-size:28px}.product-detail-page .woocommerce-tabs{grid-column:1/-1}.product-detail-page .related{grid-column:1/-1}.woocommerce-product-details__short-description{border-top:1px solid #eee;border-bottom:1px solid #eee;padding:15px 0}.woocommerce div.product form.cart .button{background:#ffc21c;color:#222;padding:15px 28px}.woocommerce-tabs ul.tabs li.active{border-bottom:3px solid #ffc21c}@media(max-width:900px){.catalog-layout{grid-template-columns:1fr}.catalog-sidebar{display:none}.product-detail-page div.product{grid-template-columns:1fr}}
