/* ============================================
   AB-OUTILS — ManoMano-inspired theme
   Single sidebar menu, quick links bar
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --ab-yellow: #f5a623;
  --ab-yellow-light: #fde3b8;
  --ab-yellow-hover: #e6961e;
  --ab-navy: #1a1a2e;
  --ab-navy-light: #16213e;
  --ab-navy-mid: #1f2b47;
  --ab-text: #333;
  --ab-text-light: #666;
  --ab-text-muted: #999;
  --ab-bg: #f7f7f5;
  --ab-white: #fff;
  --ab-border: #e8e6e1;
  --ab-border-light: #f0eeea;
  --ab-green: #2e8b57;
  --ab-green-light: #e8f5e9;
  --ab-red: #d32f2f;
  --ab-orange: #f57c00;
  --ab-radius-sm: 8px;
  --ab-radius-md: 12px;
  --ab-radius-lg: 16px;
  --ab-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --ab-shadow-md: 0 2px 8px rgba(0,0,0,.08);
  --ab-shadow-lg: 0 4px 16px rgba(0,0,0,.1);
  --ab-shadow-hover: 0 6px 24px rgba(0,0,0,.12);
}

/* ---- GLOBAL ---- */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ab-bg);
  color: var(--ab-text);
  -webkit-font-smoothing: antialiased;
}

a:hover { text-decoration: none; }
html { scroll-behavior: smooth; }
::selection { background: var(--ab-yellow-light); color: var(--ab-navy); }

/* Focus rings: hide on mouse click, keep for keyboard nav (a11y) */
a:focus,
button:focus,
[role="tab"]:focus,
[role="button"]:focus,
.btn:focus,
.nav-link:focus,
summary:focus {
  outline: 0;
  box-shadow: none;
}

a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ab-yellow);
  outline-offset: 2px;
  box-shadow: none;
}

/* =============================================
   HEADER
   ============================================= */

#header {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  position: relative;
  z-index: 100;
}

/* Hide the old header-nav completely (we rebuilt it) */
#header > .header-nav,
#header > .header-top {
  display: none !important;
}

/* === ROW 1 — Top bar: Logo + Search + Actions === */
.ab-topbar {
  background: var(--ab-navy);
  padding: 12px 0;
}

.ab-topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.ab-topbar-logo {
  flex-shrink: 0;
}

.ab-topbar-logo h1 { margin: 0; line-height: 1; }

.ab-topbar-logo img,
.ab-topbar-logo .logo {
  max-height: 64px;
  width: auto;
  /* filter: brightness(0) invert(1); */
}

/* Search bar */
.ab-topbar-search {
  flex: 1;
  min-width: 0;
  max-width: 680px;
}

.ab-topbar-search form {
  display: flex;
  align-items: center;
  background: var(--ab-white);
  border-radius: 50px;
  overflow: hidden;
  height: 46px;
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.ab-topbar-search form:focus-within {
  border-color: var(--ab-yellow);
  box-shadow: 0 0 0 3px rgba(255,207,0,.25);
}

.ab-topbar-search .ab-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  pointer-events: none;
  font-size: 1.3rem;
}

.ab-topbar-search input[type="text"] {
  flex: 1;
  border: 0 !important;
  background: none !important;
  padding: 0 20px 0 0 !important;
  margin: 0 !important;
  height: 46px !important;
  line-height: normal !important;
  font-size: .93rem;
  color: var(--ab-text) !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-family: 'Poppins', sans-serif;
  -webkit-appearance: none;
  min-width: 0;
}

.ab-topbar-search input[type="text"]::placeholder {
  color: #999;
  opacity: 1;
}

/* Actions (user + cart) */
.ab-topbar-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-topbar-actions .user-info {
  margin: 0;
}

#header .ab-topbar-actions .user-info a,
#header .ab-topbar-actions .blockcart.inactive .header,
#header .ab-topbar-actions .blockcart.active .header > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  font-size: .84rem;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

/* Active cart: wrapper is just a container, pill moves to the inner <a> */
#header .ab-topbar-actions .blockcart.active .header {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
}

#header .ab-topbar-actions .user-info a:hover,
#header .ab-topbar-actions .blockcart.inactive .header:hover,
#header .ab-topbar-actions .blockcart.active .header > a:hover {
  background: var(--ab-yellow);
  border-color: var(--ab-yellow);
  color: var(--ab-navy) !important;
  text-decoration: none;
}

#header .ab-topbar-actions .user-info a:hover i,
#header .ab-topbar-actions .blockcart.inactive .header:hover .shopping-cart,
#header .ab-topbar-actions .blockcart.active .header > a:hover .shopping-cart {
  color: var(--ab-navy) !important;
}

#header .ab-topbar-actions .blockcart.active .header > a:hover .cart-products-count {
  background: var(--ab-navy);
  color: var(--ab-yellow) !important;
}

#header .ab-topbar-actions .user-info i,
#header .ab-topbar-actions .blockcart .shopping-cart {
  font-size: 1.15rem;
  color: #fff !important;
  transition: color .2s ease;
}

#header .ab-topbar-actions .user-info {
  margin: 0;
  white-space: nowrap;
}

#header .ab-topbar-actions .blockcart {
  margin: 0;
}

#header .ab-topbar-actions .cart-products-count {
  background: var(--ab-yellow);
  color: var(--ab-navy) !important;
  font-weight: 700;
  font-size: .7rem;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#header .ab-topbar-actions .blockcart .header .hidden-sm-down {
  color: inherit !important;
}

.ab-topbar-actions .cart-products-count {
  background: var(--ab-yellow);
  color: var(--ab-navy);
  font-weight: 700;
  font-size: .7rem;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hide text labels on smaller screens */
.ab-topbar-actions .user-info .hidden-sm-down,
.ab-topbar-actions .blockcart .hidden-sm-down {
  display: inline !important;
}

/* === ROW 2 — Navbar: Catalogue button + Quick links === */
.ab-navbar {
  background: var(--ab-navy-light);
  border-top: 1px solid rgba(255,255,255,.04);
}

.ab-navbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Menu toggle button */
.ab-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ab-yellow);
  color: var(--ab-navy);
  border: none;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
  border-radius: 0;
}

.ab-menu-toggle:hover {
  background: var(--ab-yellow-hover);
}

.ab-menu-toggle i {
  font-size: 1.2rem;
}

/* Quick links */
.ab-quicklinks {
  display: flex;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ab-quicklinks::-webkit-scrollbar { display: none; }

#header .ab-quicklinks a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: .84rem;
  font-weight: 500;
  color: #e0e0e0 !important;
  white-space: nowrap;
  transition: all .15s ease;
  border-bottom: 2px solid transparent;
}

#header .ab-quicklinks a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.06);
  border-bottom-color: var(--ab-yellow);
}

/* === SIDEBAR (off-canvas) === */
.ab-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.ab-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ab-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--ab-white);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
}

.ab-sidebar.open {
  transform: translateX(0);
}

/* Sidebar header */
.ab-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--ab-navy);
  color: var(--ab-white);
  flex-shrink: 0;
}

.ab-sidebar-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.ab-sidebar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all .2s ease;
  display: flex;
}

.ab-sidebar-close:hover {
  background: rgba(255,255,255,.1);
  color: var(--ab-white);
}

/* Sidebar body — contains the PS menu from displayTop */
.ab-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Hide search widget inside sidebar (we have our own search) */
.ab-sidebar-body #search_widget {
  display: none;
}

/* Force menu visible in sidebar on ALL screens (overrides hidden-sm-down) */
.ab-sidebar-body #_desktop_top_menu,
.ab-sidebar-body #_desktop_top_menu.hidden-sm-down,
.ab-sidebar-body .hidden-sm-down {
  display: block !important;
}

.ab-sidebar-body .top-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-sidebar-body .top-menu[data-depth="0"] {
  display: flex;
  flex-direction: column;
}

.ab-sidebar-body .top-menu[data-depth="0"] > li {
  border-bottom: 1px solid var(--ab-border-light);
}

/* Parent category: block container */
.ab-sidebar-body .top-menu[data-depth="0"] > li {
  display: block;
  position: relative;
}

/* Row: link + toggle side by side */
.ab-sidebar-body .top-menu[data-depth="0"] > li > a {
  display: block;
  padding: 13px 56px 13px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ab-text) !important;
  transition: all .15s ease;
}

.ab-sidebar-body .top-menu[data-depth="0"] > li > a:hover {
  background: var(--ab-bg);
  color: var(--ab-navy) !important;
}

/* Hide the span toggle that PS puts INSIDE the <a> */
.ab-sidebar-body .top-menu[data-depth="0"] > li > a > .float-xs-right {
  display: none !important;
}

/* Toggle button: absolute right, aligned with the link */
.ab-sidebar-body .ab-toggle-sub {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 46px;
  cursor: pointer;
  color: var(--ab-text-muted);
  transition: all .15s ease;
  border-left: 1px solid var(--ab-border-light);
  z-index: 2;
}

.ab-sidebar-body .ab-toggle-sub:hover {
  background: var(--ab-bg);
  color: var(--ab-navy);
}

.ab-sidebar-body .ab-toggle-sub .material-icons {
  font-size: 1.3rem;
  transition: transform .2s ease;
}

.ab-sidebar-body .ab-toggle-sub.open .material-icons {
  transform: rotate(180deg);
}

/* Categories without children: no toggle, full width link */
.ab-sidebar-body .top-menu[data-depth="0"] > li.no-children > a {
  padding-right: 20px;
}

/* Sub-menu panel: accordion style */
.ab-sidebar-body .top-menu .sub-menu {
  position: static !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--ab-bg) !important;
  min-width: 0 !important;
  width: 100% !important;
  float: none !important;
  display: none;
  opacity: 1 !important;
  max-height: none !important;
}

/* When expanded via Bootstrap collapse */
.ab-sidebar-body .top-menu .sub-menu.show,
.ab-sidebar-body .top-menu .sub-menu.in,
.ab-sidebar-body .top-menu .sub-menu[aria-expanded="true"],
.ab-sidebar-body .top-menu .sub-menu.collapse.show {
  display: block !important;
}

.ab-sidebar-body .top-menu .sub-menu .top-menu {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
}

.ab-sidebar-body .top-menu .sub-menu a {
  padding: 9px 20px 9px 38px;
  font-size: .84rem;
  color: var(--ab-text-light) !important;
  display: block;
  transition: all .15s ease;
  border-radius: 0;
  font-weight: 400;
}

.ab-sidebar-body .top-menu .sub-menu a:hover {
  background: var(--ab-border-light);
  color: var(--ab-navy) !important;
  padding-left: 42px;
}


/* === REASSURANCE BAR === */
.ab-reassurance-bar {
  background: linear-gradient(135deg, var(--ab-yellow-light) 0%, #fff8dc 100%);
  padding: 11px 0;
  border-bottom: 1px solid var(--ab-border);
}

.ab-reassurance-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ab-reassurance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 500;
  color: #3a3a3a;
}

.ab-reassurance-item i {
  color: var(--ab-green);
  font-size: 1.2rem;
}

/* =============================================
   MAIN CONTENT
   ============================================= */

#wrapper { background: var(--ab-bg); }

/* Section titles */
.featured-products .products-section-title,
.new-products .products-section-title,
.products-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ab-navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ab-yellow);
  display: inline-block;
}

/* Product cards */
.product-miniature {
  background: var(--ab-white);
  border-radius: var(--ab-radius-md);
  border: 1px solid var(--ab-border-light);
  overflow: hidden;
  transition: all .25s ease;
  margin-bottom: 20px;
}

.product-miniature:hover {
  box-shadow: var(--ab-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--ab-border);
}

.product-miniature .product-thumbnail img {
  transition: transform .35s ease;
}

.product-miniature:hover .product-thumbnail img {
  transform: scale(1.05);
}

.product-miniature .product-description { padding: 14px 16px; }

.product-miniature .product-title {
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-miniature .product-title a { color: var(--ab-text); }
.product-miniature .product-title a:hover { color: var(--ab-navy); }

.product-miniature .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.product-miniature .regular-price {
  font-size: .82rem;
  color: var(--ab-text-muted);
  text-decoration: line-through;
}

.product-miniature .discount-percentage,
.product-miniature .discount-amount {
  background: var(--ab-red);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.product-miniature .product-flag {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.product-miniature .product-flag.new { background: var(--ab-green); color: #fff; }
.product-miniature .product-flag.on-sale { background: var(--ab-orange); color: #fff; }
.product-miniature .product-flag.discount { background: var(--ab-red); color: #fff; }
.product-miniature .product-flag.out_of_stock { background: var(--ab-text-muted); color: #fff; }

/* Buttons */
.btn-primary,
.btn-primary:focus {
  background: var(--ab-yellow) !important;
  border-color: var(--ab-yellow) !important;
  color: var(--ab-navy) !important;
  font-weight: 600;
  border-radius: var(--ab-radius-sm);
  font-family: 'Poppins', sans-serif;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--ab-yellow-hover) !important;
  border-color: var(--ab-yellow-hover) !important;
  color: var(--ab-navy) !important;
  box-shadow: var(--ab-shadow-md);
}

/* Breadcrumb */
.breadcrumb { background: transparent; }
.breadcrumb li a { color: var(--ab-text-light); }
.breadcrumb li a:hover { color: var(--ab-yellow-hover); }

/* Left column / Filters */
#left-column .block-categories,
#left-column #search_filters {
  background: var(--ab-white);
  border-radius: var(--ab-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--ab-shadow-sm);
  border: 1px solid var(--ab-border-light);
}

#search_filters .facet-title {
  font-weight: 600;
  color: var(--ab-navy);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ab-yellow-light);
}

/* Product page */
.product-prices .current-price-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.product-add-to-cart .add-to-cart {
  background: var(--ab-yellow);
  border: none;
  color: var(--ab-navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--ab-radius-sm);
  text-transform: none;
  font-family: 'Poppins', sans-serif;
  transition: all .2s ease;
}

.product-add-to-cart .add-to-cart:hover {
  background: var(--ab-yellow-hover);
  box-shadow: var(--ab-shadow-md);
}

.product-tabs .nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--ab-text-light);
  font-weight: 500;
}

.product-tabs .nav-tabs .nav-link.active,
.product-tabs .nav-tabs .nav-link:hover {
  border-bottom-color: var(--ab-yellow);
  color: var(--ab-navy);
  background: transparent;
}

/* Full-width product tabs row (below image + info columns) */
.product-tabs-row {
  margin-top: 32px;
  margin-bottom: 16px;
}

.product-tabs-full {
  background: var(--ab-white);
  border: 1px solid var(--ab-border-light);
  border-radius: var(--ab-radius-md);
  box-shadow: var(--ab-shadow-sm);
  overflow: hidden;
}

.product-tabs-full .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--ab-border-light);
  background: var(--ab-white);
  list-style: none;
}

.product-tabs-full .nav-tabs .nav-item { margin: 0; background: transparent; }

.product-tabs-full .nav-tabs .nav-link {
  display: block;
  padding: 14px 20px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent !important;
  color: var(--ab-text-light);
  font-weight: 600;
  font-size: .95rem;
  text-transform: none;
  transition: color .15s, border-color .15s;
}

.product-tabs-full .nav-tabs .nav-link:hover,
.product-tabs-full .nav-tabs .nav-link:focus {
  color: var(--ab-navy);
  border-bottom-color: var(--ab-yellow-light);
  background: transparent !important;
}

.product-tabs-full .nav-tabs .nav-link.active,
.product-tabs-full .nav-tabs .nav-link.active:hover,
.product-tabs-full .nav-tabs .nav-link.active:focus {
  color: var(--ab-navy);
  border-bottom-color: var(--ab-yellow);
  background: transparent !important;
}

.product-tabs-full .tab-content {
  padding: 24px;
  color: var(--ab-text);
  line-height: 1.6;
}

.product-tabs-full .tab-content h1,
.product-tabs-full .tab-content h2,
.product-tabs-full .tab-content h3,
.product-tabs-full .tab-content h4 {
  color: var(--ab-navy);
}

.product-tabs-full .tab-content a { color: var(--ab-yellow-hover); }
.product-tabs-full .tab-content a:hover { color: var(--ab-navy); }

.product-tabs-full .product-features,
.product-tabs-full .product-manufacturer,
.product-tabs-full .product-quantities {
  margin: 0 0 12px;
}

.product-tabs-full .data-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}

.product-tabs-full .data-sheet dt,
.product-tabs-full .data-sheet dd {
  padding: 10px 14px;
  margin: 0;
  border-bottom: 1px solid var(--ab-border-light);
  font-size: .9rem;
}

.product-tabs-full .data-sheet dt.name {
  color: var(--ab-text-light);
  font-weight: 500;
}

.product-tabs-full .data-sheet dd.value {
  color: var(--ab-navy);
  font-weight: 600;
}

@media (max-width: 575px) {
  .product-tabs-full .nav-tabs { padding: 0 8px; }
  .product-tabs-full .nav-tabs .nav-link {
    padding: 12px 14px;
    font-size: .88rem;
  }
  .product-tabs-full .tab-content { padding: 16px; }
}

.product-cover img { border-radius: var(--ab-radius-md); }
.product-images > li .thumb { border: 2px solid var(--ab-border-light); border-radius: var(--ab-radius-sm); }
.product-images > li .thumb:hover,
.product-images > li .thumb.selected { border-color: var(--ab-yellow); }
#product-availability .product-available { color: var(--ab-green); font-weight: 500; }

/* Cart */
.cart-grid .cart-items,
.cart-grid .cart-summary {
  background: var(--ab-white);
  border-radius: var(--ab-radius-md);
  box-shadow: var(--ab-shadow-sm);
  padding: 20px;
}

.cart-grid .cart-items {
  box-shadow: none;
}

/* Footer */
#footer {
  background: var(--ab-navy);
  color: rgba(255,255,255,.8);
  margin-top: 40px;
}

.footer-container { padding: 40px 0 20px; }
.footer-container .row { align-items: flex-start; }
#footer a { color: rgba(255,255,255,.7); transition: color .15s; }
#footer a:hover { color: var(--ab-yellow); }

#footer h3,
#footer .h3,
#footer h4,
#footer .h4 {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ab-yellow);
  display: inline-block;
}
#footer h3.ab-newsletter-title { border-bottom: none; }

#footer .links .wrapper { margin-bottom: 20px; }
#footer .links .title .h3 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  display: inline;
}
#footer .h3 a,
#footer h3 a,
#footer .myaccount-title a {
  color: #fff;
}
#footer .h3 a:hover,
#footer h3 a:hover,
#footer .myaccount-title a:hover { color: var(--ab-yellow); }

#footer .links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer .links ul li { margin-bottom: 6px; }
#footer .links ul li a,
#footer .block-contact a,
#footer .block-contact {
  font-size: .88rem;
  line-height: 1.55;
}
#footer .links ul li a {
  display: inline-block;
  position: relative;
  padding-left: 0;
}
#footer .links ul li a:hover { padding-left: 6px; }

#footer .block-contact { color: rgba(255,255,255,.75); }
#footer .block-contact a { color: var(--ab-yellow); font-weight: 500; }
#footer .block-contact a:hover { color: var(--ab-yellow-hover); text-decoration: underline; }

.footer-container .copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  margin-top: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* Newsletter (hook displayFooterBefore) */
.ab-newsletter {
  background: var(--ab-navy);
  padding: 40px 0 36px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* .ab-newsletter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ab-yellow);
} */
.ab-newsletter-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ab-newsletter-text { flex: 1 1 320px; }
.ab-newsletter-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
}
.ab-newsletter-title::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 3px;
  background: var(--ab-yellow);
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 2px;
}
.ab-newsletter-subtitle {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin: 0;
}
.ab-newsletter-form { flex: 1 1 380px; margin: 0; }
.ab-newsletter-field {
  display: flex;
  background: #fff;
  border-radius: var(--ab-radius-md);
  padding: 4px;
  box-shadow: var(--ab-shadow-md);
  max-width: 520px;
  margin-left: auto;
}
.ab-newsletter-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 16px;
  color: var(--ab-text);
  font-size: .95rem;
  outline: none;
}
.ab-newsletter-input::placeholder { color: var(--ab-text-muted); }
.ab-newsletter-btn {
  background: var(--ab-yellow);
  color: var(--ab-navy);
  border: none;
  border-radius: var(--ab-radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.ab-newsletter-btn:hover {
  background: var(--ab-yellow-hover);
  transform: translateY(-1px);
}
.ab-newsletter-msg {
  margin: 12px 0 0;
  padding: 8px 14px;
  border-radius: var(--ab-radius-sm);
  font-size: .85rem;
}
.ab-newsletter-msg.is-success { background: rgba(46,139,87,.15); color: #a8e6c2; }
.ab-newsletter-msg.is-error { background: rgba(211,47,47,.15); color: #ffb0b0; }
.ab-newsletter-terms {
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  margin: 10px 0 0;
  text-align: right;
}
@media (max-width: 768px) {
  .ab-newsletter { padding: 24px 0; }
  .ab-newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  /* Reset flex-basis so 320/380px doesn't become vertical height in column mode */
  .ab-newsletter-text,
  .ab-newsletter-form {
    flex: 0 1 auto;
    width: 100%;
  }
  .ab-newsletter-title {
    font-size: 1.15rem;
    margin: 0 0 4px;
  }
  .ab-newsletter-title::before {
    width: 24px;
    margin-right: 8px;
  }
  .ab-newsletter-subtitle { font-size: .85rem; }
  .ab-newsletter-field { margin-left: 0; }
  .ab-newsletter-input { padding: 9px 12px; font-size: .9rem; }
  .ab-newsletter-btn { padding: 9px 14px; font-size: .82rem; }
  .ab-newsletter-terms {
    text-align: left;
    font-size: .72rem;
    margin-top: 8px;
    line-height: 1.4;
  }
}

/* Checkout */
.checkout-step {
  background: var(--ab-white);
  border-radius: var(--ab-radius-md);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--ab-shadow-sm);
}

.checkout-step .step-number {
  background: var(--ab-yellow);
  color: var(--ab-navy);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Step titles: remove default border and use brand colors */
body#checkout section.checkout-step .step-title,
.checkout-step .step-title {
  border-bottom: 0 !important;
  padding-bottom: .5rem;
  color: var(--ab-navy);
  font-weight: 700;
}

body#checkout section.checkout-step.-complete .step-title,
.checkout-step.-complete .step-title {
  color: var(--ab-navy);
}

body#checkout section.checkout-step.-current .step-title,
.checkout-step.-current .step-title {
  color: var(--ab-navy);
}

/* Completed step checkmark: use brand green */
body#checkout section.checkout-step.-complete .step-title .done,
.checkout-step.-complete .step-title .done {
  color: var(--ab-green);
}

/* Current step bubble: yellow pill to match brand */
body#checkout section.checkout-step.-current .step-title .step-number,
.checkout-step.-current .step-title .step-number {
  background: var(--ab-yellow);
  color: var(--ab-navy);
}

/* Edit link on completed steps */
body#checkout section.checkout-step.-complete .step-edit,
.checkout-step.-complete .step-edit {
  color: var(--ab-text-light);
}
body#checkout section.checkout-step.-complete .step-edit:hover,
.checkout-step.-complete .step-edit:hover {
  color: var(--ab-yellow-hover);
}

/* === Simplified checkout header === */
body#checkout #header,
body#order-confirmation #header {
  box-shadow: none;
}

.ab-checkout-header {
  background: var(--ab-navy);
  padding: 14px 0;
  border-bottom: 3px solid var(--ab-yellow);
}

.ab-checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ab-checkout-header .ab-checkout-logo {
  flex: 0 0 auto;
  text-align: center;
}

.ab-checkout-header .ab-checkout-logo img,
.ab-checkout-header .ab-checkout-logo .logo {
  max-height: 56px;
  width: auto;
}

.ab-checkout-header .ab-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--ab-radius-sm);
  transition: background .15s, border-color .15s, color .15s;
}
.ab-checkout-header .ab-checkout-back:hover,
.ab-checkout-header .ab-checkout-back:focus {
  background: var(--ab-yellow);
  border-color: var(--ab-yellow);
  color: var(--ab-navy) !important;
  text-decoration: none;
}
.ab-checkout-header .ab-checkout-back i { font-size: 1.1rem; color: inherit; }

.ab-checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}
.ab-checkout-secure i {
  font-size: 1rem;
  color: var(--ab-yellow);
}

@media (max-width: 575px) {
  .ab-checkout-back span { display: none; }
  .ab-checkout-secure span { display: none; }
  .ab-checkout-header .ab-checkout-logo img,
  .ab-checkout-header .ab-checkout-logo .logo { max-height: 44px; }
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  padding: 0;
  background: none;
}
.pagination > .col-md-4,
.pagination > .col-md-6 {
  flex: 1 1 auto;
  padding: 0;
  margin: 0;
}
.pagination > .col-md-4 {
  font-size: .85rem;
  color: var(--ab-text-light);
}
.pagination > .col-md-6 { display: flex; justify-content: flex-end; }

.pagination .page-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--ab-white);
  border: 1px solid var(--ab-border-light);
  border-radius: var(--ab-radius-md);
  padding: 4px;
  box-shadow: var(--ab-shadow-sm);
}
.pagination .page-list li {
  margin: 0;
  padding: 0;
  float: none;
}
.pagination .page-list li a,
.pagination .page-list li .spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--ab-radius-sm);
  border: none;
  background: transparent;
  color: var(--ab-text);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1;
}
.pagination .page-list li .spacer {
  color: var(--ab-text-muted);
  font-weight: 400;
  min-width: 20px;
  padding: 0 4px;
  cursor: default;
}
.pagination .page-list li a:hover {
  background: var(--ab-yellow-light);
  color: var(--ab-navy);
}
.pagination .page-list li.current a,
.pagination .page-list li.current a.disabled,
.pagination .page-list li.current span {
  background: var(--ab-yellow);
  color: var(--ab-navy);
  border-color: transparent;
  opacity: 1;
  pointer-events: none;
}
.pagination .page-list li a.previous,
.pagination .page-list li a.next {
  background: transparent;
  color: var(--ab-navy);
  padding: 0 12px;
  gap: 2px;
}
.pagination .page-list li a.previous:hover,
.pagination .page-list li a.next:hover {
  background: var(--ab-navy);
  color: #fff;
}
.pagination .page-list li a.disabled,
.pagination .page-list li a.disabled:hover {
  opacity: .35;
  pointer-events: none;
  background: transparent;
  color: var(--ab-text-muted);
}
.pagination .page-list li a .material-icons { font-size: 1.1rem; }

@media (max-width: 575px) {
  .pagination { flex-direction: column; align-items: stretch; gap: 10px; }
  .pagination > .col-md-4 { text-align: center; }
  .pagination > .col-md-6 { justify-content: center; }
  .pagination .page-list li a,
  .pagination .page-list li .spacer {
    min-width: 30px;
    height: 32px;
    font-size: .82rem;
    padding: 0 8px;
  }
  .pagination .page-list li a.previous,
  .pagination .page-list li a.next {
    padding: 0 10px;
    font-size: 0;
  }
  .pagination .page-list li a.previous .material-icons,
  .pagination .page-list li a.next .material-icons { font-size: 1.15rem; }
}

/* Cards */
.card {
  border: 1px solid var(--ab-border-light);
  border-radius: var(--ab-radius-md);
  box-shadow: var(--ab-shadow-sm);
}

/* Alerts */
.alert { border-radius: var(--ab-radius-sm); border: none; }
.alert-success { background: var(--ab-green-light); color: var(--ab-green); }
.alert-danger { background: #fce4ec; color: var(--ab-red); }
.alert-warning { background: var(--ab-yellow-light); color: #8d6e00; }

/* Slider */
#carousel {
  border-radius: var(--ab-radius-lg);
  overflow: hidden;
  box-shadow: var(--ab-shadow-md);
  margin-bottom: 24px;
}

/* Forms */
.form-group .form-control:focus,
.checkout-step input:focus,
.checkout-step select:focus {
  border-color: var(--ab-yellow);
  box-shadow: 0 0 0 3px var(--ab-yellow-light);
}

/* Reassurance block (sidebar — cart / checkout / product) */
.blockreassurance_product.ab-reassurance-side {
  margin-top: 16px;
  padding: 0;
}

.ab-reassurance-side .ab-reassurance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-reassurance-side .ab-reassurance-row { margin: 0; }

.ab-reassurance-side .ab-reassurance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ab-white);
  border: 1px solid var(--ab-border-light);
  border-radius: var(--ab-radius-md);
  color: var(--ab-text) !important;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.ab-reassurance-side .ab-reassurance-card--link:hover {
  border-color: var(--ab-yellow);
  box-shadow: var(--ab-shadow-sm);
  transform: translateY(-1px);
}

.ab-reassurance-side .ab-reassurance-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ab-yellow-light);
  border-radius: 50%;
  margin: 0;
  padding: 0;
}

.ab-reassurance-side .ab-reassurance-icon img {
  max-width: 22px;
  max-height: 22px;
  display: block;
}

.ab-reassurance-side .ab-reassurance-text {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  line-height: 1.35;
}

.ab-reassurance-side .block-title {
  display: block;
  font-weight: 600;
  color: var(--ab-navy) !important;
  font-size: .92rem;
  margin: 0;
}

.ab-reassurance-side .ab-reassurance-desc {
  margin: 2px 0 0;
  font-size: .8rem;
  color: var(--ab-text-light) !important;
}

/* Customer account */
.page-my-account #content .links a {
  border: 1px solid var(--ab-border-light);
  border-radius: var(--ab-radius-md);
  transition: all .2s ease;
}
.page-my-account #content .links a:hover {
  box-shadow: var(--ab-shadow-md);
  border-color: var(--ab-yellow);
  transform: translateY(-2px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
  .ab-topbar {
    padding: 10px 0;
  }
  .ab-topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 10px;
  }

  /* Logo: centered on its own row, above the search bar */
  .ab-topbar .ab-topbar-logo,
  .ab-topbar .ab-topbar-logo#_desktop_logo {
    flex: 0 0 100% !important;
    order: 1 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    margin: 0;
    line-height: 0;
  }
  .ab-topbar-logo h1 {
    display: inline-block !important;
    margin: 0;
    line-height: 0;
  }
  .ab-topbar-logo img,
  .ab-topbar-logo .logo,
  .ab-topbar-logo a,
  .ab-topbar-logo a img {
    max-height: 42px !important;
    display: inline-block !important;
    visibility: visible !important;
    vertical-align: middle;
  }

  .ab-topbar-search {
    order: 2;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ab-topbar-actions {
    order: 3;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .ab-topbar-actions .user-info .hidden-sm-down,
  .ab-topbar-actions .blockcart .hidden-sm-down {
    display: none !important;
  }

  .ab-quicklinks {
    overflow-x: auto;
  }

  .ab-quicklinks a {
    padding: 10px 12px;
    font-size: .8rem;
  }

  .ab-reassurance-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    padding: 0 12px;
  }

  .ab-reassurance-item {
    font-size: .72rem;
    gap: 5px;
  }

  .ab-reassurance-item i {
    font-size: 1rem;
  }
}

/* ============================================
   HOMEPAGE — Category Banners
   ============================================ */
.ab-home-banners {
  margin-bottom: 28px;
}

.ab-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ab-banner-item {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--ab-navy-light);
}

.ab-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .3s ease, transform .3s ease;
}

.ab-banner-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.ab-banner-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26,26,46,.75);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 16px;
  border-radius: 6px;
  line-height: 1.35;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

@media (max-width: 767px) {
  .ab-banner-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ab-banner-item {
    aspect-ratio: 16/9;
  }

  .ab-banner-label {
    font-size: .95rem;
    padding: 6px 10px;
  }
}

/* ============================================
   HOMEPAGE — PrettyBlocks Featured Products
   ============================================ */
.page-home .featured-products {
  margin-bottom: 36px;
  padding: 0;
}

.page-home .featured-products h2,
.page-home .tw_h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ab-navy);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--ab-yellow);
}

/* Product cards */
.page-home .tw_border {
  border: 1px solid var(--ab-border) !important;
  border-radius: 10px !important;
  transition: box-shadow .2s ease, transform .2s ease;
  background: #fff;
}

.page-home .tw_border:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
  transform: translateY(-2px);
}

.page-home .tw_rounded-tl-lg,
.page-home .tw_rounded-tr-lg {
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

.page-home .tw_text-lg {
  font-family: 'Poppins', sans-serif;
  color: var(--ab-navy);
  font-size: .9rem !important;
  line-height: 1.3;
}

.page-home .product-price {
  color: var(--ab-navy);
  font-weight: 700;
}

.page-home .tw_bg-blue-500 {
  background-color: var(--ab-yellow) !important;
  color: var(--ab-navy) !important;
  font-weight: 700;
  border-radius: 6px !important;
  transition: background-color .2s;
}

.page-home .tw_bg-blue-500:hover,
.page-home .hover\:tw_bg-blue-700:hover {
  background-color: var(--ab-yellow-hover) !important;
  color: var(--ab-navy) !important;
}

.page-home .tw_bg-orange-500 {
  background-color: #e74c3c !important;
}

.page-home .all-product-link {
  color: var(--ab-navy) !important;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}

.page-home .all-product-link:hover {
  color: var(--ab-yellow-hover) !important;
}

.page-home .all-product-link i {
  vertical-align: middle;
}

/* Homepage container spacing */
.page-home #content {
  padding-top: 20px;
}

/* PrettyBlocks zone wrapper */
.page-home [data-prettyblocks-zone="displayHome"] {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================
   HOMEPAGE — Category Slider (ProBlocks)
   ============================================ */
._section-block-8 {
  --title-color: var(--ab-navy);
  --title-font-size: 1.5rem;
  --title-font-family: 'Poppins', sans-serif;
  --title-font-weight: 700;
  --tab-color: var(--ab-text);
  --tab-font-size: .95rem;
  --tab-font-family: 'Poppins', sans-serif;
  --tab-font-weight: 600;
  --tab-active-color: var(--ab-navy);
  --tab-hover-color: var(--ab-yellow-hover);
  --arrow-color: var(--ab-navy);
  --arrow-background-color: var(--ab-yellow);
  --arrow-size: 20px;
  padding: 0;
  margin-bottom: 32px;
}

._section-block-8 ._tab._active {
  border-bottom: 2px solid var(--ab-yellow) !important;
  color: var(--ab-navy) !important;
}

._section-block-8 ._tab:hover {
  color: var(--ab-navy) !important;
}

/* Mobile: Bootstrap custom-select dropdown replaces the tab bar */
.ab-tabs-mobile-select { display: none; }

@media (max-width: 767px) {
  ._section-block-8 { --title-font-size: 1.2rem; }
  ._section-block-8 .ptb-title { padding: 0 4px; }

  /* Hide the <ul> tab bar — replaced by <select>.custom-select */
  ._section-block-8 ul[id^="tab-"] { display: none !important; }

  .ab-tabs-mobile-select.custom-select {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    height: auto;
    padding: 10px 36px 10px 14px;
    background-color: var(--ab-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a2e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius-sm);
    color: var(--ab-navy);
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    box-shadow: var(--ab-shadow-sm);
  }

  .ab-tabs-mobile-select.custom-select:focus {
    border-color: var(--ab-yellow);
    box-shadow: 0 0 0 3px var(--ab-yellow-light);
  }
}

._section-block-8 .glide__arrow {
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

._section-block-8 .ptb-title {
  margin-bottom: 8px !important;
}

/* Product cards in category slider */
._section-block-8 ._product-card,
._section-block-8 .glide__slide {
  font-family: 'Poppins', sans-serif;
}

._section-block-8 ._product-card img {
  border-radius: 8px;
}

._section-block-8 ._product-name,
._section-block-8 ._product-title {
  font-size: .85rem;
  color: var(--ab-navy);
  line-height: 1.3;
}

._section-block-8 ._product-price,
._section-block-8 .product-price {
  font-weight: 700;
  color: var(--ab-navy);
}

/* === Category Slider — Grid mode === */
.catslider-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 20px;
  width: 100%;
}

.catslider-grid-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.catslider-grid-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.catslider-product-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 12px;
}

.catslider-product-link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
}

.catslider-product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  text-align: center;
}

.catslider-product-name {
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ab-navy);
  line-height: 1.3;
}

.catslider-product-price {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.catslider-grid-panel._hidden {
  display: none;
}

@media (max-width: 991px) {
  .catslider-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 575px) {
  .catslider-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .catslider-product-name { font-size: .75rem; }
  .catslider-product-price { font-size: .85rem; }
}

/* ============================================
   SUBCATEGORIES GRID
   ============================================ */
.ab-subcategories {
  margin-bottom: 28px;
}

.ab-subcategories-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ab-navy);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--ab-yellow);
}

.ab-subcategories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ab-subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  padding: 14px 10px;
  transition: box-shadow .2s, transform .2s;
}

.ab-subcat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.ab-subcat-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.ab-subcat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
}

/* Logo fallback when the subcategory has no image */
.ab-subcat-img--placeholder {
  background: var(--ab-navy);
  border-radius: var(--ab-radius-sm);
}
.ab-subcat-img--placeholder img.ab-subcat-logo-fallback {
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: .9;
}

.ab-subcat-card:hover .ab-subcat-img img {
  transform: scale(1.08);
}

.ab-subcat-name {
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ab-navy);
  text-align: center;
  line-height: 1.3;
}

/* Hide old subcategories style */
#subcategories.card { display: none; }

@media (max-width: 991px) {
  .ab-subcategories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .ab-subcategories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .ab-subcat-card { padding: 10px 8px; }
  .ab-subcat-name { font-size: .73rem; }
}

/* Hide subcategories block on category 19 (Clous - Gaz - Agrafes) */
body.category-id-19 #subcategories,
body.category-id-19 .ab-subcategories { display: none; }

/* Category header — mobile-first, compact */
#js-product-list-header .block-category {
  min-height: 0;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: none;
  background: var(--ab-white);
  border-radius: var(--ab-radius-md);
  box-shadow: var(--ab-shadow-sm);
}
#js-product-list-header .block-category .h1,
#js-product-list-header .block-category h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ab-navy);
  margin: 0;
  line-height: 1.25;
}
#js-product-list-header .block-category-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 10px;
}
#js-product-list-header .block-category-inner:empty { display: none; }
#js-product-list-header #category-description {
  flex: 1;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ab-text-light);
}
#js-product-list-header #category-description p:last-child { margin-bottom: 0; }
#js-product-list-header .category-cover {
  flex: 0 0 96px;
  order: 2;
}
#js-product-list-header .category-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--ab-radius-sm);
  display: block;
}
/* Collapse the gap when there's no inner content */
#js-product-list-header .block-category:not(:has(.block-category-inner *)) {
  padding: 10px 16px;
}

@media (min-width: 768px) {
  #js-product-list-header .block-category {
    padding: 20px 24px;
    margin-bottom: 24px;
  }
  #js-product-list-header .block-category .h1,
  #js-product-list-header .block-category h1 { font-size: 1.6rem; }
  #js-product-list-header .category-cover { flex: 0 0 140px; }
  #js-product-list-header #category-description { font-size: .92rem; }
}

@media (max-width: 480px) {
  .ab-subcategories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
