/*
Theme Name:     HBT Kroczyce 2.3
Theme URI:      https://hbt.mediadom.pl/
Description:    HBT Kroczyce 2.3 — standalone storefront theme. Pełny sklep WooCommerce, archiwa marek z GPSR, blog, kontakt, 404. Palette: lime-green #8BC34A + cream #F8F7F2. Perf: transient cache homepage (1h), preload LCP, disabled emoji/oEmbed/jQuery Migrate. Brand logo resolver z 5 poziomami fallbacku. Base typography (Poppins) wymuszone globalnie. Hero slider z CPT hbt_slide + importer z produkcji.
Author:         HBT / WooCloudTheme
Version:        2.3.9
Text Domain:    hbt
Requires at least: 6.0
Requires PHP:   7.4
*/

/* ================================================================
   HBT BRAND PALETTE  — exposed as CSS variables
   Source of truth: -hbt-v7/colors.md
   NOTE: functions.php injects <style id="hbt-v7-chrome-vars"> via
   wp_head (higher load-order) — keep both files in sync.
   ================================================================ */
:root {

  /* TŁA I POWIERZCHNIE */
  --bg:          #F8F7F2;   /* główne tło strony, body, karty produktów */
  --bg2:         #FBFBF9;   /* sekcje, th w tabelach, dropdowny menu */
  --bg-brand:    #FFFFFF;   /* wyłącznie kafelki z obcymi logotypami marek */

  /* GŁÓWNA PALETA HBT */
  --primary:     #8BC34A;   /* przyciski "Dodaj do koszyka", ceny, hovery menu */
  --primary-d:   #7CB342;   /* hover na głównych przyciskach akcji */
  --primary-l:   #AED581;   /* subtelne podświetlenia, secondary borders */

  /* AKCENTY I DETALE */
  --secondary:   #FDD835;   /* bannery, odznaki promo (.labels .onhot) */
  --tertiary:    #689F38;   /* ikony kategorii rolniczych, detale sekcji o nas */
  --accent:      #B87333;   /* techniczne ikony, linki informacyjne */

  /* TYPOGRAFIA I CIEMNE ELEMENTY */
  --dark:        #1A1714;   /* stopka, H1–H6, nagłówki widgetów */
  --dark2:       #2C2824;   /* tła wtórne w stopce, hover ciemnych elementów */
  --text:        #1A1714;   /* body, opisy produktów w tabelach WooCommerce */
  --text-l:      #616161;   /* placeholdery, daty wpisów, breadcrumbs (WCAG AA) */

  /* STATUSY (WooCommerce Notices) */
  --danger:      #E25656;   /* etykiety .onsale, błędy walidacji checkoutu */
  --warning:     #FFA000;   /* "Na wyczerpaniu", "Tylko 2 sztuki" */
  --success:     #E8F5E9;   /* tło powiadomienia "Dodano do koszyka" */

  /* OBRAMOWANIA */
  --border:      #E0E0E0;   /* inputy checkout, quantity box, ramki gridu */
  --border-l:    #F0F0F0;   /* separatory list, tabele, rozdzielacze dropdown */

  /* CIENIE */
  --shadow-s:    rgba(26, 23, 20, 0.05);  /* drobne kafelki marek */
  --shadow:      rgba(26, 23, 20, 0.08);  /* hover kart produktów */
  --shadow-l:    rgba(26, 23, 20, 0.12);  /* mega menu, duże elementy */

  /* BACKWARD COMPAT — aliasy dla istniejącego kodu używającego --hbt-* */
  --hbt-primary:        var(--primary);
  --hbt-primary-dark:   var(--primary-d);
  --hbt-primary-light:  var(--primary-l);
  --hbt-secondary:      var(--secondary);
  --hbt-secondary-dark: #c8a81a;
  --hbt-dark:           var(--dark);
  --hbt-muted:          var(--text-l);
  --hbt-bg-soft:        var(--bg);
  --hbt-border:         var(--border);

  /* HBT variables – redefine where HBT exposes any */
  --theme-primary-color:   var(--primary);
  --theme-secondary-color: var(--secondary);
  --theme-dark-color:      var(--tertiary);
}

/* ================================================================
   BASE TYPOGRAPHY (v2.2.2) — bez HBT jako parenta brakowało tego
   resetu, przeglądarka renderowała H1-H6 defaultowym serifem (Times).
   Wymuszamy Poppins/sans-serif na całym drzewie.
   ================================================================ */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* blokada poziomego scrolla — częste źródło "ramki" po bokach */
}
body { min-width: 0 !important; border: 0 !important; outline: 0 !important; }
html { background: var(--bg); }
/* Szerokość każdego sekcyjnego wrappera — full viewport, bez białych pasów po bokach */
.promo-bar, .site-header, .site-nav, .hbt-homepage, .hbt-main-wrap,
.hbt-footer, main#main, main#mainContent {
  width: 100%; max-width: 100%; border: 0;
}
.site-header { border-bottom: 1px solid var(--border-l); } /* zachowaj subtelną linię separacji */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 0.5em;
}
h1, .h1 { font-size: 2rem; font-weight: 800; }
h2, .h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.1rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.9rem; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
img { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* ================================================================
   PORTO COLOR OVERRIDES
   Targeting HBT's actual selectors (not CSS vars – HBT still
   ships many hard-coded hex values in its compiled skin CSS).
   Keep selectors tight; never touch layout / positioning.
   ================================================================ */

/* links + accents */
a,
.ext-u-text-primary,
.text-primary{ color: var(--hbt-primary); }

a:hover,
a:focus{ color: var(--hbt-primary-dark); }

/* buttons */
.btn-primary,
.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.ext-btn-primary,
.elementor-button-wrapper .elementor-button[type="submit"],
.single_add_to_cart_button{
    background-color: var(--hbt-primary) !important;
    border-color:     var(--hbt-primary) !important;
    color:            #fff !important;
}
.btn-primary:hover,
.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.ext-btn-primary:hover,
.single_add_to_cart_button:hover{
    background-color: var(--hbt-primary-dark) !important;
    border-color:     var(--hbt-primary-dark) !important;
}

/* sale badge — HBT uses div.onsale, WooCommerce uses span.onsale */
.woocommerce span.onsale,
.onsale,
.labels .onsale{
    background-color: var(--danger) !important;
    color: #fff !important;
    border-color: var(--danger) !important;
}
/* promo badge — HBT .onhot */
.onhot,
.labels .onhot{
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
}
/* secondary / gold accents (non-badge) */
.badge-primary,
.ext-u-bg-secondary,
.bg-secondary{
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
}

/* headings skin tone */
.ext-heading .ext-u-title::after,
.ext-heading-border::after,
.widget .widget-title::after{
    background-color: var(--hbt-primary) !important;
}

/* menu hover */
#main-nav .menu > li:hover > a,
#main-nav .menu > li.current-menu-item > a,
.main-menu .menu-item.active > a,
.main-menu .menu-item:hover > a{
    color: var(--hbt-primary) !important;
}

/* top-bar (HBT "top-bar" has dark skin — HBT forest) */
.top-bar,
#header .top-bar{
    background-color: var(--hbt-primary-dark) !important;
    color: #fff;
}
.top-bar a{ color: #e8e8e8; }
.top-bar a:hover{ color: var(--hbt-secondary); }

/* price — nowa cena zielona, przekreślona szara z odstępem */
.woocommerce .price ins,
.woocommerce .price ins .woocommerce-Price-amount.amount{ color: var(--primary); }
/* Bare (non-sale) price amounts must inherit from the .price wrapper so
 * they take the green color set per-context — the global `inverse` was
 * HBT's white-on-primary-bg helper and rendered invisible on white
 * product cards. */
.woocommerce .price .woocommerce-Price-amount.amount{ color: inherit; }
.woocommerce .price del,
.woocommerce .price del .woocommerce-Price-amount.amount{
    color: var(--text-l) !important;
    font-weight: 400;
}
.woocommerce .price del{ margin-right: 6px; opacity: .75; }
.woocommerce .price ins{ text-decoration: none; }

/* form focus */
input:focus,
textarea:focus,
select:focus,
.form-control:focus{
    border-color: var(--hbt-primary) !important;
    box-shadow: 0 0 0 2px rgba(77,174,101,.15) !important;
}

/* ================================================================
   RESPONSIVE-IMAGES SAFEGUARD
   User asked: obrazki mają same się rozciągać.
   HBT already sets this in most places, but enforce globally
   inside content / Elementor / widgets.
   ================================================================ */
.entry-content img,
.hbt-elementor-zone img,
.elementor img,
.widget img,
.ext-u img{
    max-width: 100%;
    height: auto;
}

/* ================================================================
   HBT BUSINESS BLOCK STYLES — used by inc/brand-template.php,
   inc/category-template.php, inc/gpsr.php
   ================================================================ */
.hbt-brand-hero,
.hbt-category-hero,
.hbt-cat-hero{
    background: linear-gradient(135deg, var(--hbt-primary-dark) 0%, var(--hbt-primary) 100%);
    color: #fff;
    padding: 48px 24px;
    border-radius: 8px;
    margin: 0 0 32px;
}
.hbt-brand-hero h1,
.hbt-category-hero h1,
.hbt-cat-hero h1{ color:#fff; margin:0 0 12px; }
.hbt-brand-hero .lead,
.hbt-category-hero .lead,
.hbt-cat-hero .lead{ color:#f0f0f0; max-width:720px; }

.hbt-gpsr-info{
    background: var(--hbt-bg-soft);
    border-left: 4px solid var(--hbt-primary);
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 14px;
    border-radius: 4px;
}
.hbt-gpsr-info h4{
    margin: 0 0 12px;
    color: var(--hbt-primary-dark);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.hbt-gpsr-info dl{ display:grid; grid-template-columns: 180px 1fr; gap:6px 14px; margin:0; }
.hbt-gpsr-info dt{ font-weight:600; color:var(--hbt-dark); }
.hbt-gpsr-info dd{ margin:0; color:var(--hbt-muted); }

.hbt-subcategory-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap:16px;
    margin: 24px 0 32px;
}
.hbt-subcategory-card{
    background:#fff;
    border:1px solid var(--hbt-border);
    border-radius:6px;
    padding:18px;
    text-align:center;
    transition: all .2s ease;
}
.hbt-subcategory-card:hover{
    border-color: var(--hbt-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.hbt-subcategory-card a{ color: var(--hbt-dark); font-weight:600; text-decoration:none; }
.hbt-subcategory-card .count{ display:block; color:var(--hbt-muted); font-size:12px; margin-top:4px; }

/* ================================================================
   HBT v7.1 — Popupy (natywny modal dla newsletter/leasing/kontakt)
   ================================================================ */
body.hbt-popup-lock{ overflow:hidden; }
.hbt-popup{ position:fixed; inset:0; z-index:99999; display:none; }
.hbt-popup.is-open{ display:block; }
.hbt-popup-backdrop{ position:absolute; inset:0; background:rgba(15,20,15,.72); backdrop-filter:blur(2px); }
.hbt-popup-box{
    position:relative; max-width:480px; margin:10vh auto; background:#fff; border-radius:14px;
    padding:34px 32px 26px; box-shadow:0 24px 60px rgba(0,0,0,.35); text-align:center;
    animation:hbtPopIn .25s ease-out;
}
@keyframes hbtPopIn { from { transform:translateY(18px); opacity:0; } to { transform:none; opacity:1; } }
.hbt-popup-close{
    position:absolute; top:10px; right:10px; width:34px; height:34px; border-radius:50%;
    border:0; background:#f3f3f3; color:#333; cursor:pointer; font-size:14px; transition:.15s;
}
.hbt-popup-close:hover{ background:var(--hbt-primary); color:#fff; }
.hbt-popup-icon{
    width:72px; height:72px; border-radius:50%; margin:0 auto 14px;
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,var(--hbt-primary),var(--hbt-primary-dark));
    color:#fff; font-size:30px;
}
.hbt-popup h3{ margin:0 0 8px; color:var(--hbt-dark); font-size:22px; }
.hbt-popup p { margin:0 0 18px; color:#555; line-height:1.5; }
.hbt-popup-form{ display:flex; flex-direction:column; gap:10px; }
.hbt-popup-form input{
    width:100%; padding:12px 14px; border:1px solid #ddd; border-radius:8px; font-size:15px;
}
.hbt-popup-form input:focus{ border-color:var(--hbt-primary); outline:none; box-shadow:0 0 0 3px rgba(77,174,101,.15); }
.hbt-btn-primary{
    padding:12px 18px; background:var(--hbt-primary); color:#fff; border:0; border-radius:8px;
    font-weight:600; font-size:15px; cursor:pointer; transition:.15s; text-decoration:none;
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.hbt-btn-primary:hover{ background:var(--hbt-primary-dark); color:#fff; }
.hbt-btn-secondary{
    padding:12px 18px; background:#fff; color:var(--hbt-dark); border:1px solid var(--hbt-border); border-radius:8px;
    font-weight:600; font-size:15px; cursor:pointer; transition:.15s; text-decoration:none;
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.hbt-btn-secondary:hover{ border-color:var(--hbt-primary); color:var(--hbt-primary); }
.hbt-popup-footnote{ display:block; margin-top:14px; color:#888; font-size:12px; }
.hbt-popup-footnote a{ color:var(--hbt-primary); }
.hbt-popup-contact-row{ display:flex; flex-direction:column; gap:10px; }

/* Hero z Slider Revolution — neutralny wrapper */
.home-hero--rev{ padding:0 !important; background:transparent !important; }
.home-hero--rev .rev_slider_wrapper{ border-radius:12px; overflow:hidden; }

/* Custom-content zone (gdy admin wstawi własny HTML w treści strony) */
.hbt-custom-content{ max-width:1400px; margin:0 auto; padding:20px; }

/* ================================================================
   HBT HOMEPAGE LAYOUT — all classes generated by inc/shortcodes.php
   ================================================================ */

/* Wrapper */
.container-full{ max-width:1400px; margin:0 auto; padding:0 20px; box-sizing:border-box; }

/* Two-column layout: sidebar + content */
.home-layout{ display:flex; gap:24px; align-items:flex-start; padding:28px 0 0; }

/* ---- SIDEBAR ---- */
.home-sidebar{ flex:0 0 240px; width:240px; }
.sb-cats{ list-style:none; margin:0; padding:0; background:#fff; border:1px solid var(--hbt-border); border-radius:8px; overflow:visible; }
.sb-cat{ position:relative; border-bottom:1px solid var(--hbt-border); }
.sb-cat:last-child{ border-bottom:0; }
.sb-cat>a{ display:flex; align-items:center; gap:10px; padding:9px 14px; color:var(--hbt-dark); font-size:13px; text-decoration:none; transition:background .15s,color .15s; }
.sb-cat>a:hover,.sb-cat>a:focus{ background:var(--hbt-bg-soft); color:var(--hbt-primary); }
.sb-cat>a .fas{ width:16px; color:var(--hbt-primary); flex-shrink:0; }
.sb-arrow{ position:absolute; top:50%; right:10px; transform:translateY(-50%); font-size:10px; color:var(--hbt-muted); pointer-events:none; }
.sb-flyout{ display:none; position:absolute; left:100%; top:0; z-index:9999; background:#fff; border:1px solid var(--hbt-border); border-radius:8px; min-width:240px; padding:14px; box-shadow:0 8px 30px rgba(0,0,0,.13); }
.sb-cat:hover>.sb-flyout{ display:block; }
.sb-flyout h4{ margin:0 0 10px; font-size:13px; font-weight:700; color:var(--hbt-primary-dark); text-transform:uppercase; letter-spacing:.4px; }
.sb-flyout-col ul{ list-style:none; margin:0; padding:0; }
.sb-flyout-col ul li a{ display:block; padding:5px 0; font-size:13px; color:var(--hbt-dark); text-decoration:none; }
.sb-flyout-col ul li a:hover{ color:var(--hbt-primary); }
.sb-brands{ display:flex; flex-wrap:wrap; gap:5px; margin:10px 0 0; padding:10px; background:var(--hbt-bg-soft); border-radius:6px; }
.sb-brand-item{ padding:3px 9px; background:#fff; border:1px solid var(--hbt-border); border-radius:20px; font-size:11px; font-weight:700; color:var(--hbt-dark); text-decoration:none; transition:.15s; }
.sb-brand-item:hover{ border-color:var(--hbt-primary); color:var(--hbt-primary); }
.sb-promo{ display:flex; align-items:center; gap:8px; margin:10px 0 0; padding:10px 14px; background:var(--hbt-primary); color:#fff; border-radius:6px; text-decoration:none; font-size:13px; font-weight:600; transition:.15s; }
.sb-promo:hover{ background:var(--hbt-primary-dark); color:#fff; }

/* ---- HOME CONTENT ---- */
.home-content{ flex:1; min-width:0; }

/* ---- HERO ---- */
.home-hero{ border-radius:10px; overflow:hidden; margin-bottom:18px; }
.hero-slide{ position:relative; min-height:320px; padding:48px 40px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.hero-text{ max-width:500px; }
.hero-tag{ display:inline-block; background:rgba(255,255,255,.18); color:#fff; padding:4px 14px; border-radius:20px; font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; margin-bottom:14px; border:1px solid rgba(255,255,255,.35); }
.hero-text h2{ color:#fff; font-size:30px; line-height:1.25; margin:0 0 10px; }
.hero-text p{ color:rgba(255,255,255,.9); font-size:15px; margin:0 0 22px; }
.hero-btn{ display:inline-flex; align-items:center; gap:8px; background:#fff; color:var(--hbt-primary-dark); padding:11px 22px; border-radius:8px; font-weight:700; font-size:14px; text-decoration:none; transition:.2s; }
.hero-btn:hover{ background:var(--hbt-secondary); color:#fff; }
.hero-visual{ flex:0 0 160px; display:flex; align-items:center; justify-content:center; }
.hero-icon-wrap{ width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; font-size:52px; color:rgba(255,255,255,.9); }

/* ---- BANNERS ---- */
.home-banners{ margin-bottom:18px; }
.banner-track{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.banner-card{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 16px; border-radius:10px; color:#fff; text-decoration:none; transition:transform .2s,box-shadow .2s; }
.banner-card:hover,.banner-card:focus{ transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,.2); color:#fff; }
.bc-text span{ display:block; font-size:11px; opacity:.85; }
.bc-text strong{ display:block; font-size:13px; font-weight:700; line-height:1.3; }
.bc-icon .fas{ font-size:24px; opacity:.7; }

/* ---- PRODUCTS ---- */
.home-products{ margin-bottom:24px; }
.section-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid var(--hbt-border); }
.section-header h2{ margin:0; font-size:20px; color:var(--hbt-dark); }
.see-all{ font-size:13px; color:var(--hbt-primary); text-decoration:none; font-weight:600; display:flex; align-items:center; gap:5px; }
.see-all:hover{ color:var(--hbt-primary-dark); }
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.product-card{ background:#fff; border:1px solid var(--hbt-border); border-radius:10px; overflow:hidden; transition:box-shadow .2s,transform .2s; display:flex; flex-direction:column; }
.product-card:hover{ box-shadow:0 6px 20px rgba(0,0,0,.09); transform:translateY(-2px); }
.product-image{ position:relative; aspect-ratio:1; background:var(--hbt-bg-soft); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.product-image img{ width:100%; height:100%; object-fit:contain; }
.product-placeholder{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.badge-sale,.badge-new{ position:absolute; left:8px; z-index:1; padding:3px 8px; border-radius:12px; font-size:11px; font-weight:700; color:#fff; }
.badge-sale{ top:8px; background:var(--hbt-primary); }
.badge-new{ top:30px; background:var(--hbt-secondary); }
.quick-actions{ position:absolute; bottom:8px; left:50%; transform:translateX(-50%); display:flex; gap:5px; opacity:0; transition:opacity .2s; }
.product-card:hover .quick-actions{ opacity:1; }
.quick-actions button{ width:30px; height:30px; border-radius:50%; border:1px solid var(--hbt-border); background:#fff; cursor:pointer; font-size:13px; color:var(--hbt-dark); display:flex; align-items:center; justify-content:center; transition:.15s; }
.quick-actions button:hover{ background:var(--hbt-primary); color:#fff; border-color:var(--hbt-primary); }
.product-content{ padding:12px; flex:1; display:flex; flex-direction:column; gap:5px; }
.product-brand{ font-size:11px; font-weight:700; color:var(--hbt-primary); text-transform:uppercase; letter-spacing:.5px; }
.product-title{ font-size:13px; color:var(--hbt-dark); text-decoration:none; font-weight:600; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-title:hover{ color:var(--hbt-primary); }
.product-rating{ display:flex; align-items:center; gap:3px; font-size:12px; color:var(--hbt-secondary); }
.product-rating span{ color:var(--hbt-muted); }
.product-price{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px; }
.product-price .price-now{ font-size:15px; font-weight:700; color:var(--hbt-primary-dark); }
.product-price .price-now .woocommerce-Price-amount{ font-size:inherit; font-weight:inherit; color:inherit; }
.product-price del.price-old{ font-size:12px; font-weight:400; color:var(--hbt-muted); text-decoration:line-through; }
.product-price del.price-old .woocommerce-Price-amount{ color:inherit; }
.product-price .price-vat{ font-size:10px; font-weight:400; color:var(--hbt-muted); margin-left:2px; }
/* Hide WC omnibus / lowest-price compliance text from homepage cards */
.product-card .woocommerce-product-price-range-message,
.product-card .woocommerce-price-range { display:none!important; }
.price-net{ font-size:11px; color:var(--hbt-muted); }
.btn-cart{ margin-top:auto; display:flex; align-items:center; justify-content:center; gap:6px; padding:9px 12px; background:var(--hbt-primary); color:#fff; border-radius:6px; font-size:13px; font-weight:600; text-decoration:none; transition:.15s; }
.btn-cart:hover,.btn-cart:focus{ background:var(--hbt-primary-dark); color:#fff; }

/* ── WC Price History plugin (omnibus/lowest price in 30 days) ── */
/* Make the "Najniższa cena" block subtle in all product card contexts */
.woocommerce ul.products .wc-price-history.prior-price,
.woocommerce ul.products .wc-price-history.prior-price *,
.hbt-shop-wrap .wc-price-history.prior-price,
.hbt-shop-wrap .wc-price-history.prior-price *,
.home-products .wc-price-history.prior-price {
  display:block!important;
  font-size:10px!important;
  font-weight:400!important;
  color:var(--text-l,#999)!important;
  line-height:1.3!important;
  margin-top:2px!important;
  text-decoration:none!important;
}
/* Also hide it completely from homepage product cards (we render price manually) */
.product-card .wc-price-history { display:none!important; }

/* v2.0.71 — Defensive: the wc-price-history plugin output rendered
 * INSIDE .price (on single product pages & anywhere .price is an
 * inline-flex/h2-sized container) inherits huge font. Clamp it to
 * small body text in every context. */
.price .wc-price-history,
.price .wc-price-history *,
.woocommerce-Price-amount + .wc-price-history,
.summary .price .wc-price-history,
.summary .price .wc-price-history *,
.hbt-single-product .price .wc-price-history,
.hbt-single-product .price .wc-price-history * {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--text-l, #999) !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.price .wc-price-history,
.summary .price .wc-price-history,
.hbt-single-product .price .wc-price-history {
  display: block !important;
  margin-top: 6px !important;
}

/* ---- INFO BAR ---- */
.home-info-bar{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; background:var(--hbt-primary-dark); border-radius:10px; padding:18px 22px; margin-bottom:22px; color:#fff; }
.info-item{ display:flex; align-items:center; gap:10px; }
.info-item>.fas{ font-size:26px; opacity:.75; flex-shrink:0; }
.info-item strong{ display:block; font-size:13px; }
.info-item span{ font-size:11px; opacity:.8; }

/* ---- CATEGORIES SHOWCASE ---- */
.home-categories{ margin-bottom:10px; }
.cat-showcase{ display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
.cat-card{ background:#fff; border:1px solid var(--hbt-border); border-radius:8px; padding:16px 10px; text-align:center; text-decoration:none; color:var(--hbt-dark); transition:all .2s; display:flex; flex-direction:column; align-items:center; gap:5px; }
.cat-card:hover{ border-color:var(--hbt-primary); box-shadow:0 4px 14px rgba(0,0,0,.08); color:var(--hbt-dark); }
.cat-icon{ width:44px; height:44px; border-radius:50%; background:var(--hbt-bg-soft); display:flex; align-items:center; justify-content:center; margin-bottom:3px; }
.cat-icon .fas{ font-size:18px; color:var(--hbt-primary); }
.cat-card strong{ font-size:12px; font-weight:600; }
.cat-card span{ font-size:11px; color:var(--hbt-muted); }

/* ---- SECTION HEADER (large — offer/industries/about/etc.) ---- */
.section-header-lg{ text-align:left; margin-bottom:36px; }
.section-header-lg h2{ font-size:26px; margin:0 0 10px; color:var(--hbt-dark); display:block; position:relative; padding-left:14px; border-left:4px solid var(--theme-primary-color,var(--hbt-primary)); border-radius:2px; }
.section-header-lg h2::after{ display:none; }
.section-header-lg p{ color:var(--hbt-muted); font-size:15px; margin:0; padding-left:14px; }
.sh-accent{ display:none; }

/* ---- OFFER SECTION ---- */
.hbt-offer{ padding:56px 0; background:var(--hbt-bg-soft); }
.offer-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.offer-card{ background:#fff; border-radius:12px; overflow:hidden; border:1px solid var(--hbt-border); transition:box-shadow .2s,transform .2s; }
.offer-card:hover{ box-shadow:0 8px 28px rgba(0,0,0,.1); transform:translateY(-3px); }
.offer-img{ height:130px; display:flex; align-items:center; justify-content:center; font-size:52px; color:rgba(255,255,255,.85); }
.offer-body{ padding:18px; }
.offer-body h3{ margin:0 0 8px; font-size:15px; color:var(--hbt-dark); display:flex; align-items:center; }
.offer-accent{ display:inline-block; width:18px; height:3px; background:var(--hbt-primary); margin-right:8px; vertical-align:middle; border-radius:2px; flex-shrink:0; }
.offer-body p{ font-size:13px; color:var(--hbt-muted); line-height:1.5; margin:0 0 12px; }
.osc-track{ display:flex; flex-wrap:wrap; gap:5px; }
.osc-track a{ padding:3px 9px; background:var(--hbt-bg-soft); border-radius:14px; font-size:12px; color:var(--hbt-primary); text-decoration:none; border:1px solid var(--hbt-border); transition:.15s; }
.osc-track a:hover{ background:var(--hbt-primary); color:#fff; border-color:var(--hbt-primary); }
.osc-prev,.osc-next{ display:none; }

/* ---- INDUSTRIES ---- */
.hbt-industries{ padding:56px 0; }
.industry-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.industry-card{ background:#fff; border:1px solid var(--hbt-border); border-radius:12px; overflow:hidden; transition:box-shadow .2s,transform .2s; }
.industry-card:hover{ box-shadow:0 8px 24px rgba(0,0,0,.09); transform:translateY(-2px); }
.ind-img{ height:110px; display:flex; align-items:center; justify-content:center; font-size:44px; color:rgba(255,255,255,.85); }
.ind-body{ padding:16px; }
.ind-body h3{ margin:0 0 6px; font-size:15px; color:var(--hbt-dark); }
.ind-body p{ margin:0; font-size:13px; color:var(--hbt-muted); line-height:1.5; }

/* ---- ABOUT ---- */
.hbt-about{ padding:56px 0; background:var(--hbt-bg-soft); }
.about-layout{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.about-video-placeholder{ background:var(--hbt-primary-dark); color:#fff; border-radius:14px; min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; cursor:pointer; }
.about-video-placeholder .fas{ font-size:52px; opacity:.7; }
.about-video-placeholder span{ font-size:14px; opacity:.85; }
.about-content h2{ font-size:24px; margin:0 0 10px; }
.about-content>p{ color:var(--hbt-muted); line-height:1.6; margin:0 0 22px; }
.about-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:22px; }
.about-stat{ text-align:center; }
.stat-icon{ font-size:18px; color:var(--hbt-primary); margin-bottom:3px; }
.stat-val{ font-size:20px; font-weight:700; color:var(--hbt-primary-dark); }
.stat-label{ font-size:11px; color:var(--hbt-muted); }
.about-btn{ display:inline-flex; align-items:center; gap:8px; padding:11px 22px; background:var(--hbt-primary); color:#fff; border-radius:8px; font-weight:600; font-size:14px; text-decoration:none; transition:.15s; }
.about-btn:hover{ background:var(--hbt-primary-dark); color:#fff; }

/* ---- TESTIMONIALS ---- */
.hbt-testimonials{ padding:56px 0; }
.testimonial-track{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.testimonial-card{ background:#fff; border:1px solid var(--hbt-border); border-radius:12px; padding:22px; display:flex; flex-direction:column; gap:14px; }
.tc-quote .fas{ font-size:22px; color:var(--hbt-primary); opacity:.3; }
.tc-text p{ margin:0; font-size:13px; color:var(--hbt-muted); line-height:1.6; font-style:italic; }
.tc-stars{ color:var(--hbt-secondary); font-size:12px; }
.tc-author{ display:flex; align-items:center; gap:10px; margin-top:auto; }
.tc-avatar{ width:40px; height:40px; border-radius:50%; background:var(--hbt-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0; }
.tc-info strong{ display:block; font-size:13px; color:var(--hbt-dark); }
.tc-info span{ font-size:11px; color:var(--hbt-muted); }
.testimonial-nav{ display:flex; justify-content:center; gap:10px; margin-top:22px; }
.ts-prev,.ts-next{ width:36px; height:36px; border-radius:50%; border:1px solid var(--hbt-border); background:#fff; cursor:pointer; font-size:13px; color:var(--hbt-dark); display:flex; align-items:center; justify-content:center; transition:.15s; }
.ts-prev:hover,.ts-next:hover{ background:var(--hbt-primary); color:#fff; border-color:var(--hbt-primary); }

/* ---- BRANDS CAROUSEL ---- */
.hbt-brands-section{ padding:44px 0; background:var(--hbt-bg-soft); }
.brands-carousel{ position:relative; display:flex; align-items:center; gap:8px; }
.bc-prev,.bc-next{ flex-shrink:0; width:36px; height:36px; border-radius:50%; border:1px solid var(--hbt-border); background:#fff; cursor:pointer; font-size:13px; color:var(--hbt-dark); display:flex; align-items:center; justify-content:center; transition:.15s; }
.bc-prev:hover,.bc-next:hover{ background:var(--hbt-primary); color:#fff; border-color:var(--hbt-primary); }
.brands-track{ flex:1; display:flex; flex-wrap:nowrap; gap:12px; overflow-x:auto; scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none; }
.brands-track::-webkit-scrollbar{ display:none; }
.brand-logo-card{ text-decoration:none; transition:.15s; flex-shrink:0; }
.blc-inner{ padding:10px 20px; background:#fff; border:1px solid var(--hbt-border); border-radius:8px; display:flex; align-items:center; justify-content:center; width:160px; height:80px; box-sizing:border-box; transition:border-color .15s; }
.blc-inner img{ max-width:120px; max-height:52px; width:auto; height:auto; object-fit:contain; display:block; }
.brand-logo-card:hover .blc-inner{ border-color:var(--hbt-primary); }

/* ---- BLOG ---- */
.hbt-blog{ padding:56px 0; }
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.blog-card{ background:#fff; border:1px solid var(--hbt-border); border-radius:12px; overflow:hidden; transition:box-shadow .2s,transform .2s; display:flex; flex-direction:column; }
.blog-card:hover{ box-shadow:0 8px 24px rgba(0,0,0,.09); transform:translateY(-2px); }
.blog-img{ height:170px; display:flex; align-items:center; justify-content:center; background:var(--hbt-bg-soft); }
.blog-body{ padding:16px; flex:1; display:flex; flex-direction:column; }
.blog-meta{ font-size:11px; color:var(--hbt-muted); margin-bottom:8px; display:flex; align-items:center; gap:10px; }
.blog-cat{ background:var(--hbt-bg-soft); border-radius:12px; padding:2px 8px; }
.blog-card h4{ margin:0 0 6px; font-size:14px; line-height:1.4; }
.blog-card h4 a{ color:var(--hbt-dark); text-decoration:none; }
.blog-card h4 a:hover{ color:var(--hbt-primary); }
.blog-card p{ font-size:13px; color:var(--hbt-muted); line-height:1.5; margin:0 0 12px; flex:1; }
.blog-link{ font-size:13px; color:var(--hbt-primary); font-weight:600; text-decoration:none; display:flex; align-items:center; gap:5px; }
.blog-link:hover{ color:var(--hbt-primary-dark); }
.blog-more{ text-align:center; margin-top:28px; }
.blog-all-btn{ display:inline-flex; align-items:center; gap:8px; padding:11px 24px; border:2px solid var(--hbt-primary); color:var(--hbt-primary); border-radius:8px; font-weight:600; font-size:14px; text-decoration:none; transition:.15s; }
.blog-all-btn:hover{ background:var(--hbt-primary); color:#fff; }

/* ---- NEWSLETTER ---- */
.hbt-newsletter{ padding:44px 0; background:var(--hbt-primary-dark); color:#fff; }
.newsletter-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.newsletter-text h3{ margin:0 0 4px; font-size:18px; color:#fff; display:flex; align-items:center; gap:8px; }
.newsletter-text p{ margin:0; color:rgba(255,255,255,.8); font-size:14px; }
.newsletter-form{ display:flex; gap:8px; }
.newsletter-form input{ padding:11px 15px; border:0; border-radius:8px; font-size:14px; width:260px; }
.newsletter-form button{ padding:11px 20px; background:var(--hbt-secondary); color:#fff; border:0; border-radius:8px; font-weight:600; font-size:14px; cursor:pointer; transition:.15s; }
.newsletter-form button:hover{ background:var(--hbt-secondary-dark); }

/* ---- RESPONSIVE ---- */
@media(max-width:1200px){
    .banner-track{ grid-template-columns:repeat(3,1fr); }
    .product-grid{ grid-template-columns:repeat(3,1fr); }
    .cat-showcase{ grid-template-columns:repeat(4,1fr); }
    .offer-grid{ grid-template-columns:repeat(2,1fr); }
    .testimonial-track{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:992px){
    .home-layout{ flex-direction:column; }
    .home-sidebar{ width:100%; flex:unset; }
    .sb-cats{ display:none; }
}
@media(max-width:800px){
    .banner-track{ grid-template-columns:repeat(2,1fr); }
    .product-grid{ grid-template-columns:repeat(2,1fr); }
    .home-info-bar{ grid-template-columns:repeat(2,1fr); }
    .industry-grid{ grid-template-columns:repeat(2,1fr); }
    .about-layout{ grid-template-columns:1fr; }
    .about-stats{ grid-template-columns:repeat(2,1fr); }
    .blog-grid{ grid-template-columns:repeat(2,1fr); }
    .newsletter-inner{ flex-direction:column; text-align:center; }
}
@media(max-width:600px){
    .banner-track{ grid-template-columns:1fr 1fr; }
    .product-grid{ grid-template-columns:1fr 1fr; }
    .cat-showcase{ grid-template-columns:repeat(2,1fr); }
    .offer-grid{ grid-template-columns:1fr; }
    .testimonial-track{ grid-template-columns:1fr; }
    .blog-grid{ grid-template-columns:1fr; }
    .newsletter-form{ flex-direction:column; }
    .newsletter-form input{ width:100%; }
}

/* ================================================================
   HBT FOOTER  (used by [hbt_footer_default] via footer.php)
   ================================================================ */

/* ---- outer HBT wrapper resets ---- */
.hbt-footer-outer{ background:var(--hbt-dark) !important; border-top:0 !important; }
.hbt-footer{ color:#bbb; font-size:14px; padding:0 !important; }

/* ---- brand row (logo + social + btt) ---- */
.footer-top-row{ display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:28px 24px 20px; border-bottom:1px solid rgba(255,255,255,.08); flex-wrap:wrap; }
.footer-logo img,.footer-logo-img{ max-height:44px; width:auto; filter:brightness(0) invert(1); }
.footer-accent-line{ flex:1; height:2px; background:linear-gradient(90deg,var(--hbt-primary),transparent); min-width:40px; }
.footer-top-actions{ display:flex; align-items:center; gap:14px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.08);
    display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px;
    text-decoration:none; transition:.15s; }
.footer-social a:hover{ background:var(--hbt-primary); color:#fff; }
.footer-btt{ width:36px; height:36px; border-radius:50%; background:var(--hbt-primary);
    border:0; cursor:pointer; color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; transition:.15s; }
.footer-btt:hover{ background:var(--hbt-primary-dark); }

/* ---- footer department row (4 kontaktowe kolumny wzorowane na hbt.com.pl) ---- */
.footer-departments{ display:grid; grid-template-columns:repeat(4,1fr) 1.2fr; gap:0;
    padding:22px 0; border-bottom:1px solid rgba(255,255,255,.08); margin-top:18px; }
.footer-dept{ padding:6px 24px; border-right:1px solid rgba(255,255,255,.06); }
.footer-dept:last-child{ border-right:0; }
.footer-dept h4{ color:#fff; font-size:13px; letter-spacing:.06em; text-transform:uppercase; font-weight:700; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
.footer-dept h4 i{ color:var(--hbt-primary); font-size:15px; }
.footer-dept ul{ list-style:none; margin:0; padding:0; }
.footer-dept li{ font-size:13px; color:#bbb; margin-bottom:6px; display:flex; align-items:flex-start; gap:8px; line-height:1.5; }
.footer-dept li i{ color:var(--hbt-primary); width:14px; margin-top:3px; flex-shrink:0; }
.footer-dept li a{ color:#bbb; text-decoration:none; }
.footer-dept li a:hover{ color:var(--hbt-primary); }

/* ---- sections grid (4 columns) ---- */
.footer-sections{ display:grid; grid-template-columns:repeat(4,1fr); gap:0;
    padding:0 0 0; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-section{ padding:28px 24px; border-right:1px solid rgba(255,255,255,.06); }
.footer-section:last-child{ border-right:0; }

/* accordion toggle (desktop: title only, mobile: clickable) */
.footer-section-toggle{ background:none; border:0; padding:0 0 14px; cursor:default;
    display:flex; align-items:center; justify-content:space-between; width:100%;
    color:#fff; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.footer-section-toggle i{ display:none; }

.footer-section-content ul{ list-style:none; margin:0; padding:0; }
.footer-section-content ul li{ margin-bottom:7px; }
.footer-section-content ul li a{ color:#999; font-size:13px; text-decoration:none; transition:.12s; }
.footer-section-content ul li a:hover{ color:var(--hbt-primary); padding-left:4px; }

/* contact list with icons */
.contact-list{ list-style:none; margin:0; padding:0; }
.contact-list li{ color:#999; font-size:13px; margin-bottom:9px; display:flex; align-items:flex-start; gap:8px; line-height:1.4; }
.contact-list li i{ color:var(--hbt-primary); margin-top:2px; flex-shrink:0; }
.contact-list li a{ color:#bbb; text-decoration:none; }
.contact-list li a:hover{ color:var(--hbt-primary); }

/* ---- bottom bar ---- */
.hbt-footer .footer-bottom{ background:#111; padding:14px 24px;
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
/* HBT also has .footer-bottom — reset HBT's styling for ours */
#footer.hbt-footer .footer-bottom{ background:#111 !important; color:#888 !important;
    border-top:1px solid rgba(255,255,255,.06) !important; }
.hbt-footer .footer-bottom p{ margin:0; font-size:12px; color:#777; }
.payment-icons{ display:flex; align-items:center; gap:10px; font-size:22px; color:#555; }
.payment-icons span{ font-size:11px; font-weight:700; background:rgba(255,255,255,.08);
    padding:3px 7px; border-radius:4px; color:#999; }

/* ---- footer responsive ---- */
@media(max-width:1024px){
    .footer-sections{ grid-template-columns:repeat(2,1fr); }
    .footer-section:nth-child(2){ border-right:0; }
    .footer-departments{ grid-template-columns:repeat(2,1fr); }
    .footer-dept{ border-right:0; border-bottom:1px solid rgba(255,255,255,.06); padding:14px 20px; }
    .footer-dept:nth-child(2n){ border-right:0; }
    .footer-dept--wide{ grid-column:1 / -1; }
}
@media(max-width:640px){
    .footer-departments{ grid-template-columns:1fr; }
}
@media(max-width:640px){
    .footer-sections{ grid-template-columns:1fr; }
    .footer-section{ border-right:0; padding:0; border-bottom:1px solid rgba(255,255,255,.06); }
    .footer-section-toggle{ padding:14px 20px; cursor:pointer; }
    .footer-section-toggle i{ display:block; transition:transform .2s; font-size:11px; color:#666; }
    .footer-section-toggle[aria-expanded="true"] i{ transform:rotate(180deg); }
    .footer-section-content{ display:none; padding:0 20px 16px; }
    .footer-section-content.open{ display:block; }
    .footer-top-row{ padding:20px 16px; }
    .footer-accent-line{ display:none; }
    .hbt-footer .footer-bottom{ flex-direction:column; text-align:center; padding:12px 16px; }
}

/* ================================================================
   WOOCOMMERCE — SHOP / ARCHIVE PAGE
   ================================================================ */

/* Shop page header area */
.woocommerce-products-header{ padding:28px 0 0; }
.woocommerce-products-header__title.page-title{
    font-size:24px; font-weight:700; color:var(--hbt-dark); margin:0 0 4px; }

/* Toolbar (sorting + results count) */
.woocommerce-result-count{ font-size:13px; color:var(--hbt-muted); margin:0; }
.woocommerce-ordering select{ border:1px solid var(--hbt-border); border-radius:6px;
    padding:7px 12px; font-size:13px; color:var(--hbt-dark); background:#fff; cursor:pointer; }

/* Product grid — override HBT's shop grid */
.woocommerce ul.products{ display:grid !important; grid-template-columns:repeat(4,1fr) !important;
    gap:18px !important; list-style:none !important; margin:0 !important; padding:0 !important; }
@media(max-width:1200px){ .woocommerce ul.products{ grid-template-columns:repeat(3,1fr) !important; } }
@media(max-width:768px){  .woocommerce ul.products{ grid-template-columns:repeat(2,1fr) !important; } }
@media(max-width:480px){  .woocommerce ul.products{ grid-template-columns:1fr !important; } }

/* Product card */
.woocommerce ul.products li.product{
    background:#fff; border:1px solid var(--hbt-border); border-radius:12px;
    overflow:visible; transition:box-shadow .2s,transform .2s; display:flex; flex-direction:column; }
.woocommerce ul.products li.product:hover{
    box-shadow:0 8px 24px rgba(0,0,0,.09); transform:translateY(-2px); }
.woocommerce ul.products li.product a img{
    width:100%; height:200px; object-fit:contain; padding:12px; background:#fafafa; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size:14px; font-weight:600; color:var(--hbt-dark); padding:0 14px 6px; line-height:1.4; }
.woocommerce ul.products li.product .price{
    padding:0 14px 8px; color:var(--hbt-primary); font-size:15px; font-weight:700; }
.woocommerce ul.products li.product .price del{ color:var(--hbt-muted); font-size:12px; font-weight:400; margin-right:4px; }
.woocommerce ul.products li.product .button{
    margin:auto 14px 14px; padding:9px 16px; background:var(--hbt-primary); color:#fff;
    border-radius:7px; font-size:13px; font-weight:600; text-align:center; transition:.15s;
    border:0; cursor:pointer; display:block; text-decoration:none; }
.woocommerce ul.products li.product .button:hover{ background:var(--hbt-primary-dark); color:#fff; }

/* Category badge on product card */
.woocommerce ul.products li.product .product-cat-badge{
    position:absolute; top:8px; left:8px; background:var(--hbt-primary);
    color:#fff; font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; }

/* Sale badge */
.woocommerce span.onsale{ background:var(--hbt-secondary) !important; border-radius:4px !important;
    font-size:11px !important; font-weight:700 !important; top:8px !important; right:8px !important; left:auto !important; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul{ display:flex; gap:6px; list-style:none; margin:32px 0 0; padding:0; justify-content:center; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
    display:flex; align-items:center; justify-content:center; width:36px; height:36px;
    border:1px solid var(--hbt-border); border-radius:7px; font-size:13px; color:var(--hbt-dark); text-decoration:none; }
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current{
    background:var(--hbt-primary); color:#fff; border-color:var(--hbt-primary); }

/* ================================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ================================================================ */

/* Layout: 1 col (images | summary) */
.woocommerce div.product{ display:grid; grid-template-columns:;
    gap:40px; align-items:start; padding:28px 0; }
.woocommerce div.product div.images{ grid-column:1; }
.woocommerce div.product div.summary{ grid-column:2; }
@media(max-width:768px){
    .woocommerce div.product{ grid-template-columns:1fr; }
    .woocommerce div.product div.summary{ grid-column:1; }
}

/* Product title */
.woocommerce div.product h1.product_title{ font-size:22px; font-weight:700; color:var(--hbt-dark); margin:0 0 8px; line-height:1.3; }

/* Brand line */
.woocommerce div.product p.product_meta{ font-size:12px; color:var(--hbt-muted); margin-bottom:10px; }
.woocommerce div.product p.product_meta span.sku{ font-weight:600; color:var(--hbt-dark); }

/* Price */
.woocommerce div.product p.price{ font-size:24px; font-weight:700; color:var(--hbt-primary); margin:12px 0; }
.woocommerce div.product p.price del{ font-size:16px; color:var(--hbt-muted); font-weight:400; }
.woocommerce div.product p.price ins{ text-decoration:none; }

/* Short description */
.woocommerce div.product div.woocommerce-product-details__short-description{
    font-size:14px; color:#555; line-height:1.7; margin-bottom:16px; }

/* Add to cart */
.woocommerce div.product form.cart{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
.woocommerce div.product form.cart .qty{ width:70px; padding:9px 10px; border:1px solid var(--hbt-border);
    border-radius:7px; font-size:14px; text-align:center; }
.woocommerce div.product form.cart .single_add_to_cart_button{
    padding:11px 28px; background:var(--hbt-primary); color:#fff; border:0;
    border-radius:8px; font-size:15px; font-weight:700; cursor:pointer; transition:.15s; flex:1; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover{ background:var(--hbt-primary-dark); }

/* Wishlist / compare row */
.woocommerce div.product .product-action-row{ display:flex; gap:12px; margin-bottom:20px; }
.woocommerce div.product .product-action-row a{ font-size:13px; color:var(--hbt-muted); text-decoration:none; display:flex; align-items:center; gap:5px; }
.woocommerce div.product .product-action-row a:hover{ color:var(--hbt-primary); }

/* Product meta / categories */
.woocommerce div.product .product_meta{ margin-top:16px; padding-top:16px; border-top:1px solid var(--hbt-border); font-size:12px; color:var(--hbt-muted); }
.woocommerce div.product .product_meta a{ color:var(--hbt-primary); text-decoration:none; }

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs{ display:flex; gap:0; border-bottom:2px solid var(--hbt-border);
    list-style:none; margin:32px 0 0; padding:0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li{ margin:0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
    display:block; padding:11px 20px; font-size:14px; font-weight:600; color:var(--hbt-muted);
    text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; transition:.15s; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{ color:var(--hbt-primary); border-bottom-color:var(--hbt-primary); }
.woocommerce div.product .woocommerce-tabs .panel{ padding:20px 0; font-size:14px; line-height:1.7; color:#444; }
.woocommerce div.product .woocommerce-tabs .panel h2{ font-size:17px; font-weight:700; margin:0 0 12px; color:var(--hbt-dark); }

/* Related products */
.related.products h2,.upsells.products h2{ font-size:19px; font-weight:700; color:var(--hbt-dark); margin:0 0 18px; padding-top:36px; }

/* ================================================================
   WOOCOMMERCE — CART / CHECKOUT (basic HBT styling)
   ================================================================ */
.woocommerce-cart-form table.shop_table,
.woocommerce-checkout table.shop_table{
    border:1px solid var(--hbt-border); border-radius:10px; overflow:hidden; font-size:14px; }
.woocommerce-cart-form table.shop_table th{
    background:var(--hbt-bg-soft); padding:11px 14px; font-size:12px; font-weight:700;
    text-transform:uppercase; letter-spacing:.04em; color:var(--hbt-muted); }
.woocommerce-cart-form table.shop_table td{ padding:12px 14px; border-top:1px solid var(--hbt-border); vertical-align:middle; }
.woocommerce button[name="update_cart"],
.woocommerce-cart .wc-proceed-to-checkout .checkout-button{
    background:var(--hbt-primary); color:#fff; border:0; border-radius:8px;
    padding:11px 24px; font-weight:700; font-size:14px; cursor:pointer; transition:.15s; }
.woocommerce button[name="update_cart"]:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover{ background:var(--hbt-primary-dark); }

/* ---- mobile footer accordion JS helper ---- */
/* (the toggle JS is inlined in wp_footer via hbt_v7_footer_js in functions.php) */

/* ================================================================
   WOOCOMMERCE — PRODUCT NAME FIX (HBT truncates with ellipsis)
   ================================================================ */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2{
    white-space:normal!important; overflow:visible!important; text-overflow:unset!important;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    font-size:13px; font-weight:600; line-height:1.4; min-height:36px; }

/* ================================================================
   PORTO BLOG ARCHIVE — force 3-column grid over  posts-large
   ================================================================ */
/* Force 3-column grid on the blog-posts container (HBT uses .posts-large/.posts-container) */
body.blog .blog-posts.posts-container,
body.blog .blog-posts{
    display:grid!important; grid-template-columns:repeat(3,1fr)!important;
    gap:24px!important; }
body.blog .blog-posts article.post{
    margin-bottom:0!important;
    border:1px solid var(--hbt-border); border-radius:10px; overflow:hidden; background:#fff;
    display:flex; flex-direction:column; }
/* HBT post-date bar */
body.blog .blog-posts .post-date{
    background:var(--hbt-primary); color:#fff; padding:8px 14px;
    display:flex; gap:4px; align-items:baseline; font-size:12px; }
body.blog .blog-posts .post-date .day{ font-size:22px; font-weight:700; line-height:1; }
body.blog .blog-posts .post-date .month{ font-size:11px; text-transform:uppercase; }
/* Post content area */
body.blog .blog-posts .post-content{ padding:18px 20px; flex:1; }
body.blog .blog-posts .entry-title{ font-size:16px; font-weight:700; margin:0 0 8px; line-height:1.35; }
body.blog .blog-posts .entry-title a{ color:var(--hbt-dark); text-decoration:none; }
body.blog .blog-posts .entry-title a:hover{ color:var(--hbt-primary); }
body.blog .blog-posts .post-content p{ font-size:13px; color:#666; line-height:1.6; margin:0 0 10px; }
/* Featured image (if present) */
body.blog .blog-posts .post-image,
body.blog .blog-posts .post-thumb{ max-height:220px; overflow:hidden; }
body.blog .blog-posts .post-image img,
body.blog .blog-posts .post-thumb img{ width:100%; height:220px; object-fit:cover; object-position:center; }
@media(max-width:900px){
    body.blog .blog-posts.posts-container,
    body.blog .blog-posts{ grid-template-columns:repeat(2,1fr)!important; } }
@media(max-width:560px){
    body.blog .blog-posts.posts-container,
    body.blog .blog-posts{ grid-template-columns:1fr!important; } }

/* ================================================================
   CONTACT PAGE — [hbt_contact_default] shortcode layout
   ================================================================ */
.hbt-contact{ min-height:400px; }

/* Hero */
.contact-hero{
    background:linear-gradient(135deg,var(--hbt-primary-dark) 0%,#1a3a0a 100%);
    color:#fff; padding:72px 0 60px; }
.contact-hero-inner{ max-width:680px; margin:0 auto; text-align:center; padding:0 20px; }
.contact-hero-eyebrow{
    display:inline-block; font-size:11px; font-weight:700; letter-spacing:.12em;
    text-transform:uppercase; color:var(--hbt-secondary); margin-bottom:14px; }
.contact-hero h1{ font-size:clamp(26px,4vw,38px); font-weight:800; color:#fff; margin:0 0 16px; }
.contact-hero-lead{ font-size:16px; color:rgba(255,255,255,.82); line-height:1.65; margin:0 0 32px; }
.contact-hero-actions{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.btn-primary-contact,.btn-secondary-contact{
    display:inline-flex; align-items:center; gap:10px;
    padding:13px 24px; border-radius:8px; font-size:14px; font-weight:700;
    text-decoration:none; transition:.15s; }
.btn-primary-contact{ background:var(--hbt-secondary); color:#1a1a1a; }
.btn-primary-contact:hover{ background:#c9a040; color:#1a1a1a; }
.btn-secondary-contact{ background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.3); }
.btn-secondary-contact:hover{ background:rgba(255,255,255,.22); color:#fff; }

/* Info tiles */
.contact-tiles{ padding:56px 0 40px; background:var(--hbt-bg-soft); }
.contact-tile-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.contact-tile{
    background:#fff; border-radius:12px; padding:28px 22px;
    border:1px solid var(--hbt-border); transition:box-shadow .2s; }
.contact-tile:hover{ box-shadow:0 6px 20px rgba(0,0,0,.07); }
.contact-tile.contact-tile-accent{ background:var(--hbt-primary); color:#fff; border-color:var(--hbt-primary); }
.contact-tile-icon{
    width:48px; height:48px; border-radius:50%; display:flex; align-items:center;
    justify-content:center; font-size:18px; margin-bottom:16px;
    background:var(--hbt-bg-soft); color:var(--hbt-primary); }
.contact-tile-accent .contact-tile-icon{ background:rgba(255,255,255,.15); color:#fff; }
.contact-tile h3{ font-size:15px; font-weight:700; margin:0 0 8px; color:var(--hbt-dark); }
.contact-tile-accent h3{ color:#fff; }
.contact-tile p{ font-size:13px; color:#666; line-height:1.6; margin:0 0 12px; }
.contact-tile-accent p,.contact-tile-accent p a{ color:rgba(255,255,255,.9); }
.contact-tile > a{ color:var(--hbt-primary); text-decoration:none; font-size:13px; font-weight:600; }
.contact-tile > a:hover{ color:var(--hbt-primary-dark); }
.contact-tile-accent > a{ color:var(--hbt-secondary)!important; }
/* v2.0.37 — "Otwarte teraz / Zamknięte" pill (JS flips .is-open / .is-closed every 30s) */
.contact-open-now{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:999px;
  font-size:12px; font-weight:600;
  background:#F0EFEA; color:#555;
  border:1px solid var(--hbt-border, #E3E3DB);
  margin-top:10px;
}
.contact-open-now .fa-circle{ font-size:8px; }
.contact-open-now.is-open{
  background:rgba(139,195,74,.12);
  border-color:rgba(139,195,74,.35);
  color:#4a7a18;
}
.contact-open-now.is-open .fa-circle{ color:#4dae65; animation:hbt-pulse 1.6s ease-in-out infinite; }
.contact-open-now.is-closed{
  background:rgba(220,60,60,.08);
  border-color:rgba(220,60,60,.28);
  color:#a82828;
}
.contact-open-now.is-closed .fa-circle{ color:#c23232; }
.contact-tile-accent .contact-open-now{ color:rgba(255,255,255,.9); background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); }
.contact-tile-accent .contact-open-now.is-open{ color:#d6f5a8; }
.contact-tile-accent .contact-open-now.is-closed{ color:#ffc2c2; }
@keyframes hbt-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.45; transform:scale(.85); }
}

/* Form + aside layout */
.contact-form-section{ padding:56px 0; }
.contact-form-layout{ display:grid; grid-template-columns:1fr 360px; gap:40px; align-items:start; }
.contact-aside{ background:var(--hbt-bg-soft); border-radius:12px; padding:28px 24px; }
.contact-aside h4{ font-size:15px; font-weight:700; color:var(--hbt-dark); margin:0 0 16px; }
.faq-item{ margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid var(--hbt-border); }
.faq-item:last-child{ border-bottom:0; margin-bottom:0; padding-bottom:0; }
.faq-item strong{ display:block; font-size:13px; color:var(--hbt-dark); margin-bottom:4px; }
.faq-item p{ font-size:12px; color:#777; margin:0; line-height:1.5; }

/* Map */
.contact-map iframe{ width:100%; height:360px; border:0; display:block; }

/* Działy firmy — 6 kart (hbt.com.pl match) */
.contact-departments{ padding:40px 0 20px; background:var(--bg2); }
.contact-dept-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:24px; }
.contact-dept-card{ background:#fff; border:1px solid var(--border-l); border-radius:var(--r-lg); padding:24px; transition:.2s; position:relative; overflow:hidden; }
.contact-dept-card:hover{ transform:translateY(-3px); box-shadow:0 10px 30px var(--shadow); border-color:var(--primary-l); }
.contact-dept-card::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:var(--primary); transform:scaleX(0); transform-origin:left; transition:transform .25s; }
.contact-dept-card:hover::before{ transform:scaleX(1); }
.contact-dept-card .cdc-icon{ width:52px; height:52px; border-radius:12px; background:linear-gradient(135deg,var(--primary),var(--primary-d)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:14px; }
.contact-dept-card h3{ font-size:17px; font-weight:800; margin:0 0 12px; color:var(--dark); }
.contact-dept-card ul{ list-style:none; margin:0; padding:0; }
.contact-dept-card li{ display:flex; align-items:center; gap:10px; margin-bottom:8px; font-size:14px; color:var(--text); }
.contact-dept-card li i{ color:var(--primary); width:18px; }
.contact-dept-card li a{ color:var(--text); text-decoration:none; }
.contact-dept-card li a:hover{ color:var(--primary); }

/* Responsive */
@media(max-width:1024px){
    .contact-tile-grid{ grid-template-columns:repeat(2,1fr); }
    .contact-form-layout{ grid-template-columns:1fr; }
    .contact-dept-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:640px){
    .contact-tile-grid{ grid-template-columns:1fr; }
    .contact-hero-actions{ flex-direction:column; align-items:center; }
    .contact-dept-grid{ grid-template-columns:1fr; }
}

/* ================================================================
   HBT FRONTEND v3 - HEADER / NAV / MOBILE MENU / FOOTER
   Extracted verbatim from hbt-frontend/assets/css/hbt.css
   sections A-D (promo/header/nav/mobile) + M-O (footer/bottom/btt)
   ================================================================ */
/* ============================================
   A. PROMO BAR
   ============================================ */
.promo-bar {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}
.promo-bar .container-full { display: flex; justify-content: space-between; align-items: center; }
.promo-left a { color: #fff; font-weight: 500; }
.promo-center { color: rgba(255,255,255,.85); }
.promo-center i { margin-right: 4px; }
.promo-right { display: flex; gap: 12px; align-items: center; }
.promo-right a { color: rgba(255,255,255,.9); font-size: 11px; }
.promo-right a i { margin-right: 3px; }
.promo-sep { color: rgba(255,255,255,.3); }

/* ============================================
   B. HEADER
   ============================================ */
.site-header {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-l);
  position: relative;
  z-index: 110;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo .logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Fallback text logo (if image fails) */
.site-logo strong { font-size: 32px; color: var(--primary); letter-spacing: -1px; }
.site-logo small { font-size: 12px; color: var(--text-l); }

/* Search bar with category dropdown */
.site-search {
  flex: 1;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  min-width: 0;
  max-width: 600px;
}
.search-cat-select {
  border-right: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}
.search-cat-select select {
  padding: 11px 30px 11px 14px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 600;
  color: var(--dark);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  text-transform: uppercase;
}
.search-input {
  flex: 1;
  border: none;
  padding: 11px 14px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  min-width: 0;
}
.search-input::placeholder { color: var(--text-l); }
.search-submit {
  width: 50px;
  background: var(--primary);
  color: #fff;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.search-submit:hover { background: var(--primary-d); }
.search-submit:focus { background: var(--primary-d); }
.search-hamburger { display: none; }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-l);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-dropdown.active { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border-l); color: var(--dark); transition: background .15s;
}
.search-item:hover { background: var(--bg2); }
.search-item-title { font-size: 13px; font-weight: 500; }
.search-item-price { font-size: 13px; font-weight: 700; color: var(--primary); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.ha-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--dark);
  font-size: 10px;
  padding: 8px 12px;
  border-radius: var(--r);
  transition: all .2s;
  position: relative;
  line-height: 1.3;
  cursor: pointer;
}
.ha-item:hover { background: var(--bg2); color: var(--primary); }
.ha-item i { font-size: 22px; margin-bottom: 4px; color: var(--dark); transition: color .2s; }
.ha-item:hover i { color: var(--primary); }
.ha-item span { font-size: 10px; color: var(--text-l); white-space: nowrap; font-weight: 500; }
.ha-badge {
  position: absolute;
  top: 0; right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  min-width: 17px; height: 17px;
  line-height: 17px;
  border-radius: 50%;
  text-align: center;
}
.ha-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r);
  position: relative;
  transition: background .2s;
}
.ha-cart:hover { background: var(--primary-d); color: #fff; }
.ha-cart i { font-size: 20px; }
.ha-cart .ha-badge { background: var(--dark); top: -4px; right: -4px; }
.ha-cart-info span { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Dept phones in header (hbt.com.pl style) */
.ha-phones { display:flex; gap:6px; align-items:center; margin-right:8px; }
.ha-phone { display:flex; flex-direction:column; padding:6px 12px; border-radius:var(--r); background:transparent; border:1px solid var(--border-l); color:var(--dark); line-height:1.25; transition:.15s; text-decoration:none; min-width:140px; }
.ha-phone:hover { background:var(--primary); border-color:var(--primary); color:#fff; transform:translateY(-1px); }
.ha-phone-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:var(--primary); transition:color .15s; }
.ha-phone:hover .ha-phone-label { color:#fff; }
.ha-phone-num { font-size:14px; font-weight:700; white-space:nowrap; }
@media(max-width:1200px){ .ha-phone--machines, .ha-phone--parts { display:none; } }
@media(max-width:991px){ .ha-phones { display:none; } }

/* ============================================
   C. NAV BAR
   ============================================ */
.site-nav {
  background: var(--dark);
  position: relative;
  z-index: 100;
  transition: box-shadow .25s ease;
}
.site-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.nav-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 10px 14px;
  cursor: pointer;
}
.nav-cat-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
  white-space: nowrap;
}
.nav-cat-trigger:hover { background: var(--primary-d); }
.nav-cat-arrow { font-size: 9px; opacity: .7; transition: transform .2s; }

.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-links li a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: background .2s;
  white-space: nowrap;
}
.nav-links li a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Sub-menu dropdown (hbt.com.pl-style — visible on hover on desktop) */
.nav-links li { position: relative; }
.nav-links li > a .fa-chevron-down { font-size: 9px; margin-left: 6px; opacity: .7; transition: transform .2s; }
.nav-links li:hover > a .fa-chevron-down { transform: rotate(180deg); }
.nav-links .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 12px 32px var(--shadow-l);
  padding: 8px 0; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 100;
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .sub-menu li { display: block; }
.nav-links .sub-menu li a {
  color: var(--dark); font-size: 13px; text-transform: none; letter-spacing: 0;
  padding: 10px 18px; font-weight: 500; border-left: 3px solid transparent;
}
.nav-links .sub-menu li a:hover { background: var(--bg); color: var(--primary); border-left-color: var(--primary); }
@media(max-width:991px){ .nav-links .sub-menu { display:none; } }

.nav-shipping {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.nav-shipping i { color: var(--primary-l); font-size: 16px; }
.nav-shipping strong { color: #fff; }

/* ============================================
   D. MOBILE MENU
   ============================================ */
/* (v2.0.85) Drawer zjeżdża od dołu COMPACT site-headera (64px).
 * Gdy user otwiera menu przy search-row widocznym, CSS wymusza jego
 * zwinięcie (fade + max-height:0) — drawer startuje od stałej 64px
 * i nie skacze. Na małych telefonach (<=380px) header to 56px. */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: calc(100vw - 64px);
  max-width: 460px;
  height: calc(100vh - 64px);
  background: #fff;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 6px 0 18px rgba(26,23,20,.12);
}
.mobile-menu.open { transform: translateX(0); }
.mm-overlay {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 10000;
  display: none;
  touch-action: none;  /* blokuje swipe-scroll pod overlayem na iOS */
}
.mm-overlay.active { display: block; }

/* Menu-open state: body scroll zablokowany przez JS (position:fixed +
 * overflow:hidden), a search-row w headerze zwija się do zera żeby
 * drawer (top:64px) nie zakrywał go wizualnie. */
body.menu-open { overflow: hidden !important; }
body.menu-open .hbt-mobile-search-row {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-color: transparent !important;
  opacity: 0 !important;
  pointer-events: none;
}

.mm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 2px solid var(--primary);
  flex-shrink: 0;
}
.mm-logo strong { font-size: 24px; color: var(--primary); }
.mm-logo small { color: var(--text-l); font-size: 11px; margin-left: 4px; }
.mm-logo-img { height: 36px; width: auto; display: block; }
.mm-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg2);
  color: var(--dark);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-search {
  display: flex;
  margin: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.mm-search input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}
.mm-search button {
  width: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.mm-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-cats { border-top: 1px solid var(--border-l); list-style: none; padding: 0; margin: 0; }
.mm-cats li { list-style: none; }
/* (v2.0.82) .mm-cat-item jako flex row — koniec z absolute .mm-expand,
 * koniec z "przesunięte do góry" chevronem. Układ: [link] [chevron].
 * Lista podkategorii wpada poniżej (flex: 0 0 100%). */
.mm-cat-item {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--border-l);
  position: relative;
}
.mm-cat-item > a {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.mm-cat-item > a i { color: var(--primary); width: 22px; text-align: center; font-size: 16px; flex-shrink: 0; }
/* (v2.0.83) Chevron-pill — wyraźnie widoczny okrąg z cieniem. Wcześniej
 * płaski slot w kolorze var(--bg2) ledwo różnił się od białego tła
 * wiersza; user oznaczył to jako "ledwowidoczne przyciski menu". */
.mm-expand {
  flex: 0 0 56px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border-l, #F0F0F0);
  cursor: pointer; padding: 0;
}
.mm-expand i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg2, #F5F5F0);
  border: 1px solid var(--border, #E0E0E0);
  border-radius: 50%;
  color: var(--primary-d, #7CB342);
  font-size: 14px; font-weight: 900;
  pointer-events: none;
  transition: background .15s, color .15s, border-color .15s, transform .2s;
  box-shadow: 0 1px 2px rgba(26,23,20,.05);
}
.mm-expand:hover i,
.mm-expand:focus-visible i {
  background: var(--primary, #8BC34A);
  border-color: var(--primary, #8BC34A);
  color: #fff;
}
.mm-expand:focus-visible { outline: none; }
.mm-cat-item.expanded .mm-expand i {
  background: var(--primary, #8BC34A);
  border-color: var(--primary, #8BC34A);
  color: #fff;
  transform: rotate(90deg);
}

.mm-sub {
  flex: 0 0 100%;
  display: none;
  background: var(--bg2);
  border-top: 1px solid var(--border-l);
  list-style: none; padding: 4px 0; margin: 0;
}
.mm-cat-item.expanded .mm-sub { display: block; }
.mm-sub li a {
  display: block;
  padding: 10px 16px 10px 50px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-l);
  text-decoration: none;
}
.mm-sub li:last-child a { border-bottom: 0; }
.mm-sub li a:hover { color: var(--primary); background: #fff; }

.mm-promo > a { color: var(--danger) !important; font-weight: 600 !important; }

.mm-brands {
  padding: 16px;
  border-top: 1px solid var(--border-l);
}
.mm-brands h4 { font-size: 12px; text-transform: uppercase; color: var(--text-l); margin-bottom: 8px; letter-spacing: .5px; }
.mm-brand-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-brand {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 5px 12px;
  font-size: 11px;
  color: var(--dark);
  font-weight: 500;
}
.mm-brand:hover { border-color: var(--primary); color: var(--primary); }

.mm-links {
  padding: 12px 16px;
  border-top: 1px solid var(--border-l);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mm-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--dark);
  font-size: 13px;
}
.mm-links a i { color: var(--primary); width: 18px; text-align: center; }

.mm-contact {
  padding: 12px 16px;
  background: var(--bg2);
  border-top: 1px solid var(--border-l);
}
.mm-contact p { font-size: 12px; color: var(--text); padding: 3px 0; }
.mm-contact i { color: var(--primary); margin-right: 6px; width: 14px; text-align: center; }

/* ============================================
   M. FOOTER — modern style with accordions
   ============================================ */
.hbt-footer { background: var(--dark2); color: #bbb; padding-top: 28px; }

/* Footer top row: logo | accent line | socials | btt */
.footer-top-row {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 0;
}
.footer-logo { flex-shrink: 0; }
.footer-logo-img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .85; }
.footer-accent-line { flex: 1; height: 3px; background: var(--primary); border-radius: 2px; }
.footer-top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.footer-social { display: flex; gap: 6px; }
.footer-social a {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #999; transition: all .2s var(--ease); font-size: 15px;
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }
.footer-btt {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.15);
  background: none; color: #999; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s var(--ease);
}
.footer-btt:hover { border-color: var(--primary); color: var(--primary); }

/* Footer sections — desktop: 5-column grid, open by default */
.footer-sections {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  padding: 28px 0;
}
.footer-section { }
.footer-section-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; color: #fff; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; cursor: default;
  padding: 0; margin-bottom: 14px; font-family: var(--font);
  position: relative; padding-bottom: 10px;
}
.footer-section-toggle::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 24px; height: 2px; background: var(--primary);
}
.footer-section-toggle i { display: none; } /* Hidden on desktop */
.footer-section-content { display: block; } /* Always visible on desktop */
.footer-section-content ul { list-style: none; }
.footer-section-content ul li { padding: 3px 0; }
.footer-section-content ul li a { color: #bbb; font-size: 12px; text-decoration: none; transition: all .2s var(--ease); }
.footer-section-content ul li a:hover { color: var(--primary-l); padding-left: 4px; }
.footer-section-content .contact-list li { display: flex; gap: 8px; padding: 5px 0; font-size: 12px; }
.footer-section-content .contact-list i { color: var(--primary); width: 14px; text-align: center; margin-top: 2px; }
.footer-section-content .contact-list a { color: #bbb; text-decoration: none; }
.footer-section-content .contact-list a:hover { color: var(--primary-l); }

/* Footer bottom */
.footer-bottom {
  background: var(--dark); padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom .container-full { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 11px; color: #777; }
.payment-icons { display: flex; gap: 10px; align-items: center; color: #888; font-size: 18px; }
.payment-icons span { font-size: 11px; font-weight: 600; }

/* Footer — tablet: 3 cols top + 2 cols bottom row */
@media (max-width: 991px) {
  .footer-sections { grid-template-columns: repeat(3, 1fr); gap: 16px 20px; padding: 20px 0; }
  .footer-section-content ul li a { font-size: 12px; word-break: break-word; }
  .footer-top-row { flex-wrap: wrap; gap: 12px; }
  .footer-accent-line { flex: 1; min-width: 60px; }
}

/* Footer — mobile: accordion style */
@media (max-width: 767px) {
  .footer-top-row { gap: 12px; padding-bottom: 16px; }
  .footer-logo-img { height: 32px; }
  .footer-accent-line { height: 2px; }
  .footer-social a, .footer-btt { width: 38px; height: 38px; font-size: 13px; }

  .footer-sections { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .footer-section { border-bottom: 1px solid rgba(255,255,255,.06); }
  .footer-section-toggle {
    cursor: pointer; padding: 14px 0; margin-bottom: 0;
    padding-bottom: 14px;
  }
  .footer-section-toggle::after { display: none; }
  .footer-section-toggle i {
    display: block; font-size: 12px; color: #666;
    transition: transform .3s ease;
  }
  .footer-section.expanded .footer-section-toggle i { transform: rotate(180deg); }
  .footer-section-content {
    display: none; padding-bottom: 14px;
  }
  .footer-section.expanded .footer-section-content { display: block; }

  .footer-bottom .container-full { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   N. MOBILE BOTTOM BAR
   ============================================ */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 9999;
  padding: 4px 0;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  justify-content: space-around;
}
.bb-item {
  display: flex; flex-direction: column;
  align-items: center; padding: 5px 10px;
  color: var(--text-l); font-size: 10px;
  position: relative; -webkit-tap-highlight-color: transparent;
}
.bb-item i { font-size: 19px; margin-bottom: 1px; }
.bb-item.active { color: var(--primary); }
.bb-badge {
  position: absolute; top: 0; right: 4px;
  background: var(--primary); color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  line-height: 16px; border-radius: 50%;
  text-align: center;
}

/* ============================================
   O. BACK TO TOP & TOAST
   ============================================ */
.btt {
  position: fixed;
  bottom: 80px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; box-shadow: var(--shadow);
  cursor: pointer; z-index: 9997;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  font-size: 15px;
}
.btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.toast {
  position: fixed;
  top: 16px; right: 16px;
  background: var(--primary); color: #fff;
  padding: 12px 22px; border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  z-index: 99999; opacity: 0;
  transform: translateY(-10px);
  transition: all .3s var(--ease);
  pointer-events: none !important;
  box-shadow: var(--shadow-l);
  display: none; align-items: center; gap: 8px;
}
/* Only render in the layout when it's actually shown — otherwise the
 * invisible opacity:0 pill sits on top-right and steals taps meant for
 * the cart button (iOS Safari elementFromPoint ignores pointer-events
 * in some hit-test paths). */
.toast.show { display: flex; opacity: 1; transform: translateY(0); }


/* ============================================
   HBT v7.1.3 — SINGLE PRODUCT PAGE (.sp-* layout)
   Mirrored from hbt-frontend/product.html
   ============================================ */
.hbt-single-product.sp-section { padding: 24px 0 0; }
.hbt-single-product .sp-layout { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 32px !important; align-items: start !important; float: none !important; }
.hbt-single-product .sp-gallery { position: sticky; top: 90px; width:auto !important; float:none !important; margin:0 !important; }
.hbt-single-product .sp-gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.hbt-single-product .sp-gallery .woocommerce-product-gallery__image img { border-radius: var(--r-lg); border: 1px solid var(--border-l); }
.hbt-single-product .sp-info { width:auto !important; float:none !important; margin:0 !important; padding:0 !important; }

.hbt-single-product .sp-brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hbt-single-product .sp-brand { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); background: rgba(0,149,151,.08); padding: 3px 12px; border-radius: 20px; text-decoration: none; }
.hbt-single-product .sp-sku { font-size: 11px; color: var(--text-l); }
.hbt-single-product .sp-title { font-size: 22px; font-weight: 700; color: var(--dark); line-height: 1.3; margin: 0 0 12px; }
.hbt-single-product .sp-rating-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hbt-single-product .sp-stars { color: var(--secondary); font-size: 14px; }
.hbt-single-product .sp-reviews-link { font-size: 12px; color: var(--primary); font-weight: 500; text-decoration: none; }
.hbt-single-product .sp-sold { font-size: 12px; color: var(--text-l); }
.hbt-single-product .sp-sold i { color: var(--danger); margin-right: 2px; }

.hbt-single-product .sp-avail { font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: var(--r); margin-bottom: 16px; }
.hbt-single-product .sp-avail.in-stock { background: rgba(77,174,101,.08); color: var(--primary); }
.hbt-single-product .sp-avail.out-of-stock { background: rgba(226,86,86,.08); color: var(--danger); }
.hbt-single-product .sp-avail i { margin-right: 4px; }

.hbt-single-product .sp-price-block { background: var(--bg2); border: 1px solid var(--border-l); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; }
.hbt-single-product .sp-price-main .price { margin: 0 !important; color: inherit !important; }
.hbt-single-product .sp-price-old { font-size: 14px; color: var(--text-l); text-decoration: line-through; display: block; margin-bottom: 2px; }
.hbt-single-product .sp-price-current { font-size: 28px !important; font-weight: 700 !important; color: var(--dark) !important; display: block !important; margin: 0 !important; }
.hbt-single-product .sp-price-current .woocommerce-Price-amount { color: var(--dark) !important; font-size: inherit; font-weight: inherit; }
.hbt-single-product .sp-price-save { font-size: 12px; font-weight: 600; color: var(--danger); display: inline-block; margin-top: 4px; }
.hbt-single-product .sp-price-net { font-size: 12px; color: var(--text-l); margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border-l); }
.hbt-single-product .sp-price-net .woocommerce-Price-amount { color: var(--text-l) !important; font-weight: 400; }

/* Cart form — qty input + add to cart button */
.hbt-single-product .sp-cart-form-wrap form.cart { display: flex !important; align-items: center; gap: 12px; margin-bottom: 12px; }
.hbt-single-product .sp-cart-form-wrap .quantity { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin: 0 !important; }
.hbt-single-product .sp-cart-form-wrap .quantity input.qty { width: 64px; border: none; text-align: center; font-size: 14px; font-weight: 600; font-family: var(--font); outline: none; padding: 10px 8px; background: #fff; }
.hbt-single-product .sp-cart-form-wrap button.single_add_to_cart_button { flex: 1; background: var(--primary) !important; color: #fff !important; border: none !important; border-radius: var(--r) !important; padding: 12px 24px !important; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .3px !important; cursor: pointer; font-family: var(--font); transition: all .2s; display: flex !important; align-items: center; justify-content: center; gap: 8px; }
.hbt-single-product .sp-cart-form-wrap button.single_add_to_cart_button:hover { background: var(--primary-d) !important; box-shadow: 0 4px 16px rgba(77,174,101,.3); }

.hbt-single-product .sp-secondary-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.hbt-single-product .sp-secondary-actions .yith-wcwl-add-to-wishlist,
.hbt-single-product .sp-secondary-actions .compare { margin: 0; }

.hbt-single-product .sp-inquiry-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.hbt-single-product .sp-inquiry-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; border-radius: var(--r); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; text-decoration: none; cursor: pointer; font-family: var(--font); transition: all .2s ease; background: var(--dark); color: #fff !important; border: none; }
.hbt-single-product .sp-inquiry-btn:hover { background: var(--dark2); color: #fff !important; }
.hbt-single-product .sp-inquiry-btn i { font-size: 14px; }

.hbt-single-product .sp-badges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding: 14px; background: var(--bg2); border-radius: var(--r-lg); }
.hbt-single-product .sp-badge-item { display: flex; align-items: center; gap: 10px; }
.hbt-single-product .sp-badge-item i { font-size: 16px; color: var(--primary); width: 20px; text-align: center; }
.hbt-single-product .sp-badge-item strong { font-size: 12px; color: var(--dark); display: block; }
.hbt-single-product .sp-badge-item span { font-size: 11px; color: var(--text-l); }

/* Meta */
.hbt-single-product .sp-info .product_meta { font-size: 12px; color: var(--text-l); padding-top: 12px; border-top: 1px solid var(--border-l); }
.hbt-single-product .sp-info .product_meta a { color: var(--primary); text-decoration: none; }

/* ============================================
   SINGLE PRODUCT TABS
   ============================================ */
.sp-tabs-section { padding: 32px 0 40px; }
.sp-tabs-section .woocommerce-tabs ul.tabs { display: flex !important; list-style: none !important; border-bottom: 2px solid var(--border-l); margin: 0 0 24px !important; padding: 0 !important; }
.sp-tabs-section .woocommerce-tabs ul.tabs::before,
.sp-tabs-section .woocommerce-tabs ul.tabs::after { display: none !important; }
.sp-tabs-section .woocommerce-tabs ul.tabs li { padding: 0 !important; margin: 0 !important; border: none !important; background: none !important; border-radius: 0 !important; list-style: none !important; }
.sp-tabs-section .woocommerce-tabs ul.tabs li::before { display: none !important; }
.sp-tabs-section .woocommerce-tabs ul.tabs li a { padding: 12px 24px !important; font-size: 14px; font-weight: 600; color: var(--text-l) !important; background: none !important; border: none !important; border-bottom: 2px solid transparent !important; margin-bottom: -2px !important; display: block; text-transform: none !important; text-shadow: none !important; }
.sp-tabs-section .woocommerce-tabs ul.tabs li a:hover { color: var(--dark) !important; }
.sp-tabs-section .woocommerce-tabs ul.tabs li.active a { color: var(--primary) !important; border-bottom-color: var(--primary) !important; }
.sp-tabs-section .woocommerce-Tabs-panel { padding: 0 !important; }
.sp-tabs-section .woocommerce-Tabs-panel h2 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 0 0 12px; }
.sp-tabs-section .woocommerce-Tabs-panel p { font-size: 14px; line-height: 1.7; color: var(--text); }
.sp-tabs-section .shop_attributes { width: 100%; border-collapse: collapse; }
.sp-tabs-section .shop_attributes tr { border-bottom: 1px solid var(--border-l); }
.sp-tabs-section .shop_attributes tr:nth-child(even) { background: var(--bg2); }
.sp-tabs-section .shop_attributes th,
.sp-tabs-section .shop_attributes td { padding: 10px 14px; font-size: 13px; border: none; }
.sp-tabs-section .shop_attributes th { font-weight: 600; color: var(--dark); width: 35%; background: transparent !important; }

/* Related / upsells inside tabs section */
.sp-tabs-section .related.products,
.sp-tabs-section .upsells.products { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-l); }
.sp-tabs-section .related.products h2,
.sp-tabs-section .upsells.products h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 0 0 20px; }

/* Responsive: collapse to one column */
@media (max-width: 768px) {
  .hbt-single-product .sp-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
  .hbt-single-product .sp-gallery { position: relative; top: auto; }
  .hbt-single-product .sp-inquiry-actions { grid-template-columns: 1fr; }
  .hbt-single-product .sp-cart-form-wrap form.cart { flex-wrap: wrap; }
  .hbt-single-product .sp-cart-form-wrap button.single_add_to_cart_button { flex: 1 0 100%; }
}

/* ================================================================
   AJAX LIVE SEARCH DROPDOWN  (v2.0.36.5)
   Rendered by inc/ajax-search.php → appended as child of search form
   ================================================================ */
.hbt-ajax-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border: 1px solid var(--border, #E3E3DB);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  max-height: 70vh;
  overflow-y: auto;
  display: none;
}
/* v2.0.36.7 — portal variant rendered directly in <body> */
.hbt-ajax-search-results.hbt-portal {
  position: fixed; /* inline top/left/width set by JS */
  top: auto;
  left: auto;
  right: auto;
}
.hbt-ajax-search-results.is-open { display: block; }
/* v2.0.36.8 — portal dropdown can be wider than the search input itself */
.hbt-ajax-search-results.hbt-portal.is-open {
  min-width: 640px;
  max-width: 96vw;
}
/* Mobile: the 640px minimum blows the dropdown past the right edge of
 * the viewport. Clamp to the viewport minus the 8px gutters set by JS. */
@media (max-width: 991px) {
  .hbt-ajax-search-results.hbt-portal.is-open {
    min-width: 0 !important;
    max-width: calc(100vw - 16px) !important;
  }
}

.hbt-ajax-search-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

/* Loading / empty state */
.hbt-as-loading,
.hbt-as-empty {
  padding: 24px;
  text-align: center;
  color: #777;
  font-size: 14px;
}
.hbt-as-loading i,
.hbt-as-empty i {
  margin-right: 8px;
  color: var(--primary, #8BC34A);
}
.hbt-as-loading i { animation: hbt-spin 0.8s linear infinite; }
@keyframes hbt-spin { to { transform: rotate(360deg); } }

/* Columns */
.hbt-as-col {
  padding: 16px 18px;
}
.hbt-as-col + .hbt-as-col {
  border-left: 1px solid var(--border-l, #EDECE4);
}
.hbt-as-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary, #8BC34A);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-l, #EDECE4);
}

/* Product item */
.hbt-as-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  text-decoration: none !important;
  color: var(--dark, #1A1714);
  border-radius: 8px;
  transition: background 0.15s;
  min-height: 56px;
}
.hbt-as-item:hover {
  background: var(--bg, #F8F7F2);
}
.hbt-as-item + .hbt-as-item {
  border-top: 1px solid var(--border-l, #EDECE4);
  border-radius: 0;
}
.hbt-as-item-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-l, #EDECE4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hbt-as-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hbt-as-item-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.hbt-as-item-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--dark, #1A1714);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.hbt-as-item-sub {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbt-as-item-price {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #8BC34A);
  white-space: nowrap;
  text-align: right;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Side: categories & brands */
.hbt-as-cat-list,
.hbt-as-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hbt-as-cat-list li,
.hbt-as-brand-list li {
  margin: 0;
  padding: 0;
}
.hbt-as-cat-list a,
.hbt-as-brand-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--dark, #1A1714);
  text-decoration: none !important;
  border-radius: 6px;
  transition: background 0.15s;
}
.hbt-as-cat-list a:hover,
.hbt-as-brand-list a:hover {
  background: var(--bg, #F8F7F2);
}
.hbt-as-cat-list a i {
  width: 14px;
  text-align: center;
}
.hbt-as-cnt {
  margin-left: auto;
  font-size: 11px;
  color: #999;
  background: var(--bg, #F8F7F2);
  padding: 2px 7px;
  border-radius: 999px;
}
.hbt-as-brand-logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--border-l, #EDECE4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #8BC34A);
  overflow: hidden;
}
.hbt-as-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Footer "view all" */
.hbt-as-footer {
  border-top: 1px solid var(--border-l, #EDECE4);
  padding: 12px 18px;
  text-align: center;
  background: var(--bg, #F8F7F2);
  border-radius: 0 0 10px 10px;
}
.hbt-as-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #8BC34A);
  text-decoration: none !important;
}
.hbt-as-footer a i {
  margin-left: 6px;
  transition: transform 0.15s;
}
.hbt-as-footer a:hover i { transform: translateX(3px); }

/* Mobile: collapse to single column */
@media (max-width: 640px) {
  .hbt-ajax-search-inner { grid-template-columns: 1fr; }
  .hbt-as-col + .hbt-as-col { border-left: none; border-top: 1px solid var(--border-l, #EDECE4); }
}

/* ================================================================
   PRODUCT INQUIRY MODAL  (v2.0.39)
   Rendered by inc/product-inquiry.php in wp_footer on single-product
   ================================================================ */
.hbt-inquiry-modal {
  position: fixed; inset: 0;
  z-index: 99999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.hbt-inquiry-modal.is-open { display: flex; }
.hbt-inquiry-backdrop {
  position: absolute; inset: 0;
  background: rgba(26,23,20,.62);
  backdrop-filter: blur(3px);
  animation: hbt-inq-fade .18s ease-out;
}
.hbt-inquiry-panel {
  position: relative;
  background: #fff;
  width: 100%; max-width: 540px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  animation: hbt-inq-pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes hbt-inq-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hbt-inq-pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.hbt-inquiry-x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0; background: var(--bg, #F8F7F2);
  border-radius: 999px;
  font-size: 15px;
  color: var(--dark, #1A1714);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.hbt-inquiry-x:hover { background: #EDECE4; transform: rotate(90deg); }

.hbt-inquiry-head {
  padding: 28px 28px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border-l, #EDECE4);
}
.hbt-inquiry-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--primary, #8BC34A);
  background: rgba(139,195,74,.12);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.hbt-inquiry-head h3 {
  margin: 0 0 6px; font-size: 20px; font-weight: 700;
  color: var(--dark, #1A1714);
}
.hbt-inquiry-sub {
  margin: 0; font-size: 13px; color: #666;
}

.hbt-inquiry-tabs {
  display: flex;
  padding: 16px 20px 0;
  gap: 8px;
}
.hbt-inquiry-tab {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-l, #EDECE4);
  background: #fff;
  color: var(--dark, #1A1714);
  font-size: 13px; font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hbt-inquiry-tab:hover { background: var(--bg, #F8F7F2); }
.hbt-inquiry-tab.is-active {
  background: var(--dark, #1A1714);
  color: #fff;
  border-color: var(--dark, #1A1714);
}
.hbt-inquiry-tab.is-active i { color: var(--primary, #8BC34A); }

.hbt-inquiry-body { padding: 20px 28px 28px; }
.hbt-inquiry-tabpane { display: none; }
.hbt-inquiry-tabpane.is-active { display: block; }

/* Phone card */
.hbt-inquiry-phone-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(139,195,74,.08), rgba(139,195,74,.02));
  border: 1px solid rgba(139,195,74,.25);
  border-radius: 10px;
}
.hbt-inquiry-icon {
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--primary, #8BC34A);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.hbt-inquiry-phone-text { display: flex; flex-direction: column; }
.hbt-inquiry-muted { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.hbt-inquiry-phone-text strong {
  font-size: 18px; color: var(--dark, #1A1714);
  font-weight: 700;
}
.hbt-inquiry-call-btn {
  padding: 10px 18px;
  background: var(--primary, #8BC34A);
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .15s;
}
.hbt-inquiry-call-btn:hover { background: #7AAD3A; transform: translateY(-1px); }
.hbt-inquiry-hours {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #888;
}
.hbt-inquiry-hours i { margin-right: 4px; color: var(--primary, #8BC34A); }

/* Email form */
.hbt-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.hbt-inquiry-body label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--dark, #1A1714);
  margin-bottom: 10px;
}
.hbt-inquiry-body input[type=text],
.hbt-inquiry-body input[type=tel],
.hbt-inquiry-body textarea {
  padding: 9px 12px;
  border: 1px solid var(--border-l, #EDECE4);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s;
}
.hbt-inquiry-body input:focus,
.hbt-inquiry-body textarea:focus {
  outline: none;
  border-color: var(--primary, #8BC34A);
  box-shadow: 0 0 0 3px rgba(139,195,74,.15);
}
.hbt-inquiry-preview {
  margin: 10px 0 14px;
  padding: 12px;
  background: var(--bg, #F8F7F2);
  border-radius: 8px;
  font-size: 12px;
  color: #555;
}
.hbt-inquiry-preview-head {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .6px;
  color: var(--primary, #8BC34A);
  margin-bottom: 6px;
}
.hbt-inquiry-preview-body {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.45;
}
.hbt-inquiry-send {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  background: var(--primary, #8BC34A);
  color: #fff;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .15s;
}
.hbt-inquiry-send:hover { background: #7AAD3A; transform: translateY(-1px); }
.hbt-inquiry-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #888;
  text-align: center;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 540px) {
  .hbt-inquiry-panel { max-width: none; border-radius: 12px 12px 0 0; align-self: flex-end; max-height: 92vh; }
  .hbt-inquiry-modal { align-items: flex-end; padding: 0; }
  .hbt-inquiry-head { padding: 22px 20px 12px; }
  .hbt-inquiry-body { padding: 16px 20px 22px; }
  .hbt-inquiry-grid { grid-template-columns: 1fr; }
  .hbt-inquiry-phone-card { grid-template-columns: auto 1fr; }
  .hbt-inquiry-call-btn { grid-column: 1 / -1; justify-content: center; }
}

/* ================================================================
   WOOCOMMERCE — CART + CHECKOUT 2026 (mobile-first, desktop polish)
   ----------------------------------------------------------------
   Goals:
     • Short path to purchase: sticky total snapshot at top on mobile
     • Distraction-free: hide mobile-bottom-bar + contact FAB on these pages
     • Large tap targets (≥44px), inline errors, native mobile keyboards
     • Mobile cart → card layout; desktop checkout → sticky right column
   ================================================================ */

/* ---- Distraction-free: hide global mobile bar on cart + checkout ---- */
@media (max-width: 991px) {
  body.woocommerce-cart .mobile-bottom-bar,
  body.woocommerce-checkout .mobile-bottom-bar,
  body.woocommerce-cart .hbt-contact-fab,
  body.woocommerce-checkout .hbt-contact-fab { display: none !important; }
  body.woocommerce-cart,
  body.woocommerce-checkout { padding-bottom: 88px !important; } /* space for sticky CTA plugin */
}

/* ================================================================
   MOBILE CHECKOUT — single column, compact spacing
   ================================================================ */
@media (max-width: 991px) {
  body.woocommerce-checkout form.checkout { display: flex; flex-direction: column; gap: 14px; }
  body.woocommerce-checkout form.checkout .col2-set,
  body.woocommerce-checkout form.checkout .col-1,
  body.woocommerce-checkout form.checkout .col-2 {
    width: 100% !important; max-width: none !important; float: none !important; padding: 0 !important;
  }
  body.woocommerce-checkout #customer_details > .col2-set { display: flex; flex-direction: column; gap: 14px; }

  /* Unified section cards — target STANDARD WooCommerce wrappers so every
     block (billing, shipping, additional, order review) gets identical shell */
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout #order_review {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.04);
  }
  /* Strip HBT-level padding from inner .col-1/.col-2 so card looks uniform */
  body.woocommerce-checkout #customer_details .col-1,
  body.woocommerce-checkout #customer_details .col-2 {
    background: transparent !important; border: 0 !important; padding: 0 !important;
    box-shadow: none !important;
  }
  /* Section headings — unify weight/size everywhere */
  body.woocommerce-checkout .woocommerce-billing-fields > h3,
  body.woocommerce-checkout .woocommerce-shipping-fields > h3,
  body.woocommerce-checkout .woocommerce-additional-fields > h3,
  body.woocommerce-checkout #ship-to-different-address,
  body.woocommerce-checkout #order_review_heading {
    font-size: 18px !important; font-weight: 800 !important;
    margin: 0 0 14px !important; color: var(--dark) !important;
    padding: 0 !important; border: 0 !important; letter-spacing: 0;
    line-height: 1.25;
  }
  body.woocommerce-checkout #order_review_heading { margin: 4px 4px 10px !important; }

  /* Form rows — unified label + spacing */
  body.woocommerce-checkout .form-row,
  body.woocommerce-checkout p.form-row {
    margin: 0 0 12px !important; padding: 0 !important; width: 100% !important;
  }
  body.woocommerce-checkout .form-row label,
  body.woocommerce-checkout p.form-row > label {
    display: block !important;
    font-size: 13px !important; font-weight: 700 !important;
    margin: 0 0 6px !important; color: var(--dark) !important;
    letter-spacing: 0;
  }
  body.woocommerce-checkout .form-row label .required { color: var(--danger); font-weight: 700; }
  body.woocommerce-checkout .form-row label .optional { color: var(--text-l); font-weight: 500; font-size: 12px; }

  /* Inputs — 16px font prevents iOS zoom, min-height 44px for tap.
     High specificity + multiple selector forms beats HBT/Woo defaults. */
  body.woocommerce-checkout .form-row input.input-text,
  body.woocommerce-checkout .form-row textarea,
  body.woocommerce-checkout .form-row select,
  body.woocommerce-checkout .form-row .select2-selection,
  body.woocommerce-checkout .form-row .select2-selection--single,
  body.woocommerce-checkout .woocommerce-input-wrapper input,
  body.woocommerce-checkout .woocommerce-input-wrapper textarea,
  body.woocommerce-checkout .woocommerce-input-wrapper select {
    width: 100% !important;
    min-height: 46px !important; padding: 11px 14px !important; font-size: 16px !important;
    border: 1px solid var(--border) !important; border-radius: 10px !important;
    background: #fff !important; box-shadow: none !important;
    color: var(--dark) !important; line-height: 1.4 !important;
    font-family: inherit !important;
  }
  body.woocommerce-checkout .form-row .select2-selection--single .select2-selection__rendered {
    line-height: 22px !important; padding: 0 !important; color: var(--dark) !important;
  }
  body.woocommerce-checkout .form-row .select2-selection--single .select2-selection__arrow {
    top: 50% !important; transform: translateY(-50%); right: 10px !important;
  }
  body.woocommerce-checkout .form-row textarea,
  body.woocommerce-checkout .woocommerce-input-wrapper textarea {
    min-height: 96px !important; resize: vertical;
  }
  body.woocommerce-checkout .form-row input.input-text:focus,
  body.woocommerce-checkout .form-row textarea:focus,
  body.woocommerce-checkout .form-row select:focus,
  body.woocommerce-checkout .woocommerce-input-wrapper input:focus,
  body.woocommerce-checkout .woocommerce-input-wrapper textarea:focus {
    border-color: var(--primary) !important; outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
  }

  /* Inline errors under field */
  body.woocommerce-checkout .woocommerce-invalid input.input-text,
  body.woocommerce-checkout .woocommerce-invalid select,
  body.woocommerce-checkout .woocommerce-invalid .select2-selection {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(226, 86, 86, 0.15) !important;
  }
  body.woocommerce-checkout .form-row .woocommerce-error {
    display: block; color: var(--danger); font-size: 12px; font-weight: 500;
    margin: 4px 0 0; background: none; border: 0; padding: 0; list-style: none;
  }

  /* Collapse the noisy top error list on mobile — errors are already inline */
  body.woocommerce-checkout .woocommerce-NoticeGroup-checkout,
  body.woocommerce-checkout .woocommerce-notices-wrapper > ul.woocommerce-error {
    background: #FFF5F5; border: 1px solid #FCA5A5; color: var(--danger);
    border-radius: 10px; padding: 10px 14px; list-style: none; margin: 0 0 12px;
    font-size: 13px; font-weight: 500;
  }
  body.woocommerce-checkout .woocommerce-NoticeGroup-checkout li,
  body.woocommerce-checkout .woocommerce-notices-wrapper > ul.woocommerce-error li {
    margin: 0; padding: 3px 0; color: var(--danger); background: none;
  }
  body.woocommerce-checkout .woocommerce-NoticeGroup-checkout strong,
  body.woocommerce-checkout .woocommerce-notices-wrapper > ul.woocommerce-error strong {
    color: var(--danger); font-weight: 700;
  }

  /* Coupon / login notice */
  body.woocommerce-checkout .woocommerce-form-coupon-toggle,
  body.woocommerce-checkout .woocommerce-form-login-toggle { margin: 0 0 12px; }
  body.woocommerce-checkout .woocommerce-info {
    background: #fff; border: 1px solid var(--border-l); border-left: 3px solid var(--primary);
    border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text);
  }
  body.woocommerce-checkout .woocommerce-info a,
  body.woocommerce-checkout .woocommerce-info .showcoupon { color: var(--primary-d); font-weight: 700; }

  /* Order review block */
  body.woocommerce-checkout #order_review_heading {
    font-size: 16px; font-weight: 800; margin: 4px 0 10px;
  }
  body.woocommerce-checkout #order_review {
    background: #fff; border: 1px solid var(--border-l); border-radius: 12px; padding: 14px;
  }
  body.woocommerce-checkout #order_review table.shop_table { border: 0; margin: 0; font-size: 14px; }
  body.woocommerce-checkout #order_review table.shop_table th,
  body.woocommerce-checkout #order_review table.shop_table td {
    padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--border-l);
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot .order-total td,
  body.woocommerce-checkout #order_review table.shop_table tfoot .order-total th {
    font-size: 15px; font-weight: 800; color: var(--primary-d); padding-top: 14px;
  }

  /* Payment methods */
  body.woocommerce-checkout #payment { background: transparent; padding: 0; }
  body.woocommerce-checkout #payment ul.payment_methods { padding: 0; margin: 14px 0 0; border: 0; }
  body.woocommerce-checkout #payment ul.payment_methods li {
    list-style: none; padding: 10px 0; border-bottom: 1px solid var(--border-l);
  }
  body.woocommerce-checkout #payment ul.payment_methods li:last-child { border-bottom: 0; }
  body.woocommerce-checkout #payment ul.payment_methods li label {
    font-size: 14px; font-weight: 600; color: var(--dark); padding-left: 6px;
  }
  body.woocommerce-checkout #payment .payment_box {
    background: var(--bg2); border-radius: 8px; padding: 10px 12px; font-size: 12px;
    color: var(--text-l); margin: 8px 0 0;
  }
  body.woocommerce-checkout #payment .payment_box::before { display: none; }

  /* Place order (native Woo button — plugin sticky covers it but keep in-flow styled) */
  body.woocommerce-checkout #payment .place-order,
  body.woocommerce-checkout .form-row.place-order { padding: 0; margin-top: 14px; }
  body.woocommerce-checkout #place_order {
    width: 100%; min-height: 52px; background: var(--primary); color: #fff; border: 0;
    border-radius: 10px; font-weight: 800; font-size: 15px; letter-spacing: 0.3px;
    text-transform: uppercase; cursor: pointer; transition: background 0.15s;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.35);
  }
  body.woocommerce-checkout #place_order:hover { background: var(--primary-d); }

  /* Terms checkbox */
  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border-l);
  }
  body.woocommerce-checkout .form-row.validate-required.woocommerce-validated label,
  body.woocommerce-checkout .form-row.validate-required label {
    font-size: 13px; line-height: 1.5;
  }
  body.woocommerce-checkout input[type="checkbox"].input-checkbox {
    width: 18px; height: 18px; min-height: 0 !important; margin: 0 6px -3px 0; accent-color: var(--primary);
  }
}

/* ================================================================
   MOBILE CHECKOUT — top snapshot (total + collapsible items)
   Rendered by PHP via woocommerce_before_checkout_form hook
   ================================================================ */
.hbt-checkout-snapshot { display: none; }
@media (max-width: 991px) {
  body.woocommerce-checkout .hbt-checkout-snapshot {
    display: block; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin: 0 0 14px;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.04);
  }
  .hbt-checkout-snapshot summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; cursor: pointer; list-style: none; user-select: none;
  }
  .hbt-checkout-snapshot summary::-webkit-details-marker { display: none; }
  .hbt-cs-left { display: flex; flex-direction: column; gap: 2px; }
  .hbt-cs-label {
    font-size: 11px; font-weight: 600; color: var(--text-l); letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .hbt-cs-total { font-size: 20px; font-weight: 800; color: var(--primary-d); line-height: 1; }
  .hbt-cs-right {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-l);
  }
  .hbt-cs-right i { transition: transform 0.2s; font-size: 11px; }
  .hbt-checkout-snapshot[open] .hbt-cs-right i { transform: rotate(180deg); }
  .hbt-cs-body {
    border-top: 1px solid var(--border-l); padding: 10px 16px 14px; background: var(--bg2);
  }
  .hbt-cs-item {
    display: flex; justify-content: space-between; gap: 10px; padding: 8px 0;
    font-size: 13px; border-bottom: 1px dashed var(--border-l);
  }
  .hbt-cs-item:last-child { border-bottom: 0; }
  .hbt-cs-item-name { color: var(--dark); font-weight: 500; }
  .hbt-cs-item-qty { color: var(--text-l); font-weight: 500; }
  .hbt-cs-item-price { color: var(--dark); font-weight: 700; white-space: nowrap; }
}

/* ================================================================
   MOBILE CART — card layout (no horizontal scroll)
   ================================================================ */
@media (max-width: 768px) {
  body.woocommerce-cart table.cart,
  body.woocommerce-cart table.shop_table_responsive { background: transparent; border: 0; }
  body.woocommerce-cart table.shop_table_responsive thead { display: none; }
  body.woocommerce-cart table.shop_table_responsive,
  body.woocommerce-cart table.shop_table_responsive tbody { display: block; }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "img  name   remove"
      "img  price  price"
      "qty  qty    total";
    gap: 6px 12px; align-items: center;
    background: #fff; border: 1px solid var(--border-l); border-radius: 12px;
    padding: 12px; margin: 0 0 12px;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
    display: block; padding: 0 !important; border: 0 !important; text-align: left;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td::before { display: none !important; }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail {
    grid-area: img;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail img,
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail a img {
    width: 64px !important; height: 64px !important; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--border-l); background: #fff;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name {
    grid-area: name; font-size: 14px; font-weight: 600; line-height: 1.35;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name a {
    color: var(--dark); text-decoration: none;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price {
    grid-area: price; font-size: 12px; color: var(--text-l); font-weight: 500;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity {
    grid-area: qty;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity .quantity {
    display: inline-flex; align-items: center; border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; background: #fff;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity input.qty {
    width: 56px; min-height: 40px; border: 0; text-align: center;
    font-size: 15px; font-weight: 700; background: transparent; color: var(--dark);
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal {
    grid-area: total; text-align: right; font-size: 16px; font-weight: 800;
    color: var(--primary-d); white-space: nowrap;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
    grid-area: remove; text-align: right;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove a.remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: var(--bg2);
    color: var(--text-l) !important; font-size: 15px; line-height: 1;
    text-decoration: none !important;
  }
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove a.remove:hover {
    background: var(--danger); color: #fff !important;
  }

  /* Actions row (coupon + update) */
  body.woocommerce-cart table.shop_table_responsive tr:not(.cart_item) {
    display: block; background: transparent; border: 0; padding: 0; margin: 6px 0 14px;
  }
  body.woocommerce-cart table.shop_table_responsive tr:not(.cart_item) > td {
    display: block; padding: 0 !important; border: 0 !important;
  }
  body.woocommerce-cart table.shop_table_responsive .coupon {
    display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 10px;
  }
  body.woocommerce-cart table.shop_table_responsive .coupon input#coupon_code {
    min-height: 44px; padding: 10px 12px; font-size: 16px;
    border: 1px solid var(--border); border-radius: 8px; background: #fff;
  }
  body.woocommerce-cart table.shop_table_responsive .coupon button,
  body.woocommerce-cart button[name="update_cart"] {
    min-height: 44px; padding: 0 16px; font-size: 13px; font-weight: 700;
    border-radius: 8px; white-space: nowrap;
  }
  body.woocommerce-cart button[name="update_cart"] { width: 100%; margin-top: 4px; }

  /* Totals panel */
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .cart_totals { width: 100% !important; float: none !important; }
  body.woocommerce-cart .cart_totals {
    background: #fff; border: 1px solid var(--border-l); border-radius: 12px;
    padding: 16px; margin: 12px 0 0;
  }
  body.woocommerce-cart .cart_totals h2 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
  body.woocommerce-cart .cart_totals table.shop_table { border: 0; font-size: 14px; margin: 0; }
  body.woocommerce-cart .cart_totals table.shop_table th,
  body.woocommerce-cart .cart_totals table.shop_table td {
    padding: 10px 0 !important; background: transparent !important;
    border: 0 !important; border-bottom: 1px solid var(--border-l) !important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
  body.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    font-size: 16px; font-weight: 800; color: var(--primary-d); border-bottom: 0 !important;
    padding-top: 14px !important;
  }
  body.woocommerce-cart .wc-proceed-to-checkout { margin-top: 14px; padding: 0; }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 52px; font-size: 15px; font-weight: 800;
    letter-spacing: 0.3px; text-transform: uppercase; border-radius: 10px;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.35);
  }

  /* Shipping calculator — avoid wide cramped layout */
  body.woocommerce-cart .shipping-calculator-button { font-weight: 700; color: var(--primary-d); }
  body.woocommerce-cart .shipping-calculator-form { margin-top: 10px; }
  body.woocommerce-cart .shipping-calculator-form p { margin-bottom: 8px; }
}

/* ================================================================
   DESKTOP POLISH — checkout two-column with sticky summary
   ================================================================ */
@media (min-width: 992px) {
  body.woocommerce-checkout form.checkout {
    display: grid; grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px; align-items: start;
  }
  body.woocommerce-checkout form.checkout > #customer_details { grid-column: 1; }
  body.woocommerce-checkout form.checkout > #order_review_heading,
  body.woocommerce-checkout form.checkout > #order_review,
  body.woocommerce-checkout form.checkout > .woocommerce-checkout-payment { grid-column: 2; }
  body.woocommerce-checkout form.checkout > #order_review_heading { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
  body.woocommerce-checkout form.checkout > #order_review {
    position: sticky; top: calc(var(--hbt-sticky-header-h, 80px) + 16px);
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; box-shadow: 0 2px 10px rgba(26, 23, 20, 0.04);
  }
  body.woocommerce-checkout form.checkout #customer_details > .col2-set {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  }
  body.woocommerce-checkout form.checkout #customer_details .col-1,
  body.woocommerce-checkout form.checkout #customer_details .col-2 {
    width: 100%; max-width: none; float: none;
    background: transparent !important; border: 0 !important; padding: 0 !important;
    box-shadow: none !important;
  }
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields {
    background: #fff; border: 1px solid var(--border-l); border-radius: 12px;
    padding: 20px; margin: 0 0 20px;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.04);
  }
  body.woocommerce-checkout .woocommerce-billing-fields > h3,
  body.woocommerce-checkout .woocommerce-shipping-fields > h3,
  body.woocommerce-checkout .woocommerce-additional-fields > h3 {
    font-size: 16px; font-weight: 800; margin: 0 0 14px; color: var(--dark);
  }
  body.woocommerce-checkout #place_order {
    width: 100%; min-height: 52px; background: var(--primary); color: #fff; border: 0;
    border-radius: 10px; font-weight: 800; font-size: 15px; letter-spacing: 0.3px;
    text-transform: uppercase; cursor: pointer; transition: background 0.15s;
  }
  body.woocommerce-checkout #place_order:hover { background: var(--primary-d); }

  /* Form rows (desktop) — slightly tighter */
  body.woocommerce-checkout .form-row { margin: 0 0 14px; }
  body.woocommerce-checkout .form-row label {
    display: block; font-size: 13px; font-weight: 600; margin: 0 0 5px; color: var(--dark);
  }
  body.woocommerce-checkout .form-row input.input-text,
  body.woocommerce-checkout .form-row textarea,
  body.woocommerce-checkout .form-row select,
  body.woocommerce-checkout .form-row .select2-selection {
    min-height: 42px !important; padding: 9px 12px !important; font-size: 14px !important;
    border: 1px solid var(--border) !important; border-radius: 8px !important; background: #fff !important;
  }
  body.woocommerce-checkout .form-row input.input-text:focus,
  body.woocommerce-checkout .form-row textarea:focus,
  body.woocommerce-checkout .form-row select:focus {
    border-color: var(--primary) !important; outline: 0;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
  }
}

/* ---- Desktop cart polish (superseded by v2.0.58 grid layout below) ---- */
@media (min-width: 769px) and (max-width: 991px) {
  /* Tablet-only: keep the simpler float layout since grid requires more width */
  body.woocommerce-cart .cart-collaterals { float: right; width: 48%; }
  body.woocommerce-cart .cart_totals {
    background: #fff; border: 1px solid var(--border-l); border-radius: 12px;
    padding: 18px;
  }
  body.woocommerce-cart .cart_totals h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 48px; font-size: 15px; font-weight: 800;
    letter-spacing: 0.3px; text-transform: uppercase; border-radius: 10px;
  }
  body.woocommerce-cart table.shop_table_responsive td.product-thumbnail img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 8px;
  }
}
/* ================================================================
   2026 MOBILE HEADER — progressive collapse + isprzet.pl pattern
   ----------------------------------------------------------------
   • Search bar visible as second row at top of page
   • Collapses smoothly to height:0 on scroll past 30px
   • Hamburger on left transforms into X when menu is open
     (SAME button serves as open AND close — less clicks, clearer UX)
   • touch-action: manipulation kills iOS 300ms tap delay everywhere
   • Removes the ::after halo on the logo that was stealing taps
   ================================================================ */

/* ---------- HIDE on desktop ---------- */
.hbt-mobile-search-row { display: none; }

@media (max-width: 991px) {

  /* ---------- TAP ISOLATION: kill everything that steals clicks ---------- */
  .site-header,
  .site-header a,
  .site-header button,
  .site-header .site-logo,
  .site-header .site-logo img,
  .hbt-mobile-hamburger,
  .header-actions,
  .header-actions .ha-cart,
  .site-search,
  .site-search .search-submit,
  .site-search .search-input,
  .hbt-mobile-search-row,
  .hbt-mobile-search-row a,
  .hbt-mobile-search-row input,
  .hbt-mobile-search-row button,
  .mobile-menu,
  .mobile-menu a,
  .mobile-menu button,
  .mm-close,
  .mm-expand,
  .mm-overlay,
  .hbt-cart-flyout,
  .hbt-cart-flyout a,
  .hbt-cart-flyout button,
  .hbt-cart-flyout-x,
  .hbt-cart-flyout [data-hbt-cart-close] {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(139, 195, 74, 0.18);
  }

  /* Kill the logo halo (::after with inset:-8px) — was stealing taps
   * from adjacent hamburger/search buttons on smaller widths. */
  .site-header .site-logo::after,
  .site-header a.site-logo::after,
  .site-header .site-logo::before,
  .site-header a.site-logo::before {
    content: none !important;
    display: none !important;
  }

  /* Ensure header and its children form a clean flex layout with
   * explicit z-index and NO overlap between tap areas. */
  .site-header { position: sticky; top: 0; z-index: 500; }
  .site-header .header-row { position: relative; z-index: 5; }
  .hbt-mobile-hamburger { z-index: 10 !important; }
  .header-actions { z-index: 10 !important; }
  .site-search { z-index: 9 !important; }
  .site-header .site-logo,
  .site-header a.site-logo { z-index: 1 !important; }

  /* ================================================================
     HAMBURGER → X crossfade (v2.0.66)
     Both icons sit stacked in the button; CSS fades + rotates between
     them based on body.menu-open. Legacy ::before is disabled because
     iOS Safari mis-parsed the \f00d escape.
     ================================================================ */
  .hbt-mobile-hamburger::before { content: none !important; display: none !important; }
  .hbt-mobile-hamburger {
    position: relative; /* anchor for the absolutely-stacked icons */
  }
  .hbt-mobile-hamburger > .hbt-hamb-bars,
  .hbt-mobile-hamburger > .hbt-hamb-x {
    position: absolute;
    top: 50%; left: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  /* Closed state: bars visible, X rotated -90° and hidden */
  .hbt-mobile-hamburger > .hbt-hamb-bars { opacity: 1; }
  .hbt-mobile-hamburger > .hbt-hamb-x {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
  }
  /* Open state: bars rotate +90° and fade out, X fades in upright.
   * !important because diagnostics showed the rule was being beaten by
   * an unknown source despite higher specificity. */
  body.menu-open .hbt-mobile-hamburger > .hbt-hamb-bars {
    opacity: 0 !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
  }
  body.menu-open .hbt-mobile-hamburger > .hbt-hamb-x {
    opacity: 1 !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
  }
  /* subtle hover/active bounce on the button itself */
  .hbt-mobile-hamburger { transition: background 0.15s ease; }
  /* v2.0.84 — hamburger zostaje w header-row (drawer startuje BELOW
   * headera), więc nie musimy go wyrywać z flowu z position:fixed.
   * Zachowujemy tylko ciemniejszy accent tła gdy menu otwarte. */
  body.menu-open .hbt-mobile-hamburger {
    background: var(--primary-d) !important;
    color: #fff !important;
  }

  /* ================================================================
     PROGRESSIVE SECOND ROW — search bar visible at top of page
     ================================================================ */
  .hbt-mobile-search-row {
    display: block;
    background: #fff;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-l);
    max-height: 70px;
    overflow: hidden;
    box-sizing: border-box;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease,
                opacity 0.25s ease;
    opacity: 1;
  }
  .hbt-mobile-search-row form {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
  }
  .hbt-mobile-search-row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    font-size: 16px; /* prevents iOS zoom */
    color: var(--dark);
    background: #fff;
    border: 1.5px solid var(--border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .hbt-mobile-search-row input[type="text"]::placeholder {
    color: var(--text-l);
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  .hbt-mobile-search-row input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18);
  }
  .hbt-mobile-search-row button[type="submit"] {
    flex: 0 0 54px;
    width: 54px;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
  }
  .hbt-mobile-search-row button[type="submit"]:active,
  .hbt-mobile-search-row button[type="submit"]:focus-visible {
    background: var(--primary-d);
    outline: none;
  }

  /* ---------- COLLAPSED STATE (scrolled > 30px) ---------- */
  body.header-scrolled .hbt-mobile-search-row {
    max-height: 0;
    padding: 0 12px;
    border-bottom-color: transparent;
    opacity: 0;
  }

  /* ---------- In-header magnifier: inverse visibility ----------
   * At top of page (second row visible): hide the header icon
   *   → avoids two search triggers side-by-side, cleaner layout
   * On scroll (second row collapsed): show the header icon so user
   *   can still access search.
   */
  body:not(.header-scrolled) .site-search .search-submit {
    opacity: 0;
    pointer-events: none;
    width: 0 !important;
    padding: 0 !important;
    transition: opacity 0.2s ease, width 0.3s ease;
  }
  body.header-scrolled .site-search .search-submit {
    opacity: 1;
    pointer-events: auto;
    width: 48px !important;
    transition: opacity 0.25s ease 0.1s, width 0.3s ease;
  }

  /* ================================================================
     MOBILE MENU — drawer slides out BELOW the site-header (v2.0.84)
     ================================================================
     Drawer ma teraz top: var(--hbt-mobile-header-h) (wysokość
     headera liczona żywo w JS), więc:
       - site-header (hamburger + logo + cart) cały czas widoczny,
       - hamburger zostaje na swoim miejscu w header-row,
       - morph do X działa out-of-the-box (button nie przykryty),
       - duplikujące się .mm-header + .mm-close są ukryte.
     ================================================================ */
  .mobile-menu .mm-header,
  .mobile-menu .mm-close{ display:none !important; }

  /* Extra tap area for the cart-flyout X (was 36×36, bump to 44×44) */
  .hbt-cart-flyout-x {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }
}

/* ================================================================
   DESKTOP — keep second row hidden, restore default header-icon magnifier
   ================================================================ */
@media (min-width: 992px) {
  .hbt-mobile-search-row { display: none !important; }
  body:not(.header-scrolled) .site-search .search-submit {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    padding: initial !important;
  }
}

/* ================================================================
   v2.0.57 — DESKTOP CHECKOUT UNIFIED SHELL
   ----------------------------------------------------------------
   Fixes the "scattered" right column on checkout finalization:
   • One clean card #order_review (no mini-cards-in-card)
   • Hide redundant shop_table column headers (we have "TWOJE
     ZAMÓWIENIE" card title already)
   • Consistent row separators (single bottom border per row)
   • Payment methods flow seamlessly below the product/totals table
   • Coupon form in its new position (after B: review_order_before_payment)
     styled to match
   • Place order button and terms/privacy follow consistent spacing
   ================================================================ */

@media (min-width: 992px) {

  /* ---------- Unified outer card ---------- */
  body.woocommerce-checkout form.checkout > #order_review {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(26, 23, 20, 0.04) !important;
    overflow: hidden;
  }

  /* ---------- SHOP TABLE — hide column header row, clean rows ---------- */
  body.woocommerce-checkout #order_review table.shop_table {
    width: 100% !important;
    border: 0 !important;
    margin: 0 0 4px !important;
    border-collapse: collapse !important;
    font-size: 14px;
    background: transparent !important;
  }
  /* Remove the "PRODUKT / KWOTA" column header — card title covers it */
  body.woocommerce-checkout #order_review table.shop_table thead {
    display: none !important;
  }
  body.woocommerce-checkout #order_review table.shop_table th,
  body.woocommerce-checkout #order_review table.shop_table td {
    padding: 12px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    vertical-align: top;
  }
  body.woocommerce-checkout #order_review table.shop_table th {
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    letter-spacing: 0;
  }
  body.woocommerce-checkout #order_review table.shop_table td {
    text-align: right;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
  }

  /* Cart item row — product name on the left, price on the right */
  body.woocommerce-checkout #order_review table.shop_table tr.cart_item td.product-name {
    text-align: left !important;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    white-space: normal;
    padding-right: 10px !important;
  }
  body.woocommerce-checkout #order_review table.shop_table tr.cart_item strong.product-quantity {
    color: var(--text-l);
    font-weight: 500;
    margin-left: 4px;
  }

  /* Shipping row — options stacked, labels visible */
  body.woocommerce-checkout #order_review table.shop_table tr.shipping td {
    text-align: left !important;
    white-space: normal;
  }
  body.woocommerce-checkout #order_review table.shop_table tr.shipping ul#shipping_method {
    margin: 0; padding: 0; list-style: none;
  }
  body.woocommerce-checkout #order_review table.shop_table tr.shipping ul#shipping_method li {
    margin: 0 0 4px; padding: 0;
  }
  body.woocommerce-checkout #order_review table.shop_table tr.shipping ul#shipping_method li label {
    font-size: 13px; color: var(--dark); padding-left: 6px; cursor: pointer;
  }
  body.woocommerce-checkout #order_review table.shop_table tr.shipping ul#shipping_method li input[type="radio"] {
    accent-color: var(--primary);
  }

  /* Order total — bold, primary-dark, no bottom border (last row in table) */
  body.woocommerce-checkout #order_review table.shop_table tr.order-total th,
  body.woocommerce-checkout #order_review table.shop_table tr.order-total td {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    border-bottom: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 4px !important;
  }
  /* VAT/tax note under total */
  body.woocommerce-checkout #order_review table.shop_table .includes_tax,
  body.woocommerce-checkout #order_review table.shop_table tfoot small {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-style: italic;
    color: var(--text-l) !important;
    margin-top: 4px !important;
    line-height: 1.4;
  }

  /* Radio buttons — native but primary-tinted */
  body.woocommerce-checkout #order_review input[type="radio"] {
    accent-color: var(--primary);
    width: 16px; height: 16px;
    vertical-align: -2px; margin: 0 4px 0 0;
  }

  /* ---------- COUPON FORM (now at bottom via task B) ---------- */
  body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle,
  body.woocommerce-checkout #order_review .woocommerce-form-coupon {
    margin: 4px 0 12px !important;
    padding: 0;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .woocommerce-info {
    background: var(--bg2) !important;
    border: 1px solid var(--border-l) !important;
    border-left: 3px solid var(--primary) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    margin: 0 !important;
    color: var(--text) !important;
    list-style: none;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .showcoupon,
  body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle a {
    color: var(--primary-d) !important;
    font-weight: 700 !important;
    text-decoration: none;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon {
    background: var(--bg2) !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 8px !important;
    padding: 14px !important;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon p:last-child {
    margin-bottom: 0;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon .form-row-first,
  body.woocommerce-checkout #order_review .woocommerce-form-coupon .form-row-last {
    width: 100% !important; max-width: none !important; float: none !important;
    margin: 0 0 8px;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon input#coupon_code {
    width: 100% !important;
    min-height: 42px; padding: 10px 12px !important;
    font-size: 14px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: #fff !important;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon input#coupon_code:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
    outline: 0;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon button[name="apply_coupon"] {
    width: 100%;
    min-height: 42px; padding: 10px 16px !important;
    background: var(--primary) !important; color: #fff !important;
    border: 0 !important; border-radius: 8px !important;
    font-size: 13px !important; font-weight: 700 !important;
    letter-spacing: .3px; cursor: pointer;
    transition: background 0.15s;
  }
  body.woocommerce-checkout #order_review .woocommerce-form-coupon button[name="apply_coupon"]:hover {
    background: var(--primary-d) !important;
  }

  /* ---------- PAYMENT METHODS — clean list, no nested cards ---------- */
  body.woocommerce-checkout #order_review #payment {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 12px 0 0;
  }
  body.woocommerce-checkout #order_review #payment ul.payment_methods {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.woocommerce-checkout #order_review #payment ul.payment_methods > li {
    list-style: none !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    margin: 0 !important;
    background: transparent !important;
  }
  body.woocommerce-checkout #order_review #payment ul.payment_methods > li:last-of-type {
    border-bottom: 0 !important;
  }
  body.woocommerce-checkout #order_review #payment ul.payment_methods > li > label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    padding-left: 8px !important;
    cursor: pointer;
    display: inline-block;
  }
  body.woocommerce-checkout #order_review #payment .payment_box {
    background: var(--bg2) !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin: 10px 0 0 !important;
    font-size: 12px !important;
    color: var(--text-l) !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
  }
  body.woocommerce-checkout #order_review #payment .payment_box::before {
    display: none !important;
  }

  /* ---------- TERMS + PLACE ORDER ---------- */
  body.woocommerce-checkout #order_review #payment .woocommerce-privacy-policy-text {
    font-size: 12px !important;
    color: var(--text-l) !important;
    line-height: 1.5 !important;
    margin: 14px 0 10px !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid var(--border-l);
  }
  body.woocommerce-checkout #order_review #payment .woocommerce-privacy-policy-text a {
    color: var(--primary-d); font-weight: 600;
  }
  body.woocommerce-checkout #order_review #payment .woocommerce-terms-and-conditions-wrapper {
    margin: 8px 0 14px !important;
    font-size: 13px !important;
    line-height: 1.5;
    color: var(--text);
  }
  body.woocommerce-checkout #order_review #payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
    margin: 0 6px 0 0;
    vertical-align: -2px;
  }
  body.woocommerce-checkout #order_review #payment .woocommerce-terms-and-conditions-wrapper a {
    color: var(--primary-d); font-weight: 600;
  }
  body.woocommerce-checkout #order_review #payment .place-order {
    padding: 0 !important;
    margin: 0 !important;
  }
  body.woocommerce-checkout #order_review #place_order {
    width: 100% !important;
    min-height: 54px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.32);
  }
  body.woocommerce-checkout #order_review #place_order:hover {
    background: var(--primary-d) !important;
  }
  body.woocommerce-checkout #order_review #place_order:active {
    transform: translateY(1px);
  }

  /* ---------- BILLING SIDE — fold "Masz kupon?" into proper spacing ----------
   * Default WC coupon notice used to sit above the form — after task B it's
   * moved into #order_review. Still, guard against any remaining `.woocommerce-
   * form-coupon-toggle` that might render outside due to plugins. */
  body.woocommerce-checkout form.checkout > .woocommerce-form-coupon-toggle,
  body.woocommerce-checkout form.checkout > .woocommerce-form-login-toggle {
    display: none; /* removed from top, hide any leftover injected element */
  }

  /* ---------- Customer details h3 + sections cleaner ---------- */
  body.woocommerce-checkout .woocommerce-billing-fields > h3,
  body.woocommerce-checkout .woocommerce-shipping-fields > h3,
  body.woocommerce-checkout .woocommerce-additional-fields > h3,
  body.woocommerce-checkout #ship-to-different-address {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--border-l);
  }

  /* Order review heading above the card — match typography */
  body.woocommerce-checkout form.checkout > #order_review_heading {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    letter-spacing: 0;
  }
}

/* ================================================================
   v2.0.58 — DESKTOP CART 2-COLUMN GRID
   ----------------------------------------------------------------
   Old layout floated .cart-collaterals right at 40% → product table
   above stretched full-width, leaving a big empty pocket on the left
   below. Replaced with CSS grid on the .woocommerce wrapper:
     • LEFT  (1fr) — cart form (item list + coupon + update)
     • RIGHT (380px, sticky) — totals card + "Przejdź do płatności"
   Symmetric with the checkout layout (task A).
   ================================================================ */

@media (min-width: 992px) {

  /* ---------- 2-column grid ---------- */
  body.woocommerce-cart .hbt-main-wrap > .woocommerce,
  body.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
  }
  /* Notices wrapper spans the whole row at top so errors aren't squeezed */
  body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
  }
  body.woocommerce-cart .woocommerce > form.woocommerce-cart-form {
    grid-column: 1;
    min-width: 0; /* critical — prevents table overflow breaking the grid */
    margin: 0 !important;
  }
  body.woocommerce-cart .woocommerce > .cart-collaterals {
    grid-column: 2;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: sticky;
    top: calc(var(--hbt-sticky-header-h, 80px) + 16px);
  }

  /* ---------- LEFT: Cart form + table + actions ---------- */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    width: 100% !important;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.03);
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th {
    background: var(--bg2) !important;
    padding: 14px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--text-l) !important;
    border-bottom: 1px solid var(--border-l) !important;
    text-align: left;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td {
    padding: 16px !important;
    border-top: 1px solid var(--border-l) !important;
    vertical-align: middle;
    background: #fff !important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr:first-child td {
    border-top: 0 !important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border-l);
    border-radius: 8px;
    padding: 4px;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a {
    color: var(--dark) !important;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    font-size: 14px;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a:hover {
    color: var(--primary-d) !important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price {
    color: var(--text-l);
    font-weight: 500;
    font-size: 13px;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-d);
    white-space: nowrap;
  }

  /* Quantity input */
  body.woocommerce-cart .woocommerce-cart-form .quantity {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }
  body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    width: 60px !important;
    min-height: 38px;
    border: 0 !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    background: transparent;
    outline: none;
  }
  body.woocommerce-cart .woocommerce-cart-form .quantity input.qty:focus {
    background: var(--bg2);
  }

  /* Remove (×) button */
  body.woocommerce-cart .woocommerce-cart-form td.product-remove a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg2);
    color: var(--text-l) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
  }
  body.woocommerce-cart .woocommerce-cart-form td.product-remove a.remove:hover {
    background: var(--danger);
    color: #fff !important;
  }

  /* Actions row — coupon form + update button */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.actions {
    background: #fff !important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.actions > td {
    padding: 16px !important;
    background: #fff !important;
    border-top: 1px solid var(--border-l) !important;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon {
    display: inline-flex !important;
    align-items: stretch;
    gap: 0;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon label.screen-reader-text {
    position: absolute; left: -9999px;
  }
  body.woocommerce-cart .woocommerce-cart-form input#coupon_code {
    min-height: 42px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border: 1px solid var(--border) !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
    background: #fff !important;
    width: 200px;
    outline: none;
  }
  body.woocommerce-cart .woocommerce-cart-form input#coupon_code:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18);
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon button[name="apply_coupon"] {
    min-height: 42px !important;
    padding: 10px 18px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon button[name="apply_coupon"]:hover {
    background: var(--primary-d) !important;
  }
  body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
    float: right;
    min-height: 42px !important;
    padding: 10px 20px !important;
    background: #fff !important;
    color: var(--dark) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.15s;
  }
  body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled) {
    border-color: var(--primary) !important;
    color: var(--primary-d) !important;
  }
  body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  /* ---------- RIGHT: Cart totals card ---------- */
  body.woocommerce-cart .cart_totals {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(26, 23, 20, 0.04) !important;
    margin: 0 !important;
  }
  body.woocommerce-cart .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--border-l);
    letter-spacing: 0;
  }
  body.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    font-size: 14px;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  body.woocommerce-cart .cart_totals table.shop_table th,
  body.woocommerce-cart .cart_totals table.shop_table td {
    padding: 12px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    vertical-align: top;
  }
  body.woocommerce-cart .cart_totals table.shop_table th {
    font-weight: 600 !important;
    color: var(--dark) !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  body.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
  }
  /* Shipping row — options left-aligned */
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping td {
    text-align: left !important;
    font-weight: 500 !important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping ul#shipping_method {
    margin: 0; padding: 0; list-style: none;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping ul#shipping_method li {
    margin: 0 0 6px; padding: 0;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping ul#shipping_method li label {
    font-size: 13px;
    color: var(--dark);
    padding-left: 6px;
    cursor: pointer;
    font-weight: 500;
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping input[type="radio"] {
    accent-color: var(--primary);
  }
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping .shipping-calculator-button {
    color: var(--primary-d);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
  }
  /* Order total row — bold, primary-dark, no bottom border */
  body.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
  body.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    border-bottom: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 4px !important;
  }
  /* VAT/tax note under total */
  body.woocommerce-cart .cart_totals table.shop_table .includes_tax,
  body.woocommerce-cart .cart_totals table.shop_table small {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-style: italic;
    color: var(--text-l) !important;
    margin-top: 4px !important;
    line-height: 1.4;
    text-align: right;
  }

  /* Proceed to checkout button — prominent, full-width */
  body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 16px 0 0 !important;
    margin: 0 !important;
    display: block;
  }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 54px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.32);
  }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--primary-d) !important;
  }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:active {
    transform: translateY(1px);
  }

  /* Cross-sells section (if present) — full width below the grid */
  body.woocommerce-cart .cart-collaterals .cross-sells {
    grid-column: 1 / -1;
    width: 100% !important;
    margin-top: 32px;
  }
}

/* ---------- Very wide screens — cap the right column ---------- */
@media (min-width: 1400px) {
  body.woocommerce-cart .hbt-main-wrap > .woocommerce,
  body.woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
  }
}

/* ================================================================
   v2.0.60 — CART DESKTOP FIX: grid selector was too strict.
   ----------------------------------------------------------------
   HBT wraps WC elements in an extra div, so `.woocommerce > form.
   woocommerce-cart-form` direct-child selector didn't match. Both
   items fell into auto-placement → stacked in first grid column.
   Fallback to float layout, which works regardless of wrappers.
   ================================================================ */

@media (min-width: 992px) {
  /* Disable the grid attempt — it couldn't find its children */
  body.woocommerce-cart .hbt-main-wrap > .woocommerce,
  body.woocommerce-cart .woocommerce {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  /* Float layout — works with or without .woocommerce wrapper */
  body.woocommerce-cart form.woocommerce-cart-form {
    float: left !important;
    width: calc(100% - 408px) !important;
    max-width: calc(100% - 408px) !important;
    clear: left !important;
    margin: 0 !important;
    grid-column: auto !important;
  }
  body.woocommerce-cart .cart-collaterals {
    float: right !important;
    width: 380px !important;
    max-width: 380px !important;
    clear: right !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: auto !important;
    position: sticky;
    top: calc(var(--hbt-sticky-header-h, 80px) + 16px);
  }
  /* Clearfix — flush floats before footer content */
  body.woocommerce-cart .hbt-main-wrap::after,
  body.woocommerce-cart .woocommerce::after {
    content: "";
    display: table;
    clear: both;
  }
  /* Cross-sells (if any) must break below both columns */
  body.woocommerce-cart .cart-collaterals .cross-sells {
    clear: both;
    width: 100%;
    float: none;
    margin-top: 32px;
  }
  /* Notice wrappers above the layout */
  body.woocommerce-cart .woocommerce-notices-wrapper {
    clear: both;
    width: 100%;
    margin-bottom: 16px;
  }
}

/* Ultra-wide screens — match checkout proportions */
@media (min-width: 1400px) {
  body.woocommerce-cart form.woocommerce-cart-form {
    width: calc(100% - 452px) !important;
    max-width: calc(100% - 452px) !important;
  }
  body.woocommerce-cart .cart-collaterals {
    width: 420px !important;
    max-width: 420px !important;
  }
}

/* ================================================================
   HBT LOOP CARD (2026-04-17)
   Driven by woocommerce/content-product.php. A deterministic
   flex-column tile — every slot has a fixed minimum so the cart
   button is always anchored to the bottom of the grid row.
   Uses .hbt-loop-card__* so legacy HBT/HBT selectors don't fight.
   ================================================================ */
.hbt-main-wrap ul.products li.product.hbt-loop-card,
ul.products li.product.hbt-loop-card{
    display:flex !important; flex-direction:column;
    height:100%; min-width:0; padding:0 !important;
    background:#fff; border:1px solid var(--border-l,#F0F0F0) !important;
    border-radius:var(--r-lg,10px); overflow:hidden;
    transition:border-color .2s, box-shadow .2s, transform .2s;
}
.hbt-main-wrap ul.products li.product.hbt-loop-card:hover,
ul.products li.product.hbt-loop-card:hover{
    border-color:var(--primary-l,#A5D66B) !important;
    box-shadow:0 12px 28px rgba(26,23,20,.09);
    transform:none !important;
}
.hbt-loop-card .hbt-loop-card__inner{
    display:flex; flex-direction:column; height:100%; width:100%;
}

/* ── Image ── */
.hbt-loop-card .hbt-loop-card__image{
    position:relative; display:block;
    aspect-ratio:1/1; width:100%;
    background:#fafafa; overflow:hidden;
}
.hbt-loop-card .hbt-loop-card__image img{
    width:100% !important; height:100% !important;
    object-fit:contain; padding:14px; box-sizing:border-box;
    transition:transform .35s ease;
}
.hbt-loop-card:hover .hbt-loop-card__image img{ transform:scale(1.04); }
.hbt-loop-card .hbt-loop-card__sale{
    position:absolute; top:10px; right:10px;
    background:var(--secondary,#d1ad4b); color:#fff;
    font-size:11px; font-weight:700; letter-spacing:.4px;
    padding:3px 10px; border-radius:20px; text-transform:uppercase;
}

/* ── Body ── */
.hbt-loop-card .hbt-loop-card__body{
    display:flex; flex-direction:column;
    flex:1 1 auto; min-width:0;
    padding:14px 14px 14px; gap:6px;
}

/* Meta (brand / category) — fixed height so empty rows still line up */
.hbt-loop-card .hbt-loop-card__meta{
    font-size:10px; font-weight:700; letter-spacing:.6px;
    text-transform:uppercase; color:var(--text-l,#616161);
    min-height:14px; line-height:1.3;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hbt-loop-card .hbt-loop-card__meta a{
    color:inherit; text-decoration:none;
}
.hbt-loop-card .hbt-loop-card__meta a:hover{ color:var(--primary,#8BC34A); }

/* Title — always 2 lines tall */
.hbt-loop-card h3.hbt-loop-card__title,
.hbt-loop-card .hbt-loop-card__title{
    font-size:14px !important; font-weight:700 !important;
    line-height:1.35 !important; margin:0 !important;
    color:var(--dark,#1A1714) !important;
    min-height:calc(1.35em * 2);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden;
}
.hbt-loop-card .hbt-loop-card__title a{
    color:inherit; text-decoration:none;
}
.hbt-loop-card .hbt-loop-card__title a:hover{ color:var(--primary,#8BC34A); }

/* Rating — always rendered, fixed height so cards align */
.hbt-loop-card .hbt-loop-card__rating{
    display:flex; align-items:center; gap:6px;
    min-height:16px; margin:2px 0 0;
}
.hbt-loop-card .hbt-loop-card__rating .star-rating{
    font-size:12px; width:5.4em; height:1.2em;
    letter-spacing:2px; margin:0;
}
.hbt-loop-card .hbt-loop-card__rating-count{
    font-size:11px; color:var(--text-l,#616161);
}

/* Price — amount + "z VAT" inline, omnibus on its own line */
.hbt-loop-card .hbt-loop-card__price{
    margin:4px 0 0; padding:0 !important;
    font-size:16px; font-weight:800; color:var(--primary-d,#7CB342);
    line-height:1.35;
    display:flex; flex-direction:column; gap:2px;
    width:100%;
}
.hbt-loop-card .hbt-loop-card__price,
.hbt-loop-card .hbt-loop-card__price *{ min-width:0; }
.hbt-loop-card .hbt-loop-card__price .price{
    display:flex !important; flex-wrap:wrap; align-items:baseline;
    gap:2px 6px; margin:0 !important; padding:0 !important;
    font-size:inherit; font-weight:inherit; color:inherit;
}
/* (v2.0.87) Stara cena PRZED nową, inline — WooCommerce HTML to
 * `<del>old</del> <ins>new</ins>`, więc wystarczy nie wymuszać order.
 * Strikethrough wymuszany globalnie w functions.php. */
.hbt-loop-card .hbt-loop-card__price del{
    font-size:12px; font-weight:400; color:var(--text-l,#616161);
    margin-right:6px;
    text-decoration:line-through !important;
    text-decoration-thickness:2px !important;
    text-decoration-color:var(--text-l,#616161) !important;
}
.hbt-loop-card .hbt-loop-card__price del *{
    text-decoration:line-through !important;
}
.hbt-loop-card .hbt-loop-card__price ins{
    text-decoration:none; background:transparent; color:inherit;
}
.hbt-loop-card .hbt-loop-card__price .woocommerce-price-suffix{
    font-size:11px; font-weight:500; color:var(--text-l,#616161);
    white-space:nowrap;
}

/* Currency glue — keep "8,00 zł" as a single token everywhere */
.hbt-loop-card .woocommerce-Price-amount,
.hbt-loop-card .woocommerce-Price-amount bdi,
.hbt-loop-card .woocommerce-Price-amount bdi *{
    white-space:nowrap !important;
    display:inline-block !important;
}
.hbt-loop-card .woocommerce-Price-currencySymbol{
    white-space:nowrap !important; display:inline !important;
    margin-left:2px;
}

/* (v2.0.87) Omnibus line — label może wrap'ować, ale kwota + "zł"
 * zawsze razem. Plugin czasem renderuje symbol waluty poza bdi albo
 * bez bdi w ogóle, więc ustawiamy nowrap agresywnie na każdym
 * możliwym kontenerze wartości. */
.hbt-loop-card .hbt-loop-card__price .wc-price-history,
.hbt-loop-card .hbt-loop-card__price .wc-price-history *{
    font-size:11px !important; font-weight:500 !important;
    color:var(--text-l,#616161) !important;
    line-height:1.4;
}
.hbt-loop-card .hbt-loop-card__price .wc-price-history{
    display:block; width:100%; margin-top:4px;
    word-spacing:normal;
}
/* Kwota + zł jako jeden token (nie daje się podzielić) */
.hbt-loop-card .hbt-loop-card__price .wc-price-history-lowest-inner,
.hbt-loop-card .hbt-loop-card__price .wc-price-history .woocommerce-Price-amount,
.hbt-loop-card .hbt-loop-card__price .wc-price-history .woocommerce-Price-amount bdi,
.hbt-loop-card .hbt-loop-card__price .wc-price-history .woocommerce-Price-currencySymbol,
.hbt-loop-card .hbt-loop-card__price .wc-price-history-prior{
    white-space:nowrap !important;
    display:inline-block !important;
}

/* Spacer glues the CTA to the bottom regardless of card height */
.hbt-loop-card .hbt-loop-card__spacer{
    flex:1 1 auto; min-height:8px;
}

/* CTA — full-width primary button, identical on every card */
.hbt-loop-card .hbt-loop-card__cta{
    border-top:1px solid var(--border-l,#F0F0F0);
    padding-top:12px; margin-top:4px;
}
.hbt-main-wrap ul.products li.product.hbt-loop-card .hbt-loop-card__cta .button,
.hbt-loop-card .hbt-loop-card__cta .button,
.hbt-loop-card .hbt-loop-card__btn{
    display:flex !important; width:100% !important;
    align-items:center; justify-content:center; gap:8px;
    padding:12px 14px !important; margin:0 !important;
    background:var(--primary,#8BC34A) !important; color:#fff !important;
    border:0 !important; border-radius:var(--r,6px) !important;
    font-size:13px !important; font-weight:700 !important;
    letter-spacing:.3px; text-transform:uppercase;
    text-align:center; text-decoration:none; cursor:pointer;
    box-sizing:border-box; line-height:1.2;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    transition:background .15s, transform .1s;
}
.hbt-loop-card .hbt-loop-card__cta .button:hover,
.hbt-loop-card .hbt-loop-card__btn:hover{
    background:var(--primary-d,#7CB342) !important;
    color:#fff !important;
}
.hbt-loop-card .hbt-loop-card__cta .button::before,
.hbt-loop-card .hbt-loop-card__btn::before{
    content:"\f07a"; font-family:"Font Awesome 5 Free"; font-weight:900;
    font-size:13px;
}

/* Kill any stray HBT / YITH overlays that would break our layout.
 * "PORÓWNAJ" button comes from YITH via `.compare.yith-compare` or
 * HBT's `.qa-compare`. Kill them all — the card is cart-only.
 * NOTE: .add-links / .add-links-wrap were intentionally dropped from
 * this blacklist — HBT's loop/add-to-cart.php override wraps the
 * cart button in them, and hiding those wrappers killed the CTA. */
.hbt-loop-card .hbt-img-fabs,
.hbt-loop-card .links-on-image,
.hbt-loop-card .yith-wcwl-add-to-wishlist,
.hbt-loop-card .quickview,
.hbt-loop-card .compare,
.hbt-loop-card a.compare,
.hbt-loop-card .qa-compare,
.hbt-loop-card .yith-compare,
.hbt-loop-card .ext-compare-btn,
.hbt-main-wrap ul.products li.product.hbt-loop-card > a.compare,
.hbt-main-wrap ul.products li.product.hbt-loop-card > .compare{
    display:none !important;
}

/* ================================================================
   SHOP TOOLBAR — mobile alignment + no duplicate per-page at bottom
   ================================================================
   Bug #1 (mobile): FILTRY button was full-width, pushing sort +
   per-page to a second line and looking "rozjechane".
   Bug #3 (mobile + desktop): a plugin renders a second per-page /
   ordering selector after `woocommerce_after_shop_loop`. We only
   allow these controls INSIDE .hbt-shop-toolbar — anywhere else in
   the shop wrapper is hidden. */

/* Hide duplicate per-page / ordering selectors below the grid.
 * The toolbar at the top owns these exclusively. */
.hbt-shop-wrap > .woocommerce-ordering,
.hbt-shop-wrap > form.products-per-page,
.hbt-shop-wrap > .products-per-page,
.hbt-shop-wrap > .woocommerce-show-products-per-page,
.hbt-shop-wrap > [class*="per-page"]:not(.hbt-shop-toolbar):not(.hbt-shop-toolbar *),
.hbt-shop-wrap .woocommerce-pagination ~ .woocommerce-ordering,
.hbt-shop-wrap .woocommerce-pagination ~ .products-per-page,
.hbt-shop-wrap .woocommerce-pagination ~ form.products-per-page,
.hbt-shop-wrap ul.products ~ .woocommerce-ordering,
.hbt-shop-wrap ul.products ~ form.products-per-page,
.hbt-shop-wrap ul.products ~ .products-per-page{
    display:none !important;
}
/* Safety net: catalog ordering only renders inside our toolbar */
.hbt-shop-wrap .woocommerce-result-count:not(.hbt-shop-toolbar .woocommerce-result-count):not(.hbt-shop-toolbar > * .woocommerce-result-count){
    display:none !important;
}

/* ================================================================
   MOBILE TOOLBAR — iSprzet-style SORTUJ / FILTRUJ (v2.0.80)
   ================================================================
   On <=900px: replace the desktop toolbar + slide-in drawer with
   an inline two-tab accordion. JS moves the sidebar into the
   FILTRUJ panel so the existing collapsibles (price, brand, attr)
   keep their state and listeners.
   Above 900px: hidden entirely, desktop toolbar + aside used. */
.hbt-mtoolbar{ display:none; }

@media(max-width:900px){
    /* Hide the legacy pattern — new toolbar owns both controls */
    .hbt-shop-wrap .hbt-shop-toolbar{ display:none !important; }
    .hbt-shop-wrap .hbt-sidebar-toggle{ display:none !important; }
    .hbt-sidebar-overlay{ display:none !important; }

    /* Sidebar wrap is always hidden on mobile — the `.hbt-sidebar`
     * aside gets JS-moved into the FILTRUJ panel where it's shown.
     * Hiding the wrapper unconditionally (not via :empty) avoids the
     * pre-JS flash where the sidebar was rendering inline above the
     * hero banner on empty category pages. Tradeoff: if JS fails,
     * mobile users lose the filter drawer — but they never see
     * "rozsypane" sidebar either. */
    .hbt-shop-outer > .hbt-shop-sidebar-wrap{ display:none !important; }
    /* Fallback if JS runs but moves `.hbt-sidebar` out — keep wrap
     * collapsed to zero height if anything else puts content there. */
    .hbt-shop-sidebar-wrap{
        position:static !important; transform:none !important;
        width:auto !important; height:auto !important;
        background:transparent !important; padding:0 !important;
        min-height:0 !important;
    }

    /* (v2.0.85) Sticky toolbar — zakładki SORTUJ/FILTRUJ pływają z userem
     * przy scrollu listy produktów, przypięte tuż pod headerem sklepu.
     * Wcześniej toolbar zjeżdżał z widoku wraz z treścią i user musiał
     * wracać na górę żeby przefiltrować. Top liczony jako 64px = sticky
     * compact header na mobile (po scrollu search-row zwija się do 0). */
    .hbt-mtoolbar{
        display:block; margin:0 0 14px;
        background:#fff; border:1px solid var(--border-l,#F0F0F0);
        border-radius:var(--r-lg,10px); overflow:hidden;
        position:sticky;
        top:64px;
        z-index:50;
    }
    /* Mniejsze telefony — header chrome to 56px */
    @media(max-width:380px){
        .hbt-mtoolbar{ top:56px; }
    }
    /* Gdy panel SORTUJ albo FILTRUJ jest otwarty i jego zawartość
     * dłuższa niż reszta viewportu, sticky rozjedzie się bo block
     * przekracza wysokość viewportu. Wyłączamy sticky wtedy żeby
     * user mógł scrollować listę filtrów. */
    .hbt-mtoolbar:has(.hbt-mtoolbar-panel:not([hidden])){
        position:static;
    }
    .hbt-mtoolbar-tabs{
        display:grid; grid-template-columns:1fr 1fr;
    }
    .hbt-mtoolbar-tab{
        display:inline-flex; align-items:center; justify-content:space-between;
        gap:10px; padding:14px 18px;
        background:#fff; border:0; border-bottom:2px solid transparent;
        color:var(--dark,#1A1714); font-size:14px; font-weight:800;
        letter-spacing:.4px; text-transform:uppercase; cursor:pointer;
        transition:background .15s, border-color .15s, color .15s;
    }
    .hbt-mtoolbar-tab + .hbt-mtoolbar-tab{
        border-left:1px solid var(--border-l,#F0F0F0);
    }
    .hbt-mtoolbar-tab .hbt-mtoolbar-chev{
        font-size:12px; color:var(--text-l,#616161);
        transition:transform .2s ease;
    }
    .hbt-mtoolbar-tab[aria-expanded="true"]{
        background:var(--bg2,#FBFBF9);
        border-bottom-color:var(--primary,#8BC34A);
        color:var(--primary-d,#7CB342);
    }
    .hbt-mtoolbar-tab[aria-expanded="true"] .hbt-mtoolbar-chev{
        transform:rotate(180deg); color:var(--primary,#8BC34A);
    }
    .hbt-mtoolbar-tab:hover{ background:var(--bg2,#FBFBF9); }

    .hbt-mtoolbar-panel{
        background:var(--bg,#F7F5EF); padding:12px;
        border-top:1px solid var(--border-l,#F0F0F0);
        animation:hbtMPanelIn .18s ease-out;
    }
    @keyframes hbtMPanelIn{
        from{ opacity:0; transform:translateY(-4px); }
        to  { opacity:1; transform:none; }
    }

    /* Sort list inside the panel */
    .hbt-mtoolbar-sort-list{
        list-style:none; margin:0; padding:0;
        background:#fff; border-radius:var(--r,6px); overflow:hidden;
    }
    .hbt-mtoolbar-sort-list li + li{
        border-top:1px solid var(--border-l,#F0F0F0);
    }
    .hbt-mtoolbar-sort-item{
        display:flex; align-items:center; justify-content:space-between;
        gap:10px; padding:14px 16px;
        font-size:14px; font-weight:600; color:var(--dark,#1A1714);
        text-decoration:none; cursor:pointer; transition:background .15s, color .15s;
    }
    .hbt-mtoolbar-sort-item:hover{ background:var(--bg2,#FBFBF9); }
    .hbt-mtoolbar-sort-item.is-active{
        color:var(--primary-d,#7CB342);
        background:rgba(139,195,74,.08);
    }
    .hbt-mtoolbar-sort-item.is-active i{ color:var(--primary,#8BC34A); }

    /* Filter slot — aside lives here on mobile */
    .hbt-mtoolbar-filter-slot{ min-height:20px; }
    .hbt-mtoolbar-filter-slot .hbt-sidebar{
        display:flex; flex-direction:column; gap:10px;
        background:transparent; padding:0;
    }
    .hbt-mtoolbar-filter-slot .hbt-sf-box{
        background:#fff;
    }

    /* Actions row — "Wyczyść filtry" + "Zastosuj" like iSprzet */
    .hbt-mtoolbar-actions{
        display:grid; grid-template-columns:1fr 1fr; gap:10px;
        margin-top:14px;
    }
    .hbt-mtoolbar-clear,
    .hbt-mtoolbar-apply{
        display:inline-flex; align-items:center; justify-content:center; gap:6px;
        padding:14px 10px; border-radius:var(--r,6px);
        font-size:13px; font-weight:800; letter-spacing:.4px;
        text-transform:uppercase; text-decoration:none; cursor:pointer;
        border:1px solid var(--border,#E0E0E0);
        background:#fff; color:var(--dark,#1A1714);
        transition:background .15s, color .15s, border-color .15s;
    }
    .hbt-mtoolbar-clear:hover{
        border-color:var(--text-l,#616161);
    }
    .hbt-mtoolbar-apply{
        background:var(--primary,#8BC34A); color:#fff; border-color:var(--primary,#8BC34A);
    }
    .hbt-mtoolbar-apply:hover{
        background:var(--primary-d,#7CB342); border-color:var(--primary-d,#7CB342);
    }

    /* Ordering: keep the shop-outer column-stack on mobile */
    .hbt-shop-outer{ grid-template-columns:1fr !important; }
}

/* Grid — 4 / 3 / 2 columns. No `:has()` so iOS Safari < 15.4 still
 * renders properly. Scoped to .hbt-shop-main so home-products and
 * cart cross-sells keep their own column rules. */
.hbt-shop-main ul.products,
.hbt-main-wrap .hbt-shop-main ul.products{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px !important; padding:0 !important; margin:0 !important;
    list-style:none !important;
}
@media(max-width:1200px){
    .hbt-shop-main ul.products,
    .hbt-main-wrap .hbt-shop-main ul.products{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}
@media(max-width:900px){
    .hbt-shop-main ul.products,
    .hbt-main-wrap .hbt-shop-main ul.products{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
    }
}
/* Mobile: 2 columns all the way down (matches iSprzet / Allegro).
 * Single-column only on truly tiny viewports (<360px). */
@media(max-width:600px){
    .hbt-shop-main ul.products,
    .hbt-main-wrap .hbt-shop-main ul.products{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }
    /* Compact card internals — ~155px wide at 375px viewport */
    .hbt-loop-card .hbt-loop-card__image img{ padding:8px; }
    .hbt-loop-card .hbt-loop-card__body{ padding:10px 10px 10px; gap:4px; }
    .hbt-loop-card .hbt-loop-card__meta{
        font-size:9px; letter-spacing:.4px; min-height:12px;
    }
    .hbt-loop-card h3.hbt-loop-card__title,
    .hbt-loop-card .hbt-loop-card__title{
        font-size:12px !important; line-height:1.3 !important;
        min-height:calc(1.3em * 2);
    }
    /* Rating hidden on mobile — save vertical space, matches iSprzet */
    .hbt-loop-card .hbt-loop-card__rating{ display:none; }
    .hbt-loop-card .hbt-loop-card__price{
        font-size:14px; margin:2px 0 0;
    }
    .hbt-loop-card .hbt-loop-card__price .woocommerce-price-suffix{
        font-size:10px;
    }
    .hbt-loop-card .hbt-loop-card__price .wc-price-history,
    .hbt-loop-card .hbt-loop-card__price .wc-price-history *{
        font-size:10px !important; line-height:1.3;
    }
    .hbt-loop-card .hbt-loop-card__cta{
        padding-top:8px; margin-top:4px;
    }
    .hbt-main-wrap ul.products li.product.hbt-loop-card .hbt-loop-card__cta .button,
    .hbt-loop-card .hbt-loop-card__cta .button,
    .hbt-loop-card .hbt-loop-card__btn{
        padding:10px 8px !important; font-size:11px !important;
        letter-spacing:.2px; gap:5px;
    }
    .hbt-loop-card .hbt-loop-card__cta .button::before,
    .hbt-loop-card .hbt-loop-card__btn::before{ font-size:11px; }
    .hbt-loop-card .hbt-loop-card__sale{
        top:6px; right:6px; font-size:9px; padding:2px 7px;
    }
}
@media(max-width:360px){
    .hbt-shop-main ul.products,
    .hbt-main-wrap .hbt-shop-main ul.products{
        grid-template-columns:1fr !important;
    }
}

/* ================================================================
   BRAND FILTER — featured-first + "Więcej" toggle (v2.0.79)
   Applies to:
     - Sidebar filter on the shop (.hbt-sf-brand-*)
     - Mobile drawer + cloned desktop category dropdown (.mm-brand-*)
   Featured brands (admin-set in the homepage slider) render with
   a subtle primary-tinted border so the "highlight row" is obvious.
   ================================================================ */

/* Sidebar: featured accent + search hidden until expanded */
.hbt-sf-brand-item.hbt-brand-hidden{ display:none !important; }
.hbt-sf-brand-featured .hbt-sf-cb-lbl{
    font-weight:600;
}
.hbt-sf-brand-featured .hbt-sf-cb-name{
    color:var(--dark,#1A1714);
}

/* Sidebar "Więcej (N)" button — already styled in archive-product.php,
 * but pin its visibility so cached HTML doesn't leave it dangling */
.hbt-brands-more{ display:flex; }
.hbt-brands-more .hbt-brands-more-label{ line-height:1.2; }

/* Mobile menu / desktop dropdown brand chips */
.mm-brands{ position:relative; }
.mm-brand[hidden],
.mm-brand-rest[hidden]{ display:none !important; }
.mm-brand-featured{
    border-color:var(--primary-l,#A5D66B) !important;
    background:#fff !important;
}
.mm-brand-featured:hover{
    background:var(--primary,#8BC34A) !important;
    color:#fff !important; border-color:var(--primary,#8BC34A) !important;
}
.mm-brands-more{
    display:inline-flex; align-items:center; gap:6px;
    margin-top:10px; padding:7px 14px;
    background:transparent; border:1px solid var(--border,#E0E0E0);
    border-radius:20px; font-size:11px; font-weight:700;
    color:var(--text,#444); cursor:pointer;
    letter-spacing:.4px; text-transform:uppercase;
    transition:.15s;
}
.mm-brands-more:hover{
    border-color:var(--primary,#8BC34A); color:var(--primary,#8BC34A);
}
.mm-brands-more i{ font-size:10px; }

/* Desktop category dropdown clones .mm-brands — give it breathing room
 * and a separator so it doesn't look glued to the category column */
.nav-cat-dropdown .mm-brands{
    margin-top:16px; padding-top:16px;
    border-top:1px solid var(--border-l,#F0F0F0);
}
.nav-cat-dropdown .mm-brands h4{
    font-size:12px; text-transform:uppercase; letter-spacing:.6px;
    color:var(--text-l,#616161); margin:0 0 10px;
}
.nav-cat-dropdown .mm-brand-list{
    display:flex; flex-wrap:wrap; gap:6px;
}
.nav-cat-dropdown .mm-brand{
    display:inline-flex; align-items:center;
    background:var(--bg2,#FBFBF9); border:1px solid var(--border,#E0E0E0);
    border-radius:var(--r,6px); padding:6px 12px;
    font-size:11px; font-weight:600;
    color:var(--dark,#1A1714); text-decoration:none;
    transition:.15s;
}
.nav-cat-dropdown .mm-brand:hover{
    border-color:var(--primary,#8BC34A); color:var(--primary,#8BC34A);
}

/* ================================================================
   STICKY PRODUCT HEADER (v2.0.81) — desktop only
   ================================================================
   Fixed bar that slides in below the site header once the user
   scrolls past the main product info panel. JS owns visibility
   (toggles [hidden]). This block only handles look + positioning.
   Matches the iSprzet reference: left collapse icon, center nav
   pills, right mini-product preview + Dodaj do koszyka.
   ================================================================ */

.sp-sticky{
    position:fixed; left:0; right:0;
    top:var(--hbt-sticky-header-h,80px);
    z-index:400;
    background:#fff;
    border-bottom:1px solid var(--border-l,#F0F0F0);
    box-shadow:0 4px 14px rgba(26,23,20,.06);
    animation:spStickyIn .22s ease-out;
}
.sp-sticky[hidden]{ display:none; }
@keyframes spStickyIn{
    from{ transform:translateY(-100%); opacity:0; }
    to  { transform:none; opacity:1; }
}

.sp-sticky .container-full{ padding:0 20px; }

.sp-sticky__inner{
    display:grid;
    grid-template-columns:36px minmax(0,1fr) minmax(0,auto);
    align-items:center; gap:14px;
    min-height:64px; padding:8px 0;
}

/* Collapse button */
.sp-sticky__collapse{
    width:36px; height:36px;
    display:inline-flex; align-items:center; justify-content:center;
    background:var(--bg2,#FBFBF9);
    border:1px solid var(--border-l,#F0F0F0);
    border-radius:var(--r,6px); color:var(--dark,#1A1714);
    cursor:pointer; font-size:13px; padding:0;
    transition:background .15s, border-color .15s, color .15s;
}
.sp-sticky__collapse:hover{
    background:var(--primary,#8BC34A); color:#fff;
    border-color:var(--primary,#8BC34A);
}
.sp-sticky.is-collapsed .sp-sticky__nav,
.sp-sticky.is-collapsed .sp-sticky__product > :not(.sp-sticky__cart-btn):not(.sp-sticky__price){
    display:none;
}
.sp-sticky.is-collapsed .sp-sticky__inner{
    min-height:44px; padding:4px 0;
}

/* Nav pills — middle column, scrolls horizontally on cramped widths */
.sp-sticky__nav{
    display:flex; align-items:center; gap:4px;
    min-width:0; overflow-x:auto; overflow-y:visible;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
}
.sp-sticky__nav::-webkit-scrollbar{ height:4px; }
.sp-sticky__nav::-webkit-scrollbar-thumb{ background:var(--border,#E0E0E0); border-radius:2px; }
.sp-sticky__nav-item{
    display:inline-flex; align-items:center;
    padding:8px 14px; white-space:nowrap;
    font-size:13px; font-weight:700; letter-spacing:.3px;
    text-transform:uppercase; text-decoration:none;
    color:var(--text,#444); border-radius:var(--r,6px);
    transition:background .15s, color .15s;
}
.sp-sticky__nav-item:hover,
.sp-sticky__nav-item.is-active{
    background:var(--bg2,#FBFBF9);
    color:var(--primary-d,#7CB342);
}

/* Right side — mini product + CTA */
.sp-sticky__product{
    display:inline-flex; align-items:center; gap:12px;
    flex-shrink:0;
}
.sp-sticky__thumb{
    width:44px; height:44px; flex:0 0 44px;
    border:1px solid var(--border-l,#F0F0F0); border-radius:var(--r,6px);
    background:#fff; overflow:hidden;
    display:inline-flex; align-items:center; justify-content:center;
}
.sp-sticky__thumb img,
.sp-sticky__thumb-img{
    max-width:100%; max-height:100%;
    object-fit:contain; padding:4px; box-sizing:border-box;
}
.sp-sticky__price{
    display:flex; flex-direction:column; line-height:1.15;
    font-family:var(--font);
}
.sp-sticky__price-label{
    font-size:11px; font-weight:500; color:var(--text-l,#616161);
    letter-spacing:.2px;
}
.sp-sticky__price-value{
    font-size:16px; font-weight:800; color:var(--dark,#1A1714);
    white-space:nowrap;
}
.sp-sticky__price-value .woocommerce-Price-amount,
.sp-sticky__price-value .woocommerce-Price-amount bdi{
    white-space:nowrap !important; color:inherit; font:inherit;
}
.sp-sticky__price-value del{
    font-size:12px; font-weight:400; color:var(--text-l,#616161);
    margin-right:4px;
}
.sp-sticky__price-value ins{
    text-decoration:none; color:var(--primary-d,#7CB342);
}
/* Icon button (schowek / porównaj / inquiry) */
.sp-sticky__icon-btn{
    width:44px; height:44px; flex:0 0 44px;
    display:inline-flex; align-items:center; justify-content:center;
    background:var(--bg2,#FBFBF9);
    border:1px solid var(--border-l,#F0F0F0);
    border-radius:var(--r,6px); color:var(--dark,#1A1714);
    font-size:14px; text-decoration:none;
    transition:background .15s, border-color .15s, color .15s;
}
.sp-sticky__icon-btn:hover{
    background:var(--primary,#8BC34A); color:#fff;
    border-color:var(--primary,#8BC34A);
}
/* Main CTA */
.sp-sticky__cart-btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 22px;
    background:var(--primary,#8BC34A); color:#fff;
    border:0; border-radius:var(--r,6px); cursor:pointer;
    font-size:13px; font-weight:800; letter-spacing:.4px;
    text-transform:uppercase; white-space:nowrap;
    transition:background .15s, transform .1s;
}
.sp-sticky__cart-btn:hover{
    background:var(--primary-d,#7CB342); color:#fff;
}
.sp-sticky__cart-btn:active{ transform:translateY(1px); }
.sp-sticky__cart-btn i{ font-size:13px; }

/* Tighter layout on narrower desktops */
@media(max-width:1200px){
    .sp-sticky__nav-item{ padding:7px 10px; font-size:12px; }
    .sp-sticky__cart-btn{ padding:10px 14px; font-size:12px; }
    .sp-sticky__price-value{ font-size:15px; }
    .sp-sticky__price-label{ font-size:10px; }
}

/* Mobile: component is fully off — panel info is always in view */
@media(max-width:991px){
    .sp-sticky{ display:none !important; }
}

/* ================================================================
   PRODUCT PAGE — v2.0.86 fixes
   - Trust badges przeniesione z sp-gallery na pozycję przed tabs,
     teraz renderowane jako 3-kolumnowy poziomy pas full-width
   - Rating + quantity w jednej linii (ilość po prawej), przycisk
     DODAJ DO KOSZYKA full-width pod spodem. Quantity ma HTML5
     `form` attr przez JS — submit działa mimo że widget jest poza
     <form class="cart">.
   - Buttons ilości (+/-) kompakt ikonowy, nie pół-ekrana
   ================================================================ */

/* Trust badges section (full-width before tabs) */
.sp-badges-section{
    padding:20px 0;
    background:var(--bg,#F7F5EF);
    border-top:1px solid var(--border-l,#F0F0F0);
    border-bottom:1px solid var(--border-l,#F0F0F0);
}
.hbt-single-product ~ .sp-badges-section,
body .sp-badges-section{ /* neutralna specyficzność */ }
.sp-badges.sp-badges--pre-tabs{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
}
.sp-badges--pre-tabs .sp-badge-item{
    display:flex; align-items:center; gap:14px;
    padding:16px; background:#fff;
    border:1px solid var(--border-l,#F0F0F0);
    border-radius:var(--r-lg,10px);
    min-width:0;
}
.sp-badges--pre-tabs .sp-badge-item i{
    flex:0 0 auto;
    width:40px; height:40px;
    display:inline-flex; align-items:center; justify-content:center;
    background:rgba(139,195,74,.12);
    color:var(--primary-d,#7CB342);
    border-radius:50%;
    font-size:18px;
}
.sp-badges--pre-tabs .sp-badge-item > div{
    display:flex; flex-direction:column; min-width:0;
}
.sp-badges--pre-tabs .sp-badge-item strong{
    font-size:13px; font-weight:800;
    color:var(--dark,#1A1714);
    line-height:1.2;
}
.sp-badges--pre-tabs .sp-badge-item span{
    font-size:11px; color:var(--text-l,#616161);
    margin-top:2px; line-height:1.3;
}
@media(max-width:767px){
    .sp-badges.sp-badges--pre-tabs{
        grid-template-columns:1fr; gap:8px;
    }
    .sp-badges-section{ padding:14px 0; }
}

/* Rating row — teraz host dla sp-rating-row__qty (quantity) po prawej */
.hbt-single-product .sp-rating-row{
    display:flex !important;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:12px;
}
.hbt-single-product .sp-rating-row__qty{
    margin-left:auto;
    flex:0 0 auto;
}

/* Kompaktowe quantity widget — [- input +] o wysokości ~40px */
.hbt-single-product .sp-rating-row__qty.quantity{
    display:inline-flex !important;
    align-items:stretch;
    border:1px solid var(--border,#E0E0E0);
    border-radius:var(--r,6px);
    overflow:hidden;
    background:#fff;
    height:40px;
    width:auto !important;
    min-width:0;
    padding:0 !important;
}
.hbt-single-product .sp-rating-row__qty.quantity label,
.hbt-single-product .sp-rating-row__qty.quantity .screen-reader-text{
    position:absolute !important;
    width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
.hbt-single-product .sp-rating-row__qty.quantity .minus,
.hbt-single-product .sp-rating-row__qty.quantity .plus,
.hbt-single-product .sp-rating-row__qty.quantity button.minus,
.hbt-single-product .sp-rating-row__qty.quantity button.plus{
    width:34px !important; height:100% !important;
    background:var(--bg2,#FBFBF9) !important;
    border:0 !important;
    color:var(--dark,#1A1714) !important;
    font-size:16px !important; font-weight:700 !important;
    cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    padding:0 !important; margin:0 !important;
    line-height:1 !important;
    transition:background .15s, color .15s;
}
.hbt-single-product .sp-rating-row__qty.quantity .minus:hover,
.hbt-single-product .sp-rating-row__qty.quantity .plus:hover,
.hbt-single-product .sp-rating-row__qty.quantity button.minus:hover,
.hbt-single-product .sp-rating-row__qty.quantity button.plus:hover{
    background:var(--primary,#8BC34A) !important;
    color:#fff !important;
}
.hbt-single-product .sp-rating-row__qty.quantity input.qty{
    width:46px !important; height:100%;
    border:0 !important;
    border-left:1px solid var(--border-l,#F0F0F0) !important;
    border-right:1px solid var(--border-l,#F0F0F0) !important;
    text-align:center;
    font-size:14px; font-weight:700;
    padding:0 4px;
    background:#fff;
    outline:none;
    -moz-appearance:textfield;
    border-radius:0 !important;
}
.hbt-single-product .sp-rating-row__qty.quantity input.qty::-webkit-outer-spin-button,
.hbt-single-product .sp-rating-row__qty.quantity input.qty::-webkit-inner-spin-button{
    -webkit-appearance:none; margin:0;
}

/* Przycisk DODAJ DO KOSZYKA teraz zawsze full-width pod rating+qty */
.hbt-single-product .sp-cart-form-wrap--in-price form.cart{
    display:flex !important;
    flex-wrap:wrap;
    align-items:center;
    gap:0;
}
.hbt-single-product .sp-cart-form-wrap--in-price form.cart .quantity{
    /* Był widget wewnątrz formy — JS go przeniósł do rating-row.
     * Jeżeli JS nie zadziałał, zostaje na dole jak wcześniej. */
    order:1;
}
.hbt-single-product .sp-cart-form-wrap--in-price form.cart button.single_add_to_cart_button{
    flex:1 0 100% !important;
    order:2;
    margin-top:8px;
}

/* ================================================================
   Fix: header nie znika gdy menu otwarte (v2.0.86)
   ================================================================
   body przy otwartym menu dostaje position:fixed (scroll lock), co
   zrywa sticky kontekst site-headera. Usztywniamy nagłówek do
   position:fixed z wyższym z-indexem niż drawer. */
body.menu-open .site-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:10050 !important;
}

/* ================================================================
   Orientation-aware rules (v2.0.86)
   ================================================================
   body.is-landscape / body.is-portrait ustawiane JS-em przy load
   i przy orientationchange. Na telefonie w poziomie grid sklepu
   rozszerza się do 3 kolumn (szerokość to pozwala), i sticky
   header/bottom bar zostają tak jak są. */
@media(max-width:900px) and (orientation:landscape){
    .hbt-shop-main ul.products,
    .hbt-main-wrap .hbt-shop-main ul.products{
        grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    }
    /* Bottom bar na landscape telefonie bywa za wysoki — obetnij padding */
    body.is-landscape .mobile-bottom-bar{
        padding:2px 4px;
    }
    body.is-landscape .mobile-bottom-bar .bb-item i{
        font-size:16px;
    }
    body.is-landscape{ padding-bottom:52px; }
}

/* ================================================================
   TOOLBAR (DESKTOP) — v2.0.87 fixes
   ================================================================
   - Wyrównanie result-count do LEWEJ (kasuje v2.0.29 flex-end override)
   - Per-page dropdown (12/24/48) po prawej, koło sortowania
   - Duplikat per-page plugin-injected na DOLE ukryty CSS-em (już
     wcześniej, tutaj potwierdzenie) */
@media(min-width:901px){
    .hbt-shop-toolbar{
        justify-content:space-between !important;
        gap:12px !important;
    }
    .hbt-shop-toolbar > .hbt-toolbar-count,
    .hbt-shop-toolbar > div:first-child,
    .hbt-shop-toolbar .woocommerce-result-count{
        order:0 !important;
        margin:0 auto 0 0 !important;
        padding:0 !important;
        border-right:0 !important;
        text-align:left !important;
        flex:0 0 auto;
    }
    .hbt-shop-toolbar .hbt-toolbar-right{
        order:1 !important;
        margin-left:auto;
    }
}

/* Per-page dropdown styling */
.hbt-toolbar-ppp{
    display:inline-flex; align-items:center; gap:6px;
    margin:0 0 0 4px;
}
.hbt-toolbar-ppp__label{
    font-size:12px; font-weight:700; letter-spacing:.4px;
    text-transform:uppercase; color:var(--text-l,#616161);
    margin:0;
}
.hbt-toolbar-ppp__select{
    min-width:60px; padding:6px 24px 6px 10px;
    border:1px solid var(--border,#E0E0E0);
    border-radius:var(--r,6px);
    background:#fff;
    color:var(--dark,#1A1714);
    font-size:13px; font-weight:600;
    cursor:pointer; outline:none;
    appearance:auto;
}
.hbt-toolbar-ppp__select:hover,
.hbt-toolbar-ppp__select:focus{
    border-color:var(--primary,#8BC34A);
}
@media(max-width:900px){
    /* Mobile toolbar ma już swoje tabs — desktop ppp niepotrzebne */
    .hbt-toolbar-ppp{ display:none; }
}

/* ================================================================
   DOMYŚLNY SZABLON STRONY — page.php
   ================================================================ */
.hbt-page{ padding:0 0 40px; }
.hbt-page-header{ padding:30px 0 20px; border-bottom:1px solid var(--border-l); margin-bottom:24px; }
.hbt-page-header h1{ font-size:32px; font-weight:800; color:var(--dark); margin:0; }
.hbt-page-content{ padding:10px 0 30px; font-size:16px; line-height:1.7; color:var(--text); }
.hbt-page-content h2{ font-size:26px; font-weight:700; color:var(--dark); margin:28px 0 14px; }
.hbt-page-content h3{ font-size:20px; font-weight:700; color:var(--dark); margin:22px 0 10px; }
.hbt-page-content p{ margin:0 0 14px; }
.hbt-page-content ul, .hbt-page-content ol{ margin:0 0 14px 22px; }
.hbt-page-content li{ margin-bottom:6px; }
.hbt-page-content a{ color:var(--primary); text-decoration:underline; }
.hbt-page-content a:hover{ color:var(--primary-d); }
.hbt-page-content img{ max-width:100%; height:auto; border-radius:var(--r-lg); }
.hbt-page-content blockquote{ border-left:3px solid var(--primary); padding:6px 0 6px 18px; margin:18px 0; color:var(--text-l); font-style:italic; }
.hbt-page-content--shortcode{ padding:0; }
.hbt-page-pagination{ margin:20px 0; font-size:14px; color:var(--text-l); }
.hbt-page-pagination a{ margin:0 6px; color:var(--primary); }

/* ================================================================
   STRONA /maszyny/ — page-maszyny.php
   ================================================================ */
.hbt-breadcrumbs{ padding:14px 0; font-size:13px; color:var(--text-l); display:flex; align-items:center; gap:8px; }
.hbt-breadcrumbs a{ color:var(--text-l); text-decoration:none; }
.hbt-breadcrumbs a:hover{ color:var(--primary); }
.hbt-breadcrumbs i{ font-size:9px; opacity:.5; }
.hbt-breadcrumbs span{ color:var(--dark); font-weight:600; }

.hbt-maszyny .maszyny-intro{ padding:20px 0; }
.hbt-maszyny .section-header-lg h1{ font-size:34px; font-weight:800; margin:0 0 10px; color:var(--dark); display:flex; align-items:center; gap:14px; }
.hbt-maszyny .section-header-lg p{ font-size:16px; color:var(--text-l); margin:0; max-width:720px; }

.maszyny-categories{ padding:14px 0 40px; }
.maszyny-cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.mcat-card{
  position:relative; display:flex; flex-direction:column; align-items:flex-start;
  gap:8px; padding:24px 22px; background:#fff; border:1px solid var(--border-l);
  border-radius:var(--r-lg); text-decoration:none; color:var(--dark);
  transition:.2s; overflow:hidden;
}
.mcat-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--primary); transform:scaleY(0); transform-origin:bottom; transition:transform .22s ease; }
.mcat-card:hover{ border-color:var(--primary-l); transform:translateY(-3px); box-shadow:0 14px 30px var(--shadow); }
.mcat-card:hover::before{ transform:scaleY(1); transform-origin:top; }
.mcat-icon{ width:52px; height:52px; border-radius:12px; background:linear-gradient(135deg,var(--primary),var(--primary-d)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; }
.mcat-card strong{ font-size:16px; font-weight:700; line-height:1.25; }
.mcat-card span{ font-size:12px; color:var(--text-l); letter-spacing:.3px; }
.mcat-arrow{ position:absolute; right:18px; bottom:18px; color:var(--primary); font-size:13px; opacity:0; transform:translateX(-4px); transition:.2s; }
.mcat-card:hover .mcat-arrow{ opacity:1; transform:translateX(0); }

.maszyny-inquiry{ padding:48px 0; background:var(--bg2); margin-top:20px; }
.maszyny-inquiry-grid{ display:grid; grid-template-columns:2fr 1fr; gap:32px; align-items:start; }
.maszyny-inquiry-form .section-header-lg h2{ font-size:26px; }
.maszyny-inquiry-aside{ display:flex; flex-direction:column; gap:18px; position:sticky; top:120px; }
.mia-card{ background:#fff; border:1px solid var(--border-l); border-radius:var(--r-lg); padding:22px; }
.mia-card h3{ font-size:16px; font-weight:800; margin:0 0 14px; color:var(--dark); display:flex; align-items:center; gap:8px; }
.mia-card h3 i{ color:var(--primary); }
.mia-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px dashed var(--border-l); font-size:14px; }
.mia-row:last-of-type{ border-bottom:0; }
.mia-k{ color:var(--text-l); font-size:12px; text-transform:uppercase; letter-spacing:.5px; font-weight:700; }
.mia-row a{ color:var(--primary); font-weight:700; text-decoration:none; }
.mia-row a:hover{ color:var(--primary-d); }
.mia-cta{ margin-top:14px; display:inline-flex; align-items:center; gap:8px; padding:10px 16px; background:var(--primary); color:#fff!important; border-radius:var(--r); text-decoration:none; font-weight:700; font-size:13px; transition:.18s; }
.mia-cta:hover{ background:var(--primary-d); }
.mia-card-dark{ background:var(--dark); color:#e8e8e8; border-color:transparent; }
.mia-card-dark h3{ color:#fff; }
.mia-card-dark ul{ list-style:none; margin:0; padding:0; }
.mia-card-dark li{ padding:7px 0; font-size:13.5px; display:flex; gap:10px; align-items:flex-start; line-height:1.45; }
.mia-card-dark li i{ color:var(--primary-l); margin-top:3px; flex-shrink:0; }

@media(max-width:1024px){
    .maszyny-cat-grid{ grid-template-columns:repeat(3,1fr); }
    .maszyny-inquiry-grid{ grid-template-columns:1fr; }
    .maszyny-inquiry-aside{ position:static; }
}
@media(max-width:720px){
    .maszyny-cat-grid{ grid-template-columns:repeat(2,1fr); }
    .hbt-maszyny .section-header-lg h1{ font-size:26px; }
}
@media(max-width:420px){
    .maszyny-cat-grid{ grid-template-columns:1fr; }
}

/* ================================================================
   v2.3.3 — Bug fixes punktowe
   ================================================================ */

/* (3) SEARCH BUTTON — stały rozmiar kwadratu z lupką, wszystkie stany
 * (initial + sticky). Wcześniej lupka miała mniejszą wysokość niż input
 * i widać było biały pasek góra/dół w zielonym kafelku. */
.site-search { align-items: stretch !important; }
.site-search input.search-input,
.site-search .search-submit,
.site-search .search-cat-select,
.site-search .search-cat-select select,
.site-search .search-hamburger {
    height: 48px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}
.site-search .search-submit {
    width: 52px !important;
    min-width: 52px !important;
    padding: 0 !important;
    flex: 0 0 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-top-right-radius: inherit !important;
    border-bottom-right-radius: inherit !important;
}
.site-search .search-submit i { font-size: 16px; line-height: 1; }
/* Sticky — proporcjonalnie mniejszy, ale dalej kwadrat = wysokość inputu */
body.header-scrolled .site-search input.search-input,
body.header-scrolled .site-search .search-submit,
body.header-scrolled .site-search .search-cat-select,
body.header-scrolled .site-search .search-cat-select select,
body.header-scrolled .site-search .search-hamburger {
    height: 42px !important;
    min-height: 42px !important;
}
body.header-scrolled .site-search .search-submit {
    width: 46px !important;
    min-width: 46px !important;
    flex: 0 0 46px !important;
}

/* MOBILNE MENU — logo niepotrzebne w drawerze (user już wie gdzie jest gdy otwiera).
 * Zostaje tylko przycisk X do zamknięcia. */
.mobile-menu .mm-header { justify-content: flex-end !important; padding: 12px 16px !important; }
.mobile-menu .mm-logo,
.mobile-menu .mm-logo-img,
.mobile-menu .mm-header > a.mm-logo { display: none !important; }

/* v2.3.7 — Shop layout fix (sidebar + main aligned, bez przesunięć) */
.hbt-shop-outer { padding: 0 20px !important; max-width: 1400px !important; margin: 0 auto !important; }
.hbt-shop-main { max-width: 100% !important; min-width: 0 !important; }
.hbt-shop-wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; }
.hbt-shop-wrap > * { padding-left: 0 !important; padding-right: 0 !important; }
/* Paginacja — wyśrodkowana, schowany pusty obszar po prawej */
.hbt-shop-wrap .woocommerce-pagination { width: 100%; margin-top: 28px !important; text-align: center !important; clear: both; }
.hbt-shop-wrap .woocommerce-pagination::after { content: ""; display: table; clear: both; }
.hbt-shop-wrap .woocommerce-pagination ul { justify-content: center; flex-wrap: wrap; }
/* Akurat grid produktów — pełna szerokość main, bez pustych pasów */
.hbt-shop-wrap ul.products { width: 100% !important; margin: 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; list-style: none !important; }
.hbt-shop-wrap ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; max-width: none !important; }
@media(max-width:1200px){ .hbt-shop-wrap ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media(max-width:768px){  .hbt-shop-wrap ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media(max-width:480px){  .hbt-shop-wrap ul.products { grid-template-columns: 1fr !important; } }
/* Sidebar accordion — ukrycie hidden=true body */
.hbt-sf-body[hidden] { display: none !important; }
.hbt-sf-head { cursor: pointer !important; user-select: none; }
.hbt-sf-box.is-collapsed .hbt-sf-body { display: none !important; }
.hbt-sf-head .hbt-sf-chevron { transition: transform .2s ease; }
.hbt-sf-box.is-collapsed .hbt-sf-head .hbt-sf-chevron { transform: rotate(180deg); }

/* v2.3.8 — Kontrast CTA fix (Lighthouse A11y 87 → 95).
 * Problem: "ZOBACZ OFERTĘ" biały na primary #8BC34A → ratio 2.9:1 (WCAG fail).
 * Fix: ciemniejszy tekst lub ciemniejszy bg dla buttonów na jasnych tłach. */
.hbt-hero-btn, .hbt-hero-slide .hbt-hero-btn {
  background: var(--dark) !important;       /* #1A1714 - ciemne tło */
  color: #fff !important;                   /* biały tekst — ratio 15:1 ✅ */
  box-shadow: 0 6px 20px rgba(26,23,20,.35) !important;
}
.hbt-hero-btn:hover {
  background: var(--primary-d) !important;  /* #7CB342 przy hoverze */
  color: #fff !important;
}
/* Promo bar — zwiększ kontrast na jasnozielonym tle */
.promo-bar { background: var(--primary-d) !important; } /* #7CB342 ratio ~4.8:1 ✅ */
.promo-bar a, .promo-bar strong, .promo-bar span { color: #fff !important; }
/* "See all" link na stronie głównej — #8BC34A na #F8F7F2 = 2.5:1 fail */
.see-all { color: var(--primary-d) !important; text-decoration: underline !important; }
.see-all:hover { color: var(--dark) !important; }
/* Cart price summary on white - zapewnij że wszystkie .woocommerce-Price są czytelne */
.woocommerce-Price-amount, .woocommerce-Price-currencySymbol { color: var(--dark); }

/* v2.3.8 — Blog card title (h3 zamiast h4 — hierarchia) */
.blog-card-title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.blog-card-title a { color: var(--dark); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary-d); }

/* v2.3.8 — DOM size fix: mobile drawer ma 203 brands w .mm-brand-list.
 * Pokazujemy max 20 od razu + przycisk "Więcej". Reszta w data-atrybucie. */
.mm-brand-list .mm-brand-rest { display: none; }
.mm-brand-list.is-expanded .mm-brand-rest { display: inline-flex; }

/* v2.3.9 — Progressive disclosure atrybutów sidebar (marki, producenci, itp.).
 * Domyślnie pokazane 5 pozycji, klik "Więcej" rozwija kolejne 10. */
.hbt-sf-cb-list { list-style: none; margin: 0; padding: 0; }
.hbt-sf-cb-list[data-hbt-progressive] > li:nth-child(n+6) { display: none; }
.hbt-sf-cb-list[data-hbt-progressive][data-show="15"] > li:nth-child(n+16) { display: none; }
.hbt-sf-cb-list[data-hbt-progressive][data-show="15"] > li:nth-child(-n+15) { display: block; }
.hbt-sf-cb-list[data-hbt-progressive][data-show="25"] > li:nth-child(n+26) { display: none; }
.hbt-sf-cb-list[data-hbt-progressive][data-show="25"] > li:nth-child(-n+25) { display: block; }
.hbt-sf-cb-list[data-hbt-progressive][data-show="all"] > li { display: block; }
/* Zawsze pokaż aktywny checkbox, niezależnie od data-show */
.hbt-sf-cb-list[data-hbt-progressive] > li:has(.hbt-filter-cb:checked) { display: block !important; }
.hbt-sf-progressive-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 10px; padding: 8px 12px;
  background: var(--bg2); border: 1px dashed var(--border);
  border-radius: var(--r); color: var(--primary-d); font-size: 12px;
  font-weight: 700; cursor: pointer; transition: .15s;
}
.hbt-sf-progressive-more:hover { background: var(--primary); color: #fff; border-color: var(--primary); border-style: solid; }
.hbt-sf-progressive-more i { font-size: 10px; }
.hbt-sf-progressive-more[hidden] { display: none !important; }

/* v2.3.9 — Gwiazdki pod produktem przycięte — fix height/line-height
 * Problem: .star-rating z WooCommerce ma height:1em + line-height:1 → odcina
 * dolny fragment glifu gwiazdek (szczególnie Font Awesome solid). */
.star-rating,
ul.products li.product .star-rating,
.hbt-main-wrap .star-rating,
.product-rating,
.product-card .product-rating,
.hbt-loop-card .star-rating,
.woocommerce .star-rating {
  height: auto !important;
  min-height: 18px !important;
  line-height: 1.3 !important;
  font-size: 12px !important;
  overflow: visible !important;
  display: inline-block !important;
  vertical-align: middle;
  margin: 4px 0 !important;
}
.product-rating i, .product-card .product-rating i, .hbt-loop-card .star-rating i {
  font-size: 12px !important;
  color: #FDD835 !important; /* --secondary, żółte Kubota-like */
  line-height: 1.3 !important;
  vertical-align: baseline;
}
.product-rating span, .hbt-loop-card .star-rating span {
  font-size: 11px !important;
  color: var(--text-l) !important;
  margin-left: 4px;
  line-height: 1.3 !important;
}
/* WC native star-rating (spans only) — też daj padding-bottom */
.woocommerce .star-rating, ul.products li.product .star-rating { padding-bottom: 4px !important; }
.woocommerce .star-rating::before, .woocommerce .star-rating span::before {
  line-height: 1.3 !important;
}

/* (5) FILTER SIDEBAR — accordion dla atrybutów (producent/cena/marka) */
.hbt-shop-sidebar .hbt-filter-section { border-bottom: 1px solid var(--border-l); padding: 0; }
.hbt-shop-sidebar .hbt-filter-section:last-child { border-bottom: 0; }
.hbt-shop-sidebar .hbt-filter-head {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 14px 16px; background: transparent; border: 0;
    cursor: pointer; font-weight: 700; font-size: 14px; color: var(--dark);
    text-align: left; transition: .15s;
}
.hbt-shop-sidebar .hbt-filter-head:hover { background: var(--bg2); color: var(--primary); }
.hbt-shop-sidebar .hbt-filter-head i { transition: transform .2s; color: var(--text-l); font-size: 12px; }
.hbt-shop-sidebar .hbt-filter-section.is-collapsed .hbt-filter-head i { transform: rotate(-90deg); }
.hbt-shop-sidebar .hbt-filter-body { padding: 0 16px 14px; max-height: 420px; overflow-y: auto; }
.hbt-shop-sidebar .hbt-filter-section.is-collapsed .hbt-filter-body { display: none; }
/* Zapas — gdy admin nie używa tych klas, dotykamy natywnych list z checkboxami */
.hbt-shop-sidebar .widget > h4,
.hbt-shop-sidebar .widget > .widget-title {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; user-select: none;
}
.hbt-shop-sidebar .widget > h4::after,
.hbt-shop-sidebar .widget > .widget-title::after {
    content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 11px; color: var(--text-l); transition: transform .2s;
}
.hbt-shop-sidebar .widget.is-collapsed > h4::after,
.hbt-shop-sidebar .widget.is-collapsed > .widget-title::after { transform: rotate(-90deg); }
.hbt-shop-sidebar .widget.is-collapsed > :not(h4):not(.widget-title) { display: none; }

/* (6) DZIWNA RAMKA — usunięte szare border na .hbt-main-wrap / body / main z fallbacku */
.hbt-main-wrap { border: 0 !important; box-shadow: none !important; background: transparent !important; }
#main, main.hbt-homepage, main.hbt-page, main.hbt-shop-main,
main.hbt-contact, main.hbt-maszyny, main.hbt-blog-archive { border: 0 !important; box-shadow: none !important; }
.hbt-page-article, .hbt-shop-wrap { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.entry-content, .entry-summary { border: 0 !important; }

/* (8) KOSZYK — layout fix */
.woocommerce-cart .hbt-main-wrap,
.woocommerce-checkout .hbt-main-wrap { padding: 24px; max-width: 1280px; margin: 0 auto; }
.woocommerce-cart .hbt-main-wrap .cart_totals,
.woocommerce-cart .hbt-main-wrap .cross-sells { background: #fff; border: 1px solid var(--border-l); border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; }
.woocommerce-cart .hbt-main-wrap table.cart,
.woocommerce-cart .hbt-main-wrap table.shop_table { background: #fff; border: 1px solid var(--border-l); border-radius: var(--r-lg); width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce-cart .hbt-main-wrap table.cart th,
.woocommerce-cart .hbt-main-wrap table.shop_table th { background: var(--bg2); padding: 14px 16px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--dark); border-bottom: 2px solid var(--border); text-align: left; }
.woocommerce-cart .hbt-main-wrap table.cart td,
.woocommerce-cart .hbt-main-wrap table.shop_table td { padding: 16px; border-bottom: 1px solid var(--border-l); vertical-align: middle; }
.woocommerce-cart .hbt-main-wrap table.cart img { max-width: 64px; height: auto; border-radius: var(--r); }
.woocommerce-cart .hbt-main-wrap .product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: transparent; color: var(--danger); font-size: 18px; text-decoration: none; }
.woocommerce-cart .hbt-main-wrap .product-remove a.remove:hover { background: var(--danger); color: #fff; }
.woocommerce-cart .hbt-main-wrap .quantity input.qty { width: 64px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r); text-align: center; }
.woocommerce-cart .hbt-main-wrap .coupon input.input-text { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r); min-width: 180px; }
.woocommerce-cart .hbt-main-wrap button.button,
.woocommerce-cart .hbt-main-wrap .button,
.woocommerce-cart .hbt-main-wrap input[type=submit] { background: var(--primary) !important; color: #fff !important; border: 0 !important; padding: 12px 22px !important; border-radius: var(--r) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .3px; cursor: pointer; transition: background .2s; }
.woocommerce-cart .hbt-main-wrap button.button:hover,
.woocommerce-cart .hbt-main-wrap .button:hover { background: var(--primary-d) !important; }
.woocommerce-cart .hbt-main-wrap .cart_totals h2 { font-size: 20px; margin: 0 0 12px; }

/* v2.3.7 — Koszyk/checkout LAYOUT GRID (tabela + sidebar side-by-side) */
.woocommerce-cart .hbt-main-wrap .woocommerce {
    display: grid !important;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    align-items: flex-start;
}
.woocommerce-cart .hbt-main-wrap .woocommerce > form.woocommerce-cart-form { min-width: 0; grid-column: 1; }
.woocommerce-cart .hbt-main-wrap .woocommerce > .cart-collaterals { grid-column: 2; width: 100% !important; float: none !important; }
.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals { width: 100% !important; float: none !important; margin: 0 !important; position: sticky; top: 100px; }
@media(max-width:900px){
    .woocommerce-cart .hbt-main-wrap .woocommerce { grid-template-columns: 1fr !important; }
    .woocommerce-cart .hbt-main-wrap .woocommerce > .cart-collaterals { grid-column: 1; }
    .woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals { position: static; }
}

/* CHECKOUT — billing po lewej, order review po prawej */
.woocommerce-checkout .hbt-main-wrap { padding: 24px; max-width: 1280px; margin: 0 auto; }
.woocommerce-checkout .hbt-main-wrap form.checkout {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: flex-start;
}
.woocommerce-checkout .hbt-main-wrap form.checkout > .col2-set,
.woocommerce-checkout .hbt-main-wrap form.checkout > .col2-set .col-1,
.woocommerce-checkout .hbt-main-wrap form.checkout > .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    grid-column: 1;
}
.woocommerce-checkout .hbt-main-wrap form.checkout > #order_review_heading,
.woocommerce-checkout .hbt-main-wrap form.checkout > #order_review {
    grid-column: 2;
    width: 100% !important;
    float: none !important;
}
.woocommerce-checkout .hbt-main-wrap form.checkout > #order_review {
    position: sticky; top: 100px;
    background: #fff; border: 1px solid var(--border-l); border-radius: var(--r-lg); padding: 20px;
}
.woocommerce-checkout .hbt-main-wrap form.checkout > #order_review_heading {
    margin: 0 !important; padding: 0 0 10px !important; font-size: 20px; font-weight: 700;
}
.woocommerce-checkout .hbt-main-wrap h3 { font-size: 18px; font-weight: 700; margin: 0 0 14px; color: var(--dark); }
.woocommerce-checkout .hbt-main-wrap .form-row { margin-bottom: 14px; }
.woocommerce-checkout .hbt-main-wrap .form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.woocommerce-checkout .hbt-main-wrap .form-row input.input-text,
.woocommerce-checkout .hbt-main-wrap .form-row select,
.woocommerce-checkout .hbt-main-wrap .form-row textarea,
.woocommerce-checkout .hbt-main-wrap .select2-selection { width: 100% !important; padding: 10px 12px !important; border: 1px solid var(--border) !important; border-radius: var(--r) !important; box-sizing: border-box; }
.woocommerce-checkout .hbt-main-wrap #place_order {
    width: 100%; padding: 16px !important; font-size: 15px !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: .3px; background: var(--primary) !important; color: #fff !important;
    border: 0 !important; border-radius: var(--r) !important; margin-top: 14px;
}
.woocommerce-checkout .hbt-main-wrap #place_order:hover { background: var(--primary-d) !important; }
.woocommerce-checkout .hbt-main-wrap table.shop_table { width: 100%; border-collapse: collapse; background: var(--bg2); border-radius: var(--r); overflow: hidden; }
.woocommerce-checkout .hbt-main-wrap table.shop_table th,
.woocommerce-checkout .hbt-main-wrap table.shop_table td { padding: 10px 12px; border-bottom: 1px solid var(--border-l); font-size: 13px; }
.woocommerce-checkout .hbt-main-wrap .woocommerce-additional-fields { grid-column: 1; }
.woocommerce-checkout .hbt-main-wrap .woocommerce-shipping-fields { grid-column: 1; }
@media(max-width:900px){
    .woocommerce-checkout .hbt-main-wrap form.checkout { grid-template-columns: 1fr !important; }
    .woocommerce-checkout .hbt-main-wrap form.checkout > * { grid-column: 1 !important; }
    .woocommerce-checkout .hbt-main-wrap form.checkout > #order_review { position: static; }
}
.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; text-align: center; padding: 16px !important; font-size: 15px !important; }
@media(max-width:768px){
    .woocommerce-cart .hbt-main-wrap table.cart thead { display: none; }
    .woocommerce-cart .hbt-main-wrap table.cart tr { display: block; border-bottom: 1px solid var(--border-l); padding: 10px; }
    .woocommerce-cart .hbt-main-wrap table.cart td { display: flex; justify-content: space-between; padding: 8px 0; border: 0; }
    .woocommerce-cart .hbt-main-wrap table.cart td::before { content: attr(data-title); font-weight: 700; color: var(--text-l); }
}
