/*
Theme Name: ApexFitness
Theme URI: https://example.com/apexfitness
Author: ApexFitness
Description: Responsive WooCommerce theme inspired by the supplied ApexFitness Figma/PDF designs. Includes editable Customizer content and WooCommerce templates.
Version: 1.5.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: apexfitness
Tags: e-commerce, custom-logo, custom-menu, featured-images, editor-style, wide-blocks
*/
:root{--apex-red:#ed101c;--apex-red-dark:#bd0712;--apex-black:#08090b;--apex-ink:#15171b;--apex-muted:#686b72;--apex-line:#e5e6e8;--apex-soft:#f5f5f6;--apex-white:#fff;--apex-radius:12px;--apex-shadow:0 12px 35px rgba(15,15,18,.08);--apex-width:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--apex-ink);font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65}img{max-width:100%;height:auto;vertical-align:middle}a{color:inherit;text-decoration:none}a:hover{color:var(--apex-red)}button,input,select,textarea{font:inherit}button,.button,input[type=submit],.wp-block-button__link{border:0;border-radius:999px;background:var(--apex-red);color:#fff;padding:12px 22px;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s}button:hover,.button:hover,input[type=submit]:hover{background:var(--apex-red-dark);color:#fff;transform:translateY(-1px)}.button.secondary{background:#fff;color:#111;border:1px solid #d8d8dc}.button.secondary:hover{border-color:var(--apex-red);color:var(--apex-red)}.container{width:min(var(--apex-width),calc(100% - 44px));margin-inline:auto}.site-header{background:#08090b;color:#fff;position:relative;z-index:50}.header-main{min-height:88px;display:flex;align-items:center;gap:28px}.custom-logo-link{display:inline-flex;align-items:center;flex-shrink:0}.custom-logo{width:148px;max-height:66px;object-fit:contain}.brand-fallback{font-size:24px;line-height:1;font-weight:950;letter-spacing:-1.5px;color:#fff}.brand-fallback span{color:var(--apex-red)}.primary-navigation{flex:1}.primary-navigation ul{display:flex;align-items:center;justify-content:center;gap:26px;list-style:none;padding:0;margin:0}.primary-navigation li{position:relative}.primary-navigation a{display:block;padding:28px 0;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#f4f4f5}.primary-navigation a:hover,.primary-navigation .current-menu-item>a{color:#ff3942}.primary-navigation .sub-menu{display:none;position:absolute;top:100%;left:-16px;min-width:210px;padding:10px;background:#111318;border:1px solid #292b30;border-radius:10px;box-shadow:var(--apex-shadow)}.primary-navigation li:hover>.sub-menu,.primary-navigation li:focus-within>.sub-menu{display:block}.primary-navigation .sub-menu a{padding:10px 12px;letter-spacing:0;text-transform:none;font-size:13px}.header-tools{display:flex;align-items:center;gap:10px}.header-search{display:flex;align-items:center;background:#fff;border-radius:30px;padding:4px 5px 4px 14px;min-width:220px}.header-search input{min-width:0;width:100%;border:0;outline:0;font-size:12px;background:transparent;color:#111}.header-search button{padding:8px 12px;font-size:11px}.icon-link{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#fff;color:#111;font-size:17px}.cart-count{display:inline-flex;align-items:center;justify-content:center;background:var(--apex-red);color:#fff;border-radius:50%;font-size:10px;width:18px;height:18px;margin-left:-17px;margin-top:-24px}.menu-toggle{display:none;background:transparent;border:1px solid #383a40;padding:9px 12px}.hero{background:linear-gradient(105deg,#08090b 0%,#101115 52%,#ed101c 100%);color:#fff;overflow:hidden}.hero-inner{display:grid;grid-template-columns:1fr 1.05fr;align-items:center;gap:38px;min-height:480px;padding-block:55px}.eyebrow{color:var(--apex-red);font-size:11px;font-weight:900;letter-spacing:.2em;text-transform:uppercase;margin:0 0 12px}.hero .eyebrow{color:#ff515a}.hero h1{font-size:clamp(40px,5vw,66px);line-height:.99;letter-spacing:-.055em;text-transform:uppercase;margin:0 0 22px;font-weight:950}.hero h1 span{display:block;color:#ff2934}.hero-copy{max-width:500px;color:#e2e2e5;font-size:17px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:27px 0 25px}.hero .button.secondary{background:transparent;color:#fff;border-color:#ffffff60}.hero .button.secondary:hover{background:#fff;color:#111}.hero-perks{display:flex;flex-wrap:wrap;gap:20px;color:#d9d9dc;font-size:12px;font-weight:700}.hero-media{position:relative;min-height:330px}.hero-media img{width:100%;height:370px;object-fit:cover;border-radius:16px;box-shadow:0 24px 60px #0006}.hero-media:after{content:"";position:absolute;inset:0;border:1px solid #ffffff28;border-radius:16px;pointer-events:none}.section{padding:72px 0}.section.soft{background:var(--apex-soft)}.section.dark{background:#090a0c;color:#fff}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:28px}.section-heading h2,.section h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.04em;line-height:1.1;margin:0 0 10px;font-weight:900}.section-heading p,.section-intro{color:var(--apex-muted);margin:0;max-width:700px}.section.dark .section-heading p,.section.dark .section-intro{color:#b5b6bc}.text-link{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;color:var(--apex-red)}.category-grid,.product-grid,.kit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.category-card{padding:24px;border:1px solid var(--apex-line);border-radius:var(--apex-radius);background:#fff;min-height:230px;display:flex;flex-direction:column;align-items:flex-start;transition:.2s}.category-card:hover{transform:translateY(-4px);box-shadow:var(--apex-shadow);border-color:#f2b5b8}.category-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#fff0f1;color:var(--apex-red);font-size:23px;margin-bottom:20px}.category-card h3{margin:0 0 8px;font-size:17px;line-height:1.25}.category-card p{font-size:13px;color:var(--apex-muted);margin:0 0 20px}.category-card .text-link{margin-top:auto}.product-card{background:#fff;border:1px solid var(--apex-line);border-radius:var(--apex-radius);overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:.2s}.product-card:hover{box-shadow:var(--apex-shadow);transform:translateY(-3px)}.product-thumb{background:#f7f7f8;aspect-ratio:1/1;display:block;overflow:hidden}.product-thumb img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .3s}.product-card:hover .product-thumb img{transform:scale(1.04)}.product-info{padding:18px;display:flex;flex-direction:column;flex:1}.product-category{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--apex-red);font-weight:850;margin-bottom:7px}.product-info h3{font-size:16px;line-height:1.35;margin:0 0 8px}.product-info p{font-size:12px;color:var(--apex-muted);margin:0 0 16px}.product-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto}.price{font-size:14px;font-weight:900}.price del{color:#999;font-weight:500}.price ins{text-decoration:none}.product-card .button{padding:9px 14px;font-size:11px}.no-products{border:1px dashed #c9cbd0;border-radius:var(--apex-radius);padding:28px;color:var(--apex-muted);grid-column:1/-1}.kit-card{padding:24px;border-radius:var(--apex-radius);background:#fff;border:1px solid var(--apex-line);display:flex;flex-direction:column;gap:10px}.kit-card h3{font-size:18px;margin:0}.kit-card p{font-size:13px;color:var(--apex-muted);margin:0}.kit-card ul{padding-left:19px;color:#45474c;font-size:13px}.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.why-image img{border-radius:16px;width:100%;max-height:390px;object-fit:cover}.check-list{list-style:none;padding:0;margin:22px 0;display:grid;gap:12px}.check-list li:before{content:"✓";display:inline-grid;place-items:center;width:24px;height:24px;background:#ffe8e9;color:var(--apex-red);font-weight:900;border-radius:50%;margin-right:10px}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}.trust-card{padding:22px;border:1px solid var(--apex-line);border-radius:12px;background:#fff}.trust-card h3{margin:0 0 8px;font-size:16px}.trust-card p{font-size:12px;color:var(--apex-muted);margin:0 0 12px}.cta-band{padding:30px 34px;background:linear-gradient(100deg,#090a0c,#ed101c);border-radius:16px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.cta-band h2{margin:0 0 6px;font-size:28px}.cta-band p{margin:0;color:#f1dfe0}.site-footer{background:#07080a;color:#fff;padding:52px 0 20px}.footer-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:40px;padding-bottom:38px}.footer-brand .custom-logo{width:150px}.footer-brand p{color:#b8b9bf;font-size:13px;max-width:310px}.footer-grid h3{font-size:12px;text-transform:uppercase;letter-spacing:.1em;margin:5px 0 16px}.footer-grid ul{list-style:none;padding:0;margin:0;display:grid;gap:9px}.footer-grid li,.footer-grid a{color:#c9cacf;font-size:13px}.footer-grid a:hover{color:#ff4049}.footer-bottom{border-top:1px solid #292a2f;padding-top:17px;display:flex;justify-content:space-between;gap:15px;color:#9b9da4;font-size:11px}.page-hero{background:linear-gradient(105deg,#090a0c,#ed101c);color:#fff;padding:45px 0}.page-hero h1{font-size:clamp(32px,4vw,48px);line-height:1.05;text-transform:uppercase;letter-spacing:-.04em;margin:0 0 10px}.page-hero p{max-width:720px;color:#f5e6e7;margin:0}.breadcrumbs{font-size:12px;color:#bfc0c5;margin:0 0 18px}.breadcrumbs a{color:inherit}.shop-layout{display:grid;grid-template-columns:235px 1fr;gap:28px}.shop-sidebar{border:1px solid var(--apex-line);border-radius:12px;padding:22px;align-self:start}.shop-sidebar h2{font-size:16px;margin:0 0 16px}.shop-sidebar ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}.shop-sidebar li a{font-size:13px;color:#4d5056}.shop-sidebar li a:hover{color:var(--apex-red)}.shop-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;font-size:13px}.woocommerce .woocommerce-result-count{margin:0;color:var(--apex-muted)}.woocommerce .woocommerce-ordering{margin:0}.woocommerce select,.woocommerce input[type=text],.woocommerce input[type=email],.woocommerce input[type=tel],.woocommerce input[type=password],.woocommerce input[type=number],.woocommerce textarea,.form-field input,.form-field textarea,.form-field select{border:1px solid #d9dade;border-radius:8px;padding:12px 14px;max-width:100%;background:#fff;color:#15171b}.woocommerce .woocommerce-ordering select{font-size:12px}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:0!important;border:1px solid var(--apex-line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#f7f7f8;margin:0 0 14px;padding:14px;mix-blend-mode:multiply}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px;padding:0 16px 8px}.woocommerce ul.products li.product .price{padding:0 16px 12px;color:#111;font-weight:850}.woocommerce ul.products li.product .button{margin:0 16px 18px;width:max-content;font-size:11px}.woocommerce span.onsale{background:var(--apex-red);min-height:34px;min-width:34px;line-height:34px}.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:6px}.woocommerce nav.woocommerce-pagination ul li{border:0}.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border-radius:7px;background:#f1f1f3;padding:10px 14px}.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--apex-red);color:#fff}.single-product .product{display:grid;grid-template-columns:1fr 1fr;gap:48px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0}.woocommerce div.product div.images img{border-radius:12px;background:#f6f6f7}.woocommerce div.product .product_title{font-size:clamp(30px,4vw,42px);line-height:1.1;letter-spacing:-.04em}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--apex-red);font-size:24px;font-weight:900}.woocommerce div.product form.cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.woocommerce .quantity .qty{border:1px solid #ddd;border-radius:30px;padding:11px;width:76px}.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:8px 8px 0 0}.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-top-color:var(--apex-red)}.woocommerce div.product .woocommerce-tabs ul.tabs li:before,.woocommerce div.product .woocommerce-tabs ul.tabs li:after{display:none}.woocommerce div.product .woocommerce-tabs ul.tabs{padding-left:0}.woocommerce div.product .woocommerce-tabs ul.tabs:before{border-color:#ddd}.woocommerce-message,.woocommerce-info{border-top-color:var(--apex-red)}.woocommerce-message:before,.woocommerce-info:before{color:var(--apex-red)}.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,.woocommerce #payment #place_order{background:var(--apex-red)}.woocommerce table.shop_table{border:1px solid var(--apex-line);border-radius:10px;border-collapse:separate;border-spacing:0;overflow:hidden}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:15px}.woocommerce form .form-row{padding:6px 0;margin:0 0 10px}.woocommerce form .form-row label{font-size:12px;font-weight:750;margin-bottom:6px}.woocommerce form .form-row .input-text{border:1px solid #d9dade;border-radius:8px;padding:12px}.woocommerce-checkout #payment{background:#f5f5f6;border-radius:10px}.woocommerce-checkout #payment div.payment_box{background:#fff}.woocommerce-checkout #payment div.payment_box:before{border-bottom-color:#fff}.contact-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px}.panel{padding:28px;border:1px solid var(--apex-line);border-radius:14px;background:#fff}.panel h2{font-size:22px;margin:0 0 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800}.form-field.full{grid-column:1/-1}.form-field input,.form-field textarea{width:100%;font-weight:400}.form-field textarea{min-height:130px;resize:vertical}.notice{padding:12px 16px;border-radius:8px;background:#effaf1;color:#17632a;margin-bottom:18px}.notice.error{background:#fff0f1;color:#9d121b}.content-prose{max-width:850px}.content-prose h2{margin-top:35px}.content-prose p,.content-prose li{color:#4f5258}.faq-list details{padding:18px 0;border-bottom:1px solid var(--apex-line)}.faq-list summary{font-weight:800;cursor:pointer}.faq-list details p{color:var(--apex-muted);margin-bottom:0}.mobile-only{display:none}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap}
@media(max-width:1050px){.header-main{gap:18px}.primary-navigation ul{gap:15px}.header-search{min-width:175px}.category-grid,.product-grid,.kit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-inner{gap:24px}.footer-grid{grid-template-columns:1.4fr 1fr 1fr}.footer-brand{grid-column:1/-1}.trust-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.container{width:min(var(--apex-width),calc(100% - 30px))}.header-main{min-height:74px;flex-wrap:wrap;justify-content:space-between;padding-block:10px}.custom-logo{width:118px}.menu-toggle{display:inline-flex}.primary-navigation{display:none;order:4;flex-basis:100%;width:100%}.primary-navigation.is-open{display:block}.primary-navigation ul{display:flex;align-items:stretch;flex-direction:column;gap:0;padding:8px 0}.primary-navigation a{padding:12px 4px;border-top:1px solid #24262b}.primary-navigation .sub-menu{display:block;position:static;box-shadow:none;border:0;padding:0 0 0 15px;background:transparent}.header-tools{margin-left:auto}.header-search{min-width:0;width:38px;height:38px;padding:0;justify-content:center;background:transparent}.header-search input{position:absolute;left:-9999px}.header-search button{background:#fff;color:#111;width:38px;height:38px;padding:0;border-radius:50%}.header-tools .account-link{display:none}.hero-inner{grid-template-columns:1fr;padding-block:42px;min-height:0}.hero h1{font-size:clamp(40px,11vw,58px)}.hero-media{min-height:0}.hero-media img{height:250px}.section{padding:50px 0}.section-heading{align-items:flex-start;flex-direction:column}.why-grid,.contact-grid,.single-product .product{grid-template-columns:1fr;gap:25px}.shop-layout{grid-template-columns:1fr}.shop-sidebar{order:2}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:1fr 1fr;gap:28px}.footer-brand{grid-column:1/-1}.footer-bottom{flex-direction:column}.cta-band{align-items:flex-start;flex-direction:column}.mobile-only{display:block}}
@media(max-width:480px){.category-grid,.product-grid,.kit-grid,.trust-grid{grid-template-columns:1fr}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px;padding-inline:10px}.woocommerce ul.products li.product .price{padding-inline:10px}.woocommerce ul.products li.product .button{margin-inline:10px;padding:9px 11px}.product-info{padding:13px}.product-info h3{font-size:14px}.product-meta{align-items:flex-start;flex-direction:column}.header-tools{gap:6px}.form-grid{grid-template-columns:1fr}.form-field.full{grid-column:auto}.hero-perks{gap:10px}.footer-grid{gap:22px}.panel{padding:20px}}

/* Shop All catalogue controls and empty-store preview */
.apex-catalog-search{display:grid;gap:9px;margin:0 0 24px}.apex-catalog-search label{font-size:12px;font-weight:800}.apex-catalog-search input{width:100%;min-width:0;border:1px solid #d9dade;border-radius:8px;padding:10px}.apex-catalog-search button{width:100%;padding:9px 12px}.apex-filter-list{margin-bottom:25px!important}.filter-note{font-size:12px;color:var(--apex-muted);margin:0 0 24px}.apex-catalog-empty-note{background:#fff8e8;border:1px solid #f1dfb3;border-radius:10px;padding:16px 18px;margin:0 0 22px;font-size:13px;color:#55431e}.apex-catalog-empty-note p{margin:6px 0 0}.apex-preview-grid{margin-top:16px}.shop-results{min-width:0}.woocommerce .woocommerce-pagination{margin-top:28px}.woocommerce .woocommerce-pagination ul{border:0;display:flex;gap:6px}.woocommerce .woocommerce-pagination ul li{border:1px solid var(--apex-line);border-radius:7px;overflow:hidden}.woocommerce .woocommerce-pagination ul li span,.woocommerce .woocommerce-pagination ul li a{padding:10px 14px}


/* Shop collection and AJAX cart drawer */
.woocommerce ul.products li.product .button.add_to_cart_button{display:flex;width:calc(100% - 28px);margin:12px 14px 16px;justify-content:center;text-align:center}
.woocommerce ul.products li.product .button.loading{opacity:.65;pointer-events:none}
.woocommerce ul.products li.product .added_to_cart{display:block;margin:0 14px 14px;text-align:center;color:var(--apex-red);font-size:12px;font-weight:800}
.apex-cart-drawer-overlay{position:fixed;inset:0;background:rgba(5,6,8,.58);z-index:9998;opacity:0;transition:opacity .25s}
.apex-cart-drawer-overlay:not([hidden]){opacity:1}
.apex-cart-drawer{position:fixed;z-index:9999;top:0;right:0;width:min(440px,100vw);height:100dvh;background:#fff;box-shadow:-15px 0 50px rgba(0,0,0,.2);transform:translateX(105%);transition:transform .28s ease;display:flex;flex-direction:column;padding:22px;visibility:hidden}
.apex-cart-drawer.is-open{transform:translateX(0);visibility:visible}
.apex-cart-drawer-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--apex-line);padding-bottom:15px;gap:15px}
.apex-cart-drawer-header h2{margin:0;font-size:24px;font-weight:900}
.apex-cart-drawer .apex-cart-drawer-close{width:38px;height:38px;padding:0;border-radius:50%;font-size:25px;background:#f2f2f3;color:#111;flex-shrink:0}
.apex-cart-drawer-content{overflow:auto;flex:1;padding:16px 0}
.apex-cart-drawer-content .woocommerce-mini-cart{list-style:none;margin:0;padding:0}
.apex-cart-drawer-content .woocommerce-mini-cart-item{position:relative;min-height:84px;padding:8px 0 14px 82px!important;border-bottom:1px solid var(--apex-line);margin:0 0 12px!important;font-size:13px}
.apex-cart-drawer-content .woocommerce-mini-cart-item a:not(.remove){font-weight:800}
.apex-cart-drawer-content .woocommerce-mini-cart-item img{float:left!important;width:66px!important;height:66px;object-fit:cover;margin:0 0 0 -82px!important;border-radius:8px}
.apex-cart-drawer-content .woocommerce-mini-cart-item .remove{position:absolute;right:0;top:6px;color:#a00!important;font-size:20px}
.apex-cart-drawer-content .quantity{display:block;color:var(--apex-muted);margin-top:4px}
.apex-cart-drawer-content .woocommerce-mini-cart__total{border-top:1px solid var(--apex-line);padding-top:15px;font-weight:850}
.apex-cart-drawer-content .woocommerce-mini-cart__buttons{display:none}
.apex-cart-drawer-content .woocommerce-mini-cart__empty-message{padding:22px 0;color:var(--apex-muted)}
.apex-cart-drawer-footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid var(--apex-line);padding-top:16px}
.apex-cart-drawer-footer .button{width:100%;text-align:center;padding:12px 10px}
body.apex-cart-drawer-open{overflow:hidden}
@media(prefers-reduced-motion:reduce){.apex-cart-drawer,.apex-cart-drawer-overlay{transition:none}}

/* Shop grid — 3 columns desktop, 2 tablet/mobile */
.shop-results .woocommerce,.shop-results .woocommerce ul.products{width:100%}
.woocommerce ul.products,.woocommerce-page ul.products,.shop-results .product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px;margin:0 0 10px!important;padding:0!important;list-style:none}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto!important;float:none!important;margin:0!important;clear:none!important;position:relative;background:#fff;transition:box-shadow .2s,transform .2s}
.woocommerce ul.products li.product:hover{box-shadow:var(--apex-shadow);transform:translateY(-3px)}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:inherit}
.woocommerce ul.products li.product .button{margin-top:auto!important}
.woocommerce ul.products li.product .star-rating{margin:0 16px 10px}
.shop-toolbar:empty{display:none}
.shop-sidebar li.is-active a{color:var(--apex-red);font-weight:800}
@media(max-width:1050px){.woocommerce ul.products,.woocommerce-page ul.products,.shop-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.woocommerce ul.products,.woocommerce-page ul.products,.shop-results .product-grid{gap:10px}.shop-toolbar{flex-wrap:wrap}}

/* ==========================================================================
   Typography system — one scale for every page (edit in Theme Content → Typography)
   ========================================================================== */
:root{--apex-font-heading:"Inter",Arial,Helvetica,sans-serif;--apex-font-body:"Inter",Arial,Helvetica,sans-serif;--apex-h1:54px;--apex-h2:38px;--apex-h3:18px;--apex-body:16px;--apex-h1-transform:uppercase;--apex-lead:calc(var(--apex-body) * 1.0625);--apex-small:calc(var(--apex-body) * .875);--apex-label:11px}
body{font-family:var(--apex-font-body);font-size:var(--apex-body);line-height:1.65}
h1,h2,h3,h4,h5,h6,.woocommerce div.product .product_title,.woocommerce ul.products li.product .woocommerce-loop-product__title,.faq-list summary{font-family:var(--apex-font-heading)}

/* H1 — homepage hero, page heroes, product title, 404 */
h1,.hero h1,.page-hero h1,.woocommerce div.product .product_title{font-size:clamp(calc(var(--apex-h1) * .64),5vw,var(--apex-h1));line-height:1.04;letter-spacing:-.04em;font-weight:900;text-transform:var(--apex-h1-transform);margin:0 0 18px}
.page-hero h1{margin-bottom:12px}

/* H2 — every section heading */
h2,.section h2,.section-heading h2,.content-prose h2,.cta-band h2,.why-grid h2{font-size:clamp(calc(var(--apex-h2) * .72),3vw,var(--apex-h2));line-height:1.12;letter-spacing:-.03em;font-weight:900;margin:0 0 12px}
.content-prose h2{margin-top:36px}
.content-prose > h2:first-child,.content-prose .eyebrow + h2{margin-top:0}

/* Box titles — panels, sidebar groups, cart drawer */
.panel h2,.apex-cart-drawer-header h2{font-size:calc(var(--apex-h3) * 1.3);line-height:1.2;letter-spacing:-.02em;font-weight:850;margin:0 0 18px}
.apex-cart-drawer-header h2{margin:0}
.shop-sidebar h2{font-size:var(--apex-h3);line-height:1.3;letter-spacing:-.01em;font-weight:800;margin:0 0 14px}

/* H3 — every card and sub heading */
h3,.category-card h3,.product-info h3,.kit-card h3,.trust-card h3,.cta-band h3,.content-prose h3,.faq-list summary,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:var(--apex-h3);line-height:1.3;letter-spacing:-.01em;font-weight:800}
.category-card h3,.product-info h3,.trust-card h3{margin:0 0 8px}
.kit-card h3{margin:0}
.footer-grid h3{font-family:var(--apex-font-body);font-size:var(--apex-label);line-height:1.4;letter-spacing:.14em;text-transform:uppercase;font-weight:800;margin:5px 0 16px}

/* Lead text — under page / section headings */
.hero-copy,.page-hero p,.section-heading p,.section-intro,.cta-band p{font-size:var(--apex-lead);line-height:1.6}

/* Body text — cards, FAQs, prose */
.category-card p,.product-info p,.kit-card p,.trust-card p,.faq-list details p,.kit-card ul{font-size:var(--apex-small);line-height:1.6;color:var(--apex-muted)}
.content-prose p,.content-prose li{font-size:var(--apex-body);line-height:1.75}

/* Labels — eyebrows, card categories, links, form labels */
.eyebrow,.product-category{font-family:var(--apex-font-body);font-size:var(--apex-label);font-weight:900;letter-spacing:.18em;text-transform:uppercase;line-height:1.4}
.eyebrow{margin:0 0 12px}
.text-link{font-size:12px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.form-field,.apex-catalog-search label,.woocommerce form .form-row label{font-size:13px;font-weight:750}
.form-consent{font-weight:500}
.form-consent input{width:auto}
.price,.woocommerce ul.products li.product .price{font-size:calc(var(--apex-body) * .95);font-weight:900}

/* Brand colours flow into gradients */
.hero{background:linear-gradient(105deg,var(--apex-black) 0%,#101115 52%,var(--apex-red) 100%)}
.page-hero,.cta-band{background:linear-gradient(105deg,var(--apex-black),var(--apex-red))}
.section.dark{background:var(--apex-black)}
.cta-band--compact{margin-top:24px;padding:22px}
.cta-band--compact h3{margin:0 0 6px;color:#fff}
.page-intro{margin-bottom:28px}

/* Section backgrounds (homepage) */
.apex-has-bg{background-size:cover;background-position:center;background-repeat:no-repeat}
.category-card,.product-card,.kit-card,.trust-card,.panel{color:var(--apex-ink)}
.apex-text-light{color:#fff}
.apex-text-light .section-heading p,.apex-text-light .section-intro,.apex-text-light .hero-copy,.apex-text-light .hero-perks,.apex-text-light .no-products{color:rgba(255,255,255,.86)}
.apex-text-light .no-products{border-color:rgba(255,255,255,.4)}
.apex-text-light.hero .button.secondary,.apex-text-light .button.secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.apex-text-dark{color:var(--apex-ink)}
.apex-text-dark .section-heading p,.apex-text-dark .section-intro,.apex-text-dark .hero-copy,.apex-text-dark .hero-perks{color:var(--apex-muted)}
.apex-text-dark.hero .button.secondary{background:#fff;color:#111;border-color:#d9dade}
.apex-text-dark.hero .eyebrow{color:var(--apex-red)}

@media(max-width:480px){
  .woocommerce ul.products li.product .woocommerce-loop-product__title,.product-info h3{font-size:calc(var(--apex-h3) * .8)}
}
.section.dark.apex-text-dark{color:var(--apex-ink)}
.section.dark.apex-text-dark .section-heading p,.section.dark.apex-text-dark .section-intro{color:var(--apex-muted)}
/* Eyebrow labels: brand colour everywhere (light on coloured page heroes) */
p.eyebrow,.section-heading p.eyebrow,.section .eyebrow,.apex-text-light .section-heading p.eyebrow,.apex-text-dark .section-heading p.eyebrow{color:var(--apex-red)}
.page-hero p.eyebrow{color:rgba(255,255,255,.78)}
.hero p.eyebrow{color:#ff515a}
.apex-text-dark.hero p.eyebrow{color:var(--apex-red)}


/* ApexFitness professional layout standards (site-wide, all page templates) */
:root{--apex-width:1200px;--apex-section-space:clamp(48px,5.2vw,68px);--apex-page-gutter:clamp(18px,3vw,32px)}
.container,.woocommerce .site-main>.container,.content-area>.container{width:min(var(--apex-width),calc(100% - (var(--apex-page-gutter)*2)));margin-inline:auto}
.section{padding-block:var(--apex-section-space)}
.hero-inner{min-height:clamp(410px,40vw,480px);padding-block:clamp(40px,5vw,58px);gap:clamp(24px,3vw,40px)}
.hero-media{min-height:clamp(280px,28vw,340px)}
.hero-media img{height:clamp(280px,30vw,370px);max-height:370px;object-fit:cover}
.page-hero{padding-block:clamp(38px,4.5vw,56px)}
.page-hero .container{max-width:1200px}
.page-hero h1{max-width:1000px}
.page-hero p{max-width:760px;line-height:1.7}
.site-main>.container,.site-main .content-area,.entry-content{min-width:0}
.site-main>.container{padding-block:clamp(28px,4vw,48px)}
.entry-content>*,.page-content>*,.content-area article> *{max-width:100%}
.entry-content>p,.entry-content>ul,.entry-content>ol,.entry-content>blockquote,.entry-content>h2,.entry-content>h3,.page-content>p{max-width:820px}
.entry-content h2,.page-content h2{margin-block:1.8em .6em;line-height:1.2}
.entry-content p,.page-content p{line-height:1.75}
.shop-layout{grid-template-columns:minmax(200px,230px) minmax(0,1fr);gap:clamp(20px,2.5vw,30px)}
.shop-sidebar{padding:clamp(16px,2vw,22px)}
.shop-toolbar{min-height:42px}
.category-grid,.product-grid,.kit-grid{gap:clamp(14px,1.6vw,20px)}
.category-card,.kit-card{padding:clamp(18px,2vw,24px)}
.product-info{padding:clamp(14px,1.5vw,18px)}
.woocommerce ul.products li.product,.shop-results .product-card{min-width:0}
.woocommerce div.product .woocommerce-product-gallery,.woocommerce div.product .summary{min-width:0}
.woocommerce div.product div.images img{width:100%;height:auto;max-height:680px;object-fit:contain}
.woocommerce div.product div.summary{line-height:1.7}
.woocommerce div.product .product_title{font-size:clamp(28px,3vw,40px);line-height:1.15}
.woocommerce-tabs,.related.products,.up-sells.upsells{margin-top:clamp(32px,4vw,56px)}
.woocommerce-cart .site-main,.woocommerce-checkout .site-main,.woocommerce-account .site-main{max-width:1200px;margin-inline:auto;padding-inline:var(--apex-page-gutter)}
.woocommerce-cart .site-main,.woocommerce-checkout .site-main,.woocommerce-account .site-main{padding-block:clamp(28px,4vw,48px)}
.woocommerce table.shop_table{border-collapse:collapse}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{min-height:44px;border-radius:8px}
.cta-band{padding:clamp(24px,3vw,36px);gap:clamp(16px,2vw,24px)}
.site-footer{padding-top:clamp(40px,4.5vw,56px)}
.footer-grid{gap:clamp(24px,3vw,40px);padding-bottom:clamp(28px,3vw,38px)}
@media(max-width:1050px){.shop-layout{grid-template-columns:minmax(0,1fr)}.shop-sidebar{order:2}.hero-inner{min-height:0}}
@media(max-width:780px){:root{--apex-section-space:44px;--apex-page-gutter:15px}.hero-inner{padding-block:40px;gap:26px}.hero-media img{height:clamp(220px,58vw,300px)}.page-hero{padding-block:36px}.site-main>.container{padding-block:28px}.section{padding-block:var(--apex-section-space)}.woocommerce-cart .site-main,.woocommerce-checkout .site-main,.woocommerce-account .site-main{padding-inline:15px}.woocommerce div.product .product_title{font-size:30px}}
@media(max-width:480px){:root{--apex-section-space:36px}.page-hero{padding-block:30px}.hero-inner{padding-block:32px}.category-card,.kit-card{padding:18px}.cta-band{padding:22px}.woocommerce div.product .product_title{font-size:27px}}


/* =====================================================================
   ApexFitness brand refresh — crimson, black and white
   ===================================================================== */
:root{
  --apex-red:#dc143c;
  --apex-red-dark:#a80f2d;
  --apex-black:#08090b;
  --apex-ink:#111216;
  --apex-muted:#4b4d54;
  --apex-line:#dedee2;
  --apex-soft:#f7f7f8;
  --apex-white:#fff;
  --apex-radius:14px;
  --apex-shadow:0 16px 42px rgba(8,9,11,.11);
}
body{color:#111216;background:#fff}
::selection{background:#dc143c;color:#fff}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #dc143c;outline-offset:3px}
.site-header{background:#08090b;border-bottom:3px solid #dc143c;box-shadow:0 8px 24px rgba(8,9,11,.12)}
.primary-navigation a:hover,.primary-navigation .current-menu-item>a{color:#dc143c}
.hero{background:radial-gradient(ellipse at 82% 15%,rgba(220,20,60,.32),transparent 35%),linear-gradient(118deg,#08090b 0%,#111216 62%,#250711 100%);position:relative}
.hero:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#dc143c}
.hero h1 span{color:#dc143c}
.hero .eyebrow{color:#ff6b86}
.hero-media img{border:1px solid rgba(255,255,255,.16);border-radius:18px}
.section{position:relative}
.section.soft{background:linear-gradient(180deg,#f7f7f8,#fff)}
.section-heading h2,.section h2,.page-hero h1{letter-spacing:-.045em}
.section-heading>div:has(>.eyebrow){position:relative}
.section-heading .eyebrow{display:inline-flex;align-items:center;gap:9px;color:#dc143c}
.section-heading .eyebrow:before{content:"";display:inline-block;width:22px;height:2px;background:#dc143c}
.category-card,.product-card,.kit-card,.trust-card,.panel,.shop-sidebar{border-color:#e0e0e4;box-shadow:0 3px 0 rgba(8,9,11,.015);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.category-card:hover,.product-card:hover,.kit-card:hover,.trust-card:hover{border-color:#dc143c;box-shadow:0 16px 35px rgba(8,9,11,.1);transform:translateY(-4px)}
.category-icon{background:#dc143c;color:#fff;border-radius:13px}
.text-link,.product-category,.eyebrow{color:#dc143c}
.button,button,input[type=submit],.wp-block-button__link{background:#dc143c;border-radius:7px;box-shadow:0 5px 0 #a80f2d;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.button:hover,button:hover,input[type=submit]:hover,.wp-block-button__link:hover{background:#a80f2d;box-shadow:0 2px 0 #780a20;transform:translateY(2px)}
.button.secondary{box-shadow:none;border:1px solid #fff;background:transparent;color:#fff}
.button.secondary:hover{background:#fff;color:#08090b;border-color:#fff;box-shadow:none}
.cta-band{background:radial-gradient(ellipse at 90% 0%,rgba(220,20,60,.4),transparent 42%),linear-gradient(110deg,#08090b,#171116);border:1px solid #303036;border-left:5px solid #dc143c;border-radius:12px}
.page-hero{background:radial-gradient(ellipse at 85% 0%,rgba(220,20,60,.34),transparent 38%),linear-gradient(110deg,#08090b,#171116);border-bottom:4px solid #dc143c}
.site-footer{position:relative;overflow:hidden;background:#08090b;color:#fff;padding:58px 0 22px;border-top:4px solid #dc143c}
.site-footer:before{content:"";position:absolute;top:0;right:5%;width:240px;height:240px;border:1px solid rgba(220,20,60,.18);border-radius:50%;box-shadow:0 0 0 28px rgba(220,20,60,.035),0 0 0 58px rgba(220,20,60,.025);pointer-events:none}
.site-footer>.container{position:relative;z-index:1}
.footer-grid{grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(130px,1fr));gap:clamp(22px,3vw,42px)}
.footer-brand .custom-logo{width:160px;max-height:70px}
.footer-brand p{color:#e0e0e4;font-size:14px;line-height:1.75;max-width:330px}
.footer-grid h3{color:#fff;font-size:12px;letter-spacing:.16em;margin-bottom:18px}
.footer-grid h3:after{content:"";display:block;width:28px;height:2px;background:#dc143c;margin-top:10px}
.footer-grid li,.footer-grid a{color:#e0e0e4;font-size:13px}
.footer-grid a:hover{color:#ff5576}
.footer-brand>.button.secondary{margin-top:4px}
.footer-social-block{margin-top:25px}
.footer-social-title{margin-bottom:13px!important}
.footer-social-title:after{display:none!important}
.footer-socials{display:flex;flex-wrap:wrap;gap:10px}
.footer-social-link{width:46px;height:46px;border:1px solid #414148;border-radius:10px;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:2px;background:#121318;color:#fff!important;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.footer-social-link svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.footer-social-link:hover,.footer-social-link:focus-visible{background:#dc143c;border-color:#dc143c;color:#fff!important;transform:translateY(-3px)}
.footer-social-link.is-unlinked{border-style:dashed;opacity:.9}
.footer-social-label{font-size:8px!important;line-height:1.1;color:inherit!important;letter-spacing:.02em}
.footer-bottom{border-top:1px solid #34343a;color:#d0d0d5;padding-top:20px;font-size:11px}
.footer-bottom span:last-child{color:#ff5576;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.product-thumb,.woocommerce ul.products li.product a img{background:#f7f7f8}
.woocommerce ul.products li.product,.product-card{border-radius:12px}
.woocommerce span.onsale,.woocommerce nav.woocommerce-pagination ul li span.current{background:#dc143c}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:#dc143c}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:#dc143c}
.woocommerce-message:before,.woocommerce-info:before{color:#dc143c}
.content-prose p,.content-prose li,.category-card p,.product-info p,.kit-card p,.trust-card p,.faq-list details p{color:#282a30}
@media(max-width:1050px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-brand{grid-column:1/-1}}
@media(max-width:780px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.footer-brand{grid-column:1/-1}.footer-brand p{max-width:440px}.site-footer{padding-top:42px}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr 1fr;gap:24px 16px}.footer-brand{grid-column:1/-1}.footer-social-link{width:44px;height:44px}.footer-bottom{gap:8px}.footer-bottom span{max-width:100%}}

/* =====================================================================
   ApexFitness refined professional section system — global page standards
   Applied across homepage, standard pages, WooCommerce templates and archives.
   ===================================================================== */
:root{
  --apex-content-standard:1200px;
  --apex-content-wide:1400px;
  --apex-space-section:clamp(44px,5vw,68px);
  --apex-space-section-compact:clamp(28px,3vw,40px);
  --apex-space-section-spacious:clamp(64px,7vw,92px);
  --apex-space-page:clamp(28px,4vw,48px);
  --apex-gutter:clamp(16px,3vw,32px);
}

/* Consistent centered content width and side gutters on every template. */
.container,
.site-main > .container,
.site-main .content-area > .container,
.content-area > .container,
.woocommerce .site-main > .container,
.site-footer > .container,
.site-header > .container{
  width:min(var(--apex-content-standard),calc(100% - (var(--apex-gutter) * 2)));
  margin-inline:auto;
}

/* Section rhythm: avoid arbitrary heights; let content define height naturally. */
.section{padding-block:var(--apex-space-section);}
.section.section--compact{padding-block:var(--apex-space-section-compact);}
.section.section--spacious{padding-block:var(--apex-space-section-spacious);}
.section > .container,
.section > .container > .section-content{min-width:0;}
.section-heading{margin-bottom:clamp(22px,2.6vw,32px);}
.section-heading > div,
.section-heading .section-intro{min-width:0;}

/* Homepage hero and inner page title banners use predictable proportions. */
.hero-inner{
  min-height:clamp(400px,42vw,500px);
  padding-block:clamp(40px,5vw,64px);
  gap:clamp(24px,3.5vw,44px);
}
.hero-media{min-height:clamp(260px,29vw,360px);}
.hero-media img{width:100%;height:clamp(280px,31vw,380px);max-height:380px;object-fit:cover;}
.page-hero{padding-block:clamp(34px,4.3vw,54px);}
.page-hero .container{max-width:var(--apex-content-standard);}
.page-hero h1{max-width:980px;}
.page-hero p{max-width:760px;}

/* Standard content pages: comfortable reading width and consistent vertical rhythm. */
.site-main > .container{padding-block:var(--apex-space-page);}
.content-prose,
.entry-content,
.page-content{min-width:0;}
.content-prose{max-width:860px;}
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > h2,
.entry-content > h3,
.page-content > p,
.page-content > ul,
.page-content > ol{max-width:840px;}
.entry-content > * + *,
.page-content > * + *{margin-top:1em;}
.entry-content h2,.page-content h2,.content-prose h2{margin-top:1.65em;margin-bottom:.6em;}
.entry-content h2:first-child,.page-content h2:first-child,.content-prose h2:first-child{margin-top:0;}
.entry-content p,.page-content p,.content-prose p{line-height:1.75;}

/* Product/category cards and grids: consistent gaps and useful touch targets. */
.category-grid,.product-grid,.kit-grid,.trust-grid{gap:clamp(14px,1.6vw,20px);}
.category-card,.kit-card,.trust-card{min-width:0;padding:clamp(18px,2vw,24px);}
.product-info{padding:clamp(14px,1.6vw,19px);}
.product-thumb{aspect-ratio:1 / 1;}
.shop-layout{grid-template-columns:minmax(200px,230px) minmax(0,1fr);gap:clamp(20px,2.5vw,30px);}
.shop-results,.shop-results .woocommerce{min-width:0;}
.woocommerce div.product .product_title{font-size:clamp(28px,3vw,40px);line-height:1.15;}
.woocommerce div.product div.images img{max-height:680px;object-fit:contain;}
.woocommerce-tabs,.related.products,.up-sells.upsells{margin-top:clamp(32px,4vw,56px);}

/* Cart, checkout and account pages share the same readable content boundary. */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main{
  width:min(var(--apex-content-standard),calc(100% - (var(--apex-gutter) * 2)));
  max-width:var(--apex-content-standard);
  margin-inline:auto;
  padding:var(--apex-space-page) 0;
}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:clamp(10px,1.4vw,16px);}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select{min-height:44px;}
.cta-band{padding:clamp(24px,3vw,38px);gap:clamp(16px,2vw,26px);}
.site-footer{padding-block:clamp(40px,4.5vw,58px) 20px;}
.footer-grid{gap:clamp(22px,3vw,42px);padding-bottom:clamp(28px,3vw,40px);}

@media(max-width:1050px){
  :root{--apex-space-section:clamp(40px,5vw,56px);--apex-gutter:24px;}
  .hero-inner{min-height:0;}
  .shop-layout{grid-template-columns:minmax(0,1fr);}
  .shop-sidebar{order:2;}
}
@media(max-width:780px){
  :root{--apex-space-section:44px;--apex-space-section-compact:26px;--apex-space-section-spacious:58px;--apex-space-page:28px;--apex-gutter:15px;}
  .hero-inner{grid-template-columns:minmax(0,1fr);padding-block:38px;gap:26px;}
  .hero-media{min-height:0;}
  .hero-media img{height:clamp(220px,58vw,310px);}
  .page-hero{padding-block:34px;}
  .section-heading{align-items:flex-start;}
  .woocommerce-cart .site-main,.woocommerce-checkout .site-main,.woocommerce-account .site-main{width:calc(100% - 30px);padding-block:28px;}
  .single-product .product{gap:26px;}
}
@media(max-width:480px){
  :root{--apex-space-section:36px;--apex-space-section-compact:22px;--apex-space-section-spacious:48px;--apex-space-page:24px;}
  .hero-inner{padding-block:30px;}
  .page-hero{padding-block:28px;}
  .category-card,.kit-card,.trust-card{padding:17px;}
  .cta-band{padding:22px;}
  .woocommerce-cart .site-main,.woocommerce-checkout .site-main,.woocommerce-account .site-main{width:calc(100% - 24px);padding-block:22px;}
}

/* =====================================================================
   ApexFitness locked responsive layout + final brand system
   Brand palette: Apex Red #fa0001, Black #000000, White #ffffff.
   Layout containers are intentionally stable; edit content, not section geometry.
   ===================================================================== */
:root{
  --apex-red:#fa0001;
  --apex-red-dark:#c90001;
  --apex-black:#000000;
  --apex-ink:#111111;
  --apex-white:#ffffff;
  --apex-line:#e5e5e5;
  --apex-soft:#f6f6f6;
  --apex-width:1200px;
  --apex-content-standard:1200px;
  --apex-content-wide:1400px;
  --apex-gutter:clamp(16px,3.2vw,36px);
  --apex-space-section:clamp(48px,5vw,72px);
  --apex-space-section-compact:clamp(32px,3vw,44px);
  --apex-space-section-spacious:clamp(60px,6vw,88px);
}
html,body{max-width:100%;overflow-x:clip}
body{background:#ffffff;color:#111111}
.container,.site-main>.container,.site-main .content-area>.container,.content-area>.container,.woocommerce .site-main>.container,.site-footer>.container,.site-header>.container{width:min(1200px,calc(100% - (var(--apex-gutter)*2)));margin-inline:auto}
/* Fixed responsive rhythm: no arbitrary user-dragged section heights. */
#primary>section.section,#primary>section:not(.hero){height:auto!important;min-height:0!important;max-height:none!important;padding-block:var(--apex-space-section)!important;position:relative;inset:auto!important;transform:none!important}
#primary>section.apex-home-hero,#primary>section.hero{height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;position:relative;inset:auto!important;transform:none!important}
#primary>section>.container{width:min(1200px,calc(100% - (var(--apex-gutter)*2)));max-width:1200px;margin-inline:auto}
#primary>section>.hero-inner{width:min(1200px,calc(100% - (var(--apex-gutter)*2)));max-width:1200px;min-height:clamp(440px,44vw,560px)!important;padding-block:clamp(48px,5.5vw,76px)!important;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);align-items:center;gap:clamp(28px,4vw,56px)}
#primary>section>.container.why-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,56px)}
.hero{background:#000000;color:#ffffff;overflow:hidden}
.hero h1 span{color:#fa0001}
.hero .eyebrow{color:#fa0001}
.hero-media{min-width:0;min-height:0;aspect-ratio:1.12/1;max-height:430px;overflow:hidden;border-radius:16px}
.hero-media img{display:block;width:100%;height:100%!important;min-height:300px;max-height:430px!important;object-fit:cover;border:1px solid rgba(255,255,255,.15);border-radius:16px}
/* Consistent responsive card layouts, independent of editor drag attempts. */
.category-grid,.product-grid,.kit-grid,.trust-grid{min-width:0;align-items:stretch;gap:clamp(14px,1.8vw,22px)}
.category-grid,.product-grid,.kit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.trust-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.category-card,.product-card,.kit-card,.trust-card{min-width:0;max-width:100%;height:100%;box-sizing:border-box}
.category-card{min-height:230px;padding:clamp(18px,2vw,25px)}
.product-card{overflow:hidden}
.product-thumb{width:100%;aspect-ratio:1/1;overflow:hidden}
.product-thumb img{width:100%;height:100%;object-fit:contain}
.kit-card img{width:100%;height:auto;max-height:260px;object-fit:contain}
.why-image{min-width:0;overflow:hidden;border-radius:16px}
.why-image img{display:block;width:100%;height:clamp(260px,32vw,420px);max-height:420px;object-fit:cover}
.section-heading{align-items:flex-end;gap:24px;margin-bottom:clamp(24px,3vw,36px)}
.section-heading>div{min-width:0}
.section-heading p{max-width:680px}
/* Exact interaction requested: Shop Now turns white on hover, like Explore Starter. */
.hero-actions .button:not(.secondary),
.hero .button:not(.secondary),
.button,input[type=submit],.wp-block-button__link{background:#fa0001!important;color:#ffffff!important;border:1px solid #fa0001!important;border-radius:7px;box-shadow:none;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.hero-actions .button:not(.secondary):hover,
.hero .button:not(.secondary):hover,
.button:not(.secondary):hover,input[type=submit]:hover,.wp-block-button__link:hover,
.button:not(.secondary):focus-visible,input[type=submit]:focus-visible,.wp-block-button__link:focus-visible{background:#ffffff!important;color:#fa0001!important;border-color:#ffffff!important;box-shadow:0 0 0 2px #fa0001!important;transform:translateY(-1px)}
.hero .button.secondary{background:transparent!important;color:#ffffff!important;border:1px solid #ffffff!important;box-shadow:none}
.hero .button.secondary:hover,.hero .button.secondary:focus-visible{background:#ffffff!important;color:#000000!important;border-color:#ffffff!important;box-shadow:none!important}
.button.secondary{background:transparent!important;color:inherit;border:1px solid currentColor}
.button.secondary:hover{background:#ffffff!important;color:#fa0001!important;border-color:#ffffff!important}
.primary-navigation a:hover,.primary-navigation .current-menu-item>a,.text-link,.product-category,.eyebrow{color:#fa0001}
.site-header{background:#000000;border-bottom:3px solid #fa0001}
.primary-navigation a{color:#ffffff}
.primary-navigation a:hover,.primary-navigation .current-menu-item>a{color:#fa0001}
.section.soft{background:#f6f6f6}
.section.dark{background:#000000;color:#ffffff}
.category-icon{background:#fa0001;color:#ffffff}
.category-card:hover,.product-card:hover,.kit-card:hover,.trust-card:hover{border-color:#fa0001}
.cta-band{background:#000000;border:1px solid #222222;border-left:5px solid #fa0001;border-radius:10px}
.page-hero{background:#000000;border-bottom:4px solid #fa0001}
.site-footer{background:#000000;color:#ffffff;border-top:4px solid #fa0001}
.footer-grid h3:after{background:#fa0001}
.footer-social-link:hover,.footer-social-link:focus-visible{background:#fa0001;border-color:#fa0001;color:#ffffff!important}
.woocommerce span.onsale,.woocommerce nav.woocommerce-pagination ul li span.current{background:#fa0001}
.woocommerce div.product p.price,.woocommerce div.product span.price,.woocommerce-message:before,.woocommerce-info:before{color:#fa0001}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:#fa0001}
::selection{background:#fa0001;color:#ffffff}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #fa0001;outline-offset:3px}
@media(max-width:1050px){
  :root{--apex-gutter:24px;--apex-space-section:52px;--apex-space-section-compact:30px;--apex-space-section-spacious:64px}
  #primary>section>.hero-inner{min-height:0!important;gap:28px}
  .category-grid,.product-grid,.kit-grid,.trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-media{aspect-ratio:1/1;max-height:390px}
  .hero-media img{min-height:260px;max-height:390px!important}
}
@media(max-width:780px){
  :root{--apex-gutter:18px;--apex-space-section:42px;--apex-space-section-compact:26px;--apex-space-section-spacious:54px}
  #primary>section>.hero-inner{grid-template-columns:minmax(0,1fr);min-height:0!important;padding-block:38px!important;gap:26px}
  #primary>section>.container.why-grid{grid-template-columns:minmax(0,1fr);gap:26px}
  .hero h1{font-size:clamp(38px,9vw,56px);line-height:1.02}
  .hero-media{aspect-ratio:16/10;max-height:360px}
  .hero-media img{height:100%!important;min-height:0;max-height:360px!important}
  .section-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .section-heading .text-link{white-space:normal}
  .category-card{min-height:210px}
  .why-image img{height:clamp(230px,58vw,340px)}
}
@media(max-width:480px){
  :root{--apex-gutter:14px;--apex-space-section:34px;--apex-space-section-compact:22px;--apex-space-section-spacious:46px}
  #primary>section>.hero-inner{padding-block:30px!important;gap:22px}
  .hero h1{font-size:clamp(34px,10vw,46px)}
  .hero-copy{font-size:15px}
  .hero-actions{gap:10px;margin-block:22px}
  .hero-actions .button{min-height:46px;padding:12px 17px}
  .hero-media{aspect-ratio:4/3;max-height:300px}
  .hero-media img{max-height:300px!important}
  .category-grid,.product-grid,.trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kit-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .category-card,.trust-card{padding:14px;min-height:0}
  .category-icon{width:38px;height:38px;margin-bottom:14px}
  .category-card h3,.trust-card h3{font-size:14px}
  .category-card p,.trust-card p{font-size:12px}
  .product-info{padding:11px}
  .product-info h3{font-size:13px}
  .product-meta{align-items:flex-start;flex-direction:column;gap:8px}
  .product-card .button{padding:9px 10px;font-size:10px}
  .section-heading h2,.section h2{font-size:clamp(26px,7vw,32px)}
  .cta-band{padding:22px}
}


/* ApexFitness layout fix: keep shared footer at the bottom on short non-home pages. */
body:not(.home) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:not(.home) > #page,
body:not(.home) > .site,
body:not(.home) > .site-container {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}
body:not(.home) main#primary,
body:not(.home) main,
body:not(.home) .apex-woocommerce-main {
  flex: 1 0 auto;
}
body:not(.home) footer.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}
