/*
Theme Name: Boss Engine
Theme URI: https://bossengine.ie
Author: Boss Car Parts
Description: Lightweight, responsive WordPress/WooCommerce theme replicating the Boss Car Parts (bossengine.ie) design. Every image and text block is editable in Appearance > Customize > Boss Car Parts.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: boss-engine
*/
:root{--accent:#f4671d;--dark:#0f0f0f;--grey:#f1eff0;--text:#111;--muted:#777;--w:1140px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Manrope',system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.1;font-weight:800}
p{margin:0 0 1em}
.wrap{max-width:var(--w);margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute;left:-9999px}

/* Header */
.site-header{background:var(--dark);border-bottom:1px solid #2a2a2a;position:relative;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:130px}
.logo{display:block;line-height:0}
.logo img,.custom-logo{width:88px;height:88px;object-fit:cover;background:#000}
.logo-text{display:flex;align-items:center;justify-content:center;width:88px;height:88px;background:#000;color:#e0201b;font-weight:800;letter-spacing:2px}
.hdr-right{display:flex;align-items:center;gap:28px}
.nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0}
.nav a{color:#fff;font-weight:700;font-size:15px;transition:color .2s}
.nav a:hover,.nav a.active,.nav .current-menu-item>a,.nav .current_page_item>a{color:var(--accent)}
.cart{position:relative;color:#fff;display:flex;width:24px;height:24px}
.cart svg{width:24px;height:24px}
.cart-count{position:absolute;right:-8px;bottom:-6px;background:var(--accent);color:#fff;font-size:9px;font-weight:700;width:14px;height:14px;line-height:14px;border-radius:50%;text-align:center}
.nav-toggle{display:none;background:none;border:0;padding:6px;cursor:pointer;width:34px}
.nav-toggle span{display:block;height:2px;background:#fff;margin:6px 0;transition:.25s}

/* Page banner */
.banner{background:#1a1a1a;color:#fff;text-align:center;padding:90px 0;min-height:268px;display:flex;align-items:center}
.banner .wrap{width:100%}
.banner h1{font-size:52px;font-weight:800;line-height:1.1}
.crumb{margin-top:18px;font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.crumb i{font-style:normal;margin:0 4px}

/* Hero */
.hero{position:relative;min-height:383px;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;background:#1a1a1a;overflow:hidden}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.55)}
.hero .in{position:relative;z-index:2;padding:40px 20px;max-width:960px}
.hero h1{font-size:42px;line-height:1.15}
.hero p{margin:22px 0 0;font-size:14px;text-transform:uppercase;color:#cfcfcf;letter-spacing:.2px}

/* Sections */
.sec{padding:80px 0}
.sec-title{font-size:38px;text-align:center}
.sec-sub{text-align:center;color:var(--muted);margin-top:12px;font-size:14px}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin-top:50px}
.card{background:var(--grey);box-shadow:0 10px 30px rgba(0,0,0,.08);text-align:center;display:flex;flex-direction:column}
.card-img{aspect-ratio:3/2;background:#2a2a2a;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-body{padding:26px 20px 34px}
.card h3{font-size:20px}
.card .tag{font-size:11px;color:#888;margin:6px 0 18px}
.card-body p,.card-body li{font-size:12.5px;color:var(--muted);line-height:1.7}
.card-body h4{font-size:17px;margin:18px 0 10px;color:#111}
.card-body .big{font-size:17px;font-weight:800;color:#111;line-height:1.3}
.card-body ul{list-style:none;margin:0 0 10px;padding:0}

/* About / posts / map / contact */
.about{padding:110px 0 70px;text-align:center}
.about p{color:var(--muted);max-width:760px;margin:16px auto 0}
.fb{display:flex;justify-content:center;margin-top:30px;overflow:hidden}
.fb iframe{border:0;max-width:100%}
.map iframe{display:block;width:100%;height:400px;border:0}
.contact{text-align:left}
.contact .sec-title{text-align:center;margin-bottom:46px}
.contact h4{font-size:18px;margin-bottom:18px}
.contact p{color:var(--muted);margin-bottom:22px}

/* Products */
.products{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:46px}
.product-card .pimg{aspect-ratio:1;background:#eee;overflow:hidden;display:block}
.product-card .pimg img{width:100%;height:100%;object-fit:cover}
.product-card h3{font-size:15px;margin:14px 0 4px;line-height:1.35}
.product-card .cat,.product-card .price{font-size:13px;color:var(--muted);display:block;margin-bottom:4px}
.product-card .meta{text-align:center;font-size:14px;color:#555;margin-top:12px;line-height:1.6}
.product-card .meta b{font-weight:500}

/* Services page */
.svc{background:var(--grey)}
.svc-intro{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding-top:120px}
.eyebrow{font-size:13px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:14px;display:block}
.svc-intro h2{font-size:56px;line-height:1.02}
.svc-intro p{color:var(--muted);font-size:17px;line-height:1.7;max-width:460px;padding-top:40px}
.icons{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:60px 0 0;text-align:center}
.icon-item{display:flex;flex-direction:column;align-items:center}
.icon-item .ic{width:72px;height:72px;display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.icon-item .ic img,.icon-item .ic svg{max-width:100%;max-height:100%;width:72px;height:72px;object-fit:contain}
.icon-item span.l{font-size:20px;font-weight:800;line-height:1.3;max-width:230px}
.icon-item .ar{margin-top:20px;font-size:20px}
.ben{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:100px;max-width:1260px;margin:0 auto;padding:130px 20px 100px;align-items:center}
.ben-imgs{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.ben-imgs div{aspect-ratio:284/470;background:#2a2a2a;overflow:hidden}
.ben-imgs img{width:100%;height:100%;object-fit:cover}
.ben h2{font-size:52px;line-height:1.1;margin-bottom:22px}
.ben p{color:var(--muted);font-size:16px;line-height:1.8}
.ben ul{list-style:none;margin:18px 0 34px;padding:0}
.ben li{position:relative;padding-left:30px;margin-bottom:12px;font-size:16px}
.ben li:before{content:"";position:absolute;left:2px;top:6px;width:12px;height:6px;border-left:2.5px solid #2b7bd6;border-bottom:2.5px solid #2b7bd6;transform:rotate(-45deg)}
.btn{display:inline-block;background:var(--accent);color:#fff;font-size:13px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;padding:20px 40px;transition:filter .2s}
.btn:hover{filter:brightness(.92)}
.brands{background:#fff;padding:90px 0 100px;text-align:center}
.brands h2{font-size:32px}
.brand-row{display:grid;grid-template-columns:repeat(6,1fr);gap:30px;align-items:center;margin-top:70px}
.brand-row img{margin:0 auto;max-height:64px;width:auto;filter:grayscale(1);opacity:.55}
.click{background:var(--grey);height:44px}
.click a{display:inline-block;background:#6b7280;color:#fff;font-size:14px;padding:10px 24px;border-radius:2px}

/* Footer */
.site-footer{background:#1a1a1a;padding:40px 0}
.site-footer .wrap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:140px}
.credit{color:#8a8a8a;font-size:14px}
.flogo img,.flogo .logo-text{width:152px;height:152px;object-fit:cover;margin:0 auto;font-size:22px}
.wa{position:fixed;right:20px;bottom:76px;display:flex;align-items:center;gap:8px;z-index:60}
.wa .tip{background:#fff;font-size:11px;line-height:1.35;padding:10px 12px;width:156px;box-shadow:0 2px 12px rgba(0,0,0,.2);color:#333}
.wa .c{width:56px;height:56px;border-radius:50%;background:#25d366;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.wa svg{width:32px;height:32px}
.totop{position:fixed;right:20px;bottom:20px;width:42px;height:42px;border-radius:50%;background:#000;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:60}
.totop svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2}

/* Generic content + WooCommerce */
.entry{padding:70px 0}
.entry .wrap>*{max-width:860px}
.entry h2,.entry h3{margin:1.2em 0 .5em}
.entry p,.entry li{color:#444;line-height:1.8}
.post-item{margin-bottom:40px}
.woocommerce .button,.woocommerce button.button,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce #respond input#submit{background:var(--accent)!important;color:#fff!important;border-radius:0!important;font-weight:800}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:var(--text)}
.woocommerce-page .entry .wrap>*{max-width:none}

/* Responsive */
@media(max-width:991px){
 .nav-toggle{display:block}
 .site-header .wrap{min-height:126px}
 .logo img,.custom-logo,.logo-text{width:80px;height:80px}
 .nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--dark);border-top:1px solid #2a2a2a;padding:10px 20px 20px}
 .site-header.open .nav{display:block}
 .nav ul{flex-direction:column;gap:0}
 .nav li a{display:block;padding:14px 0;border-bottom:1px solid #222}
 .hdr-right{gap:20px}
 .site-header.open .nav-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)}
 .site-header.open .nav-toggle span:nth-child(2){opacity:0}
 .site-header.open .nav-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
 .cards{grid-template-columns:repeat(2,1fr)}
 .products{grid-template-columns:repeat(2,1fr)}
 .svc-intro{grid-template-columns:1fr;padding-top:80px}
 .svc-intro h2{font-size:42px}
 .svc-intro p{padding-top:0;max-width:none}
 .icons{grid-template-columns:repeat(2,1fr);gap:40px 20px}
 .ben{grid-template-columns:1fr;gap:50px;padding:80px 20px}
 .ben h2{font-size:40px}
 .brand-row{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
 .hero{min-height:380px}
 .hero h1{font-size:24px}
 .hero p{font-size:17px;margin-top:26px}
 .sec{padding:60px 0}
 .sec-title{font-size:28px}
 .cards,.products{grid-template-columns:1fr}
 .banner{padding:60px 0;min-height:200px}
 .banner h1{font-size:36px}
 .svc-intro h2{font-size:34px}
 .ben h2{font-size:32px}
 .brands h2{font-size:26px}
 .map iframe{height:300px}
 .site-footer .wrap{grid-template-columns:1fr;gap:20px;text-align:center}
 .flogo{order:-1}
 .wa .tip{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* ===== Shop ===== */
.boss-wide .site-header .wrap{max-width:none;padding:0 25px}
.boss-wide .site-footer .wrap{max-width:none;padding:0 40px}
.shop{padding:95px 0 90px}
.shop .shop-wrap{display:grid;grid-template-columns:268px minmax(0,1fr);gap:39px;padding:0 40px;max-width:none}
.filters-toggle{display:none}
.filters details{border:0}
.filters summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:16px;padding:0}
.filters summary::-webkit-details-marker{display:none}
.filters summary::after{content:"+";font-weight:300;font-size:28px;line-height:1;color:#333}
.filters details[open]>summary::after{content:"\2013"}
.filters details{padding:0 0 30px}
.filters details+details{padding-top:0;margin-top:0}
.filters .fbody{margin-top:14px}
.filters input[type=search]{width:100%;border:0;border-bottom:1px solid #ddd;padding:6px 0 14px;font:inherit;font-size:15px;outline:0;border-radius:0;background:transparent}
.filters label{display:block;font-size:14px;color:#444;padding:5px 0;cursor:pointer}
.filters label em{font-style:normal;color:#999;font-size:12px}
.filters input[type=checkbox],.filters input[type=radio]{accent-color:var(--accent);margin-right:6px}
.prange{display:flex;gap:8px;align-items:center}
.prange input{width:100%;border:1px solid #ddd;padding:8px;font:inherit;font-size:14px;min-width:0}
.factions{display:flex;align-items:center;gap:16px;margin-top:6px}
.filters .apply{display:none;border:0;cursor:pointer;padding:14px 26px}
.filters .reset{font-size:13px;color:var(--muted);text-decoration:underline}
.shop-bar{display:flex;justify-content:space-between;align-items:center;margin:0 0 26px;gap:16px;flex-wrap:wrap}
.shop-bar .woocommerce-result-count{margin:0;color:#8a8a8a;font-size:14px}
.shop-bar .woocommerce-ordering{margin:0}
.shop-bar select{border:0;background:transparent;font:inherit;font-size:14px;font-weight:600;color:#222;cursor:pointer;padding:4px 0}
.shop-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:50px 30px}
.shop-card{position:relative;min-width:0}
.shop-card .pimg{display:block;position:relative;aspect-ratio:1;background:#eee;overflow:hidden}
.shop-card .pimg img{width:100%;height:100%;object-fit:cover}
.shop-card h3{font-size:17px;line-height:1.45;margin:16px 0 6px;font-weight:700}
.shop-card .cat{display:block;font-size:14px;color:#7a7a7a;margin-bottom:5px}
.shop-card .price{display:block;font-size:16px;color:#666;margin-bottom:12px}
.shop-card .price del{opacity:.6;margin-right:8px}
.shop-card .price ins{text-decoration:none}
.chips>div{margin-bottom:10px}
.chip{display:inline-block;background:var(--grey);border:1px solid #ddd;color:#777;font-size:12.5px;line-height:1.3;padding:4px 8px;margin:0 4px 0 0}
.sale-badge{position:absolute;top:15px;left:15px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;padding:5px 9px;z-index:2}
.pager{margin-top:70px}
.pager ul{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pager .page-numbers{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border:1px solid #ddd;border-radius:50%;font-weight:800;font-size:15px;transition:.2s}
.pager a.page-numbers:hover{border-color:#111}
.pager .current{background:#111;border-color:#111;color:#fff}
.pager .dots{border:0;width:auto;padding:0 6px}
.no-res{color:var(--muted)}

/* ===== Contact ===== */
.contact-page{padding:90px 0}
.ct-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:70px;align-items:start}
.ct-info h2{font-size:38px;margin-bottom:18px}
.ct-info h4{font-size:18px;margin:26px 0 8px}
.ct-info p{color:var(--muted);margin:0 0 6px}
.ct-info a:not(.btn){color:var(--text);font-weight:700}
.ct-info .btn{margin-top:28px;background:#25d366}
.ct-form{background:var(--grey);padding:40px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.ct-form label{display:block;font-size:13px;font-weight:700;margin-bottom:18px}
.ct-form input[type=text],.ct-form input[type=email],.ct-form input[type=tel],.ct-form textarea{display:block;width:100%;margin-top:6px;border:1px solid #d9d6d8;background:#fff;padding:13px 14px;font:inherit;font-size:15px;font-weight:400;border-radius:0}
.ct-form input:focus,.ct-form textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.ct-form .row2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ct-form .consent{font-weight:400;color:var(--muted);font-size:13px}
.ct-form .consent input{accent-color:var(--accent);margin-right:8px}
.ct-form .btn{border:0;cursor:pointer}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.notice{padding:14px 18px;margin-bottom:24px;font-size:14px;font-weight:600}
.notice.ok{background:#e6f6ec;color:#146c35;border-left:4px solid #25d366}
.notice.bad{background:#fdeceb;color:#a1241b;border-left:4px solid #d63638}

@media(max-width:1199px){.shop-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:991px){
 .shop{padding:50px 0 60px}
 .shop .shop-wrap{grid-template-columns:1fr;gap:0;padding:0 20px}
 .filters-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;background:#111;color:#fff;border:0;font:inherit;font-weight:800;font-size:15px;padding:16px 20px;cursor:pointer;margin-bottom:0}
 .filters-toggle:after{content:"+";font-size:22px;font-weight:300}
 .filters-toggle[aria-expanded=true]:after{content:"\2013"}
 .shop-side{display:none;background:var(--grey);padding:24px 20px 4px;margin-bottom:10px}
 .shop.show-filters .shop-side{display:block}
 .filters .apply{display:inline-block}
 .shop-bar{margin:24px 0 22px}
 .shop-grid{grid-template-columns:repeat(2,1fr);gap:36px 20px}
 .pager .page-numbers{width:44px;height:44px}
 .ct-grid{grid-template-columns:1fr;gap:40px}
 .contact-page{padding:60px 0}
}
@media(max-width:560px){
 .shop-grid{grid-template-columns:1fr}
 .shop-card h3{font-size:18px}
 .pager{margin-top:44px}
 .pager ul{justify-content:center}
 .ct-form{padding:24px 18px}
 .ct-form .row2{grid-template-columns:1fr;gap:0}
 .ct-info h2{font-size:30px}
}

/* ===== About page ===== */
.footer-credit a,.credit a{color:#bdbdbd;text-decoration:underline}
.about-pg{background:var(--grey)}
.ab-row{display:grid;grid-template-columns:1fr 1fr;gap:30px;max-width:1260px;margin:0 auto;padding:0 20px;align-items:center}
.ab-row.first{padding-top:120px}
.ab-img{aspect-ratio:3/2;background:#2a2a2a;overflow:hidden}
.ab-img img{width:100%;height:100%;object-fit:cover}
.ab-text h2{font-size:46px;line-height:1.1;margin-bottom:38px}
.ab-text p{font-size:15px;color:var(--muted);line-height:1.85;margin-bottom:22px}
.ab-text strong{color:#555}
.ab-text ul{margin:0 0 22px;padding-left:20px;color:var(--muted);font-size:15px;line-height:1.85}
.ab-row.l .ab-text{text-align:right;padding:0 0 0 0}
.ab-row.l .ab-text ul{text-align:left;display:inline-block}
.ab-row.r .ab-text{padding-left:105px}
.ab-brands{padding-top:90px;padding-bottom:110px}
.ab-brands .brand-row{margin-top:0}
.ab-contact{display:grid;grid-template-columns:1fr 1fr;min-height:780px;background:#fff}
.ab-contact .img{position:relative;background:#2a2a2a;overflow:hidden}
.ab-contact .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ab-contact .box{padding:90px 90px 90px 104px;display:flex;flex-direction:column;justify-content:center;max-width:720px}
.eyebrow.sm{font-size:11px;margin-bottom:12px}
.ab-contact h2{font-size:46px;line-height:1.05;margin-bottom:56px}
.uf .g2{display:grid;grid-template-columns:1fr 1fr;gap:0 40px}
.uf input[type=text],.uf input[type=email],.uf input[type=tel],.uf textarea{display:block;width:100%;border:0;border-bottom:1px solid #ddd;background:transparent;padding:14px 0 10px;margin-bottom:22px;font:inherit;font-size:13px;color:#222;border-radius:0;resize:vertical}
.uf input:focus,.uf textarea:focus{outline:0;border-bottom-color:var(--accent)}
.uf ::placeholder{color:#8a8a8a}
.uf .consent{display:block;font-size:11.5px;color:#8a8a8a;margin:6px 0 34px}
.uf .consent input{accent-color:var(--accent);margin-right:8px;vertical-align:middle}
.uf .consent a,.uf .consent u{color:#8a8a8a;text-decoration:underline}
.uf .btn{border:0;cursor:pointer;padding:18px 28px;font-size:12px;display:inline-flex;align-items:center;gap:10px}
@media(max-width:991px){
 .ab-row,.ab-row.first{grid-template-columns:1fr;gap:26px;padding-top:0;margin-bottom:50px}
 .ab-row.first{padding-top:60px}
 .ab-row.l .ab-img{order:-1}
 .ab-row.l .ab-text,.ab-row.r .ab-text{text-align:left;padding:0}
 .ab-text h2{font-size:34px;margin-bottom:22px}
 .ab-brands{padding-top:20px;padding-bottom:70px}
 .brand-row{grid-template-columns:repeat(3,1fr);gap:30px 20px}
 .ab-contact{grid-template-columns:1fr;min-height:0}
 .ab-contact .img{height:300px}
 .ab-contact .box{padding:56px 20px;max-width:none}
 .ab-contact h2{font-size:34px;margin-bottom:34px}
}
@media(max-width:560px){.uf .g2{grid-template-columns:1fr}}
