/*
Theme Name: Safari Spares Redesign
Theme URI: https://safarispares.co.ke
Author: Shift Elematics
Author URI: https://shiftelematics.co.ke
Description: Dark, editorial-industrial redesign for Safari Spares — Kenya's auto parts destination. Built for WooCommerce, Contact Form 7, and standard WordPress blogging. Same menu structure as before, entirely new template layer.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: safarispares
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Barlow+Condensed:wght@700;800;900&display=swap');

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root{
  --ink:        #0a0a0a;
  --ink-soft:   #0d0d0d;
  --ink-card:   #111111;
  --ink-panel:  #080808;
  --line:       rgba(255,255,255,0.08);
  --line-soft:  rgba(255,255,255,0.05);
  --white:      #ffffff;
  --white-70:   rgba(255,255,255,0.82);
  --white-60:   rgba(255,255,255,0.75);
  --white-50:   rgba(255,255,255,0.65);
  --white-40:   rgba(255,255,255,0.55);
  --white-30:   rgba(255,255,255,0.45);
  --orange:     #f97316;
  --orange-dark:#ea580c;
  --orange-10:  rgba(249,115,22,0.10);
  --orange-20:  rgba(249,115,22,0.20);
  --whatsapp:   #25D366;
  --whatsapp-dk:#20b958;
  --radius-lg:  22px;
  --radius-md:  16px;
  --radius-sm:  10px;
  --container:  1280px;
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Inter', sans-serif;
}

html{ scroll-behavior:smooth; }
body{
  background:var(--ink) !important;
  color:var(--white-70);
  font-family:var(--font-body);
  margin:0; padding:0;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:800; color:var(--white); margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
::selection{ background:var(--orange); color:#fff; }
::-webkit-scrollbar{ width:6px; }
::-webkit-scrollbar-track{ background:var(--ink); }
::-webkit-scrollbar-thumb{ background:var(--orange); border-radius:3px; }

.eyebrow{
  color:var(--orange); font-size:.82rem; font-weight:700;
  letter-spacing:.15em; text-transform:uppercase; display:block; margin-bottom:10px;
}
.btn-orange{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  background:var(--orange); color:#fff !important; font-weight:800; font-size:.9rem;
  padding:13px 26px; border-radius:12px; transition:.2s; border:none;
}
.btn-orange:hover{ background:var(--orange-dark); transform:translateY(-2px); box-shadow:0 10px 24px rgba(249,115,22,.35); }
.btn-outline{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  border:1px solid var(--line); color:var(--white); font-weight:700; font-size:.9rem;
  padding:12px 24px; border-radius:12px; transition:.2s; background:rgba(255,255,255,.03);
}
.btn-outline:hover{ background:rgba(255,255,255,.08); border-color:rgba(249,115,22,.4); }
.btn-whatsapp{
  display:inline-flex; align-items:center; gap:10px; justify-content:center;
  background:var(--whatsapp); color:#fff !important; font-weight:800; font-size:1rem;
  padding:15px 28px; border-radius:14px; transition:.2s;
}
.btn-whatsapp:hover{ background:var(--whatsapp-dk); transform:translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#masthead{
  position:sticky; top:0; z-index:9999;
  background:rgba(10,10,10,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
  padding:14px 0; transition:.3s;
}
.ss-nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.ss-logo{ display:flex; align-items:center; gap:12px; }
.ss-logo-text{ font-family:var(--font-head); font-size:1.4rem; font-weight:800; color:var(--white); line-height:1; text-transform:uppercase; }
.ss-logo-text span{ color:var(--orange); }
.ss-logo-sub{ color:var(--white-30); font-size:.65rem; margin-top:2px; }
.ss-logo img.custom-logo{ max-height:44px; width:auto; }

.ss-nav-menu{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.ss-nav-menu li a{ color:var(--white-50); font-size:.88rem; font-weight:500; transition:.2s; }
.ss-nav-menu li a:hover, .ss-nav-menu li.current-menu-item > a{ color:var(--orange); }
.ss-nav-menu li.menu-item-has-children{ position:relative; }
.ss-nav-menu .sub-menu{
  list-style:none; margin:0; padding:8px; position:absolute; top:100%; left:0;
  background:var(--ink-card); border:1px solid var(--line); border-radius:10px;
  min-width:190px; opacity:0; visibility:hidden; transform:translateY(6px); transition:.2s;
  box-shadow:0 20px 40px rgba(0,0,0,.4);
}
.ss-nav-menu li.menu-item-has-children:hover .sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.ss-nav-menu .sub-menu a{ display:block; padding:8px 10px; border-radius:6px; font-size:.85rem; }
.ss-nav-menu .sub-menu a:hover{ background:rgba(249,115,22,.08); }

.ss-nav-actions{ display:flex; align-items:center; gap:16px; }
.ss-nav-phone{ display:flex; align-items:center; gap:8px; color:var(--white-50); font-size:.88rem; }
.ss-nav-phone svg{ width:16px; height:16px; color:var(--orange); }
.ss-nav-phone:hover{ color:var(--white); }
.ss-nav-cta{
  background:var(--orange); color:#fff !important; font-weight:700; font-size:.86rem;
  padding:10px 20px; border-radius:10px; transition:.2s;
}
.ss-nav-cta:hover{ background:var(--orange-dark); transform:translateY(-1px); }

.ss-menu-toggle{ display:none; background:none; border:none; padding:8px; cursor:pointer; }
.ss-menu-toggle span{ display:block; width:24px; height:2px; background:#fff; margin:5px 0; transition:.3s; }

.ss-mobile-menu{ display:none; }
.ss-mobile-menu.is-open{
  display:block; background:rgba(10,10,10,.98); border-top:1px solid var(--line-soft);
  padding:16px 24px 24px;
}
.ss-mobile-menu ul{ list-style:none; margin:0; padding:0; }
.ss-mobile-menu li a{ display:block; padding:12px 0; color:var(--white-70); font-weight:600; border-bottom:1px solid var(--line-soft); }
.ss-mobile-menu .ss-nav-cta{ display:block; text-align:center; margin-top:14px; }

@media (max-width: 992px){
  .ss-nav-menu, .ss-nav-actions .ss-nav-phone{ display:none; }
  .ss-menu-toggle{ display:block; }
}

/* ============================================================
   HERO
   ============================================================ */
#ss-hero{ position:relative; min-height:92vh; display:flex; align-items:center; overflow:hidden; }
.ss-hero-slide{ position:absolute; inset:0; opacity:0; transition:opacity 1.2s ease; }
.ss-hero-slide.is-active{ opacity:1; }
.ss-hero-slide img{ width:100%; height:100%; object-fit:cover; }
.ss-hero-slide::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(10,10,10,.97) 10%, rgba(10,10,10,.75) 55%, rgba(10,10,10,.25) 100%),
             linear-gradient(0deg, rgba(10,10,10,.9), transparent 40%);
}
.ss-hero-grid{
  position:absolute; inset:0; opacity:.05; pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px);
  background-size:60px 60px;
}
.ss-hero-content{ position:relative; z-index:3; max-width:var(--container); margin:0 auto; padding:120px 24px 60px; width:100%; }
.ss-hero-badge{
  display:inline-flex; align-items:center; gap:8px; background:var(--orange-10);
  border:1px solid var(--orange-20); border-radius:999px; padding:7px 16px; margin-bottom:22px;
}
.ss-hero-badge span.dot{ width:8px; height:8px; border-radius:50%; background:var(--orange); }
.ss-hero-badge span.txt{ color:var(--orange); font-size:.82rem; font-weight:600; letter-spacing:.02em; }
.ss-hero-title{ font-size:5.5rem; line-height:.95; margin-bottom:22px; text-transform:uppercase; }
.ss-hero-title .accent{ color:var(--orange); position:relative; }
.ss-hero-sub{ color:var(--white-50); font-size:1.1rem; line-height:1.7; max-width:560px; margin-bottom:32px; }
.ss-hero-btns{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:48px; }
.ss-hero-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; max-width:640px; }
.ss-stat{ text-align:center; border:1px solid var(--line); border-radius:12px; padding:14px 8px; background:rgba(255,255,255,.04); }
.ss-stat-num{ font-family:var(--font-head); font-size:1.7rem; font-weight:800; color:var(--orange); }
.ss-stat-label{ color:var(--white-40); font-size:.72rem; margin-top:2px; }

@media (max-width:1024px){ .ss-hero-title{ font-size:4rem; } }
@media (max-width:768px){
  #ss-hero{ min-height:auto; padding-top:20px; }
  .ss-hero-content{ padding:96px 20px 56px; text-align:center; }
  .ss-hero-title{ font-size:2.7rem; }
  .ss-hero-sub{ margin:0 auto 28px; }
  .ss-hero-btns{ justify-content:center; }
  .ss-hero-stats{ grid-template-columns:repeat(2,1fr); margin:0 auto; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.ss-trust-bar{ background:var(--ink-card); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.ss-trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-soft); }
.ss-trust-item{ display:flex; align-items:center; gap:14px; background:var(--ink-card); padding:22px 24px; transition:.2s; }
.ss-trust-item:hover{ background:rgba(255,255,255,.03); }
.ss-trust-item svg{ width:24px; height:24px; color:var(--orange); flex-shrink:0; }
.ss-trust-title{ color:var(--white); font-weight:600; font-size:.9rem; }
.ss-trust-sub{ color:var(--white-40); font-size:.76rem; margin-top:2px; }
@media (max-width:768px){ .ss-trust-grid{ grid-template-columns:repeat(2,1fr); } }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.ss-section{ padding:96px 0; }
.ss-section-hd{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:52px; }
.ss-h2{ font-size:2.9rem; text-transform:uppercase; line-height:1.05; }
.ss-h2 .accent{ color:var(--orange); }
.ss-section-note{ color:var(--white-50); max-width:340px; text-align:right; line-height:1.6; }
@media (max-width:768px){ .ss-section{ padding:56px 0; } .ss-h2{ font-size:2.1rem; } .ss-section-note{ text-align:left; } }

/* ============================================================
   CATEGORIES
   ============================================================ */
.ss-cats-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.ss-cat-card{
  position:relative; overflow:hidden; border-radius:18px; padding:22px; min-height:230px;
  display:flex; flex-direction:column; justify-content:flex-end;
  border:1px solid var(--line); background:#1a1a1a center/cover no-repeat;
  transition:.25s;
}
.ss-cat-card::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(10,10,10,.94) 12%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.15) 100%);
}
.ss-cat-card:hover{ transform:translateY(-4px); border-color:rgba(249,115,22,.4); }
.ss-cat-card > *{ position:relative; z-index:1; }
.ss-cat-name{ color:var(--white); font-weight:700; font-size:1.08rem; margin-bottom:6px; }
.ss-cat-sub{ color:var(--white-50); font-size:.86rem; line-height:1.55; margin-bottom:18px; }
.ss-cat-foot{ display:flex; align-items:center; justify-content:space-between; }
.ss-cat-count{ color:var(--orange); font-size:.72rem; font-weight:700; }
.ss-cat-link{ color:var(--white-40); font-size:.84rem; display:flex; align-items:center; gap:5px; }
@media (max-width:900px){ .ss-cats-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .ss-cats-grid{ grid-template-columns:1fr; } }

/* ============================================================
   WHY US
   ============================================================ */
#ss-whyus{ background:var(--ink-soft); position:relative; }
.ss-why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:56px; }
.ss-why-card{ position:relative; border:1px solid var(--line); border-radius:18px; padding:32px; background:rgba(255,255,255,.03); transition:.25s; }
.ss-why-card:hover{ transform:translateY(-4px); background:rgba(255,255,255,.05); }
.ss-why-num{ position:absolute; top:12px; right:20px; font-family:var(--font-head); font-size:4.2rem; font-weight:800; color:var(--orange); opacity:.08; }
.ss-why-card svg{ width:30px; height:30px; color:var(--orange); margin-bottom:18px; }
.ss-why-title{ color:var(--white); font-size:1.15rem; font-weight:700; margin-bottom:10px; }
.ss-why-desc{ color:var(--white-50); line-height:1.6; font-size:.92rem; }
.ss-brands-box{ border:1px solid var(--line); border-radius:18px; padding:30px; text-align:center; }
.ss-brands-label{ color:var(--white-30); font-size:.74rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:20px; }
.ss-brands-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.ss-brand-pill{ background:rgba(255,255,255,.05); border:1px solid var(--line); border-radius:10px; padding:9px 18px; color:var(--white-50); font-size:.86rem; font-weight:600; }
@media (max-width:900px){ .ss-why-grid{ grid-template-columns:1fr; } }

./* ============================================================
   FEATURED PRODUCTS (Homepage) — responsive fix
   ============================================================ */
.ss-prod-grid{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:18px !important;
  width:100% !important;
}

.ss-prod-card{
  background:var(--ink-card);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  transition:.25s;
  display:flex;
  flex-direction:column;
  min-width:0;              /* critical: stops grid blowout */
  text-decoration:none !important;
  color:inherit;
}

.ss-prod-card:hover{
  transform:translateY(-4px);
  border-color:rgba(249,115,22,.35);
}

.ss-prod-img{
  position:relative;
  height:180px;
  overflow:hidden;
  background:#fff;          /* white behind wheel photos */
}

.ss-prod-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.4s;
}

.ss-prod-card:hover .ss-prod-img img{ transform:scale(1.06); }

.ss-prod-badge{
  position:absolute; top:10px; left:10px;
  background:var(--orange); color:#fff;
  font-size:.68rem; font-weight:700;
  padding:4px 10px; border-radius:8px;
}

.ss-prod-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  flex:1;
  gap:10px;
}

.ss-prod-name{
  color:var(--white) !important;
  font-weight:600;
  font-size:.92rem;
  line-height:1.35;
  margin:0;

  /* keep titles tidy */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.ss-prod-price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
}

.ss-prod-price{
  color:var(--orange) !important;
  font-weight:800;
  font-size:1.05rem;
}

.ss-prod-price del{
  color:var(--white-30);
  font-size:.76rem;
  font-weight:400;
  margin-left:6px;
}

.ss-prod-cart{
  background:var(--orange-10);
  border:1px solid var(--orange-20);
  color:var(--orange) !important;
  font-size:.72rem;
  font-weight:700;
  padding:6px 12px;
  border-radius:8px;
  white-space:nowrap;
  flex-shrink:0;
}

/* ----- RESPONSIVE: this is what you were missing ----- */
@media (max-width:1024px){
  .ss-prod-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width:700px){
  .ss-prod-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }
  .ss-prod-img{ height:150px; }
  .ss-prod-body{ padding:12px; }
  .ss-prod-name{ font-size:.82rem; }
  .ss-prod-price{ font-size:.95rem; }
  .ss-prod-cart{ font-size:.65rem; padding:5px 8px; }
}

@media (max-width:400px){
  .ss-prod-grid{
    grid-template-columns:1fr !important; /* single column on very small phones */
    gap:14px !important;
  }
  .ss-prod-img{ height:200px; }
}

/* ============================================================
   DIAGNOSE BANNER
   ============================================================ */
.ss-diag-wrap{ padding:2px; border-radius:26px; background:linear-gradient(135deg,var(--orange),#c2410c); }
.ss-diag-inner{ position:relative; overflow:hidden; border-radius:24px; background:var(--ink); padding:56px 48px; display:flex; align-items:center; gap:50px; flex-wrap:wrap; }
.ss-diag-text{ flex:1; min-width:280px; }
.ss-diag-badge{ display:inline-flex; align-items:center; gap:8px; background:var(--orange-10); border:1px solid var(--orange-20); color:var(--orange); font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:7px 14px; border-radius:999px; margin-bottom:18px; }
.ss-diag-text h2{ font-size:2.6rem; text-transform:uppercase; margin-bottom:14px; }
.ss-diag-text p{ color:var(--white-50); line-height:1.7; max-width:460px; }
.ss-diag-steps{ display:flex; flex-direction:column; gap:14px; max-width:320px; margin-bottom:22px; }
.ss-diag-step{ display:flex; align-items:center; gap:14px; }
.ss-diag-step-num{ width:30px; height:30px; border-radius:50%; background:var(--orange); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.86rem; flex-shrink:0; }
.ss-diag-step p{ color:var(--white-70); font-size:.88rem; }
@media (max-width:768px){ .ss-diag-inner{ padding:32px 24px; text-align:center; } .ss-diag-text h2{ font-size:2rem; } .ss-diag-steps{ margin:0 auto 22px; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.ss-test-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:30px; }
.ss-test-grid.row2{ grid-template-columns:repeat(2,1fr); max-width:700px; margin-left:auto; margin-right:auto; }
.ss-test-card{ background:var(--ink-card); border:1px solid var(--line); border-radius:18px; padding:28px; transition:.25s; }
.ss-test-card:hover{ transform:translateY(-4px); }
.ss-stars svg{ width:15px; height:15px; color:var(--orange); }
.ss-stars{ display:flex; gap:2px; margin-bottom:18px; }
.ss-test-text{ color:var(--white-70); font-size:.92rem; line-height:1.65; margin-bottom:20px; }
.ss-test-author{ display:flex; align-items:center; gap:12px; }
.ss-test-avatar{ width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--orange),#ec4899); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:.85rem; flex-shrink:0; }
.ss-test-name{ color:var(--white); font-weight:600; font-size:.88rem; }
.ss-test-car{ color:var(--white-40); font-size:.76rem; }
.ss-test-summary{ text-align:center; margin-top:48px; }
.ss-test-summary-num{ font-family:var(--font-head); font-size:1.6rem; font-weight:800; color:var(--white); }
@media (max-width:900px){ .ss-test-grid, .ss-test-grid.row2{ grid-template-columns:1fr; } }

/* ============================================================
   NEWSLETTER
   ============================================================ */
#ss-newsletter{ background:var(--ink-soft); text-align:center; }
.ss-nl-icon{ width:64px; height:64px; border-radius:16px; background:var(--orange-10); border:1px solid var(--orange-20); display:flex; align-items:center; justify-content:center; margin:0 auto 22px; }
.ss-nl-icon svg{ width:30px; height:30px; color:var(--orange); }
.ss-nl-inner{ max-width:640px; margin:0 auto; }
.ss-nl-inner p.desc{ color:var(--white-50); max-width:440px; margin:16px auto 30px; line-height:1.6; }
.ss-nl-form{ display:flex; gap:12px; max-width:480px; margin:0 auto; flex-wrap:wrap; }
.ss-nl-form input[type=email]{
  flex:1; min-width:200px; background:rgba(255,255,255,.05); border:1px solid var(--line);
  border-radius:12px; padding:14px 18px; color:#fff; font-size:.9rem; outline:none;
}
.ss-nl-form input[type=email]:focus{ border-color:rgba(249,115,22,.5); }
.ss-nl-note{ color:var(--white-30); font-size:.76rem; margin-top:16px; }
@media (max-width:600px){ .ss-nl-form{ flex-direction:column; } }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon{ background:var(--ink-panel); border-top:1px solid var(--line-soft); }
.ss-footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding:64px 0 40px; }
.ss-footer-brand p{ color:var(--white-40); font-size:.88rem; line-height:1.65; margin:18px 0 22px; max-width:320px; }
.ss-footer-social{ display:flex; gap:10px; }
.ss-footer-social a{ width:36px; height:36px; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--white-50); transition:.2s; }
.ss-footer-social a:hover{ background:var(--orange); color:#fff; border-color:var(--orange); }
.ss-footer-social svg{ width:16px; height:16px; }
.ss-footer-col h4{ color:var(--white); font-size:.82rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; margin-bottom:20px; }
.ss-footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.ss-footer-col a{ color:var(--white-40); font-size:.86rem; display:flex; align-items:center; gap:8px; transition:.2s; }
.ss-footer-col a:hover{ color:var(--orange); }
.ss-footer-col li.plain{ display:flex; align-items:flex-start; gap:10px; color:var(--white-40); font-size:.86rem; }
.ss-footer-col li.plain svg{ width:15px; height:15px; color:var(--orange); flex-shrink:0; margin-top:2px; }
.ss-partner-box{ border:1px solid var(--line); border-radius:14px; padding:20px; margin-top:22px; background:rgba(255,255,255,.02); }
.ss-partner-box p{ color:var(--white-50); font-size:.86rem; line-height:1.55; margin-bottom:8px; }
.ss-partner-box a{ color:var(--orange) !important; font-weight:700; font-size:.84rem; }
.ss-footer-bottom{ border-top:1px solid var(--line-soft); padding:20px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.ss-footer-bottom p{ color:var(--white-30); font-size:.78rem; }
@media (max-width:900px){ .ss-footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .ss-footer-grid{ grid-template-columns:1fr; padding:48px 0 24px; } }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.ss-wa-float{
  position:fixed; bottom:24px; right:22px; z-index:99999;
  width:60px; height:60px; border-radius:50%; background:var(--whatsapp);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 26px rgba(37,211,102,.45); transition:.25s;
}
.ss-wa-float:hover{ background:var(--whatsapp-dk); transform:scale(1.1); }
.ss-wa-float svg{ width:28px; height:28px; color:#fff; }
.ss-wa-ping{ position:absolute; inset:0; border-radius:50%; background:var(--whatsapp); opacity:.35; animation:ss-ping 2s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ss-ping{ 0%{ transform:scale(1); opacity:.35; } 75%,100%{ transform:scale(1.7); opacity:0; } }
@media (max-width:600px){ .ss-wa-float{ width:52px; height:52px; bottom:16px; right:16px; } .ss-wa-float svg{ width:24px; height:24px; } }

/* ============================================================
   FORCE OUT ANY LEFTOVER OLD-THEME (ASTRA / ELEMENTOR) STYLING
   Applies site-wide (not gated to a specific body class, since
   Elementor doesn't reliably add one) so pages like FAQ, Contact,
   and Terms & Conditions can't show old blue/gray/white sections.
   If a page still looks mixed after this, it means Elementor's
   Theme Builder has a saved Archive/Single template overriding this
   theme's own files — check Templates → Theme Builder and unpublish
   it there, since that lives outside the theme entirely.
   ============================================================ */
html body{ background:var(--ink) !important; }
html body .page, html body #primary, html body #main, html body .site-content, html body .content-area,
html body .elementor, html body .elementor-section, html body .elementor-container, html body .elementor-column,
html body .elementor-widget-wrap, html body .elementor-widget-container, html body .elementor-row,
html body .entry-content, html body .page-content, html body .elementor-element{
  background-color:transparent !important;
  background-image:none !important;
}
html body .entry-content, html body .elementor-widget-container, html body .elementor-text-editor,
html body .elementor-widget-text-editor p, html body .elementor-widget-text-editor,
html body .elementor-element .elementor-widget-container p, html body .elementor-element p{
  color:var(--white-60) !important;
}
html body .entry-content h1, html body .entry-content h2, html body .entry-content h3, html body .entry-content h4,
html body .elementor-heading-title, html body .elementor-widget-heading .elementor-heading-title,
html body h1.elementor-heading-title, html body h2.elementor-heading-title, html body h3.elementor-heading-title{
  color:var(--white) !important;
  font-family:var(--font-head) !important;
}
html body .entry-content a, html body .elementor-widget-container a, html body .elementor-widget-text-editor a{ color:var(--orange) !important; }
html body .elementor-widget-container[style*="background"],
html body .elementor-element[style*="background-color"],
html body .elementor-element[style*="background"],
html body .elementor-section[data-settings*="background"]{ background:transparent !important; background-color:transparent !important; }
/* Old Astra chrome, if the plugin/CSS is still queued anywhere */
.ast-above-header-wrap, .ast-breadcrumbs-wrapper, .page-header.ast-header-without-markup,
.ast-page-title-wrap{ display:none !important; }

.ss-page-hero{ padding:150px 0 50px; text-align:center; background:var(--ink-soft); border-bottom:1px solid var(--line-soft); }
.ss-page-hero h1{ font-size:2.8rem; text-transform:uppercase; }
.ss-page-hero p{ color:var(--white-50); margin-top:10px; }
.ss-page-body{ padding:64px 0; max-width:820px; margin:0 auto; }
.ss-page-body h2, .ss-page-body h3{ margin-top:1.6em; margin-bottom:.6em; }
.ss-page-body p{ color:var(--white-50); line-height:1.75; margin-bottom:1em; }
.ss-page-body a{ color:var(--orange); text-decoration:underline; }
.ss-page-body img{ border-radius:12px; margin:24px auto; display:block; max-width:100%; }

/* ============================================================
   CONTENT NORMALIZER — neutralizes leftover inline styles/classes
   from the old theme's page-builder content (blue/gray/white boxes)
   so every page matches this dark/orange design, not a mix of two.
   ============================================================ */
.ss-page-body, .ss-page-body *,
.ss-single-body, .ss-single-body *,
.entry-content, .entry-content * {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}
.ss-page-body img, .ss-single-body img, .entry-content img{ background-image:initial !important; }
.ss-page-body, .ss-single-body, .entry-content{ color: var(--white-50) !important; }
.ss-page-body h1, .ss-page-body h2, .ss-page-body h3, .ss-page-body h4,
.ss-single-body h1, .ss-single-body h2, .ss-single-body h3, .ss-single-body h4,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4{
  color: var(--white) !important; font-family: var(--font-head) !important;
}
.ss-page-body p, .ss-page-body li, .ss-page-body span, .ss-page-body div,
.ss-single-body p, .ss-single-body li, .ss-single-body span, .ss-single-body div,
.entry-content p, .entry-content li, .entry-content span, .entry-content div{
  color: var(--white-50) !important;
}
.ss-page-body a, .ss-single-body a, .entry-content a{ color: var(--orange) !important; }
.ss-page-body table, .ss-single-body table, .entry-content table{ border:1px solid var(--line) !important; }
.ss-page-body table td, .ss-page-body table th,
.ss-single-body table td, .ss-single-body table th,
.entry-content table td, .entry-content table th{ border:1px solid var(--line) !important; color:var(--white-50) !important; }
/* Buttons / CTA blocks inside old content keep the orange brand color instead of their old blue */
.ss-page-body .button, .ss-page-body .btn, .ss-page-body [class*="button"],
.entry-content .button, .entry-content .btn, .entry-content [class*="button"]{
  background: var(--orange) !important; color: #fff !important; border-radius: 8px !important; padding: 10px 20px !important; display:inline-block !important;
}

/* ============================================================
   CONTACT PAGE / CF7 FORM
   ============================================================ */
.ss-contact-wrap{ display:grid; grid-template-columns:1fr 1.1fr; gap:44px; padding:150px 24px 80px; max-width:var(--container); margin:0 auto; position:relative; }
.ss-contact-hero-bg{ position:absolute; inset:0; z-index:-1; background:center/cover no-repeat; }
.ss-contact-hero-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,10,10,.88), rgba(10,10,10,.97)); }

/* Page background image (About/FAQ/Terms, Shop, Blog listing, Single post) */
.ss-hero-bg-img{ position:absolute; inset:0; z-index:0; background:center/cover no-repeat; }
.ss-hero-bg-img::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.92) 70%, var(--ink) 100%); }
.ss-page-hero, .ss-shop-hero{ position:relative; overflow:hidden; }
.ss-page-hero > *, .ss-shop-hero > *{ position:relative; z-index:1; }
.ss-blog-title-wrap, .ss-single-title-wrap{ position:relative; overflow:hidden; padding:150px 24px 40px; }
.ss-blog-title-wrap > *, .ss-single-title-wrap > *{ position:relative; z-index:1; }
@media (max-width:900px){ .ss-blog-title-wrap, .ss-single-title-wrap{ padding:120px 20px 32px; } }

/* Header search */
.ss-search-toggle{ background:none; border:none; color:var(--white-60); padding:8px; cursor:pointer; display:flex; align-items:center; }
.ss-search-toggle:hover{ color:var(--orange); }
.ss-search-toggle svg{ width:19px; height:19px; }
.ss-header-search-panel{
  position:absolute; top:100%; left:0; right:0; background:rgba(10,10,10,.98); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line); padding:0; max-height:0; overflow:hidden; transition:max-height .25s ease, padding .25s ease;
}
.ss-header-search-panel.is-open{ max-height:100px; padding:18px 0; }
.ss-header-search-form{ max-width:var(--container); margin:0 auto; padding:0 24px; display:flex; gap:10px; }
.ss-header-search-form input[type=search]{
  flex:1; background:rgba(255,255,255,.05); border:1px solid var(--line); border-radius:10px;
  padding:12px 16px; color:#fff; font-size:.92rem; outline:none;
}
.ss-header-search-form input[type=search]:focus{ border-color:rgba(249,115,22,.5); }
.ss-header-search-form button{ background:var(--orange); border:none; border-radius:10px; padding:0 18px; color:#fff; cursor:pointer; }
.ss-header-search-form button:hover{ background:var(--orange-dark); }
.ss-contact-info h1{ font-size:2.6rem; text-transform:uppercase; margin-bottom:16px; }
.ss-contact-info p{ color:var(--white-50); line-height:1.7; margin-bottom:28px; }
.ss-contact-info ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.ss-contact-info li{ display:flex; align-items:flex-start; gap:12px; color:var(--white-50); font-size:.92rem; }
.ss-contact-info li svg{ width:18px; height:18px; color:var(--orange); flex-shrink:0; margin-top:2px; }
.ss-contact-form-box{ background:var(--ink-card); border:1px solid var(--line); border-radius:20px; padding:36px; }
.ss-contact-form-box h3{ font-size:1.4rem; margin-bottom:20px; }
/* Contact Form 7 responsive styling */
.wpcf7-form{ display:flex; flex-direction:column; gap:16px; }
.wpcf7-form p{ margin:0; }
.wpcf7-form-control-wrap{ display:block; width:100%; }
.wpcf7-form .cf7-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.wpcf7-form label{ display:block; font-size:.78rem; font-weight:700; color:var(--white-50); text-transform:uppercase; letter-spacing:.03em; margin-bottom:6px; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=tel],
.wpcf7-form select, .wpcf7-form textarea{
  width:100% !important; background:rgba(255,255,255,.04) !important; border:1px solid var(--line) !important;
  border-radius:10px !important; padding:12px 14px !important; color:#fff !important; font-family:var(--font-body) !important;
  font-size:.9rem !important; outline:none !important; transition:.2s !important;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus{
  border-color:var(--orange) !important; box-shadow:0 0 0 3px rgba(249,115,22,.15) !important;
}
.wpcf7-form input[type=submit]{
  background:var(--orange) !important; color:#fff !important; border:none !important; border-radius:10px !important;
  padding:14px !important; font-weight:800 !important; text-transform:uppercase !important; letter-spacing:.04em !important;
  cursor:pointer !important; transition:.2s !important; width:100% !important;
}
.wpcf7-form input[type=submit]:hover{ background:var(--orange-dark) !important; }
.wpcf7-not-valid-tip{ color:#f87171 !important; font-size:.78rem !important; margin-top:4px !important; }
.wpcf7-response-output{ border-radius:10px !important; font-size:.85rem !important; margin-top:16px !important; }
@media (max-width:900px){ .ss-contact-wrap{ grid-template-columns:1fr; padding-top:120px; } .wpcf7-form .cf7-row{ grid-template-columns:1fr; } }
@media (max-width:600px){ .ss-contact-form-box{ padding:24px 20px; } }

/* ============================================================
   BLOG LISTING (no left sidebar; search + youtube on right)
   ============================================================ */
.ss-blog-wrap{ display:grid; grid-template-columns:1fr 300px; gap:40px; max-width:var(--container); margin:0 auto; padding:40px 24px 80px; }
.ss-blog-main{ min-width:0; }
.ss-blog-card{
  display:flex; gap:20px; border:1px solid var(--line); border-radius:16px; padding:18px;
  margin-bottom:22px; background:var(--ink-card); transition:.2s;
}
.ss-blog-card:hover{ border-color:rgba(249,115,22,.35); }
.ss-blog-thumb{ width:230px; height:150px; flex-shrink:0; border-radius:10px; overflow:hidden; background:#1a1a1a; }
.ss-blog-thumb img{ width:100%; height:100%; object-fit:cover; }
.ss-blog-card-body{ display:flex; flex-direction:column; }
.ss-blog-card-title{ font-size:1.15rem; text-transform:uppercase; line-height:1.3; margin-bottom:8px; }
.ss-blog-card-title a{ color:var(--white); }
.ss-blog-card-title a:hover{ color:var(--orange); }
.ss-blog-card-excerpt{ color:var(--white-50); font-size:.86rem; line-height:1.6; margin-bottom:14px; }
.ss-blog-readmore{ display:inline-flex; align-items:center; gap:6px; background:var(--orange); color:#fff !important; font-size:.72rem; font-weight:800; text-transform:uppercase; padding:8px 16px; border-radius:999px; width:fit-content; margin-top:auto; }
.ss-blog-sidebar .widget{ border:1px solid var(--line); border-radius:14px; padding:20px; margin-bottom:20px; background:var(--ink-card); }
.ss-blog-sidebar .widget-title{ color:var(--white); font-size:.85rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; }
/* Blog listing: hide Categories & Archives widgets specifically — everything else (Search, YouTube, etc.) stays. */
.ss-blog-sidebar .widget_categories,
.ss-blog-sidebar .widget_archive,
.ss-blog-sidebar .widget_categories.widget,
.ss-blog-sidebar .widget_archive.widget{ display:none !important; }
.ss-search-form{ display:flex; gap:8px; }
.ss-search-form input[type=search]{ flex:1; background:rgba(255,255,255,.05); border:1px solid var(--line); border-radius:8px; padding:10px 12px; color:#fff; font-size:.85rem; outline:none; }
.ss-search-form button{ background:var(--orange); border:none; border-radius:8px; padding:0 14px; color:#fff; cursor:pointer; }
.ss-blog-pagination{ display:flex; gap:8px; margin-top:20px; flex-wrap:wrap; }
.ss-blog-pagination a, .ss-blog-pagination span{ background:rgba(255,255,255,.05); border:1px solid var(--line); color:var(--white-70); padding:8px 14px; border-radius:8px; font-size:.85rem; }
.ss-blog-pagination .current{ background:var(--orange); color:#fff; border-color:var(--orange); }
@media (max-width:900px){ .ss-blog-wrap{ grid-template-columns:1fr; padding-top:30px; } }
@media (max-width:600px){ .ss-blog-card{ flex-direction:column; } .ss-blog-thumb{ width:100%; height:180px; } }

/* ============================================================
   SINGLE POST (keeps a full sidebar)
   ============================================================ */
.ss-single-wrap{ display:grid; grid-template-columns:1fr 300px; gap:40px; max-width:var(--container); margin:0 auto; padding:40px 24px 80px; }
.ss-single-main{ min-width:0; }
.ss-single-title{ font-size:2.4rem; text-transform:uppercase; margin-bottom:16px; line-height:1.1; }
.ss-single-meta{ color:var(--white-40); font-size:.82rem; margin-bottom:26px; }
.ss-single-thumb{ border-radius:16px; overflow:hidden; margin-bottom:32px; max-height:420px; }
.ss-single-thumb img{ width:100%; height:100%; object-fit:cover; }
.ss-single-body p{ color:var(--white-60); line-height:1.8; margin-bottom:1.2em; }
.ss-single-body h2, .ss-single-body h3{ margin-top:1.6em; margin-bottom:.6em; }
.ss-single-body img{ border-radius:12px; margin:24px auto; display:block; max-width:100%; }
.ss-single-body a{ color:var(--orange); text-decoration:underline; }
@media (max-width:900px){ .ss-single-wrap{ grid-template-columns:1fr; padding-top:30px; } }

/* ============================================================
   SHOP / WOOCOMMERCE (Upgraded Standard E-commerce Cards)
   ============================================================ */
.ss-shop-hero{ padding:150px 0 40px; text-align:center; background:var(--ink-soft); border-bottom:1px solid var(--line-soft); }
.ss-shop-hero h1{ font-size:2.8rem; text-transform:uppercase; }

/* 1. The Grid */
.woocommerce ul.products{
  display:grid !important; grid-template-columns:repeat(4,1fr) !important; gap:22px !important;
  max-width:var(--container); margin:40px auto !important; padding:0 24px !important; list-style:none !important;

/* 2. The Card Container */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  width: 100% !important;          /* ← THIS is the critical fix */
  max-width: 100% !important;
  float: none !important;
  clear: none !important;

  background: var(--ink-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  padding: 0 0 20px 0 !important;
  margin: 0 !important;
  transition: .3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  box-sizing: border-box !important;
}

/* Kill WooCommerce’s old float/clear column hacks */
.woocommerce ul.products li.product:nth-child(2n),
.woocommerce ul.products li.product:nth-child(3n),
.woocommerce ul.products li.product:nth-child(4n),
.woocommerce ul.products li.last{
  float: none !important;
  clear: none !important;
  margin-right: 0 !important;
}
}
/* Card Hover Effect */
.woocommerce ul.products li.product:hover{ 
  transform:translateY(-6px); 
  border-color:rgba(249,115,22,.5) !important; 
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* 3. The Product Image */
.woocommerce ul.products li.product a img{ 
  aspect-ratio:1/1 !important; 
  width:100% !important; 
  object-fit:cover !important; 
  margin:0 0 15px 0 !important;
  border-bottom:1px solid var(--line) !important;
  background:#ffffff !important; /* Adds white bg behind transparent car parts */
}

/* 4. The Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  color:#fff !important; 
  font-size:1rem !important; 
  font-weight:600 !important; 
  padding:0 16px !important; /* Side padding so text doesn't touch edges */
  margin:0 0 10px 0 !important;
  line-height:1.4 !important;
  flex-grow:1 !important; /* Pushes the price and button to the bottom evenly */
  
  /* Clamp title to 2 lines so cards stay the same height */
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* 5. The Price */
.woocommerce ul.products li.product .price{ 
  color:var(--orange) !important; 
  font-weight:800 !important; 
  font-size:1.15rem !important;
  padding:0 16px 15px !important; 
  margin:0 !important;
  display:block !important;
}
.woocommerce ul.products li.product .price del{ 
  color:var(--white-30) !important; 
  font-size:.85rem !important; 
  font-weight:400 !important;
  margin-right:8px;
}

/* 6. The Add to Cart Button (Aggressively targeted to fix the red square) */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
  background:var(--orange) !important; 
  color:#fff !important; 
  margin:0 auto !important; 
  width:calc(100% - 32px) !important; /* Full width minus side padding */
  border-radius:8px !important; 
  padding:12px 10px !important; 
  text-transform:uppercase !important; 
  font-weight:800 !important; 
  font-size:.8rem !important; 
  border:none !important;
  text-align:center !important;
  display:block !important;
  line-height:1.2 !important;
  transition:background-color .2s ease !important;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover { 
  background:var(--orange-dark) !important; 
}

/* Sales Badge */
.woocommerce span.onsale{ 
  background:var(--orange) !important; 
  color:#fff !important; 
  border-radius:6px !important; 
  font-size:.7rem !important; 
  font-weight:700 !important;
  padding:6px 12px !important;
  top:10px !important;
  left:10px !important;
  right:auto !important;
}

/* Pagination & Sorting */
.woocommerce nav.woocommerce-pagination ul{ border:none !important; }
.woocommerce nav.woocommerce-pagination ul li{ border:none !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span{
  background:rgba(255,255,255,.05) !important; color:#fff !important; border-radius:8px !important; margin:0 4px !important; padding:8px 14px !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current{ background:var(--orange) !important; }
.woocommerce-result-count, .woocommerce-ordering{ color:var(--white-50) !important; max-width:var(--container); margin:0 auto !important; padding:0 24px !important; }
.woocommerce div.product .product_title{ color:#fff !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price{ color:var(--orange) !important; }
.woocommerce div.product .single_add_to_cart_button{ background:var(--orange) !important; border-radius:10px !important; }

/* Responsive adjustments — always 2 per row on mobile, never drops to 1 */
@media (max-width:1024px){ .woocommerce ul.products{ grid-template-columns:repeat(3,1fr) !important; } }
@media (max-width:700px){ .woocommerce ul.products{ grid-template-columns:repeat(2,1fr) !important; gap:12px !important; padding:0 12px !important; } }
@media (max-width:400px){
  .woocommerce ul.products{ gap:8px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title{ font-size:.82rem !important; padding:0 10px !important; }
  .woocommerce ul.products li.product .price{ font-size:.95rem !important; padding:0 10px 10px !important; }
  .woocommerce ul.products li.product a.button, .woocommerce ul.products li.product a.add_to_cart_button{ font-size:.68rem !important; padding:9px 6px !important; width:calc(100% - 20px) !important; }
}

/* Shop filter bar (HUSKY Products Filter / any select+search filters above the grid) */
.woocommerce-page select,
.woocommerce-page input[type="search"],
.woocommerce-page input[type="text"],
.wcpf-filter select,
.wcpf-filter input,
.hsk-facet select{
  background:var(--ink-card) !important; color:var(--white) !important;
  border:1px solid var(--line) !important; border-radius:8px !important;
  padding:9px 12px !important; font-family:var(--font-body) !important; font-size:.85rem !important;
}
.woocommerce-page select:focus, .woocommerce-page input:focus{ border-color:var(--orange) !important; outline:none !important; }

/* ============================================================
   SHOP: remove empty left gap (sidebar / filter column)
   ============================================================ */

/* Hide shop sidebar if theme/plugin still outputs it */
.woocommerce-page #secondary,
.woocommerce-page aside.widget-area,
.woocommerce-page .sidebar,
.woocommerce-page .shop-sidebar,
.woocommerce-page .widget-area,
body.woocommerce-shop .sidebar,
body.post-type-archive-product #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary,
body.search-results #secondary {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make main content take the full row */
.woocommerce-page #primary,
.woocommerce-page .content-area,
.woocommerce-page .site-main,
.woocommerce-page #main,
body.woocommerce-shop #primary,
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.search-results #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Common 2-column wrappers from old Astra / page builders */
.woocommerce-page .ast-container,
.woocommerce-page .site-content,
.woocommerce-page .content-area,
.woocommerce-page .elementor-section.elementor-section-boxed > .elementor-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* If a filter plugin left an empty left column */
.woocommerce-page .products-wrapper,
.woocommerce-page .shop-content,
.woocommerce-page .wpf-search-container,
.woocommerce-page .woof_shortcode_output {
  width: 100% !important;
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep your product grid centered and full usable width */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: var(--container) !important;
  margin: 40px auto !important;
  padding: 0 24px !important;
  list-style: none !important;
  float: none !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* ============================================================
   FIX: Remove WooCommerce ::before / ::after Grid Spacer Bug
   ============================================================ */

/* 1. Kill the invisible pseudo-elements taking up grid column 1 */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none !important;
  display: none !important;
}

/* 2. Ensure grid container stretches fully */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: var(--container) !important;
  margin: 40px auto !important;
  padding: 0 24px !important;
  list-style: none !important;
}

/* 3. Ensure cards start strictly from column 1 */
.woocommerce ul.products li.product:first-child {
  grid-column-start: 1 !important;
}

/* Hide default WP Widgets in Sidebar */
.ss-blog-sidebar .widget_recent_comments,
.ss-blog-sidebar .widget_meta,
.ss-blog-sidebar .widget_recent_entries {
    display: none !important;
}

