/*
Theme Name:     HBT Kroczyce 3.0
Theme URI:      https://hbt.com.pl/
Description:    HBT Kroczyce 3.0 — naprawiona wersja 2.4. Fixes: WebP double-ext images, template-about.php (zamiast Blade legacy), lazy-load above-fold disable, suwak cenowy 95-percentyl, brand logo verify-file fallback, mobile header (#13), cart desktop (#11), cart mobile compact grid, filemtime cache-bust, perf.php safeguards (HBT Cache + OPcache), Customizer kolorystyka (16 kolorów), HBT_Nav_Walker (chevron + smart-URL dla href=#), list-view 3-kol z actions+stock. Footer bez zmian (shortcode [hbt_footer_default]).
Author:         HBT / WooCloudTheme
Version:        3.0.3
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; }

/* ================================================================
   HBT COLOR OVERRIDES (legacy compiled skin)
   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; }

/* ================================================================
   HBT 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; }
/* v2.4 — /kontakt zaczyna się od hero. Kasujemy górny margin .hbt-main-wrap
 * (24px default) żeby hero przyklejało się do nawigacji bez dużej szpary. */
.page-template-page-contact .hbt-main-wrap,
body.page-template-page-contact .hbt-main-wrap{ margin-top:16px !important; }
.hbt-contact{ margin-top:0 !important; }

/* Hero — v2.4: rounded, contained, no overflow (padding wliczone w szerokość).
 * Właściwy bg gradient i margin w functions.php:1212 (loaded later via wp_head);
 * tu tylko strukturalny reset. */
.contact-hero{
    box-sizing:border-box !important;
    overflow:hidden !important;
    width:100% !important;
    max-width:100% !important;
    padding:56px 24px; color:#fff;
}
.contact-hero .container-full{ max-width:100% !important; padding:0 !important; }
.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; color: #fff; }
/* v2.4 — globalna reguła .woocommerce-Price-amount{color:var(--dark)} (ok ~4948)
 * zaciemniała kwotę w zielonym przycisku koszyka. Wymuszamy biały wewnątrz
 * .ha-cart (zarówno dla <span> jak i ewentualnego <strong> po AJAX refresh). */
.ha-cart .hbt-cart-total,
.ha-cart .hbt-cart-total *,
.ha-cart .woocommerce-Price-amount,
.ha-cart .woocommerce-Price-amount bdi,
.ha-cart .woocommerce-Price-currencySymbol { color: #fff !important; }

/* 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;
  align-items: stretch;
  margin: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.mm-search input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  background: transparent;
}
.mm-search button {
  flex: 0 0 42px;
  width: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.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) {
  /* v2.3.10 — fix layout: heading + review w tej samej kolumnie, OD GÓRY
   * (bez grid-template-areas review ląduje w wierszu 2 pod billing) */
  body.woocommerce-checkout form.checkout {
    display: grid; grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas:
        "billing heading"
        "billing review"
        "billing payment";
    grid-template-rows: auto auto 1fr;
    gap: 16px 32px; align-items: start;
  }
  body.woocommerce-checkout form.checkout > #customer_details { grid-area: billing; grid-column: 1; }
  body.woocommerce-checkout form.checkout > #order_review_heading { grid-area: heading; grid-column: 2; }
  body.woocommerce-checkout form.checkout > #order_review { grid-area: review; grid-column: 2; }
  body.woocommerce-checkout form.checkout > .woocommerce-checkout-payment { grid-area: 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;
    /* v2.4 — form wraps input + button z jednym border-radius + overflow:hidden.
     * Wcześniej input i button miały osobne border-radius (lewy/prawy), co w
     * kombinacji z border-right:0 na inpucie i border:0 na buttonie dawało
     * "białe plamki" w rogach styku — zielone tło buttona nie dociskało do
     * rogów wrappera. Teraz wrapper tnie wszystko clean'o. */
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }
  .hbt-mobile-search-row form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18);
  }
  .hbt-mobile-search-row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    font-size: 16px; /* prevents iOS zoom */
    color: var(--dark);
    background: #fff;
    border: 0;
    border-radius: 0;
    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 button[type="submit"] {
    flex: 0 0 54px;
    width: 54px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    padding: 0;
    margin: 0;
  }
  .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;
}
/* v2.4 — cena netto pod brutto w karcie produktu. Szara, drobna, bez pogrubienia */
.hbt-loop-card .hbt-loop-card__price-net{
    display:inline-flex; align-items:baseline; gap:4px;
    font-size:11px; font-weight:500; color:var(--text-l,#616161);
    line-height:1.3; margin-top:2px;
}
.hbt-loop-card .hbt-loop-card__price-net .woocommerce-Price-amount,
.hbt-loop-card .hbt-loop-card__price-net .woocommerce-Price-amount bdi,
.hbt-loop-card .hbt-loop-card__price-net .woocommerce-Price-currencySymbol{
    color:var(--text-l,#616161) !important;
    font-weight:500 !important; font-size:inherit !important;
}
.hbt-loop-card .hbt-loop-card__price-net-label{
    font-size:11px; letter-spacing:0; text-transform:none;
    color:var(--text-l,#616161); opacity:.85; font-weight:400;
}

/* 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.
 * v2.4 — breakpoint obniżony z 1200 → 1050 żeby 4 kolumny utrzymywały
 * się na typowym 14-15" laptopie. Plus: box-sizing na cards (global
 * CSS *{box-sizing:border-box} nie zawsze działa bo HBT parent resetuje
 * dla .product). Inaczej padding + border dodają 26px do każdej karty i
 * 4×1fr wypycha 4tą kartę do nowego wiersza. */
.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;
    width:100% !important; box-sizing:border-box;
}
.hbt-shop-main ul.products > li.product,
.hbt-main-wrap .hbt-shop-main ul.products > li.product,
.hbt-shop-main ul.products > li.product.hbt-loop-card,
.hbt-main-wrap .hbt-shop-main ul.products > li.product.hbt-loop-card{
    min-width:0 !important; width:auto !important; max-width:none !important;
    box-sizing:border-box !important;
}
@media(max-width:1100px){
    .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(--text-l); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: .15s;
}
.hbt-sf-progressive-more:hover { background: var(--bg); color: var(--dark); border-color: var(--border); border-style: solid; }
.hbt-sf-progressive-more i { font-size: 10px; color: var(--text-l); }
.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: minmax(0, 1.7fr) minmax(280px, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}
.woocommerce-cart .hbt-main-wrap .woocommerce > form.woocommerce-cart-form { min-width: 0; grid-column: 1; align-self: start; }
.woocommerce-cart .hbt-main-wrap .woocommerce > .cart-collaterals { grid-column: 2; width: 100% !important; float: none !important; align-self: start; }
/* v2.4 — .cart-collaterals było wcześniej wewnętrznym gridem 1fr/380px
 * (zaprojektowanym pod cross-sells obok totals). W kontekście outer-grida
 * to duplikacja: cross-sells renderujemy pełną szerokością poza collaterals
 * (cross-sells grid-column: 1 / -1 w functions.php:2189), a collaterals
 * wewnątrz ma już tylko cart_totals. Wymuszamy block layout. */
.woocommerce-cart .hbt-main-wrap .cart-collaterals {
    display: block !important;
    grid-template-columns: none !important;
    margin-top: 0 !important;
    padding-top: 0 !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); }
}

/* ================================================================
   v2.3.11 — WooCommerce notices (Dodano do koszyka) w brandzie HBT
   Problem: default .woocommerce-message ma olive border-top 3px
   + cold-gray bg (wyglądał na niebieski); button "Kontynuuj zakupy"
   wypychany do prawej na 1200px tworząc ogromną przestrzeń w środku.
   ================================================================ */
.woocommerce-message,
.woocommerce-info {
    background: #F0F9E8 !important;               /* very light HBT green tint */
    border: 0 !important;
    border-left: 4px solid var(--primary, #8BC34A) !important;
    border-radius: 8px;
    color: var(--text, #1a1a1a) !important;
    padding: 14px 18px 14px 48px !important;
    margin: 0 0 20px !important;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.woocommerce-message::before {
    content: "✓" !important;
    font-family: inherit !important;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary, #8BC34A);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    margin: 0;
    border: 0;
}
.woocommerce-info::before {
    content: "ℹ" !important;
    background: var(--primary-d, #7CB342);
}

/* Button "Kontynuuj zakupy" - bezpośrednio po tekście, nie wypychany */
.woocommerce-message .button,
.woocommerce-message .wc-forward,
.woocommerce-info .button {
    background: var(--primary, #8BC34A) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-left: auto; /* przyklej do prawej bez rozpychania */
    border: 0 !important;
    min-width: auto;
    text-decoration: none;
    transition: background 0.2s;
}
.woocommerce-message .button:hover,
.woocommerce-message .wc-forward:hover {
    background: var(--primary-d, #7CB342) !important;
}

/* Error notice - czerwony wariant */
.woocommerce-error {
    background: #FDECEA !important;
    border: 0 !important;
    border-left: 4px solid #D32F2F !important;
    border-radius: 8px;
    color: #B71C1C !important;
    padding: 14px 18px 14px 48px !important;
    margin: 0 0 20px !important;
    position: relative;
}
.woocommerce-error::before {
    content: "!" !important;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #D32F2F;
    color: #fff;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    font-size: 14px;
}

/* ================================================================
   v2.3.11 — Pasek "Do darmowej dostawy" w nawigacji (kontrast)
   div.nav-shipping w nav#siteNav (bg rgb(26,23,20)) miał text color
   rgba(255,255,255,0.7) → kwota nieczytelna. Full white + kwota w brand.
   ================================================================ */
#siteNav .nav-shipping,
.site-nav .nav-shipping {
    color: #fff !important;
    font-weight: 600;
}
#siteNav .nav-shipping strong,
#siteNav .nav-shipping b,
#siteNav .nav-shipping .amount,
.site-nav .nav-shipping strong,
.site-nav .nav-shipping b,
.site-nav .nav-shipping .amount {
    color: var(--primary, #8BC34A) !important;
    font-weight: 700;
}

/* ================================================================
   v2.3.11 — Kontrast CTA (WCAG AA audit fix)
   Problem: #8BC34A (HBT primary) na białym tle daje 2.2:1, fail AA.
   Używamy ciemniejszego #558B2F (primary-dd, 4.5:1) dla linków i
   małego tekstu CTA na jasnych tłach.
   ================================================================ */
.see-all,
.blog-all-btn,
.blog-link,
.sb-promo,
a.hbt-btn-link,
.breadcrumbs a,
.ha-phone-label {
    color: #558B2F !important;              /* primary-dd — 4.5:1 vs white */
    font-weight: 600;
}
.see-all:hover,
.blog-all-btn:hover,
.blog-link:hover,
.sb-promo:hover {
    color: #33691E !important;              /* jeszcze ciemniejszy hover */
    text-decoration: underline;
}

/* Do koszyka button — primary-d zamiast primary (lepszy kontrast tekstu) */
.btn-cart,
.add_to_cart_button,
a.btn-cart,
li.product a.button.add_to_cart_button {
    background: #558B2F !important;         /* primary-dd dla tła */
    color: #fff !important;
    font-weight: 700;
    border: 0 !important;
}
.btn-cart:hover,
.add_to_cart_button:hover {
    background: #33691E !important;         /* hover ciemniejszy */
}

/* v2.3.16 — ceny w brand green (user feedback: czarne są za słabe wizualnie) */
.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol,
.price .amount,
.product-price,
.hbt-loop-card__price .woocommerce-Price-amount,
.cart_totals .woocommerce-Price-amount {
    color: var(--primary-d, #7CB342) !important;
    font-weight: 700;
}

/* v2.3.16 — nav-cat-trigger "Wybierz kategorię" — zielony primary, biały tekst */
.nav-cat-trigger {
    color: #fff !important;
    background: var(--primary-d, #7CB342) !important;
    font-weight: 700;
}
.nav-cat-trigger:hover {
    background: #558B2F !important;
}

/* v2.3.16 — Promo bar force white (fix naszej własnej złej reguły)
 * Wcześniej :not([style*="background"]) łapił strong → #33691E.
 * Promo bar ma bg primary-d więc WSZYSTKIE teksty MUSZĄ być białe.
 *
 * v2.4 — UJEDNOLICENIE TYPOGRAFII promo-bara.
 * Wcześniej: promo-left 12px+500+<strong>700, promo-center 12px+.85 opacity,
 * promo-right a 11px+.9 opacity, promo-right span 12px. 4 różne wariacje
 * na tej samej pasmie tekstu. Teraz: ten sam font-family (Poppins),
 * rozmiar 12px, weight 500, pełny #fff. `<strong>` z HTML (promo) NIE
 * podbija do 700 — wszystko jedną wagą dla spójności. Zachowane .promo-sep
 * z niższą opacity (subtelny separator, to jedyny dozwolony wyjątek). */
.promo-bar,
.promo-bar *,
.promo-bar a,
.promo-bar strong,
.promo-bar span,
.promo-bar em,
.promo-bar b {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
    color: #fff !important;
    opacity: 1 !important;
}
.promo-bar a { text-decoration: none !important; }
.promo-bar a:hover { text-decoration: underline !important; }
/* Ikony FA — żeby nie padły przez font-family:Poppins */
.promo-bar i,
.promo-bar .fa,
.promo-bar .fas,
.promo-bar .far,
.promo-bar .fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    opacity: .95 !important;
}
.promo-bar .far,
.promo-bar .fab { font-weight: 400 !important; }
/* Separator (pipe) — subtelniejszy, jedyny dozwolony wyjątek w rytmie */
.promo-bar .promo-sep { opacity: .35 !important; margin: 0 2px; }

/* ================================================================
   v2.3.12 — 10 issues po inspekcji live hbt.com.pl (2026-04-20)
   ================================================================ */

/* #1 Header promo-bar — spójność kolorów (wszystko white on green) */
.promo-bar {
    background: var(--primary-d, #7CB342) !important;
    color: #fff !important;
}
.promo-bar strong,
.promo-bar .promo-center,
.promo-bar a,
.promo-bar > span,
.promo-bar a[href^="tel:"] {
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: none;
}
.promo-bar a:hover {
    text-decoration: underline;
}

/* Phone labels MASZYNY/CZĘŚCI/SERWIS — ciemny zielony na białym headerze */
.site-header .ha-phone-label {
    color: #33691E !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.site-header .ha-phone a,
.site-header .ha-phone-num {
    color: #1a1a1a !important;
    font-weight: 700;
}

/* #2 "zł" w "Do darmowej dostawy" — razem z kwotą zielony */
#siteNav .nav-shipping .woocommerce-Price-currencySymbol,
.site-nav .nav-shipping .woocommerce-Price-currencySymbol,
#siteNav .nav-shipping .amount,
#siteNav .nav-shipping .amount *,
.site-nav .nav-shipping .amount,
.site-nav .nav-shipping .amount * {
    color: var(--primary, #8BC34A) !important;
    font-weight: 700;
}

/* #3 Podobne produkty — grid 4 kolumny, nie block z float */
.related.products,
section.related.products,
.up-sells.products,
.cross-sells.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    float: none !important;
    clear: both;
}
.related.products > h2,
.related.products > h3,
.up-sells > h2,
.cross-sells > h2 {
    grid-column: 1 / -1;
    margin: 0 0 10px;
}
.related.products > li.product,
.related.products > .product,
.up-sells > li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}
@media (max-width: 900px) {
    .related.products,
    .up-sells.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .related.products,
    .up-sells.products {
        grid-template-columns: 1fr !important;
    }
}

/* #4-5 Koszyk responsywny — card layout na mobile + cart_totals below */
@media (max-width: 900px) {
    .woocommerce-cart .cart-collaterals,
    .woocommerce-cart .cart_totals {
        width: 100% !important;
        float: none !important;
        margin-top: 24px !important;
    }
    .woocommerce-cart-form,
    .woocommerce-cart table.cart,
    .woocommerce-cart .shop_table {
        width: 100% !important;
    }
    .woocommerce-cart .shop_table_responsive tr.cart_item {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        border-radius: 10px;
        padding: 14px !important;
        margin-bottom: 12px;
        background: #fff;
    }
    .woocommerce-cart .shop_table_responsive thead {
        display: none !important;
    }
    .woocommerce-cart .shop_table_responsive tr.cart_item td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        padding: 8px 0 !important;
        border: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }
    .woocommerce-cart .shop_table_responsive tr.cart_item td::before {
        content: attr(data-title);
        font-weight: 700;
        color: var(--text, #1a1a1a);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .woocommerce-cart .shop_table_responsive tr.cart_item td.product-thumbnail::before {
        content: "";
    }
    .woocommerce-cart .shop_table_responsive tr.cart_item td.product-thumbnail img {
        max-width: 70px;
        height: auto;
    }
    .woocommerce-cart .shop_table_responsive tr.cart_item td.product-remove {
        justify-content: flex-end !important;
    }
    .woocommerce-cart .cart_totals table.shop_table,
    .woocommerce-cart .cart_totals .shop_table {
        width: 100% !important;
    }
    .woocommerce-cart .cart_totals {
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 10px;
        padding: 16px;
        background: #fff;
    }
}

/* #6 Sklep: grid 4 kolumny bez pustych komórek */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
@media (min-width: 1200px) {
    body.has-sidebar .woocommerce ul.products,
    .post-type-archive-product ul.products,
    .tax-product_cat ul.products,
    .woocommerce-shop ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
.woocommerce ul.products > li.product,
.woocommerce-page ul.products > li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box;
}

/* #7 Toolbar sklepu: Wyświetlane + sort + perpage w jednym rzędzie */
.hbt-shop-toolbar,
.hbt-toolbar-row,
body.post-type-archive-product .woocommerce-result-count + form.woocommerce-ordering {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 0;
}
.hbt-toolbar-count,
.woocommerce-result-count {
    flex: 1 1 280px;
    min-width: 0;
    font-size: 14px;
    color: var(--text-l, #555);
    margin: 0 !important;
}
.hbt-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.woocommerce-ordering {
    flex: 0 0 auto;
    margin: 0 !important;
}
.woocommerce-ordering select.orderby {
    min-width: 200px;
    padding: 8px 12px !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}
@media (max-width: 768px) {
    .hbt-shop-toolbar,
    .hbt-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }
    .hbt-toolbar-count,
    .hbt-toolbar-right {
        flex: 1 1 100%;
    }
}

/* #8-9 Sidebar filtrów — collapsible: nagłówek klikalny, treść chowana */
.hbt-sf-filter,
.shop-sidebar .widget,
.widget_layered_nav,
.woocommerce-widget-layered-nav,
aside.shop-sidebar .widget {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 14px 0;
    margin: 0;
}
.hbt-sf-filter > h3,
.hbt-sf-filter > .widgettitle,
.shop-sidebar .widget > h2,
.shop-sidebar .widget > h3,
.shop-sidebar .widget > .widget-title,
aside.shop-sidebar .widget > h3 {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 0 28px 0 0;
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}
.hbt-sf-filter > h3::after,
.shop-sidebar .widget > h2::after,
.shop-sidebar .widget > h3::after {
    content: "▾";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
    color: var(--primary, #8BC34A);
    font-size: 12px;
}
.hbt-sf-filter.is-collapsed > h3::after,
.shop-sidebar .widget.is-collapsed > h2::after,
.shop-sidebar .widget.is-collapsed > h3::after {
    transform: translateY(-50%) rotate(-90deg);
}
.hbt-sf-filter.is-collapsed > ul,
.hbt-sf-filter.is-collapsed > div,
.hbt-sf-filter.is-collapsed > form,
.shop-sidebar .widget.is-collapsed > ul,
.shop-sidebar .widget.is-collapsed > form,
.shop-sidebar .widget.is-collapsed > div.widget-content {
    display: none !important;
}

/* #10 Breadcrumb pod produktami — bez szarej ramki */
.woocommerce-breadcrumb,
.hbt-breadcrumb,
nav.breadcrumb,
.single-product .woocommerce-breadcrumb {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-l, #666);
}
.woocommerce-breadcrumb a,
.hbt-breadcrumb a,
.breadcrumbs a {
    color: #558B2F !important;
    text-decoration: none;
    font-weight: 500;
}
.woocommerce-breadcrumb a:hover,
.hbt-breadcrumb a:hover {
    text-decoration: underline;
}
.woocommerce-breadcrumb .hbt-breadcrumb__sep,
.breadcrumbs-delimiter {
    color: rgba(0,0,0,0.25);
    margin: 0 8px;
}

/* ================================================================
   v2.4 — Koszyk 2-column layout (desktop) + responsive mobile
   ================================================================ */

/* Desktop: form po lewej, totals po prawej — flex wymuszenie na .woocommerce */
@media (min-width: 992px) {
    body.woocommerce-cart .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 30px;
        align-items: start;
    }
    body.woocommerce-cart .woocommerce > form.woocommerce-cart-form {
        grid-column: 1;
        width: 100% !important;
        float: none !important;
    }
    body.woocommerce-cart .woocommerce > .cart-collaterals {
        grid-column: 2;
        width: 100% !important;
        float: none !important;
        position: sticky;
        top: 100px;
    }
    body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        float: none !important;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(26,23,20,0.04);
    }
    body.woocommerce-cart .cart-collaterals .cart_totals h2 {
        font-size: 18px;
        font-weight: 800;
        margin: 0 0 16px;
        color: var(--dark, #1a1a1a);
    }
    body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px !important;
        font-size: 15px !important;
        background: var(--primary, #8BC34A) !important;
        color: #fff !important;
        border-radius: 6px !important;
        font-weight: 700;
        text-decoration: none;
    }
    body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
        background: var(--primary-d, #7CB342) !important;
    }
}

/* Mobile: 1 kolumna + cards dla wierszy tabeli */
@media (max-width: 991px) {
    body.woocommerce-cart .woocommerce {
        display: block !important;
    }
    body.woocommerce-cart form.woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px !important;
    }
    body.woocommerce-cart table.cart {
        width: 100% !important;
    }
    body.woocommerce-cart table.cart thead {
        display: none !important;
    }
    body.woocommerce-cart table.cart tr.cart_item {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 10px;
        padding: 14px !important;
        margin-bottom: 12px;
        background: #fff;
    }
    body.woocommerce-cart table.cart tr.cart_item td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        padding: 8px 0 !important;
        border: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }
    body.woocommerce-cart table.cart tr.cart_item td::before {
        content: attr(data-title);
        font-weight: 700;
        color: var(--dark, #1a1a1a);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    body.woocommerce-cart table.cart tr.cart_item td.product-thumbnail::before {
        content: "";
    }
    body.woocommerce-cart table.cart tr.cart_item td.product-thumbnail img {
        max-width: 70px;
        height: auto;
    }
    body.woocommerce-cart table.cart tr.cart_item td.product-remove {
        justify-content: flex-end !important;
    }
    body.woocommerce-cart .cart_totals {
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 10px;
        padding: 16px;
    }
    body.woocommerce-cart .cart_totals table.shop_table {
        width: 100% !important;
    }
}

/* ================================================================
   v2.4 — Sklep: grid 4-col + toolbar spacing
   ================================================================ */
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
body.woocommerce-shop ul.products > li.product,
body.post-type-archive-product ul.products > li.product,
body.tax-product_cat ul.products > li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    list-style: none !important;
}

/* Toolbar sklepu — result count + sortowanie + NA STRONIE + widok */
.hbt-shop-toolbar,
body.woocommerce .woocommerce-result-count ~ form,
body.woocommerce p.woocommerce-result-count ~ * {
    box-sizing: border-box;
}
body.woocommerce p.woocommerce-result-count {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 40px;
    font-size: 14px;
    color: var(--text-l, #555);
}
body.woocommerce form.woocommerce-ordering {
    margin: 0 !important;
}
body.woocommerce form.woocommerce-ordering select.orderby {
    padding: 10px 36px 10px 14px !important;
    min-width: 220px;
    border: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 6px !important;
    background: #fff;
    font-size: 14px;
    appearance: none;
    -webkit-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 14px center;
}

/* Godziny otwarcia - tile nie przycina */
.contact-tile {
    overflow: visible !important;
    min-height: auto !important;
}
.contact-tile .contact-hours-list,
.contact-tile ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* ================================================================
 * v2.4 — SHOP ARCHIVE FIX BATCH (3 issues from client review)
 * ================================================================
 *
 * 1) Rozjeżdżający się grid (produkty spadają w nowy rząd)
 *    Problem: kafelki miały różne wysokości + brak box-sizing:border-box,
 *    więc border/padding wypychały je poza przydzieloną komórkę grida
 *    i 4-ty produkt spadał niżej.
 *    Fix: wszystkie kafelki + grid itemy mają box-sizing:border-box,
 *    height:100% + flex column + .hbt-loop-card__spacer{flex:1 1 auto}
 *    wypycha CTA na dół — rzędy mają idealnie równą wysokość.
 *
 * 2) Ucinane tytuły bez wielokropka
 *    Problem: overflow:hidden bez line-clamp po prostu chował tekst.
 *    Fix: -webkit-line-clamp:2 + display:-webkit-box + text-overflow:
 *    ellipsis daje elegancki "…" po 2 liniach. min-height wymusza
 *    2-liniowy slot nawet gdy tytuł ma 1 linię — wszystkie karty
 *    mają ten sam H, rząd nie "skacze".
 *
 * 3) Brzydki natywny <select> sortowania
 *    Problem: 4 konkurujące reguły w style.css/functions.php dawały
 *    niedokończony styl (raz appearance:none, raz nie).
 *    Fix: jedna finalna reguła w v2.4 (wygrywa kaskadowo — najpóźniej
 *    w stylesheet) z appearance:none + custom SVG chevron + focus ring.
 * ================================================================ */

/* (1) Grid stability — box-sizing + height:100% na KAŻDEJ permutacji
 * selektora. Specyficzność 0,3,2 bije wszystkie wcześniejsze reguły. */
.hbt-shop-main ul.products > li.product,
.hbt-main-wrap .hbt-shop-main ul.products > li.product,
.hbt-shop-main ul.products > li.product.hbt-loop-card,
.hbt-main-wrap .hbt-shop-main ul.products > li.product.hbt-loop-card {
    box-sizing: border-box !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
}
/* Inner wrapper forms the flex column; spacer pushes CTA to bottom */
.hbt-shop-main ul.products .hbt-loop-card__inner,
.hbt-main-wrap .hbt-shop-main ul.products .hbt-loop-card__inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
}
.hbt-shop-main ul.products .hbt-loop-card__body,
.hbt-main-wrap .hbt-shop-main ul.products .hbt-loop-card__body {
    flex: 1 1 auto !important;
}
.hbt-shop-main ul.products .hbt-loop-card__spacer,
.hbt-main-wrap .hbt-shop-main ul.products .hbt-loop-card__spacer {
    flex: 1 1 auto !important;
    min-height: 8px;
}

/* (2) Title ellipsis — 2 lines + "…". min-height rezerwuje slot
 * 2-liniowy, display:-webkit-box + line-clamp obcina nadmiar. */
.hbt-loop-card .hbt-loop-card__title,
.hbt-loop-card h3.hbt-loop-card__title,
.hbt-main-wrap .hbt-loop-card .hbt-loop-card__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: calc(1.35em * 2) !important;
    max-height: calc(1.35em * 2) !important;
    word-break: break-word;
    hyphens: auto;
}

/* (3) Sort dropdown — jedna finalna reguła, bije wcześniejsze konflikty.
 * Brandowany white card z zieloną ramką on :focus + custom SVG chevron
 * (jasnozielony na normalnym, ciemnozielony na :hover). */
.hbt-shop-toolbar .woocommerce-ordering select,
.hbt-shop-toolbar .woocommerce-ordering select.orderby,
body.woocommerce form.woocommerce-ordering select.orderby,
.hbt-shop-main .woocommerce-ordering select,
.woocommerce-ordering select.orderby {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-width: 220px !important;
    padding: 10px 38px 10px 14px !important;
    border: 1.5px solid var(--border, #E0E0E0) !important;
    border-radius: var(--r, 6px) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%237CB342' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px 7px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    color: var(--dark, #1A1714) !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    outline: 0 !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.hbt-shop-toolbar .woocommerce-ordering select:hover,
body.woocommerce form.woocommerce-ordering select.orderby:hover,
.woocommerce-ordering select.orderby:hover {
    border-color: var(--primary, #8BC34A) !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%238BC34A' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
}
.hbt-shop-toolbar .woocommerce-ordering select:focus,
body.woocommerce form.woocommerce-ordering select.orderby:focus,
.woocommerce-ordering select.orderby:focus {
    border-color: var(--primary, #8BC34A) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
}
/* Opcje w dropdown'ie — native styl z dopasowaną typografią
 * (większość przeglądarek i tak nie pozwala stylować <option>, ale
 * font-family:inherit przynajmniej naprawia Chrome/Firefox na
 * desktopie). */
.woocommerce-ordering select.orderby option {
    font-family: inherit;
    font-size: 14px;
    padding: 8px 12px;
    background: #fff;
    color: var(--dark, #1A1714);
}
/* Label "NA STRONIE:" + per-page select ppp — ten sam styl dla spójności */
.hbt-toolbar-ppp__select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 10px 32px 10px 12px !important;
    border: 1.5px solid var(--border, #E0E0E0) !important;
    border-radius: var(--r, 6px) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%237CB342' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px 7px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: var(--dark, #1A1714) !important;
    cursor: pointer !important;
    outline: 0 !important;
    transition: border-color .15s, box-shadow .15s;
}
.hbt-toolbar-ppp__select:hover { border-color: var(--primary, #8BC34A) !important; }
.hbt-toolbar-ppp__select:focus {
    border-color: var(--primary, #8BC34A) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
}

/* (3b) Toolbar anti-overlap — wrapowanie, min-width:0 na wszystkim,
 * count ma flex:1 a prawa strona flex:0 0 auto. Na <900px count zajmuje
 * 100% szerokości i ląduje nad sortowaniem (nie obok, nie na). */
.hbt-shop-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    row-gap: 10px !important;
}
.hbt-shop-toolbar > * { min-width: 0 !important; }
.hbt-shop-toolbar .hbt-toolbar-count,
.hbt-shop-toolbar > div:first-child,
.hbt-shop-toolbar .woocommerce-result-count {
    flex: 1 1 240px !important;
    order: 1 !important;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}
.hbt-shop-toolbar .hbt-toolbar-right {
    flex: 0 0 auto !important;
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}
.hbt-shop-toolbar .hbt-toolbar-ppp {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}
.hbt-shop-toolbar .hbt-toolbar-ppp__label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: var(--text-l, #616161) !important;
}
@media (max-width: 767px) {
    .hbt-shop-toolbar .hbt-toolbar-count,
    .hbt-shop-toolbar > div:first-child,
    .hbt-shop-toolbar .woocommerce-result-count {
        flex: 1 1 100% !important;
    }
    .hbt-shop-toolbar .hbt-toolbar-right {
        flex: 1 1 100% !important;
        justify-content: space-between !important;
    }
    .hbt-shop-toolbar .woocommerce-ordering select,
    .hbt-shop-toolbar .woocommerce-ordering select.orderby {
        min-width: 0 !important;
        width: 100% !important;
    }
    .hbt-shop-toolbar .woocommerce-ordering {
        flex: 1 1 auto !important;
    }
}

/* (4) Pagination — czysta, bez przestarzałej szarej ramki WooCommerce.
 * Scoped do .hbt-shop-wrap (sklep/kategoria/marka) — NIE dotyka blog
 * pagination ani komentarzy. Kolor hover/active w palecie HBT (primary
 * #8BC34A), nie "#ff6600" z promptu (klient = HBT, kolor marki to zielony). */
.hbt-shop-wrap nav.woocommerce-pagination,
.hbt-shop-main nav.woocommerce-pagination {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 40px 0 0 !important;
    text-align: center !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul,
.hbt-shop-wrap nav.woocommerce-pagination ul.page-numbers,
.hbt-shop-main nav.woocommerce-pagination ul {
    border: 0 !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    overflow: visible !important;
    box-shadow: none !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul li,
.hbt-shop-main nav.woocommerce-pagination ul li {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    overflow: visible !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul li::before,
.hbt-shop-wrap nav.woocommerce-pagination ul li::after,
.hbt-shop-main nav.woocommerce-pagination ul li::before,
.hbt-shop-main nav.woocommerce-pagination ul li::after {
    content: none !important;
    display: none !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul li a,
.hbt-shop-wrap nav.woocommerce-pagination ul li span,
.hbt-shop-main nav.woocommerce-pagination ul li a,
.hbt-shop-main nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid var(--border, #E0E0E0) !important;
    border-radius: var(--r, 6px) !important;
    background: #fff !important;
    color: var(--dark, #1A1714) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: background .15s, color .15s, border-color .15s, transform .1s !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul li a:hover,
.hbt-shop-main nav.woocommerce-pagination ul li a:hover {
    background: var(--primary, #8BC34A) !important;
    color: #fff !important;
    border-color: var(--primary, #8BC34A) !important;
    transform: translateY(-1px);
}
.hbt-shop-wrap nav.woocommerce-pagination ul li span.current,
.hbt-shop-wrap nav.woocommerce-pagination ul li span.page-numbers.current,
.hbt-shop-main nav.woocommerce-pagination ul li span.current,
.hbt-shop-main nav.woocommerce-pagination ul li span.page-numbers.current {
    background: var(--primary, #8BC34A) !important;
    color: #fff !important;
    border-color: var(--primary, #8BC34A) !important;
    box-shadow: 0 3px 10px rgba(139, 195, 74, 0.28) !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul li a.next,
.hbt-shop-wrap nav.woocommerce-pagination ul li a.prev,
.hbt-shop-main nav.woocommerce-pagination ul li a.next,
.hbt-shop-main nav.woocommerce-pagination ul li a.prev {
    font-weight: 700 !important;
    padding: 0 16px !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul li span.dots,
.hbt-shop-main nav.woocommerce-pagination ul li span.dots {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--text-l, #616161) !important;
}
.hbt-shop-wrap nav.woocommerce-pagination ul li span.dots:hover,
.hbt-shop-main nav.woocommerce-pagination ul li span.dots:hover {
    transform: none !important;
}

/* ================================================================
 * v2.5 — FULL VISUAL REPAIR BATCH (2026-04-20)
 * ----------------------------------------------------------------
 * Gruntowna naprawa po rozsypaniu wizualnym: archiwum/kategorie,
 * related products, koszyk (tabela + pusty), checkout (metody
 * płatności + układ), blog + kontakt (mobile spacing, stacking).
 * Wszystkie reguły używają zmiennych --primary / --dark / --border
 * (zdefiniowane w :root na początku style.css).
 * Mobile-first: bez @media = base; @media tylko dla większych ekranów.
 * ================================================================ */

/* ---------------------------------------------------------------- */
/* 1) KAFELKI PRODUKTÓW — ARCHIWUM SKLEPU / KATEGORIE / MARKI       */
/* Bulletproof fallback gdy content-product.php nie wyrenderuje     */
/* .hbt-loop-card (np. wyniki wyszukiwania, stare widoki, wtyczki). */
/* ---------------------------------------------------------------- */

.woocommerce ul.products,
.woocommerce-page ul.products,
.hbt-shop-main ul.products,
.hbt-main-wrap ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
    width: 100% !important;
}

/* Gęstszy grid na węższych ekranach */
@media (max-width: 600px) {
    .woocommerce ul.products,
    .hbt-shop-main ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Każdy kafelek = flex column, równa wysokość w wierszu, CTA na dole */
.woocommerce ul.products > li.product,
.woocommerce-page ul.products > li.product,
.hbt-shop-main ul.products > li.product,
.hbt-main-wrap ul.products > li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: var(--r-lg, 10px) !important;
    overflow: hidden !important;
    transition: box-shadow .2s, border-color .2s !important;
}
.woocommerce ul.products > li.product:hover {
    border-color: var(--primary-l) !important;
    box-shadow: 0 12px 28px var(--shadow) !important;
}

/* Miniatury — stały aspect-ratio, placeholder "brak zdjęcia"
 * nie rozciąga się już do pionowych pasków */
.woocommerce ul.products > li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products > li.product > a:first-of-type {
    display: block !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    background: var(--bg2) !important;
    overflow: hidden !important;
}
.woocommerce ul.products > li.product .woocommerce-LoopProduct-link img,
.woocommerce ul.products > li.product a img,
.woocommerce ul.products > li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products > li.product img.wp-post-image {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

/* Tytuł — maks. 2 linie z wielokropkiem; min-height rezerwuje slot
 * 2-liniowy dla krótkich nazw, wiersz nie "skacze". */
.woocommerce ul.products > li.product h2,
.woocommerce ul.products > li.product h3,
.woocommerce ul.products > li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: calc(1.35em * 2) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--dark) !important;
    margin: 10px 14px 6px !important;
    padding: 0 !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

/* Hierarchia cen: brutto duże + zielone, netto/omnibus drobne szare */
.woocommerce ul.products > li.product .price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 2px 6px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    margin: 4px 14px 10px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}
.woocommerce ul.products > li.product .price ins {
    background: transparent !important;
    text-decoration: none !important;
    color: inherit !important;
    font-weight: inherit !important;
}
.woocommerce ul.products > li.product .price del,
.woocommerce ul.products > li.product .price del * {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--text-l) !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1.5px !important;
}
.woocommerce ul.products > li.product .wc-price-history,
.woocommerce ul.products > li.product .wc-price-history *,
.woocommerce ul.products > li.product .price small,
.woocommerce ul.products > li.product .woocommerce-price-suffix {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
    line-height: 1.4 !important;
    margin-top: 2px !important;
}
/* Kwota + "zł" zawsze razem */
.woocommerce ul.products > li.product .woocommerce-Price-amount,
.woocommerce ul.products > li.product .woocommerce-Price-amount bdi {
    white-space: nowrap !important;
    display: inline-block !important;
}

/* CTA "Dodaj do koszyka" — przyklejony do dołu kafelka */
.woocommerce ul.products > li.product a.button,
.woocommerce ul.products > li.product .add_to_cart_button,
.woocommerce ul.products > li.product .button.product_type_simple,
.woocommerce ul.products > li.product .button.product_type_variable {
    margin: auto 14px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    padding: 11px 14px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--r, 6px) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
.woocommerce ul.products > li.product a.button:hover,
.woocommerce ul.products > li.product .add_to_cart_button:hover {
    background: var(--primary-d) !important;
}

/* ---------------------------------------------------------------- */
/* 2) RELATED / UP-SELLS / CROSS-SELLS — napraw rozsypane kafelki   */
/* Problem: dziedziczenie .columns-4 + inline-style szerokości z    */
/* legacy WooCommerce daje pionowe paski. Reset + własny grid.      */
/* ---------------------------------------------------------------- */

.related.products,
.upsells.products,
.cross-sells,
section.related.products,
section.up-sells.upsells.products {
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 32px 0 0 !important;
    padding: 24px 0 0 !important;
    border-top: 1px solid var(--border-l);
}
.related.products > h2,
.upsells.products > h2,
.cross-sells > h2 {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

/* Wewnętrzna lista produktów — własny grid niezależny od .columns-N */
.related.products ul.products,
.upsells.products ul.products,
.cross-sells ul.products,
.related.products > ul.products.columns-2,
.related.products > ul.products.columns-3,
.related.products > ul.products.columns-4,
.upsells > ul.products,
.cross-sells > ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    float: none !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Reset inline-style="width: ...px" wtryskiwanego przez karuzele
 * (slick/owl/swiper) i legacy WooCommerce columns. */
.related.products ul.products > li.product,
.upsells.products ul.products > li.product,
.cross-sells ul.products > li.product,
.related.products > ul.products > li.product[style],
.upsells.products > ul.products > li.product[style] {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}
/* Odporność na wylewający się długi tekst / niełamliwy sku */
.related.products ul.products > li.product *,
.upsells.products ul.products > li.product *,
.cross-sells ul.products > li.product * {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .related.products ul.products,
    .upsells.products ul.products,
    .cross-sells ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 14px !important;
    }
}

/* ---------------------------------------------------------------- */
/* 3) KOSZYK — tabela (X / miniatura / nazwa / cena / qty / suma)   */
/* Wymusza rozsądne szerokości kolumn żeby "X" nie lądował w pustej */
/* przestrzeni a .product-name nie zapadała się w pionowe paski.    */
/* ---------------------------------------------------------------- */

@media (min-width: 992px) {
    body.woocommerce-cart .woocommerce-cart-form table.shop_table {
        table-layout: fixed !important;
        width: 100% !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td {
        vertical-align: middle !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-remove,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td.product-remove {
        width: 44px !important;
        padding: 12px 8px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-thumbnail,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td.product-thumbnail {
        width: 100px !important;
        padding: 12px 10px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-name,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td.product-name {
        width: auto !important;
        min-width: 0 !important;
        padding: 14px 16px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td.product-price {
        width: 110px !important;
        text-align: right !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td.product-quantity {
        width: 120px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-subtotal,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td.product-subtotal {
        width: 120px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
    /* Kupon + "Zaktualizuj koszyk" — estetycznie pod tabelą */
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.actions > td {
        padding: 16px !important;
        background: var(--bg2) !important;
    }
    body.woocommerce-cart .woocommerce-cart-form .coupon {
        display: inline-flex !important;
        align-items: stretch;
        gap: 0;
        flex-wrap: nowrap;
    }
}

/* KOSZYK MOBILE — klasyczny WooCommerce pattern: table→block,
 * ukrycie <thead>, etykiety z data-title::before. Rzędy wyglądają
 * jak karty. */
@media (max-width: 991px) {
    body.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.woocommerce-cart .shop_table_responsive {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead,
    body.woocommerce-cart .shop_table_responsive thead {
        display: none !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td,
    body.woocommerce-cart .shop_table_responsive tbody,
    body.woocommerce-cart .shop_table_responsive tr,
    body.woocommerce-cart .shop_table_responsive td {
        display: block !important;
        width: 100% !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item,
    body.woocommerce-cart .shop_table_responsive tr.cart_item {
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: var(--r-lg, 10px) !important;
        padding: 14px !important;
        margin: 0 0 12px !important;
        box-shadow: 0 2px 8px var(--shadow-s);
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td,
    body.woocommerce-cart .shop_table_responsive tr.cart_item td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 8px 0 !important;
        border: 0 !important;
        border-bottom: 1px dashed var(--border-l) !important;
        text-align: left !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td:last-child {
        border-bottom: 0 !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td::before,
    body.woocommerce-cart .shop_table_responsive tr.cart_item td::before {
        content: attr(data-title);
        flex: 0 0 auto;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--text-l);
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove,
    body.woocommerce-cart .shop_table_responsive tr.cart_item td.product-remove {
        justify-content: flex-end !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove::before,
    body.woocommerce-cart .shop_table_responsive tr.cart_item td.product-remove::before {
        content: "" !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail img {
        max-width: 72px !important;
        width: 72px !important;
        height: auto !important;
    }
}

/* ---------------------------------------------------------------- */
/* 3B) PUSTY KOSZYK — wyśrodkowana karta + duża CTA                 */
/* WooCommerce renderuje <p class="cart-empty woocommerce-info"> +  */
/* <p class="return-to-shop"><a class="button wc-backward">…</a>    */
/* ---------------------------------------------------------------- */

body.woocommerce-cart .cart-empty.woocommerce-info {
    display: block !important;
    position: relative !important;
    max-width: 640px !important;
    margin: 80px auto 20px !important;
    padding: 48px 32px 32px !important;
    text-align: center !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: var(--dark) !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-left: 1px solid var(--border-l) !important;
    border-radius: var(--r-lg, 10px) !important;
    box-shadow: 0 4px 18px var(--shadow-s) !important;
}
/* Nadpisuje globalny .woocommerce-info::before { content:"ℹ" } */
body.woocommerce-cart .cart-empty.woocommerce-info::before {
    content: "\f07a" !important; /* FA cart */
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
    font-size: 44px !important;
    color: var(--primary-l) !important;
    background: transparent !important;
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    border-radius: 0 !important;
}
body.woocommerce-cart p.return-to-shop {
    margin: 0 auto 80px !important;
    padding: 0 24px !important;
    text-align: center !important;
}
body.woocommerce-cart p.return-to-shop a.wc-backward,
body.woocommerce-cart p.return-to-shop a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 52px !important;
    padding: 14px 34px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--r, 6px) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(139, 195, 74, .32) !important;
    transition: background .15s, transform .1s !important;
}
body.woocommerce-cart p.return-to-shop a.wc-backward:hover {
    background: var(--primary-d) !important;
    color: #fff !important;
}

/* ---------------------------------------------------------------- */
/* 4) CHECKOUT — metody płatności jak karty + desktop dwukolumnowy  */
/* Domyślna Woo daje gołe <ul><li><input><label>. Zamieniamy na     */
/* karty z obramowaniem, state dla :checked, konsystentne inputy.   */
/* ---------------------------------------------------------------- */

body.woocommerce-checkout #payment {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}
body.woocommerce-checkout #payment ul.payment_methods {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body.woocommerce-checkout #payment ul.payment_methods > li {
    display: block !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    list-style: none !important;
    transition: border-color .15s, background .15s, box-shadow .15s !important;
}
body.woocommerce-checkout #payment ul.payment_methods > li:hover {
    border-color: var(--primary-l) !important;
}
/* Wybrana metoda — zielona ramka + delikatne tło */
body.woocommerce-checkout #payment ul.payment_methods > li:has(input[type="radio"]:checked) {
    border-color: var(--primary) !important;
    background: rgba(139, 195, 74, .06) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, .14) !important;
}
body.woocommerce-checkout #payment ul.payment_methods > li > label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}
body.woocommerce-checkout #payment ul.payment_methods > li input[type="radio"] {
    accent-color: var(--primary) !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
body.woocommerce-checkout #payment ul.payment_methods > li img {
    max-height: 24px !important;
    width: auto !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
}
body.woocommerce-checkout #payment .payment_box {
    margin: 12px 0 0 !important;
    padding: 12px 14px !important;
    background: var(--bg2) !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: var(--text) !important;
    line-height: 1.5 !important;
}
body.woocommerce-checkout #payment .payment_box::before {
    display: none !important;
}

/* Checkout desktop — billing + shipping STACK pionowy (nie 2-col obok siebie).
 * v2.5.3 fix: 2-col dawało za wąskie kolumny formularza (340px każda na 1832px
 * ekranie); formularz adresowy potrzebuje pełnej szerokości. */
@media (min-width: 992px) {
    body.woocommerce-checkout form.checkout #customer_details > .col2-set {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }
    body.woocommerce-checkout form.checkout .col2-set .col-1,
    body.woocommerce-checkout form.checkout .col2-set .col-2 {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 0 20px !important;
    }
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields {
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 12px !important;
        padding: 24px !important;
        margin: 0 0 20px !important;
        box-shadow: 0 2px 8px var(--shadow-s) !important;
    }
    /* Unifikacja inputów na desktopie (mobile ma już swoje reguły) */
    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--single {
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        border: 1px solid var(--border) !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: var(--dark) !important;
        line-height: 1.4 !important;
        font-family: inherit !important;
        box-shadow: none !important;
        transition: border-color .15s, box-shadow .15s !important;
    }
    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 .form-row .select2-selection--single:focus {
        border-color: var(--primary) !important;
        outline: 0 !important;
        box-shadow: 0 0 0 3px rgba(139, 195, 74, .18) !important;
    }
}

/* Mobile checkout — "Twoje zamówienie" pod "Dane rozliczeniowe"
 * z odstępem (gap przez flex-direction column) */
@media (max-width: 991px) {
    body.woocommerce-checkout form.checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    body.woocommerce-checkout #customer_details { order: 1; }
    body.woocommerce-checkout h3#order_review_heading { order: 2; margin-top: 8px !important; }
    body.woocommerce-checkout #order_review { order: 3; margin-top: 0 !important; }
}

/* ---------------------------------------------------------------- */
/* 5) BLOG + KONTAKT — mobile padding + stacking kafelków info      */
/* ---------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Globalne: content-area wewnątrz .hbt-main-wrap ma 15px bocznych
     * marginesów, żeby teksty/kafelki nie kleiły się do krawędzi. */
    body.blog .hbt-main-wrap,
    body.archive .hbt-main-wrap,
    body.single-post .hbt-main-wrap,
    body.page .hbt-main-wrap,
    body.page-template-page-contact .hbt-main-wrap {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    /* Wewnętrzne grid-y blogu/kontaktu bez dodatkowych marginesów bocznych
     * (już dostały je z wrappera) */
    body.blog .blog-posts,
    body.blog .blog-posts.posts-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Sekcje shortcodów kontaktu — żeby nie "wylewały się" za wrapper */
    .contact-hero,
    .contact-tiles,
    .contact-form-section,
    .contact-departments {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}

/* /kontakt — 3 kafelki informacyjne (Adres, Telefon, Godziny) na
 * telefonach układają się w kolumnie, nie siatce 2×2. */
@media (max-width: 640px) {
    .contact-tile-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    .contact-tile {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
}
/* ================================================================ */
/* KONIEC v2.5                                                       */
/* ================================================================ */

/* ================================================================
 * v2.5.0 — REINFORCE (2026-04-21)
 * ----------------------------------------------------------------
 * Diagnoza: functions.php wstrzykuje przez wp_head inline <style>
 * z regułami globalnymi (BEZ @media), które zamieniają tabelę
 * koszyka w "karty" na każdej szerokości ekranu:
 *   body.woocommerce-cart .hbt-main-wrap table.cart thead{display:none}
 *   .hbt-main-wrap table.cart tbody tr.cart_item{display:block}
 *   .hbt-main-wrap table.cart tbody tr.cart_item > td{display:flex;
 *     justify-content:space-between;text-align:right;gap:12px}
 *   td::before{content:attr(data-title)}
 * Na desktopie daje to: thumbnail-cell pustą (ukryty thead), product-
 * name zgniecione do ~40px z `word-break` (litery w pionie), data-title
 * wyświetlane jako "P-R-O-D-U-K-T" pionowo.
 *
 * Specyficzność tej reguły to 0,0,5,4 — moje v2.5 używało 0,0,4,4 →
 * przegrywało. Reinforce dodaje .hbt-main-wrap do łańcucha (0,0,6,4)
 * i przywraca display:table na ≥992px. Mobile (<992px) pozostaje
 * bez zmian — funkcje z functions.php dalej dają układ kart.
 * ================================================================ */

@media (min-width: 992px) {

    /* Restore table display (undo display:block/flex z functions.php) */
    body.woocommerce-cart .hbt-main-wrap table.cart,
    body.woocommerce-cart .hbt-main-wrap table.shop_table,
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart,
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table {
        display: table !important;
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart thead,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead {
        display: table-header-group !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart thead tr,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead tr {
        display: table-row !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart tbody,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody {
        display: table-row-group !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart tbody tr.cart_item,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody tr,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody tr.cart_item,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody tr {
        display: table-row !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--border-l) !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart tbody tr.cart_item > td,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody tr.cart_item td,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody tr.cart_item > td,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody tr.cart_item td {
        display: table-cell !important;
        justify-content: initial !important;
        align-items: initial !important;
        gap: 0 !important;
        padding: 16px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--border-l) !important;
        text-align: left !important;
        vertical-align: middle !important;
    }
    /* Ukryj pseudo-etykiety data-title na desktopie */
    body.woocommerce-cart .hbt-main-wrap table.cart tbody tr.cart_item > td::before,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody tr.cart_item td::before,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody tr.cart_item > td::before,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody tr.cart_item td::before {
        content: none !important;
        display: none !important;
    }

    /* Explicit column widths — X / miniatura / nazwa / cena / qty / suma */
    body.woocommerce-cart .hbt-main-wrap table.cart thead th.product-remove,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody td.product-remove,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead th.product-remove,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody td.product-remove {
        width: 44px !important;
        padding: 14px 8px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart thead th.product-thumbnail,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody td.product-thumbnail,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead th.product-thumbnail,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody td.product-thumbnail {
        width: 100px !important;
        padding: 12px 10px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart td.product-thumbnail img,
    body.woocommerce-cart .hbt-main-wrap table.shop_table td.product-thumbnail img {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
        object-fit: contain !important;
        background: #fff;
        border: 1px solid var(--border-l);
        border-radius: var(--r, 6px);
        padding: 4px;
        box-sizing: border-box;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart thead th.product-name,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody td.product-name,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead th.product-name,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody td.product-name {
        width: auto !important;
        min-width: 0 !important;
        padding: 14px 16px !important;
        text-align: left !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart thead th.product-price,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody td.product-price,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead th.product-price,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody td.product-price {
        width: 110px !important;
        text-align: right !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart thead th.product-quantity,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody td.product-quantity,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead th.product-quantity,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody td.product-quantity {
        width: 120px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart thead th.product-subtotal,
    body.woocommerce-cart .hbt-main-wrap table.cart tbody td.product-subtotal,
    body.woocommerce-cart .hbt-main-wrap table.shop_table thead th.product-subtotal,
    body.woocommerce-cart .hbt-main-wrap table.shop_table tbody td.product-subtotal {
        width: 120px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
    /* Ikona "×" usuwania — zielona okrągła */
    body.woocommerce-cart .hbt-main-wrap table.cart td.product-remove a.remove,
    body.woocommerce-cart .hbt-main-wrap table.shop_table td.product-remove a.remove {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: var(--bg2) !important;
        color: var(--text-l) !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        transition: background .15s, color .15s !important;
    }
    body.woocommerce-cart .hbt-main-wrap table.cart td.product-remove a.remove:hover,
    body.woocommerce-cart .hbt-main-wrap table.shop_table td.product-remove a.remove:hover {
        background: var(--danger) !important;
        color: #fff !important;
    }
}

/* Pusty koszyk — reinforce z .hbt-main-wrap w łańcuchu (0,0,5,2) */
body.woocommerce-cart .hbt-main-wrap .cart-empty.woocommerce-info,
body.woocommerce-cart .hbt-main-wrap .wc-empty-cart-message .cart-empty {
    display: block !important;
    position: relative !important;
    max-width: 640px !important;
    margin: 80px auto 20px !important;
    padding: 48px 32px 32px !important;
    text-align: center !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: var(--dark) !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-left: 1px solid var(--border-l) !important;
    border-radius: var(--r-lg, 10px) !important;
    box-shadow: 0 4px 18px var(--shadow-s) !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-empty.woocommerce-info::before,
body.woocommerce-cart .hbt-main-wrap .wc-empty-cart-message .cart-empty::before {
    content: "\f07a" !important;
    font-family: "Font Awesome 5 Free", "FontAwesome", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
    font-size: 44px !important;
    color: var(--primary-l) !important;
    background: transparent !important;
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    border-radius: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap p.return-to-shop {
    margin: 0 auto 80px !important;
    padding: 0 24px !important;
    text-align: center !important;
}
body.woocommerce-cart .hbt-main-wrap p.return-to-shop a.wc-backward,
body.woocommerce-cart .hbt-main-wrap p.return-to-shop a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 52px !important;
    padding: 14px 34px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--r, 6px) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(139, 195, 74, .32) !important;
    transition: background .15s !important;
}
body.woocommerce-cart .hbt-main-wrap p.return-to-shop a.wc-backward:hover,
body.woocommerce-cart .hbt-main-wrap p.return-to-shop a.button:hover {
    background: var(--primary-d) !important;
    color: #fff !important;
}

/* Metody płatności — reinforce z .hbt-main-wrap (functions.php używa
 * tego samego prefixu, więc reinforce musi też go mieć) */
body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods > li {
    display: block !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    list-style: none !important;
    transition: border-color .15s, background .15s, box-shadow .15s !important;
}
body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods > li:has(input[type="radio"]:checked) {
    border-color: var(--primary) !important;
    background: rgba(139, 195, 74, .06) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, .14) !important;
}

/* Kafelki /kontakt — reinforce: 3 karty w kolumnie na ≤640px */
@media (max-width: 640px) {
    body.page-template-page-contact .hbt-main-wrap .contact-tile-grid,
    .page-template-page-contact .contact-tile-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        grid-template-columns: none !important;
    }
    body.page-template-page-contact .hbt-main-wrap .contact-tile,
    .page-template-page-contact .contact-tile {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
}
/* ================================================================ */
/* KONIEC v2.5.0 REINFORCE                                           */
/* ================================================================ */

/* ================================================================
 * v2.5.1 — KOSZYK + PODSUMOWANIE OD ZERA (2026-04-21)
 * ----------------------------------------------------------------
 * Rezygnuję z walki o display:table. functions.php wstrzykuje
 * display:block na <tr> i display:flex na <td> bez @media, i wygrywa
 * cascade. Zamiast tego wykorzystuję ten stan jako fundament i kładę
 * CSS GRID na tr.cart_item → cells (td) to block'y poukładane w
 * 6-kolumnowy wiersz na desktopie i 3-kolumnowy (z grid-area) na
 * mobile'u. Specyficzność 0,0,5,4 ≥ functions.php (0,0,5,4) + moje
 * rule'y są PÓŹNIEJ w stylesheet → wygrywają cascade ex aequo.
 *
 * Design: clean white cards z radius 14px, hover shadow, zielony
 * accent na cenach i CTA, szare muted ceny jednostkowe.
 * ================================================================ */

/* ---------- CART FORM wrapper reset ---------- */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ---------- TABLE reset — traktujemy jak kontener listy ---------- */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    table-layout: auto !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart thead,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table thead {
    display: none !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody {
    display: block !important;
    width: 100% !important;
}

/* ---------- CART ITEM ROW — grid card ---------- */
/* Desktop: 6 kolumn [X][thumb][name][price][qty][subtotal] */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 40px 96px minmax(0, 1fr) 100px 120px 110px !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    margin: 0 0 12px !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.04) !important;
    transition: border-color .2s, box-shadow .2s, transform .15s !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item:hover,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.cart_item:hover {
    border-color: var(--primary-l) !important;
    box-shadow: 0 8px 20px rgba(26, 23, 20, 0.08) !important;
}

/* ---------- CELLS: reset display:flex z functions.php → display:block */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item > td,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item td,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.cart_item > td,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    justify-content: unset !important;
    align-items: unset !important;
    gap: 0 !important;
    vertical-align: middle !important;
    color: var(--text) !important;
}

/* Ukryj pseudo-etykiety "PRODUKT", "CENA" etc. (data-title) */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item > td::before,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item td::before,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.cart_item > td::before,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.cart_item td::before {
    content: none !important;
    display: none !important;
}

/* ── KOMÓRKA: remove (×) ── */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 1 !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-remove a.remove,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-remove a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: var(--bg2) !important;
    color: var(--text-l) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background .15s, color .15s, transform .1s !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-remove a.remove:hover,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-remove a:hover {
    background: var(--danger) !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

/* ── KOMÓRKA: thumbnail ── */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-thumbnail {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 2 !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-thumbnail a {
    display: block !important;
    width: 80px !important;
    height: 80px !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    object-fit: contain !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    box-sizing: border-box !important;
}

/* ── KOMÓRKA: product-name ── */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-name {
    grid-column: 3 !important;
    min-width: 0 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-name a {
    display: block !important;
    color: var(--dark) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    margin: 0 0 4px !important;
    word-break: break-word !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-name a:hover {
    color: var(--primary-d) !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-name .variation,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-name dl {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: var(--text-l) !important;
}

/* ── KOMÓRKA: cena jednostkowa (wyciszona) ── */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-price {
    grid-column: 4 !important;
    text-align: right !important;
    color: var(--text-l) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* ── KOMÓRKA: quantity (stepper) ── */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 5 !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: stretch !important;
    background: #fff !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: border-color .15s !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-quantity .quantity:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-quantity input.qty {
    width: 54px !important;
    min-height: 38px !important;
    border: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
}

/* ── KOMÓRKA: subtotal (najważniejsza — zielony accent) ── */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-subtotal {
    grid-column: 6 !important;
    text-align: right !important;
    color: var(--primary-d) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-subtotal .woocommerce-Price-amount,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-subtotal .woocommerce-Price-amount bdi {
    color: inherit !important;
    font-weight: inherit !important;
    white-space: nowrap !important;
}

/* ---------- MOBILE (<992px): grid 3-col z grid-template-areas ---------- */
@media (max-width: 991px) {
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item,
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.cart_item {
        grid-template-columns: 80px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "thumb name remove"
            "thumb name name"
            "thumb price qty"
            "thumb sub   sub" !important;
        gap: 6px 14px !important;
        padding: 14px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-thumbnail {
        grid-area: thumb !important;
        align-self: start !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-thumbnail img {
        width: 80px !important;
        height: 80px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-name {
        grid-area: name !important;
        align-self: start !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-remove {
        grid-area: remove !important;
        justify-content: flex-end !important;
        align-self: start !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-price {
        grid-area: price !important;
        text-align: left !important;
        align-self: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-price::after {
        content: " /szt." !important;
        color: var(--text-l) !important;
        font-size: 11px !important;
        opacity: .7 !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-quantity {
        grid-area: qty !important;
        justify-content: flex-end !important;
        align-self: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form td.product-subtotal {
        grid-area: sub !important;
        text-align: right !important;
        font-size: 17px !important;
        align-self: center !important;
        padding-top: 8px !important;
        border-top: 1px dashed var(--border-l) !important;
        margin-top: 4px !important;
    }
}

/* ---------- ROW "actions" — coupon + update ---------- */
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.actions,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form table.shop_table tbody tr.actions {
    display: block !important;
    padding: 18px 20px !important;
    margin: 4px 0 0 !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(26, 23, 20, 0.04) !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form tr.actions > td,
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form tr.actions td {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form tr.actions > td::before { content: none !important; }

body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form .coupon {
    display: inline-flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form .coupon label {
    position: absolute !important;
    left: -9999px !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form input#coupon_code {
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border: 1.5px solid var(--border) !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
    background: #fff !important;
    width: 180px !important;
    outline: none !important;
    color: var(--dark) !important;
    transition: border-color .15s !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form input#coupon_code:focus {
    border-color: var(--primary) !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form button[name="apply_coupon"] {
    min-height: 44px !important;
    padding: 10px 20px !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: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .15s !important;
    white-space: nowrap !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form button[name="apply_coupon"]:hover {
    background: var(--primary-d) !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form button[name="update_cart"] {
    min-height: 44px !important;
    padding: 10px 22px !important;
    background: #fff !important;
    color: var(--dark) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all .15s !important;
    margin-left: auto !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled) {
    border-color: var(--primary) !important;
    color: var(--primary-d) !important;
    background: rgba(139, 195, 74, 0.05) !important;
}
body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form button[name="update_cart"]:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

@media (max-width: 600px) {
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form .coupon,
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form input#coupon_code {
        width: 100% !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form input#coupon_code {
        border-right: 1.5px solid var(--border) !important;
        border-radius: 8px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form button[name="apply_coupon"] {
        width: 100% !important;
        border-radius: 8px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .woocommerce-cart-form button[name="update_cart"] {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* ================================================================
 * v2.5.1 — PODSUMOWANIE KOSZYKA (cart totals sidebar) OD ZERA
 * ================================================================ */

body.woocommerce-cart .hbt-main-wrap .cart-collaterals {
    display: block !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 4px 16px rgba(26, 23, 20, 0.05) !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border-bottom: 2px solid var(--border-l) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Tabela sum wewnątrz totals card — sprowadzamy do czytelnej listy */
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table,
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table.shop_table {
    display: table !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table tbody {
    display: table-row-group !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table tr {
    display: table-row !important;
    border: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table th,
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table td {
    display: table-cell !important;
    padding: 14px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    vertical-align: top !important;
    text-align: left !important;
    color: var(--dark) !important;
    font-size: 14px !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table th::before,
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table td::before {
    content: none !important;
    display: none !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table th {
    font-weight: 600 !important;
    color: var(--dark) !important;
    width: 50% !important;
}
body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table td {
    text-align: right !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
}

/* Przesyłka — radio list bez borderów, z ikonką accent */
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.shipping th,
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.shipping td {
    vertical-align: top !important;
    padding: 14px 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.shipping td {
    text-align: left !important;
    font-weight: 500 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals ul#shipping_method {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals ul#shipping_method li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals ul#shipping_method li:last-child {
    margin-bottom: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals ul#shipping_method input[type="radio"] {
    accent-color: var(--primary) !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals ul#shipping_method label {
    font-size: 14px !important;
    color: var(--dark) !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals .woocommerce-shipping-destination {
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    background: var(--bg2) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: var(--text) !important;
    line-height: 1.5 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals .woocommerce-shipping-destination strong {
    color: var(--dark) !important;
    font-weight: 700 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals .shipping-calculator-button {
    color: var(--primary-d) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 8px !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals .shipping-calculator-button:hover {
    text-decoration: underline !important;
}

/* Subtotal row — muted */
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.cart-subtotal th,
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.cart-subtotal td {
    font-weight: 600 !important;
    color: var(--dark) !important;
}

/* Order-total row — HERO: duża zielona kwota + VAT inline */
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total th,
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total td {
    padding-top: 18px !important;
    padding-bottom: 6px !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    vertical-align: baseline !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total th {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--primary-d) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total td {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total td .woocommerce-Price-amount,
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total td .woocommerce-Price-amount bdi {
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}
/* VAT note (small) pod order-total */
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total small,
body.woocommerce-cart .hbt-main-wrap .cart_totals .includes_tax {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
    font-style: normal !important;
    margin-top: 2px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

/* ---------- CTA: Przejdź do płatności (duży zielony button) ---------- */
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout {
    padding: 18px 0 0 !important;
    margin: 0 !important;
    display: block !important;
}
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout .button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 16px 20px !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: .5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.32) !important;
    transition: background .15s, transform .1s, box-shadow .15s !important;
}
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout .button:hover {
    background: var(--primary-d) !important;
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.45) !important;
}
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(1px) !important;
}
/* ================================================================ */
/* KONIEC v2.5.1                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.2 — BULLETPROOF CART FIX (2026-04-21)
 * ----------------------------------------------------------------
 * Root cause zidentyfikowany przez live inspection (Claude in Chrome):
 *
 * functions.php wstrzykuje via wp_head 3 agresywne bloki <style>:
 *   1) linia 1094-1400 ("hbt-v7-chrome-vars") — dubluje się w 1403-1712
 *   2) linia 4415 — grid .woocommerce {grid-template-columns: 1fr 360px}
 *      + grid-column:1 na form.woocommerce-cart-form
 *   3) linia 4449 — Cart table reset z table-layout:auto !important na
 *      table.shop_table.cart (!!) + width:36px na td.product-remove
 *
 * Inline <style> ma 4 klasy w selektorze (.woocommerce-cart, .hbt-main-wrap,
 * .shop_table, .cart) = 0,0,4,2 + ładuje się PO <link> do style.css →
 * wygrywa cascade przy równej specyficzności.
 *
 * Moje v2.5.1 miało tylko .shop_table (1 klasa na table) = 0,0,4,1 →
 * przegrywało specyficznością. TEST CHROME potwierdził: dodanie .cart
 * (2 klasy na table = .shop_table.cart) + dodanie form.woocommerce-cart-form
 * (daje 5 klas) → wygrywa z functions.php.
 *
 * Strategia v2.5.2:
 *   • 5+ klas w każdym selektorze (bulletproof specyficzność)
 *   • .shop_table.cart zamiast samego .shop_table
 *   • table-layout: fixed + explicit column widths
 *   • Forced grid-column:1 z max specyficznością na form
 * ================================================================ */

/* ---------- WOOCOMMERCE WRAPPER: 2-col grid forced ---------- */
@media (min-width: 992px) {
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .woocommerce,
    body.woocommerce-cart .hbt-main-wrap .container-full .woocommerce,
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .container-full .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 360px !important;
        gap: 28px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .woocommerce > .woocommerce-notices-wrapper,
    body.woocommerce-cart .hbt-main-wrap .container-full .woocommerce > .woocommerce-notices-wrapper {
        grid-column: 1 / -1 !important;
        margin: 0 0 14px !important;
    }
    /* FORM: specificity 0,0,5,3 - wins over functions.php 0,0,4,2 */
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .woocommerce > form.woocommerce-cart-form,
    body.woocommerce-cart .hbt-main-wrap .container-full .woocommerce > form.woocommerce-cart-form {
        grid-column: 1 / 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        align-self: start !important;
    }
    /* CART COLLATERALS (summary): 360px fixed width column 2 */
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .woocommerce > .cart-collaterals,
    body.woocommerce-cart .hbt-main-wrap .container-full .woocommerce > .cart-collaterals {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        align-self: start !important;
    }
}
@media (min-width: 1400px) {
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .woocommerce,
    body.woocommerce-cart .hbt-main-wrap .container-full .woocommerce {
        grid-template-columns: minmax(0, 1fr) 400px !important;
        gap: 32px !important;
    }
}

/* ---------- TABLE: force fixed layout with explicit widths ---------- */
/* Specificity: body + .woocommerce-cart + .hbt-main-wrap + form +
   .woocommerce-cart-form + table + .shop_table.cart = 0,0,5,3
   → wins over functions.php 0,0,4,2 (.hbt-main-wrap table.shop_table.cart) */

@media (min-width: 992px) {
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 0 12px !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead {
        display: table-header-group !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody {
        display: table-row-group !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        display: table-row !important;
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 8px rgba(26, 23, 20, 0.04) !important;
    }

    /* THEAD header row */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th {
        background: transparent !important;
        padding: 10px 14px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: .05em !important;
        color: var(--text-l) !important;
        border: 0 !important;
        border-bottom: 2px solid var(--border-l) !important;
        text-align: left !important;
        vertical-align: middle !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-price,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-subtotal {
        text-align: right !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-quantity {
        text-align: center !important;
    }

    /* TBODY cells: reset display:flex from functions.php */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td {
        display: table-cell !important;
        padding: 16px 14px !important;
        margin: 0 !important;
        background: #fff !important;
        border: 0 !important;
        border-top: 1px solid var(--border-l) !important;
        vertical-align: middle !important;
        text-align: left !important;
        justify-content: unset !important;
        align-items: unset !important;
        gap: 0 !important;
        color: var(--text) !important;
        font-size: 14px !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item:first-child td {
        border-top: 0 !important;
    }
    /* Hide data-title pseudo-labels on desktop */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td::before,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td::before {
        content: none !important;
        display: none !important;
    }

    /* COLUMN WIDTHS */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-remove,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody td.product-remove {
        width: 44px !important;
        padding: 14px 4px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-thumbnail,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody td.product-thumbnail {
        width: 100px !important;
        padding: 10px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-name,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody td.product-name {
        width: auto !important;
        min-width: 0 !important;
        text-align: left !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-price,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody td.product-price {
        width: 110px !important;
        text-align: right !important;
        color: var(--text-l) !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-quantity,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody td.product-quantity {
        width: 120px !important;
        text-align: center !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-subtotal,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody td.product-subtotal {
        width: 130px !important;
        text-align: right !important;
        color: var(--primary-d) !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal .woocommerce-Price-amount,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal .woocommerce-Price-amount bdi {
        color: inherit !important;
        font-weight: inherit !important;
    }

    /* Thumbnail image */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        object-fit: contain !important;
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 10px !important;
        padding: 6px !important;
        box-sizing: border-box !important;
    }

    /* Product name link */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a {
        color: var(--dark) !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a:hover {
        color: var(--primary-d) !important;
    }

    /* Quantity stepper */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity .quantity {
        display: inline-flex !important;
        align-items: stretch !important;
        background: #fff !important;
        border: 1.5px solid var(--border) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity input.qty {
        width: 54px !important;
        min-height: 38px !important;
        border: 0 !important;
        text-align: center !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: var(--dark) !important;
        background: transparent !important;
        outline: none !important;
        padding: 0 !important;
    }

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

    /* Actions row (coupon + update) */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions {
        display: table-row !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions > td {
        display: table-cell !important;
        padding: 18px 14px !important;
        border: 0 !important;
        border-top: 2px solid var(--border-l) !important;
        background: #fff !important;
    }
}

/* ---------- SUMMARY (cart_totals) sidebar — bulletproof ---------- */
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals,
body.woocommerce-cart .hbt-main-wrap .container-full .cart-collaterals .cart_totals {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 4px 16px rgba(26, 23, 20, 0.05) !important;
    margin: 0 !important;
    width: 100% !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border-bottom: 2px solid var(--border-l) !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table tr {
    display: table-row !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table th,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table td {
    display: table-cell !important;
    padding: 14px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    vertical-align: top !important;
    text-align: left !important;
    font-size: 14px !important;
    color: var(--dark) !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table th::before,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table td::before {
    content: none !important;
    display: none !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table th {
    font-weight: 600 !important;
    width: 50% !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals table.shop_table td {
    text-align: right !important;
    font-weight: 700 !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total th,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total td {
    padding-top: 18px !important;
    padding-bottom: 6px !important;
    border-bottom: 0 !important;
    color: var(--primary-d) !important;
    vertical-align: baseline !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total th {
    font-size: 16px !important;
    font-weight: 700 !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total td {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total small {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
    font-style: normal !important;
    margin-top: 4px !important;
}

/* Proceed-to-checkout CTA */
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .wc-proceed-to-checkout {
    padding: 18px 0 0 !important;
    margin: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 16px 20px !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: .5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.32) !important;
    transition: background .15s, transform .1s !important;
}
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--primary-d) !important;
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.45) !important;
}

/* ---------- MOBILE <992px: single column stack ---------- */
@media (max-width: 991px) {
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .woocommerce,
    body.woocommerce-cart .hbt-main-wrap .container-full .woocommerce {
        display: block !important;
        grid-template-columns: none !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form,
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 0 16px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.5.2                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.3 — CHECKOUT LAYOUT BULLETPROOF (2026-04-21)
 * ----------------------------------------------------------------
 * Problem (live inspection): functions.php ma ID-selector
 *   .hbt-main-wrap .woocommerce-checkout #customer_details {
 *     display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
 *   }
 * ID daje specyficzność 0,1,2,0 (1 ID + 2 klasy) — wygrywa wszystko
 * co ma tylko klasy. Zamieniało to billing + shipping na 2 wąskie
 * kolumny obok siebie (~340px każda) zamiast stackować pionowo.
 *
 * Fix (w functions.php):4450 zmieniłem grid 1fr 1fr → block. Tu
 * reinforce + layout 2-col na poziomie form.checkout (customer |
 * order_review) z sticky order review po prawej.
 * ================================================================ */

/* Force #customer_details block display — bulletproof specificity
 * (ID + 3 classes + 2 elements = 0,1,3,2) */
body.woocommerce-checkout .hbt-main-wrap form.checkout #customer_details {
    display: block !important;
}
body.woocommerce-checkout .hbt-main-wrap form.checkout #customer_details > .col2-set {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-checkout .hbt-main-wrap form.checkout .col2-set .col-1,
body.woocommerce-checkout .hbt-main-wrap form.checkout .col2-set .col-2 {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
}

/* Main checkout layout: 2-col (billing+shipping | order review sticky) */
@media (min-width: 992px) {
    body.woocommerce-checkout .hbt-main-wrap form.checkout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 400px !important;
        gap: 32px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout #customer_details {
        grid-column: 1 / 2 !important;
        grid-row: 1 / span 2 !important;
        min-width: 0 !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout h3#order_review_heading {
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--dark) !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout #order_review {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
        margin: 0 !important;
    }
}

/* 1600px+: nieco szerszy sidebar zamówienia */
@media (min-width: 1600px) {
    body.woocommerce-checkout .hbt-main-wrap form.checkout {
        grid-template-columns: minmax(0, 1fr) 440px !important;
        gap: 36px !important;
    }
}

/* Mobile <992px: single column stack */
@media (max-width: 991px) {
    body.woocommerce-checkout .hbt-main-wrap form.checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout #customer_details {
        order: 1 !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout h3#order_review_heading {
        order: 2 !important;
        margin: 8px 0 4px !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout #order_review {
        order: 3 !important;
        margin: 0 !important;
    }
}

/* ================================================================
 * v2.5.3 — KOSZYK SZLIF (2026-04-21)
 * ----------------------------------------------------------------
 * User feedback: "koszyk uległ poprawie, ale czcionki/kolory rozjechane,
 * układ do szlifu razem z tłami w blokach".
 * Design: shared-card layout — form = biała karta z padding, rzędy
 * wewnątrz oddzielone border-bottom (klasyczny WooCommerce look).
 * ================================================================ */

/* Rzędy: transparent bg + separator zamiast własnej karty per rząd
 * (form.woocommerce-cart-form już jest białą kartą z padding:22px) */
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item:last-of-type {
    border-bottom: 0 !important;
}
/* Komórki wewnątrz rzędu: przezroczyste bez własnego bordera */
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td,
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td {
    background: transparent !important;
    border: 0 !important;
    border-top: 0 !important;
}

/* Thead: muted header row z subtelnym tłem bg2 */
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th {
    background: var(--bg2) !important;
    color: var(--text-l) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
}

/* Actions row (kupon + "Zaktualizuj koszyk") — tło bg2 jako stopka */
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions > td {
    background: var(--bg2) !important;
    border: 0 !important;
    border-top: 1px solid var(--border-l) !important;
    padding: 18px 14px !important;
    border-radius: 0 0 10px 10px !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form input#coupon_code {
    border: 1px solid var(--border) !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
    padding: 10px 14px !important;
    min-height: 42px !important;
    background: #fff !important;
    width: 200px !important;
    font-size: 14px !important;
    color: var(--dark) !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form input#coupon_code:focus {
    border-color: var(--primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form button[name="apply_coupon"] {
    border-radius: 0 8px 8px 0 !important;
    min-height: 42px !important;
    padding: 10px 20px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form button[name="apply_coupon"]:hover {
    background: var(--primary-d) !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"] {
    border-radius: 8px !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    color: var(--dark) !important;
    min-height: 42px !important;
    padding: 10px 22px !important;
    margin-left: auto !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all .15s !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled) {
    border-color: var(--primary) !important;
    color: var(--primary-d) !important;
    background: rgba(139, 195, 74, 0.04) !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"]:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

/* ---------- PODSUMOWANIE KOSZYKA — typografia + order-total hero ---------- */

body.woocommerce-cart .hbt-main-wrap .cart_totals h2,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals h2 {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 20px !important;
    padding: 0 0 14px !important;
    border-bottom: 2px solid var(--border-l) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

/* Order-total = HERO (24px duża zielona kwota) */
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total td,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total td {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    line-height: 1.1 !important;
    padding-top: 18px !important;
    padding-bottom: 6px !important;
    border-bottom: 0 !important;
    white-space: nowrap !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total th,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total th {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    padding-top: 18px !important;
    border-bottom: 0 !important;
    vertical-align: baseline !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total td .woocommerce-Price-amount,
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total td .woocommerce-Price-amount bdi {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}
body.woocommerce-cart .hbt-main-wrap .cart_totals tr.order-total small {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
    font-style: normal !important;
    margin-top: 4px !important;
}

/* CTA "Przejdź do płatności" — większy radius + cień */
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
    border-radius: 10px !important;
    min-height: 56px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 14px rgba(139, 195, 74, 0.32) !important;
    transition: background .15s, box-shadow .15s, transform .1s !important;
}
body.woocommerce-cart .hbt-main-wrap .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.45) !important;
    background: var(--primary-d) !important;
}

/* Remove button (×) — spójna tłem bg2 szarym, danger na hover */
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove a.remove {
    background: var(--bg2) !important;
    color: var(--text-l) !important;
}
body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove a.remove:hover {
    background: var(--danger) !important;
    color: #fff !important;
}

/* ================================================================ */
/* KONIEC v2.5.3                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.4 — GRID CLEARFIX KILLER (2026-04-21)
 * ----------------------------------------------------------------
 * Root cause 3 problemów które user zgłosił:
 *   1. "jeden produkt przeskakuje niżej"
 *   2. "dziwna ramka obok podstron na dole strony"
 *   3. wpływ na pagination / sortowanie
 *
 * Źródło: woocommerce-layout.css (plugin core) wstrzykuje KLASYCZNY
 * CLEARFIX z ery float-layout:
 *   .woocommerce ul.products::before,
 *   .woocommerce ul.products::after,
 *   .woocommerce-page ul.products::before,
 *   .woocommerce-page ul.products::after {
 *     content: " ";
 *     display: table;
 *   }
 *
 * W CSS GRID (nasz layout 4-5 kol) te pseudo-elementy ZAJMUJĄ komórki:
 *   - ::before zajmuje 1. komórkę → pierwszy produkt przechodzi do
 *     kolumny 2, a pierwszy rząd wygląda jakby ktoś coś zabrał
 *   - ::after ma height: 591.962px (wysokość KARTY produktu!) i zajmuje
 *     komórkę na końcu → "dziwna ramka" obok ostatniego rzędu
 *
 * Ten sam bug dotyczy .col2-set na checkoucie (ale tam display:block,
 * więc nie widać grid-cell efektu). Również neutralizujemy dla spójności.
 *
 * Test live udowodnił: po neutralizacji 5 produktów w każdym rzędzie
 * zamiast 4 + brak pustej komórki na dole.
 * ================================================================ */

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after,
.woocommerce .upsells.products ul.products::before,
.woocommerce .upsells.products ul.products::after,
.woocommerce .cross-sells ul.products::before,
.woocommerce .cross-sells ul.products::after {
    content: none !important;
    display: none !important;
}

/* Ten sam legacy clearfix na .col2-set (checkout) — też zabijamy */
.woocommerce .col2-set::before,
.woocommerce .col2-set::after,
.woocommerce-page .col2-set::before,
.woocommerce-page .col2-set::after {
    content: none !important;
    display: none !important;
}

/* ================================================================ */
/* KONIEC v2.5.4                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.5 — MOBILE BULLETPROOF KOSZYK + CHECKOUT (2026-04-21)
 * ----------------------------------------------------------------
 * User: "wersje mobilne tez sie sypią, szczegolnie koszyk i
 * podsumowanie".
 *
 * Stan przed: v2.5.2 forsowało display:table tylko na ≥992px. Mobile
 * fallback zostawał w rękach functions.php (@640px) i starych rules
 * v2.5 (@991px) — konflikty specyficzności, form.cart-form z 22px
 * padding zżerał 44px z 390px viewportu, kolumny tabeli nie miały
 * mobile restore, cart_totals nie miał pełnego width stack.
 *
 * v2.5.5 — jednolity mobile card pattern z bulletproof specyficznością
 * (5 klas + .hbt-main-wrap + form.woocommerce-cart-form + .shop_table.cart)
 * żeby wygrać z inline <style> z functions.php (3-4 klasy).
 *
 * Breakpoint: <992px (wszystko co nie jest desktop = mobile).
 * ================================================================ */

@media (max-width: 991px) {

    /* ---------- KOSZYK mobile ---------- */

    /* Kontener: mniejsze marginesy, form bez ostrego padding */
    body.woocommerce-cart .hbt-main-wrap {
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form {
        padding: 14px !important;
        margin: 0 0 16px !important;
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px var(--shadow-s) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Table → block (restore z desktop display:table) */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart {
        display: block !important;
        table-layout: auto !important;
        width: 100% !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead {
        display: none !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody {
        display: block !important;
        width: 100% !important;
    }

    /* cart_item row: grid card z template-areas */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto auto auto !important;
        grid-template-areas:
            "thumb name   remove"
            "thumb name   name"
            "thumb price  qty"
            "thumb sub    sub" !important;
        gap: 6px 12px !important;
        padding: 14px !important;
        margin: 0 0 12px !important;
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px var(--shadow-s) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item:last-of-type {
        margin-bottom: 0 !important;
    }

    /* Cells: reset display:flex z functions.php, wyrzucić pseudo-labels */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td {
        display: block !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left !important;
        justify-content: unset !important;
        align-items: unset !important;
        gap: 0 !important;
        vertical-align: top !important;
        min-width: 0 !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td::before,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td::before {
        content: none !important;
        display: none !important;
    }

    /* Grid area assignment */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail {
        grid-area: thumb !important;
        align-self: start !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
        object-fit: contain !important;
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 8px !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name {
        grid-area: name !important;
        align-self: start !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a {
        display: block !important;
        color: var(--dark) !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        text-decoration: none !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove {
        grid-area: remove !important;
        align-self: start !important;
        justify-self: end !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove a.remove {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: var(--bg2) !important;
        color: var(--text-l) !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-decoration: none !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove a.remove:hover {
        background: var(--danger) !important;
        color: #fff !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-price {
        grid-area: price !important;
        align-self: center !important;
        font-size: 13px !important;
        color: var(--text-l) !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-price::after {
        content: " /szt." !important;
        font-size: 11px !important;
        opacity: .7 !important;
        display: inline !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity {
        grid-area: qty !important;
        align-self: center !important;
        justify-self: end !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity .quantity {
        display: inline-flex !important;
        background: #fff !important;
        border: 1.5px solid var(--border) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity input.qty {
        width: 52px !important;
        min-height: 38px !important;
        height: 38px !important;
        border: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: var(--dark) !important;
        background: transparent !important;
        outline: none !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal {
        grid-area: sub !important;
        align-self: center !important;
        padding-top: 8px !important;
        border-top: 1px dashed var(--border-l) !important;
        margin-top: 4px !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        color: var(--primary-d) !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    /* Actions row (kupon + update): stack + pełna szerokość */
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions {
        display: block !important;
        padding: 0 !important;
        margin: 14px 0 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions > td,
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions td {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 14px !important;
        background: var(--bg2) !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form .coupon {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        width: 100% !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form .coupon input#coupon_code {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        border-radius: 8px 0 0 8px !important;
        border-right: 0 !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form .coupon button[name="apply_coupon"] {
        flex: 0 0 auto !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 10px 16px !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"] {
        width: 100% !important;
        margin: 0 !important;
        min-height: 44px !important;
    }

    /* ---------- PODSUMOWANIE KOSZYKA mobile ---------- */

    body.woocommerce-cart .hbt-main-wrap .cart-collaterals {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals,
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals {
        width: 100% !important;
        margin: 0 !important;
        padding: 18px !important;
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px var(--shadow-s) !important;
    }
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals h2 {
        font-size: 17px !important;
        font-weight: 800 !important;
        margin: 0 0 14px !important;
        padding: 0 0 12px !important;
        border-bottom: 2px solid var(--border-l) !important;
    }
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table {
        width: 100% !important;
        font-size: 13px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table th,
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals table td {
        padding: 10px 0 !important;
        font-size: 14px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals tr.order-total td,
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total td {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: var(--primary-d) !important;
        padding-top: 14px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .cart_totals tr.order-total th,
    body.woocommerce-cart .hbt-main-wrap .hbt-page-content .cart-collaterals .cart_totals tr.order-total th {
        font-size: 14px !important;
        padding-top: 14px !important;
    }
    body.woocommerce-cart .hbt-main-wrap .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
        width: 100% !important;
        min-height: 54px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        padding: 14px 18px !important;
    }

    /* ---------- CHECKOUT mobile bulletproof ---------- */

    body.woocommerce-checkout .hbt-main-wrap {
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }
    /* Main form: flex column, gaps między sekcjami */
    body.woocommerce-checkout .hbt-main-wrap form.checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout #customer_details {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 1 !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout #customer_details > .col2-set {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout .col2-set .col-1,
    body.woocommerce-checkout .hbt-main-wrap form.checkout .col2-set .col-2 {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 0 14px !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout h3#order_review_heading {
        order: 2 !important;
        margin: 8px 0 4px !important;
        padding: 0 !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout #order_review {
        order: 3 !important;
        position: static !important;
        margin: 0 !important;
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Sekcje formularza jako karty z paddingiem (functions.php dawało padding:0) */
    body.woocommerce-checkout .hbt-main-wrap .woocommerce-billing-fields,
    body.woocommerce-checkout .hbt-main-wrap .woocommerce-shipping-fields,
    body.woocommerce-checkout .hbt-main-wrap .woocommerce-additional-fields {
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin: 0 0 14px !important;
        box-shadow: 0 2px 8px var(--shadow-s) !important;
    }
    body.woocommerce-checkout .hbt-main-wrap .woocommerce-billing-fields h3,
    body.woocommerce-checkout .hbt-main-wrap .woocommerce-shipping-fields h3,
    body.woocommerce-checkout .hbt-main-wrap .woocommerce-additional-fields h3 {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: var(--dark) !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }

    /* Inputs — iOS no-zoom (16px font) + tap-friendly height */
    body.woocommerce-checkout .hbt-main-wrap .form-row input.input-text,
    body.woocommerce-checkout .hbt-main-wrap .form-row textarea,
    body.woocommerce-checkout .hbt-main-wrap .form-row select,
    body.woocommerce-checkout .hbt-main-wrap .form-row .select2-selection--single {
        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;
        color: var(--dark) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-checkout .hbt-main-wrap .form-row input.input-text:focus,
    body.woocommerce-checkout .hbt-main-wrap .form-row textarea:focus,
    body.woocommerce-checkout .hbt-main-wrap .form-row select:focus {
        border-color: var(--primary) !important;
        outline: 0 !important;
        box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18) !important;
    }
    body.woocommerce-checkout .hbt-main-wrap .form-row label {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--dark) !important;
        margin: 0 0 6px !important;
        display: block !important;
    }

    /* Order review / #order_review as card */
    body.woocommerce-checkout .hbt-main-wrap #order_review {
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 12px !important;
        padding: 16px !important;
        box-shadow: 0 2px 8px var(--shadow-s) !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #order_review table.shop_table {
        width: 100% !important;
        border: 0 !important;
        font-size: 13px !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #order_review table.shop_table th,
    body.woocommerce-checkout .hbt-main-wrap #order_review table.shop_table td {
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--border-l) !important;
        background: transparent !important;
        font-size: 13px !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #order_review tr.order-total td,
    body.woocommerce-checkout .hbt-main-wrap #order_review tr.order-total th {
        font-size: 17px !important;
        font-weight: 800 !important;
        color: var(--primary-d) !important;
        padding-top: 14px !important;
        border-bottom: 0 !important;
    }

    /* Payment methods as cards (mobile) */
    body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 12px 0 0 !important;
        list-style: none !important;
        background: transparent !important;
        border: 0 !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods > li {
        display: block !important;
        background: #fff !important;
        border: 1px solid var(--border) !important;
        border-radius: 10px !important;
        padding: 12px 14px !important;
        margin: 0 !important;
        list-style: none !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods > li:has(input[type="radio"]:checked) {
        border-color: var(--primary) !important;
        background: rgba(139, 195, 74, .06) !important;
        box-shadow: 0 0 0 3px rgba(139, 195, 74, .12) !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods > li label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: var(--dark) !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #payment ul.payment_methods > li input[type="radio"] {
        accent-color: var(--primary) !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #payment .payment_box {
        margin: 10px 0 0 !important;
        padding: 10px 12px !important;
        background: var(--bg2) !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        color: var(--text) !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #payment .payment_box::before {
        display: none !important;
    }

    /* Place order CTA (mobile) */
    body.woocommerce-checkout .hbt-main-wrap #place_order,
    body.woocommerce-checkout .hbt-main-wrap form.checkout button#place_order {
        width: 100% !important;
        min-height: 54px !important;
        padding: 14px 18px !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: .4px !important;
        text-transform: uppercase !important;
        box-shadow: 0 4px 14px rgba(139, 195, 74, .32) !important;
        cursor: pointer !important;
    }
    body.woocommerce-checkout .hbt-main-wrap #place_order:hover {
        background: var(--primary-d) !important;
    }
}

/* ---------- Najwęższe ekrany (<480px) ---------- */
@media (max-width: 480px) {
    body.woocommerce-cart .hbt-main-wrap,
    body.woocommerce-checkout .hbt-main-wrap {
        padding: 0 10px !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form {
        padding: 12px !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        grid-template-columns: 64px minmax(0, 1fr) auto !important;
        gap: 4px 10px !important;
        padding: 12px !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a {
        font-size: 13px !important;
    }
    body.woocommerce-cart .hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal {
        font-size: 16px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.5.5                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.6 — ULTRA-HIGH SPECIFICITY LAYOUT FIX (2026-04-21)
 * ----------------------------------------------------------------
 * Live inspection pokazała że form.woocommerce-cart-form miał
 * width: 360px na desktopie (zamiast 1fr = 788px) bo moja reguła
 * v2.5.2 (z .hbt-page-content) nie wygrała kaskady - litespeed
 * combined CSS nie zregenerował się po deploy, ale też specyficzność
 * była równa z functions.php (0,0,5,2 vs 0,0,4,2).
 *
 * v2.5.6 używa **ID selektora #mainContent** w łańcuchu:
 *   body.woocommerce-cart main#mainContent.hbt-main-wrap ...
 * Specyficzność: 0,1,4,3 — ID bije WSZYSTKO (100x class). Gwarancja.
 *
 * Dodatkowo szlif: kolory nagłówków tabeli, subtle separatory,
 * visible update-cart button, sticky order review na checkoucie.
 * ================================================================ */

@media (min-width: 992px) {

    /* ---------- KOSZYK: wymuś form w 1fr, sidebar 380px ---------- */
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px !important;
        gap: 32px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .woocommerce-notices-wrapper {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        margin: 0 0 14px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > form.woocommerce-cart-form {
        grid-column: 1 / 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        float: none !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .cart-collaterals {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
    }
}

@media (min-width: 1400px) {
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce {
        grid-template-columns: minmax(0, 1fr) 420px !important;
        gap: 36px !important;
    }
}

/* ---------- KOSZYK: polish thead + rows + update button ---------- */

/* Thead: bez tła bg2, wszystkie headery w tym samym muted szarym */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead {
    background: transparent !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th {
    background: transparent !important;
    color: var(--text-l) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    padding: 14px 14px !important;
    border: 0 !important;
    border-bottom: 2px solid rgba(0,0,0,.06) !important;
}
/* KWOTA header (product-subtotal th) — też muted szary, NIE zielony.
 * Tylko wartość w tbody.td.product-subtotal jest zielona (primary-d). */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-subtotal {
    color: var(--text-l) !important;
    font-weight: 700 !important;
    background: transparent !important;
}

/* Rzędy: subtle separator, bez tła karty (form jest kartą wspólną) */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item:last-of-type {
    border-bottom: 0 !important;
}

/* "Zaktualizuj koszyk" button: widoczny zielony outline, nie muted */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"] {
    background: #fff !important;
    color: var(--primary-d) !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: 8px !important;
    padding: 11px 22px !important;
    min-height: 44px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all .15s !important;
    margin-left: auto !important;
    opacity: 1 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled) {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary-d) !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"]:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

/* ---------- CHECKOUT: grid-template-areas + sticky order review ---------- */

@media (min-width: 992px) {
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 420px !important;
        grid-template-areas:
            "billing heading"
            "billing review" !important;
        gap: 24px 32px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #customer_details {
        grid-area: billing !important;
        grid-column: unset !important;
        grid-row: unset !important;
        min-width: 0 !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout h3#order_review_heading {
        grid-area: heading !important;
        grid-column: unset !important;
        grid-row: unset !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--dark) !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #order_review {
        grid-area: review !important;
        grid-column: unset !important;
        grid-row: unset !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
        margin: 0 !important;
    }
}

@media (min-width: 1600px) {
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout {
        grid-template-columns: minmax(0, 1fr) 460px !important;
        gap: 28px 36px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.5.6                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.7 — TOOLBAR + LIST VIEW (2026-04-21)
 * ----------------------------------------------------------------
 * User: "jak wybieram widok listy albo siatki to produkty sa na
 * całą strone!!" + "przebuduj pasek cały i nadaj krągłości".
 *
 * Problemy:
 *   1. .hbt-shop-toolbar miał border-radius:6px (za mało) — nie
 *      pasował do design-systemu (14px karta).
 *   2. ul.products.list → każdy produkt 1076px × 800px, placeholder
 *      HBT logo wypełniał całą stronę (jedna karta = cały ekran).
 *
 * Fix:
 *   • Toolbar jako karta 14px radius + subtle shadow + padding 14/18px
 *   • Select sort + per-page z custom SVG chevron + radius 10px
 *   • View toggle grid/list — segmented pill z obramowaniem
 *   • List view — horizontal card: 160px thumb | info | 180px CTA
 *     (zamiast 1 produkt = cały ekran)
 * ================================================================ */

/* ---------- TOOLBAR CARD ---------- */
body.woocommerce .hbt-shop-toolbar,
body.woocommerce-page .hbt-shop-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 14px 18px !important;
    margin: 0 0 20px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(26, 23, 20, .05) !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}
.hbt-shop-toolbar .hbt-toolbar-count,
.hbt-shop-toolbar .woocommerce-result-count {
    flex: 1 1 auto !important;
    min-width: 200px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: var(--text-l) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}
.hbt-shop-toolbar .hbt-toolbar-count .screen-reader-text,
.hbt-shop-toolbar .woocommerce-result-count .screen-reader-text {
    display: none !important;
}
.hbt-shop-toolbar .hbt-toolbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    flex: 0 0 auto !important;
}

/* Sort select — custom chevron + rounded 10px */
.hbt-shop-toolbar .woocommerce-ordering {
    margin: 0 !important;
    padding: 0 !important;
}
.hbt-shop-toolbar .woocommerce-ordering select.orderby {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 10px 36px 10px 14px !important;
    min-width: 220px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--dark) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237CB342' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px 7px !important;
    border: 1px solid rgba(0, 0, 0, .15) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.hbt-shop-toolbar .woocommerce-ordering select.orderby:hover {
    border-color: var(--primary-l) !important;
}
.hbt-shop-toolbar .woocommerce-ordering select.orderby:focus {
    border-color: var(--primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, .18) !important;
}

/* Per-page selector */
.hbt-shop-toolbar .hbt-toolbar-ppp {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.hbt-shop-toolbar .hbt-toolbar-ppp label,
.hbt-shop-toolbar .hbt-toolbar-ppp .hbt-toolbar-ppp__label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: var(--text-l) !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hbt-shop-toolbar .hbt-toolbar-ppp select,
.hbt-shop-toolbar .hbt-toolbar-ppp__select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 10px 32px 10px 14px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237CB342' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px 7px !important;
    border: 1px solid rgba(0, 0, 0, .15) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
}

/* View toggle — segmented pill (grid/list) */
.hbt-shop-toolbar .hbt-view-toggle {
    display: inline-flex !important;
    border: 1px solid rgba(0, 0, 0, .15) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}
.hbt-shop-toolbar .hbt-view-toggle .hbt-view-btn {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--text-l) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background .15s, color .15s !important;
}
.hbt-shop-toolbar .hbt-view-toggle .hbt-view-btn + .hbt-view-btn {
    border-left: 1px solid rgba(0, 0, 0, .1) !important;
}
.hbt-shop-toolbar .hbt-view-toggle .hbt-view-btn:hover {
    color: var(--primary-d) !important;
    background: rgba(139, 195, 74, .06) !important;
}
.hbt-shop-toolbar .hbt-view-toggle .hbt-view-btn.active,
.hbt-shop-toolbar .hbt-view-toggle .hbt-view-btn[aria-pressed="true"] {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Mobile toolbar: stack count/right below each other */
@media (max-width: 768px) {
    body.woocommerce .hbt-shop-toolbar,
    body.woocommerce-page .hbt-shop-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
    }
    .hbt-shop-toolbar .hbt-toolbar-count,
    .hbt-shop-toolbar .woocommerce-result-count {
        text-align: center !important;
        border-bottom: 1px solid var(--border-l) !important;
        padding: 0 0 10px !important;
    }
    .hbt-shop-toolbar .hbt-toolbar-right {
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .hbt-shop-toolbar .woocommerce-ordering select.orderby {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
}

/* ================================================================
 * LIST VIEW — horizontal cards (zamiast 1 produkt = cały ekran)
 * User przed: klik "list" → każdy produkt 1076×800px z HBT logo na
 * cały ekran (placeholder). Teraz: horizontal card 3-kolumnowy:
 *   [thumb 160px] [info 1fr] [CTA 180px]
 * ================================================================ */

body.woocommerce ul.products.list,
body.woocommerce-page ul.products.list,
body.woocommerce-shop ul.products.list,
.hbt-main-wrap ul.products.list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

body.woocommerce ul.products.list > li.product,
body.woocommerce-page ul.products.list > li.product,
.hbt-main-wrap ul.products.list > li.product {
    display: grid !important;
    grid-template-columns: 160px minmax(0, 1fr) 200px !important;
    grid-template-areas: "thumb info cta" !important;
    gap: 20px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    padding: 16px !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(26, 23, 20, .04) !important;
    transition: border-color .15s, box-shadow .15s, transform .1s !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}
body.woocommerce ul.products.list > li.product:hover,
body.woocommerce-page ul.products.list > li.product:hover,
.hbt-main-wrap ul.products.list > li.product:hover {
    border-color: var(--primary-l) !important;
    box-shadow: 0 8px 24px rgba(26, 23, 20, .08) !important;
    transform: none !important;
}

/* .hbt-loop-card__inner: display:contents aby dzieci trafiały
 * prosto w grid-areas parent'a <li>. */
body.woocommerce ul.products.list > li.product .hbt-loop-card__inner,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__inner {
    display: contents !important;
}

/* Thumbnail: 160×160, padding 10px, rounded 10px */
body.woocommerce ul.products.list > li.product .hbt-loop-card__image,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__image {
    grid-area: thumb !important;
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--bg2) !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__image img,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Info column */
body.woocommerce ul.products.list > li.product .hbt-loop-card__body,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__body {
    grid-area: info !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__meta,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__meta {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: var(--text-l) !important;
    margin: 0 !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
}
body.woocommerce ul.products.list > li.product h3.hbt-loop-card__title,
body.woocommerce ul.products.list > li.product .hbt-loop-card__title,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 2px 0 !important;
    line-height: 1.35 !important;
    color: var(--dark) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: none !important;
    min-height: 0 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__rating,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__rating {
    margin: 2px 0 !important;
    min-height: 0 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__price,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__price {
    margin: 4px 0 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__spacer,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__spacer {
    display: none !important;
}

/* CTA column */
body.woocommerce ul.products.list > li.product .hbt-loop-card__cta,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__cta {
    grid-area: cta !important;
    border-top: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__cta .button,
body.woocommerce ul.products.list > li.product .hbt-loop-card__btn,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__cta .button,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__btn {
    width: auto !important;
    min-width: 180px !important;
    padding: 12px 22px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

/* List view mobile: collapse to vertical stack */
@media (max-width: 768px) {
    body.woocommerce ul.products.list > li.product,
    body.woocommerce-page ul.products.list > li.product {
        grid-template-columns: 100px minmax(0, 1fr) !important;
        grid-template-areas:
            "thumb info"
            "cta   cta" !important;
        gap: 12px 14px !important;
        padding: 12px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__image,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__image {
        width: 100px !important;
        height: 100px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__cta,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__cta {
        justify-self: stretch !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__cta .button,
    body.woocommerce ul.products.list > li.product .hbt-loop-card__btn,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__cta .button,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* ================================================================ */
/* KONIEC v2.5.7                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.8 — UJEDNOLICONA SZEROKOŚĆ STRONY + CAP GAP (2026-04-21)
 * ----------------------------------------------------------------
 * User: "popraw wszsytkie podstrony aby ukladaly sie do szerokosci
 * jaka podalem" + "chce móc regulowac procent marginesu" + "wolna
 * przestrzen od górnego menu do nastepnego bloku nie moze byc
 * wieksza jak polowa wysokosci menu headera".
 *
 * Problem (z live inspection):
 *   • .hbt-main-wrap: max-width 100% → na 1832px viewport content
 *     rozciąga się na całą szerokość, inner containery same sobie
 *     wyznaczały szerokość (blog: 1200, sklep: 1076, cart: inne)
 *     → nierównomierne krawędzie na każdej stronie.
 *   • Brak centralnej kontroli szerokości przez zmienne.
 *
 * Rozwiązanie:
 *   • CSS Custom Properties w :root — do edycji w jednym miejscu
 *   • .hbt-main-wrap to JEDYNY container (max-width + auto margin)
 *   • Wewnętrzne sub-containery → width: 100% (nie rywalizują)
 *   • margin-top na wrapper → clamp'owany do max 50% nav-height
 * ================================================================ */

:root {
    /* ================================================================
     * KONFIGURACJA SZEROKOŚCI STRONY
     * Edytuj jedną wartość → zmiana propaguje się na WSZYSTKIE
     * podstrony (sklep, kategorie, marki, koszyk, checkout, blog,
     * kontakt, single post, single product, 404).
     * ================================================================ */

    /* Szerokość maksymalna treści (px) lub 'none' dla fluid */
    --hbt-page-max-width: 1400px;

    /* Margin boczny:
     *   'auto' = centered (default, użyj z max-width)
     *   '5%'   = fluid 5% margin z każdej strony (użyj z max-width:none)
     *   '40px' = stały margin w px
     */
    --hbt-page-margin-x: auto;

    /* Padding wewnętrzny (ochrona treści na wąskich ekranach) */
    --hbt-page-padding-x: 24px;

    /* ================================================================
     * KONFIGURACJA GAP HEADER → CONTENT
     * User: max ½ wysokości headera (promo + header + nav = 154px).
     * ================================================================ */

    --hbt-header-total-h: 154px;
    --hbt-content-gap-max: calc(var(--hbt-header-total-h) * 0.5);  /* 77px */
    --hbt-content-gap-default: 20px;
    /* clamp zapobiega za dużej przestrzeni nad contentem */
    --hbt-content-gap: min(var(--hbt-content-gap-default), var(--hbt-content-gap-max));
}

/* Mobile: mniejszy padding + krótszy gap */
@media (max-width: 768px) {
    :root {
        --hbt-page-padding-x: 14px;
        --hbt-content-gap-default: 12px;
    }
}
@media (max-width: 480px) {
    :root {
        --hbt-page-padding-x: 10px;
    }
}

/* ================================================================
 * GŁÓWNY WRAPPER — wszystkie podstrony używają tej samej konfiguracji
 * Specyficzność: main#mainContent.hbt-main-wrap = 0,1,1,1
 * ================================================================ */

main#mainContent.hbt-main-wrap,
main.hbt-main-wrap {
    max-width: var(--hbt-page-max-width) !important;
    margin-left: var(--hbt-page-margin-x) !important;
    margin-right: var(--hbt-page-margin-x) !important;
    margin-top: var(--hbt-content-gap) !important;
    margin-bottom: 48px !important;
    padding-left: var(--hbt-page-padding-x) !important;
    padding-right: var(--hbt-page-padding-x) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 400px !important;
}

/* ================================================================
 * WEWNĘTRZNE CONTAINERY — reset własnych max-width / margin auto
 * żeby NIE rywalizowały o szerokość z .hbt-main-wrap
 * ================================================================ */

main#mainContent.hbt-main-wrap .hbt-blog-archive,
main#mainContent.hbt-main-wrap main.hbt-blog-archive,
main#mainContent.hbt-main-wrap .hbt-shop-wrap,
main#mainContent.hbt-main-wrap .hbt-shop-main,
main#mainContent.hbt-main-wrap main.hbt-shop-main,
main#mainContent.hbt-main-wrap .hbt-page-content,
main#mainContent.hbt-main-wrap .hbt-page,
main#mainContent.hbt-main-wrap .hbt-page-article,
main#mainContent.hbt-main-wrap article.hbt-page-article,
main#mainContent.hbt-main-wrap .container-full,
main#mainContent.hbt-main-wrap > .woocommerce,
main#mainContent.hbt-main-wrap main.site-main {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ================================================================
 * FIRST CHILD: zero margin-top — gap kontroluje wrapper
 * ================================================================ */

main#mainContent.hbt-main-wrap > *:first-child,
main#mainContent.hbt-main-wrap > main > *:first-child,
main#mainContent.hbt-main-wrap > main > article > *:first-child,
main#mainContent.hbt-main-wrap > .hbt-page-content > *:first-child,
main#mainContent.hbt-main-wrap > .container-full > *:first-child {
    margin-top: 0 !important;
}

/* Wyjątki dla wrappów stylowych które NIE są pierwszym widocznym
 * elementem (np. <style> inline lub <script>). Nie dotykamy ich. */
main#mainContent.hbt-main-wrap > style,
main#mainContent.hbt-main-wrap > script {
    display: none;
}

/* ================================================================
 * HERO/PAGE-HEADER: spójne padding pionowy na wszystkich stronach
 * (kontakt, blog, 404, single product) — żeby nie miały absurdalnie
 * dużych paddingów które user postrzega jako "duża pusta przestrzeń"
 * ================================================================ */

main#mainContent.hbt-main-wrap .hbt-blog-hero,
main#mainContent.hbt-main-wrap .hbt-page-header,
main#mainContent.hbt-main-wrap .contact-hero {
    padding-top: clamp(24px, 4vw, 48px) !important;
    padding-bottom: clamp(24px, 4vw, 48px) !important;
}

/* ================================================================
 * MAPA ODPOWIEDNIOŚCI KONFIGURACJI (referencja)
 * ----------------------------------------------------------------
 * Żeby zmienić SZEROKOŚĆ strony → edytuj --hbt-page-max-width w :root.
 * Żeby zmienić MARGIN → edytuj --hbt-page-margin-x (auto | X% | Xpx).
 * Żeby zmienić PADDING wewnątrz → edytuj --hbt-page-padding-x.
 * Żeby zmienić GAP header→content → edytuj --hbt-content-gap-default
 *   (clamp do 50% var(--hbt-header-total-h) zadbany automatycznie).
 *
 * Przykłady konfiguracji:
 *
 * 1) SZEROKI FIXED (domyślny):
 *    --hbt-page-max-width: 1400px;
 *    --hbt-page-margin-x: auto;
 *
 * 2) EKSTRA SZEROKI:
 *    --hbt-page-max-width: 1600px;
 *    --hbt-page-padding-x: 32px;
 *
 * 3) FLUID 5% MARGIN (rozciąga się z viewportem):
 *    --hbt-page-max-width: none;
 *    --hbt-page-margin-x: 5%;
 *
 * 4) WĄSKI CZYTELNY (długie artykuły):
 *    --hbt-page-max-width: 960px;
 *    --hbt-page-margin-x: auto;
 * ================================================================ */

/* ================================================================ */
/* KONIEC v2.5.8                                                     */
/* ================================================================ */

/* ================================================================
 * v2.5.9 — PASEK WYSZUKIWARKI — CLEAN REWRITE (2026-04-21)
 * ----------------------------------------------------------------
 * User: "chce abys wizualnie napisal na nowo pasek wyszukiwarki,
 * jest nie spojny".
 *
 * Przed: form.site-search miał zielony outer border 1.67px + radius
 * 6px + submit button z asymetrycznym radius (0 6px 6px 0).
 * Niespójne z design-systemem (reszta używa 10-14px radius).
 *
 * Po:
 *   • Form jako white kontener 12px radius z neutral border (12%)
 *   • Focus-within: zielony border + primary ring shadow (fokus visible)
 *   • Hover: lekki primary-light border (interaktywność)
 *   • Input: no border, flush z białym tłem form, placeholder muted
 *   • Submit button: 56px width, green bg, zero radius (przylepiony
 *     do prawej krawędzi form — form radius:hidden jako maska)
 *   • Category select (opcjonalny): subtle bg2 separator z custom
 *     SVG chevron (spójny z toolbar select)
 *   • Hamburger (mobile menu trigger): transparent tło z prawym borderem
 * ================================================================ */

form.site-search {
    display: flex !important;
    align-items: stretch !important;
    background: #fff !important;
    border: 1.5px solid rgba(0, 0, 0, .12) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    min-height: 48px !important;
    transition: border-color .15s, box-shadow .15s !important;
    box-shadow: none !important;
}
form.site-search:hover:not(:focus-within) {
    border-color: var(--primary-l) !important;
}
form.site-search:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, .18) !important;
}

/* Input field — flush z form bg */
form.site-search input.search-input,
form.site-search input[type="search"],
form.site-search input.search-input[type="text"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--dark) !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
}
form.site-search input.search-input::placeholder,
form.site-search input[type="search"]::placeholder {
    color: var(--text-l) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}
form.site-search input.search-input:focus,
form.site-search input[type="search"]:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
}

/* Submit button — green flush-right */
form.site-search button.search-submit,
form.site-search button[type="submit"] {
    flex: 0 0 auto !important;
    width: 56px !important;
    min-width: 56px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    box-shadow: none !important;
    transition: background .15s !important;
}
form.site-search button.search-submit:hover,
form.site-search button[type="submit"]:hover {
    background: var(--primary-d) !important;
}
form.site-search button.search-submit:active,
form.site-search button[type="submit"]:active {
    background: var(--tertiary) !important;
}
form.site-search button.search-submit:focus-visible,
form.site-search button[type="submit"]:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -4px !important;
}
form.site-search button.search-submit i,
form.site-search button[type="submit"] i {
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

/* Category select (opcjonalny lewy dropdown) */
form.site-search .search-cat-select {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: stretch !important;
    border-right: 1px solid rgba(0, 0, 0, .08) !important;
    background: var(--bg2) !important;
}
form.site-search .search-cat-select select {
    border: 0 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237CB342' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px 7px !important;
    padding: 0 32px 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: 48px !important;
}

/* Hamburger (mobile menu trigger) */
form.site-search button.search-hamburger {
    flex: 0 0 auto !important;
    width: 48px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 0 !important;
    color: var(--dark) !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s !important;
}
form.site-search button.search-hamburger:hover {
    background: rgba(0, 0, 0, .03) !important;
    color: var(--primary-d) !important;
}

/* Mobile (<768px): compact submit + smaller font */
@media (max-width: 768px) {
    form.site-search {
        min-height: 44px !important;
        border-radius: 10px !important;
    }
    form.site-search input.search-input {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    form.site-search button.search-submit {
        width: 48px !important;
        min-width: 48px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.5.9                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.0 — KOSZYK + PODSUMOWANIE: CLEAN REWRITE FROM SCRATCH
 *          (2026-04-21)
 * ----------------------------------------------------------------
 * User: "Przepisz całkiem na nowo koszyk i podsumowanie koszyka".
 *
 * Ten blok nadpisuje WSZYSTKO co było w v2.5.1 / v2.5.2 / v2.5.3 /
 * v2.5.5 / v2.5.6 dla koszyka. Używa 2× ID w selektorze
 * (#mainContent + pośrednio #hbtCheckout jeśli jest) dla bulletproof
 * specyficzności 0,1,X,Y która wygrywa inline <style> z functions.php.
 *
 * DESIGN:
 *   Desktop (≥992px):
 *     [form.cart-form (1fr)] [sidebar .cart-collaterals (380px, sticky)]
 *     • form jako biała karta radius 14, padding 28
 *     • Nagłówki kolumn tabeli muted uppercase
 *     • Rzędy jako flex w row: [×] [thumb 80] [name 1fr] [price] [qty] [suma]
 *     • Suma wyróżniona kolorem primary-d 16px/800
 *     • Kupon + "Zaktualizuj" w dolnej flex-row
 *   Mobile (<992px):
 *     • Stack: cart card, then summary card
 *     • Każdy produkt jako grid-area card: thumb | name+price | qty/sub
 *
 * PODSUMOWANIE KOSZYKA (sticky sidebar):
 *   • Biała karta radius 14, padding 24, shadow
 *   • h2 "Podsumowanie koszyka" 18/800 z border-bottom 2px
 *   • Pozycje (subtotal, wysyłka, VAT) jako 14px/600 dark vs 14/700 right
 *   • ORDER-TOTAL jako HERO: kwota 26px/800 primary-d
 *   • CTA "Przejdź do płatności" 56px min-height, radius 10, zielony shadow
 * ================================================================ */

/* =====================================================
 * WRAPPER: reset Woo grid parent + ustaw 2-col layout
 * Specyficzność: body.klasa + main#ID + .klasa = 0,1,3,1
 * ===================================================== */

body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

@media (min-width: 992px) {
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px !important;
        grid-template-areas:
            "notices notices"
            "form    summary" !important;
        gap: 28px !important;
        align-items: start !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .woocommerce-notices-wrapper {
        grid-area: notices !important;
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100% !important;
        margin: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > form.woocommerce-cart-form {
        grid-area: form !important;
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .cart-collaterals {
        grid-area: summary !important;
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
    }
}

/* =====================================================
 * CART FORM — biała karta (shared card pattern)
 * ===================================================== */

body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce form.woocommerce-cart-form {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    padding: 28px !important;
    box-shadow: 0 2px 10px rgba(26, 23, 20, .04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Table: reset do block, rows jako flex cards */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    table-layout: auto !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead {
    display: block !important;
    width: 100% !important;
    border-bottom: 2px solid var(--border-l) !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead tr {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    background: transparent !important;
    border: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    color: var(--text-l) !important;
    text-align: left !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-remove { flex: 0 0 32px !important; }
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-thumbnail { flex: 0 0 80px !important; text-align: center !important; }
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-name { flex: 1 1 auto !important; min-width: 0 !important; }
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-price { flex: 0 0 100px !important; text-align: right !important; }
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-quantity { flex: 0 0 120px !important; text-align: center !important; }
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead th.product-subtotal { flex: 0 0 120px !important; text-align: right !important; }

body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody {
    display: block !important;
    width: 100% !important;
}

/* Row: flex 6-column card-row */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item:last-of-type {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Cells */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td,
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    vertical-align: middle !important;
    justify-content: unset !important;
    align-items: unset !important;
    gap: 0 !important;
    color: var(--text) !important;
    font-size: 14px !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td::before,
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td::before {
    content: none !important;
    display: none !important;
}

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

/* Cell: thumbnail */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail {
    flex: 0 0 80px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail a,
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: contain !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 10px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

/* Cell: name */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a {
    display: block !important;
    color: var(--dark) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    word-break: break-word !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a:hover {
    color: var(--primary-d) !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name .variation,
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name dl {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    color: var(--text-l) !important;
}

/* Cell: price (unit) — muted */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-price {
    flex: 0 0 100px !important;
    text-align: right !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
    white-space: nowrap !important;
}

/* Cell: quantity stepper */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity {
    flex: 0 0 120px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: stretch !important;
    background: #fff !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: border-color .15s, box-shadow .15s !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity .quantity:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, .18) !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity input.qty {
    width: 56px !important;
    min-height: 40px !important;
    height: 40px !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    background: transparent !important;
    outline: none !important;
}

/* Cell: subtotal (HERO) */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal {
    flex: 0 0 120px !important;
    text-align: right !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    white-space: nowrap !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal .woocommerce-Price-amount,
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal .woocommerce-Price-amount bdi {
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    white-space: nowrap !important;
}

/* Actions row: coupon + update (subtle separate block) */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions {
    display: block !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 2px solid var(--border-l) !important;
    border-bottom: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions > td {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    width: 100% !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form .coupon {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form .coupon label.screen-reader-text {
    position: absolute !important;
    left: -9999px !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form input#coupon_code {
    width: 220px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: var(--dark) !important;
    border: 1.5px solid var(--border) !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
    outline: none !important;
    transition: border-color .15s !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form input#coupon_code:focus {
    border-color: var(--primary) !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="apply_coupon"] {
    min-height: 44px !important;
    padding: 10px 20px !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: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="apply_coupon"]:hover {
    background: var(--primary-d) !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"] {
    min-height: 44px !important;
    padding: 10px 22px !important;
    margin-left: auto !important;
    background: #fff !important;
    color: var(--primary-d) !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all .15s !important;
    opacity: 1 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled) {
    background: var(--primary) !important;
    color: #fff !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"]:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

/* =====================================================
 * PODSUMOWANIE KOSZYKA — sticky sidebar card
 * ===================================================== */

body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals {
    width: 100% !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 4px 16px rgba(26, 23, 20, .05) !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border-bottom: 2px solid var(--border-l) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.25 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table,
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table.shop_table {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table tbody {
    display: table-row-group !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table tr {
    display: table-row !important;
    background: transparent !important;
    border: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table th,
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table td {
    display: table-cell !important;
    padding: 14px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-l) !important;
    vertical-align: top !important;
    font-size: 14px !important;
    color: var(--dark) !important;
    line-height: 1.4 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table th {
    font-weight: 600 !important;
    text-align: left !important;
    width: 50% !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table td {
    text-align: right !important;
    font-weight: 700 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table th::before,
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals table td::before {
    content: none !important;
    display: none !important;
}

/* Shipping row: radio list clean */
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.shipping td {
    text-align: left !important;
    font-weight: 500 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals ul#shipping_method {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals ul#shipping_method li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals ul#shipping_method li:last-child {
    margin-bottom: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals ul#shipping_method input[type="radio"] {
    accent-color: var(--primary) !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals ul#shipping_method label {
    font-size: 14px !important;
    color: var(--dark) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    cursor: pointer !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals .woocommerce-shipping-destination {
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    background: var(--bg2) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: var(--text) !important;
    line-height: 1.5 !important;
}

/* Order-total row: HERO (26px/800 green) */
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total th,
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total td {
    padding-top: 18px !important;
    padding-bottom: 4px !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    vertical-align: baseline !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total th {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total td {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total td .woocommerce-Price-amount,
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total td .woocommerce-Price-amount bdi {
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total small {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
    font-style: normal !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

/* CTA: Przejdź do płatności */
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .wc-proceed-to-checkout {
    display: block !important;
    padding: 18px 0 0 !important;
    margin: 0 !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .wc-proceed-to-checkout .button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 16px 20px !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: .5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(139, 195, 74, .32) !important;
    transition: background .15s, transform .1s, box-shadow .15s !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--primary-d) !important;
    box-shadow: 0 6px 20px rgba(139, 195, 74, .45) !important;
}
body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(1px) !important;
}

/* =====================================================
 * MOBILE (<992px): stacked layout, product rows as grid cards
 * ===================================================== */

@media (max-width: 991px) {
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form {
        padding: 18px !important;
        margin: 0 0 16px !important;
    }
    /* Hide desktop thead — show labels via pseudo-elements on cells */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead {
        display: none !important;
    }
    /* Rows: grid-area cards */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 80px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "thumb name   remove"
            "thumb name   name"
            "thumb price  qty"
            "thumb sub    sub" !important;
        gap: 6px 14px !important;
        padding: 16px 0 !important;
        border-bottom: 1px solid var(--border-l) !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail {
        grid-area: thumb !important;
        flex: none !important;
        align-self: start !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name {
        grid-area: name !important;
        flex: none !important;
        align-self: start !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove {
        grid-area: remove !important;
        flex: none !important;
        justify-content: flex-end !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-price {
        grid-area: price !important;
        flex: none !important;
        text-align: left !important;
        align-self: center !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-price::after {
        content: " /szt." !important;
        font-size: 11px !important;
        opacity: .7 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity {
        grid-area: qty !important;
        flex: none !important;
        justify-content: flex-end !important;
        align-self: center !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal {
        grid-area: sub !important;
        flex: none !important;
        padding-top: 8px !important;
        margin-top: 4px !important;
        border-top: 1px dashed var(--border-l) !important;
        font-size: 17px !important;
        text-align: right !important;
    }

    /* Actions: full-width stacked */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions > td {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form .coupon {
        display: flex !important;
        width: 100% !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form input#coupon_code {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"] {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Summary card: full-width under cart form */
    body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals {
        padding: 18px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total td {
        font-size: 22px !important;
    }
}

/* Mobile <480px: compact thumb + font */
@media (max-width: 480px) {
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form {
        padding: 14px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        grid-template-columns: 64px minmax(0, 1fr) auto !important;
        gap: 4px 12px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail a,
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a {
        font-size: 13px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.6.0 — KOSZYK + PODSUMOWANIE                             */
/* ================================================================ */

/* ================================================================
 * v2.6.1 — SEARCH BAR: usunięcie category + hamburger + wysokość = logo
 * (2026-04-21)
 * ----------------------------------------------------------------
 * User: "usun wybor kategorii do wyszukiwania oraz ustaw rowna
 * wysokosc z logo firmy".
 *
 * Logo: .site-logo .logo-img { height: 52px } → pasek ma też mieć 52px.
 * Category select i hamburger pokazywane na niektórych breakpointach
 * (@media max-width: 991px { display: flex }). Tutaj wyłączamy je
 * NA CAŁEJ stronie (każdy viewport).
 * ================================================================ */

/* Wyłączenie category select całkowicie (wszystkie viewporty) */
form.site-search .search-cat-select,
form.site-search > .search-cat-select {
    display: none !important;
}

/* Wyłączenie hamburger icon całkowicie (wszystkie viewporty) */
form.site-search .search-hamburger,
form.site-search #searchHamburger,
form.site-search > .search-hamburger {
    display: none !important;
}

/* Hidden input[name="product_cat"] może zostać w DOM dla kompatybilności,
 * ale nie powinien wpływać na layout */
form.site-search input[name="product_cat"][type="hidden"] {
    display: none !important;
}

/* Wysokość paska = wysokość logo (52px) */
form.site-search {
    min-height: 52px !important;
    height: 52px !important;
    box-sizing: border-box !important;
}

/* Input wypełnia pełną wysokość form */
form.site-search input.search-input,
form.site-search input[type="search"],
form.site-search input.search-input[type="text"] {
    height: 100% !important;
    min-height: 0 !important;
}

/* Submit button również 100% wysokości form */
form.site-search button.search-submit,
form.site-search button[type="submit"] {
    height: 100% !important;
    min-height: 0 !important;
}

/* Mobile: nieco niższy (48px) żeby zachować kompaktowość,
 * ale dalej bez hamburger/cat — user chciał je usunąć wszędzie */
@media (max-width: 768px) {
    form.site-search {
        min-height: 48px !important;
        height: 48px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.6.1                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.2 — COLLAPSIBLE SEO TEXT na home (2026-04-21)
 * ----------------------------------------------------------------
 * Shortcode [hbt_seo_expandable] renderuje treść z post_id=60 jako
 * zwinięty akordeon NAD sekcją newsletter. SEO-friendly:
 *   • content NIE ma display:none (widoczny dla Googlebota)
 *   • domyślnie max-height:0 + overflow:hidden
 *   • po kliknięciu button: max-height: scrollHeight (smooth expand)
 * ================================================================ */

.hbt-seo-expandable {
    background: var(--bg);
    padding: 40px 0 20px;
    width: 100%;
    max-width: 100%;
}
.hbt-seo-expandable .container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.hbt-seo-inner {
    background: #fff;
    border: 1px solid var(--border-l);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(26, 23, 20, .04);
    transition: box-shadow .2s, border-color .2s;
}
.hbt-seo-inner:hover {
    border-color: var(--primary-l);
    box-shadow: 0 6px 20px rgba(26, 23, 20, .06);
}

/* Toggle button (klikalny) */
.hbt-seo-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    text-align: left;
    transition: background .15s;
}
.hbt-seo-toggle:hover {
    background: rgba(139, 195, 74, .04);
}
.hbt-seo-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.hbt-seo-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}
.hbt-seo-toggle-label i {
    font-size: 18px;
    color: var(--primary-d);
    flex-shrink: 0;
}
.hbt-seo-toggle-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg2);
    color: var(--primary-d);
    font-size: 13px;
    transition: transform .3s ease, background .15s;
    flex-shrink: 0;
}
.hbt-seo-toggle[aria-expanded="true"] .hbt-seo-toggle-indicator {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
}

/* Content panel — zwinięty by default, expand on click */
.hbt-seo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}
.hbt-seo-content-inner {
    padding: 8px 24px 24px;
    border-top: 1px solid var(--border-l);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

/* Typografia zawartości — spójna z resztą motywu */
.hbt-seo-content-inner h1,
.hbt-seo-content-inner h2,
.hbt-seo-content-inner h3,
.hbt-seo-content-inner h4 {
    margin: 20px 0 10px;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.3;
}
.hbt-seo-content-inner h2 { font-size: 22px; }
.hbt-seo-content-inner h3 { font-size: 18px; }
.hbt-seo-content-inner h4 { font-size: 16px; }
.hbt-seo-content-inner p {
    margin: 0 0 14px;
}
.hbt-seo-content-inner a {
    color: var(--primary-d);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(124, 179, 66, .3);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s;
}
.hbt-seo-content-inner a:hover {
    text-decoration-color: var(--primary-d);
}
.hbt-seo-content-inner ul,
.hbt-seo-content-inner ol {
    margin: 0 0 14px 22px;
    padding: 0;
}
.hbt-seo-content-inner li {
    margin: 0 0 6px;
}
.hbt-seo-content-inner strong {
    font-weight: 700;
    color: var(--dark);
}
.hbt-seo-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .hbt-seo-expandable {
        padding: 28px 0 14px;
    }
    .hbt-seo-expandable .container-full {
        padding: 0 14px;
    }
    .hbt-seo-toggle {
        padding: 16px 18px;
        font-size: 15px;
    }
    .hbt-seo-content-inner {
        padding: 6px 18px 20px;
        font-size: 14px;
    }
    .hbt-seo-content-inner h2 { font-size: 19px; }
    .hbt-seo-content-inner h3 { font-size: 16px; }
}

/* ================================================================ */
/* KONIEC v2.6.2                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.3 — PAGE TEMPLATE POLISH + LINKS FIX (2026-04-21)
 * ----------------------------------------------------------------
 * User: "Podepnij i popraw inteligetnie każdy z linków... przyjmij
 * jakies szablony naglowek itp. zeby w pelni sie synchronizowal z
 * edytorem klasycznym do stron".
 *
 * PHP (gotowe w tej samej wersji):
 *   • header.php — 11 nowych URL rezolwerów z aliasami slugów
 *     (maszyny-komunalne → maszyny-komunalne-kubota-cubcadet itd.)
 *   • Submenu "O nas" i "Serwis" podpięte do realnych slugów
 *   • shortcodes-chrome.php:352-353 — footer links przez slug resolver
 *     (regulamin → regulamin-sklepu, reklamacje → reklamacje-i-zwroty,
 *      koszt-wysylki dodane)
 *   • archive-product.php — SEO collapsible [post_id=7] na dole /sklep/
 *
 * CSS (poniżej):
 *   • .hbt-page-header = jednolity hero dla wszystkich stron page.php
 *     (regulamin, serwis, o-nas, polityka itp.) — radius 14, primary-d
 *     gradient, H1 centered, max-width z var(--hbt-page-max-width)
 *   • .hbt-page-content = typography polish (prose-like), clean H2/H3,
 *     paragraf max 70ch dla czytelności, lists, tables, blockquote
 * ================================================================ */

/* ---------- HERO nagłówka strony (page.php) ---------- */
.hbt-page .hbt-page-header {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--tertiary) 100%);
    color: #fff;
    padding: clamp(32px, 5vw, 56px) 0;
    margin: 0 0 32px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.hbt-page .hbt-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .08) 0, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .06) 0, transparent 50%);
    pointer-events: none;
}
.hbt-page .hbt-page-header .container-full {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    box-sizing: border-box;
}
.hbt-page .hbt-page-header h1 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

/* ---------- Page content typography (prose style) ---------- */
.hbt-page-content:not(.hbt-page-content--shortcode) {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 40px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}
.hbt-page-content:not(.hbt-page-content--shortcode) > .container-full {
    max-width: 100%;
    padding: 0;
}
.hbt-page-content:not(.hbt-page-content--shortcode) h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 32px 0 16px;
    line-height: 1.25;
}
.hbt-page-content:not(.hbt-page-content--shortcode) h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin: 36px 0 14px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-l);
}
.hbt-page-content:not(.hbt-page-content--shortcode) h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 10px;
    line-height: 1.35;
}
.hbt-page-content:not(.hbt-page-content--shortcode) h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 22px 0 8px;
}
.hbt-page-content:not(.hbt-page-content--shortcode) p {
    margin: 0 0 16px;
    max-width: 72ch;
}
.hbt-page-content:not(.hbt-page-content--shortcode) a {
    color: var(--primary-d);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(124, 179, 66, .3);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s;
}
.hbt-page-content:not(.hbt-page-content--shortcode) a:hover {
    text-decoration-color: var(--primary-d);
}
.hbt-page-content:not(.hbt-page-content--shortcode) ul,
.hbt-page-content:not(.hbt-page-content--shortcode) ol {
    margin: 0 0 16px 24px;
    padding: 0;
}
.hbt-page-content:not(.hbt-page-content--shortcode) li {
    margin: 0 0 8px;
    line-height: 1.65;
}
.hbt-page-content:not(.hbt-page-content--shortcode) strong,
.hbt-page-content:not(.hbt-page-content--shortcode) b {
    font-weight: 700;
    color: var(--dark);
}
.hbt-page-content:not(.hbt-page-content--shortcode) em,
.hbt-page-content:not(.hbt-page-content--shortcode) i {
    font-style: italic;
}
.hbt-page-content:not(.hbt-page-content--shortcode) blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg2);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    color: var(--text);
    font-style: italic;
}
.hbt-page-content:not(.hbt-page-content--shortcode) blockquote p:last-child {
    margin-bottom: 0;
}
.hbt-page-content:not(.hbt-page-content--shortcode) img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}
.hbt-page-content:not(.hbt-page-content--shortcode) hr {
    border: 0;
    height: 1px;
    background: var(--border-l);
    margin: 32px 0;
}
.hbt-page-content:not(.hbt-page-content--shortcode) table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.hbt-page-content:not(.hbt-page-content--shortcode) table th,
.hbt-page-content:not(.hbt-page-content--shortcode) table td {
    padding: 10px 14px;
    border: 1px solid var(--border-l);
    text-align: left;
    vertical-align: top;
}
.hbt-page-content:not(.hbt-page-content--shortcode) table th {
    background: var(--bg2);
    font-weight: 700;
    color: var(--dark);
}

/* Mobile page template polish */
@media (max-width: 768px) {
    .hbt-page .hbt-page-header {
        border-radius: 10px;
        padding: 32px 0;
        margin: 0 0 24px;
    }
    .hbt-page-content:not(.hbt-page-content--shortcode) {
        padding: 0 14px 28px;
        font-size: 15px;
        line-height: 1.7;
    }
    .hbt-page-content:not(.hbt-page-content--shortcode) h2 { font-size: 20px; margin: 24px 0 10px; }
    .hbt-page-content:not(.hbt-page-content--shortcode) h3 { font-size: 17px; margin: 20px 0 8px; }
    .hbt-page-content:not(.hbt-page-content--shortcode) ul,
    .hbt-page-content:not(.hbt-page-content--shortcode) ol {
        margin-left: 20px;
    }
}

/* ================================================================ */
/* KONIEC v2.6.3                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.4 — SEO EXPANDABLE UNIFIKACJA + ANIMACJE (2026-04-21)
 * ----------------------------------------------------------------
 * User: "zobacz jak rozjechany jest tekst w stopce - zunifikuj
 * dodaj animacje i rozwijanie".
 *
 * Live diagnoza wykazała:
 *   • container_maxW: 100% zamiast 1400px (globalna .container-full
 *     wygrywała specyficznością nad moim v2.6.2)
 *   • paragrafy bez max-width → tekst na pełnej szerokości ekranu
 *   • brak animacji fade-in zawartości (tylko max-height transition)
 *   • h2/h3 bez border-bottom / spójnego stylingu jak .hbt-page-content
 *
 * Fix v2.6.4:
 *   • Selektor .hbt-seo-expandable > .container-full (bezpośredni
 *     child) z !important i max-width 1100px centered
 *   • Paragrafy max-width 72ch (~900px, czytelne)
 *   • Animacje: chevron rotate 180°, fadeIn content, subtle
 *     background transitions on hover toggle
 *   • H2 z border-bottom (unifikacja z .hbt-page-content h2)
 *   • Typografia prose-like (list, blockquote, table)
 * ================================================================ */

/* ---------- Section wrapper (tła + odstępy) ---------- */
section.hbt-seo-expandable {
    background: var(--bg) !important;
    padding: clamp(32px, 5vw, 56px) 0 clamp(16px, 2vw, 24px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ---------- Container: centered + max-width ---------- */
/* v2.5.8 forsuje na main#mainContent.hbt-main-wrap ... .container-full
 * max-width: 100% (spec 0,1,3,2). Musimy użyć analogicznego łańcucha
 * żeby wygrać cascade (równa spec + pozycja later in stylesheet). */
main#mainContent.hbt-main-wrap section.hbt-seo-expandable > .container-full,
main#mainContent.hbt-main-wrap section.hbt-seo-expandable .container-full,
body main#mainContent section.hbt-seo-expandable > .container-full,
body main#mainContent section.hbt-seo-expandable .container-full {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* ---------- Inner card ---------- */
section.hbt-seo-expandable .hbt-seo-inner {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(26, 23, 20, .04) !important;
    transition: box-shadow .25s ease, border-color .25s ease !important;
}
section.hbt-seo-expandable .hbt-seo-inner:hover {
    border-color: var(--primary-l) !important;
    box-shadow: 0 6px 24px rgba(26, 23, 20, .08) !important;
}

/* ---------- Toggle button ---------- */
section.hbt-seo-expandable .hbt-seo-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 18px 24px !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--dark) !important;
    text-align: left !important;
    transition: background .2s ease, padding .3s cubic-bezier(.4, 0, .2, 1) !important;
}
section.hbt-seo-expandable .hbt-seo-toggle:hover {
    background: rgba(139, 195, 74, .05) !important;
}
section.hbt-seo-expandable .hbt-seo-toggle:focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: -2px !important;
}

/* State: expanded → większy padding, subtle bg */
section.hbt-seo-expandable .hbt-seo-inner:has(.hbt-seo-toggle[aria-expanded="true"]) {
    border-color: var(--primary-l) !important;
    box-shadow: 0 8px 30px rgba(26, 23, 20, .08) !important;
}
section.hbt-seo-expandable .hbt-seo-toggle[aria-expanded="true"] {
    background: rgba(139, 195, 74, .06) !important;
    border-bottom: 1px solid var(--border-l) !important;
}

section.hbt-seo-expandable .hbt-seo-toggle-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
section.hbt-seo-expandable .hbt-seo-toggle-label i {
    font-size: 18px !important;
    color: var(--primary-d) !important;
    flex-shrink: 0 !important;
    transition: transform .3s ease !important;
}
section.hbt-seo-expandable .hbt-seo-toggle[aria-expanded="true"] .hbt-seo-toggle-label i {
    transform: scale(1.1) !important;
}

/* ---------- Chevron indicator with rotate animation ---------- */
section.hbt-seo-expandable .hbt-seo-toggle-indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: var(--bg2) !important;
    color: var(--primary-d) !important;
    font-size: 13px !important;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), background .2s ease, color .2s ease !important;
    flex-shrink: 0 !important;
}
section.hbt-seo-expandable .hbt-seo-toggle[aria-expanded="true"] .hbt-seo-toggle-indicator {
    transform: rotate(180deg) !important;
    background: var(--primary) !important;
    color: #fff !important;
}
section.hbt-seo-expandable .hbt-seo-toggle:hover .hbt-seo-toggle-indicator {
    background: var(--primary-l) !important;
    color: #fff !important;
}
section.hbt-seo-expandable .hbt-seo-toggle[aria-expanded="true"]:hover .hbt-seo-toggle-indicator {
    background: var(--primary-d) !important;
}

/* ---------- Content panel: smooth max-height + fadeIn ---------- */
section.hbt-seo-expandable .hbt-seo-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height .5s cubic-bezier(.4, 0, .2, 1) !important;
    opacity: 0 !important;
    transition: max-height .5s cubic-bezier(.4, 0, .2, 1), opacity .4s ease !important;
}
section.hbt-seo-expandable .hbt-seo-content[aria-hidden="false"] {
    opacity: 1 !important;
}

/* ---------- Content inner: typography prose + max-width ---------- */
section.hbt-seo-expandable .hbt-seo-content-inner {
    padding: 28px 32px 32px !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: var(--text) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    animation: hbtSeoFadeIn .5s ease both !important;
}
section.hbt-seo-expandable .hbt-seo-content[aria-hidden="true"] .hbt-seo-content-inner {
    animation: none !important;
}

@keyframes hbtSeoFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Headings — unifikacja z .hbt-page-content */
section.hbt-seo-expandable .hbt-seo-content-inner h1,
section.hbt-seo-expandable .hbt-seo-content-inner h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 16px !important;
    padding: 0 0 10px !important;
    border-bottom: 2px solid var(--border-l) !important;
    line-height: 1.3 !important;
}
section.hbt-seo-expandable .hbt-seo-content-inner h3 {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 24px 0 10px !important;
    line-height: 1.35 !important;
}
section.hbt-seo-expandable .hbt-seo-content-inner h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 20px 0 8px !important;
}

/* Paragraphs — max-width dla czytelności (~72ch = 900px) */
section.hbt-seo-expandable .hbt-seo-content-inner p {
    margin: 0 0 14px !important;
    max-width: 72ch !important;
    color: var(--text) !important;
}

/* Strong in-line — wyróżnienie marek/kategorii */
section.hbt-seo-expandable .hbt-seo-content-inner strong,
section.hbt-seo-expandable .hbt-seo-content-inner b {
    font-weight: 700 !important;
    color: var(--dark) !important;
}

/* Links — prose style */
section.hbt-seo-expandable .hbt-seo-content-inner a {
    color: var(--primary-d) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(124, 179, 66, .3) !important;
    text-underline-offset: 3px !important;
    transition: color .15s, text-decoration-color .15s !important;
}
section.hbt-seo-expandable .hbt-seo-content-inner a:hover {
    color: var(--primary) !important;
    text-decoration-color: var(--primary) !important;
}

/* Lists */
section.hbt-seo-expandable .hbt-seo-content-inner ul,
section.hbt-seo-expandable .hbt-seo-content-inner ol {
    margin: 0 0 14px 22px !important;
    padding: 0 !important;
    max-width: 72ch !important;
}
section.hbt-seo-expandable .hbt-seo-content-inner li {
    margin: 0 0 6px !important;
    line-height: 1.65 !important;
}

/* Blockquote */
section.hbt-seo-expandable .hbt-seo-content-inner blockquote {
    margin: 16px 0 !important;
    padding: 14px 18px !important;
    background: var(--bg2) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: var(--text) !important;
    max-width: 72ch !important;
}

/* Images */
section.hbt-seo-expandable .hbt-seo-content-inner img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    margin: 12px 0 !important;
}

/* Tables */
section.hbt-seo-expandable .hbt-seo-content-inner table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 16px 0 !important;
    font-size: 14px !important;
    max-width: 100% !important;
}
section.hbt-seo-expandable .hbt-seo-content-inner table th,
section.hbt-seo-expandable .hbt-seo-content-inner table td {
    padding: 10px 14px !important;
    border: 1px solid var(--border-l) !important;
    text-align: left !important;
    vertical-align: top !important;
}
section.hbt-seo-expandable .hbt-seo-content-inner table th {
    background: var(--bg2) !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
    section.hbt-seo-expandable {
        padding: 28px 0 14px !important;
    }
    section.hbt-seo-expandable > .container-full,
    section.hbt-seo-expandable .container-full {
        padding: 0 14px !important;
    }
    section.hbt-seo-expandable .hbt-seo-toggle {
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
    section.hbt-seo-expandable .hbt-seo-toggle-indicator {
        width: 30px !important;
        height: 30px !important;
    }
    section.hbt-seo-expandable .hbt-seo-content-inner {
        padding: 20px 18px 24px !important;
        font-size: 14px !important;
    }
    section.hbt-seo-expandable .hbt-seo-content-inner h2 {
        font-size: 20px !important;
    }
    section.hbt-seo-expandable .hbt-seo-content-inner h3 {
        font-size: 17px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.6.4                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.5 — KONTAKT HERO FIX: h1 czytelny na ciemnym gradient
 * (2026-04-21)
 * ----------------------------------------------------------------
 * User: "przerob strone kontakt zeby znowu była tak ustawiona i
 * czytelna".
 *
 * Root cause: v2.6.3 dodałem regułę
 *   .hbt-page-content:not(.hbt-page-content--shortcode) h1 {
 *     color: var(--dark);
 *   }
 * która MATCHOWAŁA h1 w .contact-hero bo page.php nie dodawało klasy
 * --shortcode gdy shortcode był auto-injectowany (nie zapisany w
 * post_content). Skutek: h1 "Skontaktuj się z nami" rysowany kolorem
 * dark (#1A1714) na ciemnym gradient tle → nieczytelny.
 *
 * Fix:
 *   1) page.php — klasa --shortcode też dla auto-shortcode fallback
 *      ($hbt_will_auto). Już naprawione.
 *   2) CSS (tutaj) — bulletproof override: .contact-hero h1 {color:fff
 *      !important} + overrides dla innych ciemnych hero sekcji.
 * ================================================================ */

/* Contact hero — tekst na ciemnym gradient ZAWSZE biały */
section.contact-hero h1,
.hbt-page-content .contact-hero h1,
.hbt-page-content--shortcode .contact-hero h1,
.hbt-page-content:not(.hbt-page-content--shortcode) .contact-hero h1 {
    color: #fff !important;
    font-size: clamp(26px, 4vw, 38px) !important;
    font-weight: 800 !important;
    margin: 0 0 16px !important;
    line-height: 1.2 !important;
}
section.contact-hero .contact-hero-lead,
.hbt-page-content .contact-hero .contact-hero-lead {
    color: rgba(255, 255, 255, .85) !important;
}
section.contact-hero .contact-hero-eyebrow {
    color: var(--secondary) !important; /* yellow FDD835 */
    background: rgba(255, 255, 255, .18) !important;
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    margin-bottom: 14px !important;
}
section.contact-hero .btn-primary-contact,
section.contact-hero .btn-secondary-contact {
    color: #fff !important;
}
section.contact-hero .btn-primary-contact {
    background: rgba(255, 255, 255, .15) !important;
    border: 1px solid rgba(255, 255, 255, .3) !important;
}
section.contact-hero .btn-primary-contact:hover {
    background: rgba(255, 255, 255, .25) !important;
}
section.contact-hero .btn-secondary-contact {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
}
section.contact-hero .btn-secondary-contact:hover {
    background: rgba(255, 255, 255, .18) !important;
}

/* Guard dla innych hero sekcji które renderują się przez shortcode
 * i mogą złapać regułę prose typography (dark color na ciemnym tle). */
section.hbt-blog-hero h1,
section.hbt-page-header h1,
.hbt-page-content section.contact-hero h1,
.hbt-page-content section.hbt-blog-hero h1,
.hbt-page-content section.hbt-page-header h1 {
    color: #fff !important;
}

/* ================================================================ */
/* KONIEC v2.6.5                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.6 — PAGE CONTENT: full-width tekst + usunięcie dubli
 * (2026-04-21)
 * ----------------------------------------------------------------
 * User: "na stronach dublujesz naglowek i nie pozwalasz zeby tekst
 * justowal sie normalnie od boku do boku".
 *
 * 2 naprawy:
 *   1) PHP (page.php): wykrywanie H1/H2/H3 w pierwszych 400 znakach
 *      contentu → jeśli autor dodał własny heading na górze, NIE
 *      renderujemy .hbt-page-header (żadnego duplikatu).
 *   2) CSS (tutaj): usunięcie max-width: 72ch z paragrafów i wrapper
 *      900px — treść rozciąga się na całą szerokość kontenera
 *      (ograniczoną tylko przez --hbt-page-max-width = 1400px).
 *
 * UWAGA: max-width 72ch zostaje w .hbt-seo-expandable (stopka SEO) —
 * tam węższa kolumna jest pożądana (mały blok SEO, nie artykuł).
 * ================================================================ */

/* Wrapper — full-width (bez 900px ograniczenia) */
.hbt-page-content:not(.hbt-page-content--shortcode) {
    max-width: none !important;
    width: 100% !important;
    padding: 0 24px 40px !important;
    margin: 0 !important;
}
.hbt-page-content:not(.hbt-page-content--shortcode) > .container-full {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Paragraf — usuń max-width 72ch, niech idzie od krawędzi do krawędzi */
.hbt-page-content:not(.hbt-page-content--shortcode) p {
    max-width: none !important;
}
.hbt-page-content:not(.hbt-page-content--shortcode) ul,
.hbt-page-content:not(.hbt-page-content--shortcode) ol {
    max-width: none !important;
}
.hbt-page-content:not(.hbt-page-content--shortcode) blockquote {
    max-width: none !important;
}

/* Mobile — mniejszy padding */
@media (max-width: 768px) {
    .hbt-page-content:not(.hbt-page-content--shortcode) {
        padding: 0 14px 28px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.6.6                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.8 — SHOP GRID Z CUSTOMIZERA + LIST VIEW OD ZERA (2026-04-21)
 * ----------------------------------------------------------------
 * User: "edytor wizualny nie działa z produktami — produkty w wersji
 * poziomej trzeba zrobic osobny szablon bo wygląda źle".
 *
 * Root cause grid:
 *   • v2.4 blok hardcoded 4-kolumny grid. Customizer (Katalog
 *     produktów → Liczba produktów w wierszu) nie miał efektu.
 *   • Teraz functions.php wstrzykuje --hbt-shop-columns z opcji Woo,
 *     a my jej używamy w grid-template-columns.
 *
 * Root cause list view:
 *   • Poprzednia v2.5.7 miała 3-kolumna grid (160px thumb + 1fr info
 *     + 180px CTA). Placeholder HBT logo rozciągał card do ~700px
 *     wysokości (thumb 160 wyższy niż content) → każdy produkt zajmował
 *     pół ekranu.
 *   • Nowy design v2.6.8: ultra-kompaktowa karta max 120px height,
 *     thumb 96x96, flex row bez grid.
 * ================================================================ */

/* ---------- GRID: liczba kolumn z Customizera Woo ---------- */
body.woocommerce-shop ul.products:not(.list),
body.post-type-archive-product ul.products:not(.list),
body.tax-product_cat ul.products:not(.list),
body.tax-product_tag ul.products:not(.list),
body.tax-product_brand ul.products:not(.list) {
    display: grid !important;
    grid-template-columns: repeat(var(--hbt-shop-columns, 4), minmax(0, 1fr)) !important;
    gap: 18px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Mobile/tablet fallback — na małych ekranach user-set cols to za dużo */
@media (max-width: 1200px) {
    body.woocommerce-shop ul.products:not(.list),
    body.post-type-archive-product ul.products:not(.list),
    body.tax-product_cat ul.products:not(.list),
    body.tax-product_brand ul.products:not(.list) {
        grid-template-columns: repeat(min(var(--hbt-shop-columns, 4), 3), minmax(0, 1fr)) !important;
    }
}
@media (max-width: 900px) {
    body.woocommerce-shop ul.products:not(.list),
    body.post-type-archive-product ul.products:not(.list),
    body.tax-product_cat ul.products:not(.list),
    body.tax-product_brand ul.products:not(.list) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 500px) {
    body.woocommerce-shop ul.products:not(.list),
    body.post-type-archive-product ul.products:not(.list),
    body.tax-product_cat ul.products:not(.list),
    body.tax-product_brand ul.products:not(.list) {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ================================================================
 * LIST VIEW — ZUPEŁNIE NOWY KOMPAKTOWY SZABLON
 * (nadpisuje v2.5.7 które dawało 160px thumb + pełny ekran na card)
 * ================================================================ */

body.woocommerce ul.products.list,
body.woocommerce-page ul.products.list,
body.woocommerce-shop ul.products.list,
body.post-type-archive-product ul.products.list,
body.tax-product_cat ul.products.list,
body.tax-product_brand ul.products.list,
.hbt-main-wrap ul.products.list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* Każdy produkt jako ultra-kompaktowy horizontal card */
body.woocommerce ul.products.list > li.product,
body.woocommerce-page ul.products.list > li.product,
body.tax-product_brand ul.products.list > li.product,
.hbt-main-wrap ul.products.list > li.product {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) auto !important;
    grid-template-areas: "thumb info cta" !important;
    gap: 16px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(26, 23, 20, .04) !important;
    transition: border-color .15s, box-shadow .15s !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}
body.woocommerce ul.products.list > li.product:hover,
body.tax-product_brand ul.products.list > li.product:hover {
    border-color: var(--primary-l) !important;
    box-shadow: 0 4px 14px rgba(26, 23, 20, .08) !important;
}

/* hbt-loop-card__inner w list view: display:contents → dzieci
 * trafiają w grid-area parent-li */
body.woocommerce ul.products.list > li.product .hbt-loop-card__inner {
    display: contents !important;
}

/* Thumbnail — mały, kwadratowy, kompaktowy (96x96) */
body.woocommerce ul.products.list > li.product .hbt-loop-card__image,
body.woocommerce ul.products.list > li.product > a.woocommerce-LoopProduct-link {
    grid-area: thumb !important;
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--bg2) !important;
    display: block !important;
    flex: 0 0 96px !important;
    align-self: center !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__image img,
body.woocommerce ul.products.list > li.product img.attachment-woocommerce_thumbnail {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: contain !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Info column — kompaktowa, wszystko inline */
body.woocommerce ul.products.list > li.product .hbt-loop-card__body {
    grid-area: info !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    max-width: 100% !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__meta {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: var(--text-l) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
body.woocommerce ul.products.list > li.product h3.hbt-loop-card__title,
body.woocommerce ul.products.list > li.product .hbt-loop-card__title,
body.woocommerce ul.products.list > li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    color: var(--dark) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: none !important;
    min-height: 0 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__rating {
    display: none !important; /* ukrywamy rating w liście — za dużo detali */
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__price {
    margin: 2px 0 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    line-height: 1.3 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__price-net,
body.woocommerce ul.products.list > li.product .hbt-loop-card__price .woocommerce-price-suffix {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__spacer {
    display: none !important;
}

/* CTA column — kompaktowy button po prawej */
body.woocommerce ul.products.list > li.product .hbt-loop-card__cta {
    grid-area: cta !important;
    border-top: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__cta .button,
body.woocommerce ul.products.list > li.product .hbt-loop-card__btn,
body.woocommerce ul.products.list > li.product a.button.add_to_cart_button {
    width: auto !important;
    min-width: 160px !important;
    padding: 10px 18px !important;
    font-size: 12px !important;
    height: auto !important;
    min-height: 40px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
}

/* List view mobile — thumbnail + content, CTA pod spodem */
@media (max-width: 768px) {
    body.woocommerce ul.products.list > li.product,
    body.tax-product_brand ul.products.list > li.product {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        grid-template-areas:
            "thumb info"
            "cta   cta" !important;
        gap: 8px 12px !important;
        padding: 10px 12px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__image,
    body.woocommerce ul.products.list > li.product > a.woocommerce-LoopProduct-link,
    body.woocommerce ul.products.list > li.product .hbt-loop-card__image img {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
        max-height: 72px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__cta {
        justify-self: stretch !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__cta .button,
    body.woocommerce ul.products.list > li.product .hbt-loop-card__btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* ================================================================ */
/* KONIEC v2.6.8                                                     */
/* ================================================================ */

/* ================================================================
 * v2.6.9 — CART + CHECKOUT + PRODUCT PAGE FIXES (2026-04-21)
 * ----------------------------------------------------------------
 * User: "wystawianie oceny totalnie nie jest dostosowany do strony,
 * produkty podobne też, po dodaniu produktu do koszyka nagłówek
 * zajmuje dużo miejsca, koszyk sie rozsypuje, to samo podsumowanie".
 *
 * Live testy ujawniły:
 *   1) form.woocommerce-cart-form width: 380px (zamiast 896px w kolumnie 1)
 *      — moja v2.6.0 grid-template-areas "form summary" nie działała
 *      bo v2.5.2 z identycznym selektorem i specyficznością wcześniej
 *      w stylesheet wygrywała w momencie conflictu.
 *   2) Related products ul.products w: 313px — section.related.products
 *      ma display:grid z poprzednich fix'ów → ul jako 1 z 4 kolumn =
 *      tylko 313px. Produkty zgniatane do pionowych pasków.
 *   3) .hbt-page-header "Koszyk" h:142px nad formularzem — zbędny.
 *      Naprawione w page.php warunkiem is_cart()/is_checkout().
 *   4) Rating w reviews: natywny <select>Oceń… Idealne Dobre Średnio</select>
 *      — user chce klikalne gwiazdki zamiast selecta.
 * ================================================================ */

/* ---------- 1. Related products — FULL WIDTH ul.products ---------- */
/* Section to kontener, ul.products jest GRID — nie section! */
main#mainContent.hbt-main-wrap section.related.products,
main#mainContent.hbt-main-wrap section.up-sells.products,
main#mainContent.hbt-main-wrap section.cross-sells,
.sp-tabs-section section.related.products,
.sp-tabs-section section.up-sells.products {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 32px 0 0 !important;
    padding: 24px 0 0 !important;
    border-top: 1px solid var(--border-l) !important;
    clear: both !important;
    float: none !important;
}
main#mainContent.hbt-main-wrap section.related.products > h2,
main#mainContent.hbt-main-wrap section.up-sells.products > h2,
.sp-tabs-section section.related.products > h2 {
    display: block !important;
    grid-column: unset !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 0 20px !important;
    color: var(--dark) !important;
}
main#mainContent.hbt-main-wrap section.related.products ul.products,
main#mainContent.hbt-main-wrap section.up-sells.products ul.products,
main#mainContent.hbt-main-wrap section.cross-sells ul.products,
.sp-tabs-section section.related.products ul.products,
.sp-tabs-section section.up-sells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
main#mainContent.hbt-main-wrap section.related.products ul.products > li.product,
main#mainContent.hbt-main-wrap section.up-sells.products ul.products > li.product,
.sp-tabs-section section.related.products ul.products > li.product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
}
@media (max-width: 900px) {
    main#mainContent.hbt-main-wrap section.related.products ul.products,
    main#mainContent.hbt-main-wrap section.up-sells.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 500px) {
    main#mainContent.hbt-main-wrap section.related.products ul.products,
    main#mainContent.hbt-main-wrap section.up-sells.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- 2. CART + CHECKOUT: ukryj .hbt-page-header (backup) ---------- */
/* Main fix jest w page.php (is_cart/is_checkout warunek), ale backup
 * CSS na wypadek gdyby nagłówek zostawił się z poprzednich reguł. */
body.woocommerce-cart main#mainContent.hbt-main-wrap > main > article > header.hbt-page-header,
body.woocommerce-cart main#mainContent.hbt-main-wrap .hbt-page-header,
body.woocommerce-checkout main#mainContent.hbt-main-wrap .hbt-page-header,
body.woocommerce-account main#mainContent.hbt-main-wrap .hbt-page-header {
    display: none !important;
}

/* ---------- 3. CART LAYOUT BULLETPROOF v2.6.9 ---------- */
/* User: "koszyk sie rozsypuje" + form.w=380 zamiast 896.
 * Problem: cart-collaterals miał grid-column: 2, form auto-placement
 * trafiał w col 2 (380px). Fix: explicit grid-area + wrap.
 *
 * Specyficzność: body.X + main#ID + .X + .X > form = 0,1,3,2 + !important
 * = wygrywa wszystko. */

@media (min-width: 992px) {
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px !important;
        grid-template-areas:
            "notice notice"
            "form   summary" !important;
        gap: 28px !important;
        align-items: start !important;
        width: 100% !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .woocommerce-notices-wrapper {
        grid-area: notice !important;
        grid-column: unset !important;
        grid-row: unset !important;
        margin: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > form.woocommerce-cart-form {
        grid-area: form !important;
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .cart-collaterals {
        grid-area: summary !important;
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100% !important;
        max-width: 380px !important;
        float: none !important;
        margin: 0 !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
    }
}

/* ---------- 4. CHECKOUT PODSUMOWANIE: bulletproof ---------- */

@media (min-width: 992px) {
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 400px !important;
        grid-template-areas:
            "billing review-head"
            "billing review" !important;
        gap: 20px 32px !important;
        align-items: start !important;
        width: 100% !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #customer_details {
        grid-area: billing !important;
        min-width: 0 !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout h3#order_review_heading {
        grid-area: review-head !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--dark) !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #order_review {
        grid-area: review !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
        margin: 0 !important;
    }
}

/* ---------- 5. SINGLE PRODUCT — Reviews section polish ---------- */

.woocommerce-Tabs-panel--reviews,
#reviews {
    padding: 24px 0 !important;
}
.woocommerce-Tabs-panel--reviews #comments h2,
#reviews h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 16px !important;
}
#review_form_wrapper {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-top: 20px !important;
    box-shadow: 0 2px 10px rgba(26, 23, 20, .04) !important;
}
#review_form #reply-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
}
#review_form .comment-notes {
    font-size: 13px !important;
    color: var(--text-l) !important;
    margin: 0 0 16px !important;
}
#review_form #commentform .comment-form-rating {
    margin: 0 0 18px !important;
}
#review_form .comment-form-rating > label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 0 0 10px !important;
}

/* Custom star rating: hide <select>, render klikalne gwiazdki */
#review_form .comment-form-rating select#rating {
    display: none !important;
}
#review_form .comment-form-rating p.stars {
    display: inline-flex !important;
    gap: 4px !important;
    margin: 0 !important;
}
#review_form .comment-form-rating p.stars a {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: var(--border) !important;
    font-size: 26px !important;
    line-height: 1 !important;
    transition: color .15s, transform .1s !important;
}
#review_form .comment-form-rating p.stars a::before {
    content: "\2605" !important; /* ★ */
    font-family: inherit !important;
    color: inherit !important;
}
/* Hover state: highlight hovered + wszystkie przed nim (do lewej) */
#review_form .comment-form-rating p.stars a:hover,
#review_form .comment-form-rating p.stars a.active {
    color: var(--secondary) !important; /* yellow FDD835 */
}
/* Gdy hoverujesz na a[data-rating=N], wszystkie < N też powinny świecić.
 * Używamy :has() selector na parent (supported we wszystkich nowoczesnych
 * przeglądarkach od 2023). Dla a[data-rating="3"]:hover → wszystkie
 * poprzednie rodzeństwo dostają color */
#review_form .comment-form-rating p.stars a.star-1:hover,
#review_form .comment-form-rating p.stars a.star-2:hover ~ a.star-1,
#review_form .comment-form-rating p.stars:has(a.star-2:hover) a.star-1,
#review_form .comment-form-rating p.stars:has(a.star-3:hover) a.star-1,
#review_form .comment-form-rating p.stars:has(a.star-3:hover) a.star-2,
#review_form .comment-form-rating p.stars:has(a.star-4:hover) a.star-1,
#review_form .comment-form-rating p.stars:has(a.star-4:hover) a.star-2,
#review_form .comment-form-rating p.stars:has(a.star-4:hover) a.star-3,
#review_form .comment-form-rating p.stars:has(a.star-5:hover) a.star-1,
#review_form .comment-form-rating p.stars:has(a.star-5:hover) a.star-2,
#review_form .comment-form-rating p.stars:has(a.star-5:hover) a.star-3,
#review_form .comment-form-rating p.stars:has(a.star-5:hover) a.star-4 {
    color: var(--secondary) !important;
}
#review_form .comment-form-rating p.stars a > .star-label,
#review_form .comment-form-rating p.stars a > span.star-label {
    position: absolute !important;
    left: -9999px !important;
}
/* Text inside <a> (1, 2, 3...) to hide */
#review_form .comment-form-rating p.stars a {
    font-size: 0 !important;
}
#review_form .comment-form-rating p.stars a::before {
    font-size: 26px !important;
}

/* Review form inputs */
#review_form .comment-form-author input,
#review_form .comment-form-email input,
#review_form .comment-form-comment textarea {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--dark) !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
}
#review_form .comment-form-comment textarea {
    min-height: 120px !important;
    resize: vertical !important;
}
#review_form .comment-form-author input:focus,
#review_form .comment-form-email input:focus,
#review_form .comment-form-comment textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, .18) !important;
}
#review_form .comment-form-author label,
#review_form .comment-form-email label,
#review_form .comment-form-comment label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 0 0 6px !important;
}
#review_form .comment-form-cookies-consent {
    margin: 16px 0 !important;
    font-size: 13px !important;
    color: var(--text-l) !important;
}
#review_form .form-submit input[type="submit"],
#review_form #submit {
    padding: 12px 28px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .15s !important;
    min-height: 46px !important;
}
#review_form .form-submit input[type="submit"]:hover,
#review_form #submit:hover {
    background: var(--primary-d) !important;
}

/* Existing reviews list (comments) */
.commentlist,
ol.commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
}
.commentlist li.review,
.commentlist li.comment {
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin: 0 0 12px !important;
}
.commentlist .comment_container {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
}
.commentlist img.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}
.commentlist .meta strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
}
.commentlist .meta time {
    font-size: 12px !important;
    color: var(--text-l) !important;
    margin-left: 8px !important;
}
.commentlist .description p {
    margin: 6px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--text) !important;
}

/* ================================================================ */
/* KONIEC v2.6.9                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.0 — KOSZYK + CHECKOUT RESPONSYWNE OD ZERA (2026-04-21)
 * ----------------------------------------------------------------
 * Live test mobile/tablet/desktop pokazał że:
 *   MOBILE (390px): horizontal_overflow, form-padding 28px za duży,
 *     product-name squeezed do 69px, row_gta "img name remove" (z v2.5.5
 *     lub starsze) — moje v2.6.0 "thumb name remove" przegrywało cascade.
 *   TABLET (768px): product-price 457px (span'uje 2 col w starym grid).
 *   DESKTOP (1832px): OK (v2.6.9 działa).
 *
 * v2.7.0 to JEDNA spójna sekcja która NADPISUJE wszystkie poprzednie
 * grid-template-areas z v2.5.5/2.6.0/2.5.1/itp. Używa 2× ID:
 *   body.klasa + main#mainContent.hbt-main-wrap + form.klasa + table.klasa.klasa
 * Specyficzność 0,1,5,3 — bije wszystko w theme'ie.
 * ================================================================ */

/* ---------- RESET stare grid-template-areas z poprzednich wersji ---------- */
body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item,
body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce-cart-form table.cart tbody tr.cart_item {
    grid-template-areas: none !important;
    grid-template-rows: none !important;
}

/* ---------- DESKTOP ≥992px ---------- */
@media (min-width: 992px) {

    /* Wrapper 2-col grid: form | sticky summary */
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px !important;
        grid-template-areas:
            "notice notice"
            "form   summary" !important;
        gap: 28px !important;
        align-items: start !important;
        width: 100% !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .woocommerce-notices-wrapper {
        grid-area: notice !important;
        margin: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > form.woocommerce-cart-form {
        grid-area: form !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        float: none !important;
        padding: 28px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .cart-collaterals {
        grid-area: summary !important;
        width: 100% !important;
        max-width: 380px !important;
        margin: 0 !important;
        float: none !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
    }

    /* Desktop row = flex row 6-column */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        grid-template-rows: none !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 16px 0 !important;
        border-bottom: 1px solid var(--border-l) !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td {
        grid-area: auto !important;
        flex: 0 0 auto !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove { flex: 0 0 32px !important; }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail { flex: 0 0 80px !important; }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name { flex: 1 1 auto !important; min-width: 0 !important; }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-price { flex: 0 0 100px !important; text-align: right !important; }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity { flex: 0 0 120px !important; }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal { flex: 0 0 120px !important; text-align: right !important; }
}

/* ---------- TABLET + MOBILE <992px: STACK + KARTA PER PRODUKT ---------- */
@media (max-width: 991px) {

    /* Wrapper: block stack, bez sticky */
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        gap: 0 !important;
        width: 100% !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > form.woocommerce-cart-form,
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > .cart-collaterals {
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        position: static !important;
        top: auto !important;
        margin: 0 0 16px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > form.woocommerce-cart-form {
        padding: 18px !important;
    }

    /* Table → block list */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart {
        display: block !important;
        width: 100% !important;
        table-layout: auto !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart thead {
        display: none !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody {
        display: block !important;
        width: 100% !important;
    }

    /* Row: grid 3-col z EXPLICIT grid-column/row per cell (bez template-areas).
     * Use explicit placement — odporne na "grid-template-areas: none"
     * które mogą wstrzykiwać inne reset-y w theme. */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto auto !important;
        grid-template-areas: none !important;
        gap: 6px 12px !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid var(--border-l) !important;
        flex-direction: unset !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item:last-child {
        border-bottom: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item > td,
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td {
        display: block !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        text-align: left !important;
        vertical-align: top !important;
        flex: none !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item td::before {
        content: none !important;
        display: none !important;
    }

    /* Explicit grid placement — 3 rows × 3 cols:
     *   Row 1: [thumb] [name      ] [remove]
     *   Row 2: [thumb] [price     ] [qty   ]
     *   Row 3: [thumb] [  subtotal span 2  ]
     * thumb spans all 3 rows (full-height kolumna po lewej). */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 4 !important;
        grid-area: auto !important;
        align-self: start !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
        object-fit: contain !important;
        padding: 4px !important;
        background: #fff !important;
        border: 1px solid var(--border-l) !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        grid-area: auto !important;
        align-self: start !important;
        min-width: 0 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-name a {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--dark) !important;
        text-decoration: none !important;
        line-height: 1.35 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove {
        grid-column: 3 / 4 !important;
        grid-row: 1 / 2 !important;
        grid-area: auto !important;
        justify-self: end !important;
        align-self: start !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-remove a.remove {
        width: 28px !important;
        height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: var(--bg2) !important;
        color: var(--text-l) !important;
        font-size: 14px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-price {
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        grid-area: auto !important;
        align-self: center !important;
        font-size: 12px !important;
        color: var(--text-l) !important;
        font-weight: 500 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity {
        grid-column: 3 / 4 !important;
        grid-row: 2 / 3 !important;
        grid-area: auto !important;
        align-self: center !important;
        justify-self: end !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-quantity input.qty {
        width: 52px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        text-align: center !important;
        border: 1.5px solid var(--border) !important;
        border-radius: 8px !important;
        background: #fff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-subtotal {
        grid-column: 2 / 4 !important;
        grid-row: 3 / 4 !important;
        grid-area: auto !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: var(--primary-d) !important;
        padding-top: 8px !important;
        margin-top: 4px !important;
        border-top: 1px dashed var(--border-l) !important;
        text-align: right !important;
    }

    /* Actions row (kupon + update) — stack pionowo */
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions {
        display: block !important;
        margin-top: 18px !important;
        padding-top: 18px !important;
        border-top: 2px solid var(--border-l) !important;
        border-bottom: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.actions > td {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form .coupon {
        display: flex !important;
        width: 100% !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form input#coupon_code {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form button[name="update_cart"] {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Cart totals: mniejszy padding, order-total 20px */
    body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals {
        padding: 18px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap .cart-collaterals .cart_totals tr.order-total td {
        font-size: 20px !important;
    }
}

/* ---------- MOBILE <600px: compact ---------- */
@media (max-width: 600px) {
    body.woocommerce-cart main#mainContent.hbt-main-wrap .woocommerce > form.woocommerce-cart-form {
        padding: 14px !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart tbody tr.cart_item {
        grid-template-columns: 64px minmax(0, 1fr) auto !important;
        gap: 4px 10px !important;
        padding: 12px 0 !important;
    }
    body.woocommerce-cart main#mainContent.hbt-main-wrap form.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
    }
}

/* ---------- CHECKOUT RESPONSYWNIE ---------- */

/* Reset starych grid-template-areas z poprzednich wersji */
body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout {
    grid-template-areas: none;
}

@media (min-width: 992px) {
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 400px !important;
        grid-template-areas:
            "billing heading"
            "billing review" !important;
        gap: 20px 32px !important;
        align-items: start !important;
        width: 100% !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #customer_details { grid-area: billing !important; min-width: 0 !important; }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout h3#order_review_heading { grid-area: heading !important; margin: 0 !important; }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #order_review {
        grid-area: review !important;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
    }
}

@media (max-width: 991px) {
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        gap: 16px !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #customer_details {
        order: 1 !important;
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout h3#order_review_heading {
        order: 2 !important;
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        margin: 4px 0 !important;
    }
    body.woocommerce-checkout main#mainContent.hbt-main-wrap form.checkout #order_review {
        order: 3 !important;
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        position: static !important;
        top: auto !important;
        width: 100% !important;
    }
}

/* ================================================================ */
/* KONIEC v2.7.0                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.1 — LIST VIEW COMPACT + PER-PAGE FORM (2026-04-21)
 * ----------------------------------------------------------------
 * User: "nie da sie zmienic ilosci wyswietlanych produktow, produkty
 * w wersji pozimowej wygladaja sredni".
 *
 * Live test pokazał:
 *   • List view li.product h: 404px — card zajmuje pół ekranu!
 *   • Thumbnail 160×160 (zbyt duży)
 *   • grid-template-columns: "160px 1fr 200px" (stare v2.5.7)
 *   • Moje v2.6.8 "96px 1fr auto" nie wygrywało (równa specyficzność,
 *     v2.5.7 było wcześniej w stylesheet)
 *
 * Fix v2.7.1:
 *   1) main#mainContent.hbt-main-wrap w selektorze = wyższa spec (0,1,X,Y)
 *      bije wszystkie poprzednie list-view reguły (0,0,X,Y).
 *   2) Nowy compact design:
 *      • Thumb 80×80 (było 160 → -50%)
 *      • Card h max ~110px (było 404 → -72%!)
 *      • CTA 150px min-width (było 200)
 *      • Title 14px (było 16), 2-line clamp
 *      • Cena 16px/800 primary-d
 *      • Cena netto mała inline (11px/500 muted)
 *      • Rating: gwiazdki 11px inline z ratingiem i liczbą
 *
 * Per-page (archive-product.php):
 *   • Zamieniono inline onchange="…" na <form method="GET"> z auto-
 *     submit JS (LiteSpeed strippował onchange attribute)
 *   • Hidden inputs zachowują pozostałe GET params (orderby itp.)
 * ================================================================ */

/* --- LIST VIEW CONTAINER --- */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list,
body.woocommerce-shop main#mainContent.hbt-main-wrap ul.products.list,
body.post-type-archive-product main#mainContent.hbt-main-wrap ul.products.list,
body.tax-product_cat main#mainContent.hbt-main-wrap ul.products.list,
body.tax-product_brand main#mainContent.hbt-main-wrap ul.products.list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* --- LI.PRODUCT: compact horizontal card --- */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product,
body.woocommerce-shop main#mainContent.hbt-main-wrap ul.products.list > li.product,
body.tax-product_cat main#mainContent.hbt-main-wrap ul.products.list > li.product,
body.tax-product_brand main#mainContent.hbt-main-wrap ul.products.list > li.product {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) 150px !important;
    grid-template-areas: "thumb info cta" !important;
    grid-template-rows: auto !important;
    gap: 14px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 14px !important;
    background: #fff !important;
    border: 1px solid var(--border-l) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(26, 23, 20, .04) !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    transition: border-color .15s, box-shadow .15s !important;
    /* Reset legacy flex/layout */
    flex-direction: unset !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product:hover {
    border-color: var(--primary-l) !important;
    box-shadow: 0 4px 14px rgba(26, 23, 20, .08) !important;
}

/* hbt-loop-card__inner → display:contents żeby dzieci trafiały w grid-area */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__inner {
    display: contents !important;
}

/* --- THUMBNAIL 80×80 (compact) --- */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__image,
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product > a.woocommerce-LoopProduct-link {
    grid-area: thumb !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--bg2) !important;
    display: block !important;
    flex: none !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__image img,
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product img.attachment-woocommerce_thumbnail {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    display: block !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__sale {
    display: none !important; /* "Promocja" badge — odpadamy w compact list */
}

/* --- INFO column --- */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__body {
    grid-area: info !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    align-items: flex-start !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__meta {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: var(--text-l) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product h3.hbt-loop-card__title,
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    color: var(--dark) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: none !important;
    min-height: 0 !important;
    word-break: break-word !important;
}

/* Rating (gwiazdki) inline small */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__rating {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 2px 0 !important;
    min-height: 0 !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__rating .star-rating {
    font-size: 11px !important;
    height: 1.2em !important;
    line-height: 1.2em !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__rating-count {
    font-size: 11px !important;
    color: var(--text-l) !important;
}

/* Price: compact inline — brutto 16px + netto 11px */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__price {
    margin: 2px 0 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--primary-d) !important;
    line-height: 1.3 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 2px 6px !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__price .woocommerce-price-suffix {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__price-net {
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-l) !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__spacer {
    display: none !important;
}

/* --- CTA column --- */
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__cta {
    grid-area: cta !important;
    border-top: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: center !important;
    justify-self: stretch !important;
    width: 100% !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__cta .button,
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__btn,
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product a.button.add_to_cart_button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    height: auto !important;
    min-height: 40px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: .3px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__btn:hover {
    background: var(--primary-d) !important;
}

/* --- MOBILE <768px: 2-col grid [thumb | info], CTA pełna szerokość pod ---- */
@media (max-width: 768px) {
    body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        grid-template-areas: "thumb info" "cta cta" !important;
        gap: 8px 12px !important;
        padding: 10px 12px !important;
    }
    body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__image,
    body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product > a.woocommerce-LoopProduct-link {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
        max-height: 72px !important;
    }
    body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__image img {
        width: 72px !important;
        height: 72px !important;
    }
    body.woocommerce main#mainContent.hbt-main-wrap ul.products.list > li.product .hbt-loop-card__cta {
        grid-area: cta !important;
    }
}

/* --- PER-PAGE FORM — style dla <form> wrapping per-page selector --- */
.hbt-shop-toolbar form.hbt-toolbar-ppp {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hbt-shop-toolbar form.hbt-toolbar-ppp .hbt-toolbar-ppp__submit {
    padding: 8px 14px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* ================================================================ */
/* KONIEC v2.7.1                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.3 — MOBILE: search hide on scroll + bez flicker (2026-04-21)
 * ----------------------------------------------------------------
 * User: "pole wyszukiwania w wersji mobilnej nie znika calkowice
 * tylko mruga jak przewijam do gory".
 *
 * Przyczyna: body.header-scrolled zmienia height inputu (52→42px)
 * + transition: all powoduje re-layout mig kiedy scroll przekracza
 * threshold (tam-i-z-powrotem gdy user scrolluje pod 100px).
 *
 * Fix mobile (<768px):
 *   • body.header-scrolled .site-search → max-height:0 + opacity:0
 *     (smooth fade out, całkowicie chowa pasek)
 *   • transition ograniczony do max-height + opacity (nie "all" —
 *     żeby nie re-layoutować)
 *   • Gdy user scrolluje do góry → body.header-scrolled zdejmuje się
 *     → pasek wraca (smooth).
 * ================================================================ */

@media (max-width: 768px) {
    /* Site-search: smooth collapse gdy body.header-scrolled */
    body .site-search,
    body form.site-search {
        max-height: 100px !important;
        opacity: 1 !important;
        overflow: hidden !important;
        transition: max-height .3s ease, opacity .2s ease, margin .3s ease, padding .3s ease !important;
    }
    body.header-scrolled .site-search,
    body.header-scrolled form.site-search {
        max-height: 0 !important;
        opacity: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-top-width: 0 !important;
        border-bottom-width: 0 !important;
        pointer-events: none !important;
    }
    /* Zablokuj re-layout inside — usuń "transition: all" i fixed height switching */
    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-hamburger,
    body:not(.header-scrolled) .site-search input.search-input,
    body:not(.header-scrolled) .site-search .search-submit {
        transition: none !important; /* zero flicker na mobile */
    }
}

/* ================================================================ */
/* KONIEC v2.7.3                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.4 — SEO COLLAPSIBLE: class-based toggle (2026-04-21)
 * ----------------------------------------------------------------
 * User: "nie rozwijaj sie opisy podpiete do strony sprawdz sobie
 * na stronie glownej".
 *
 * Root cause (live):
 *   • Inline <script> per-shortcode strippowany przez LiteSpeed.
 *   • Moje v2.6.4 CSS ma `max-height: 0 !important`.
 *   • Nawet gdy JS ustawiał style.maxHeight inline, !important w CSS
 *     wygrywał → computed maxHeight: 0 (panel niewidoczny mimo że
 *     aria-expanded=true i DOM's inline style mówi 812px).
 *
 * Fix:
 *   1) JS w functions.php (wp_footer, data-no-optimize) używa teraz
 *      class toggle: section.hbt-seo-expandable.is-expanded.
 *   2) CSS tutaj: gdy section ma .is-expanded → max-height: 2000px
 *      + wyższa specyficzność niż oryginalna `max-height: 0`.
 * ================================================================ */

/* Section z klasą .is-expanded → panel rozwija się */
section.hbt-seo-expandable.is-expanded .hbt-seo-content,
section.hbt-seo-expandable.is-expanded > .container-full .hbt-seo-content,
.hbt-seo-expandable.is-expanded .hbt-seo-content {
    max-height: 4000px !important; /* dostatecznie duża dla longest SEO text */
    opacity: 1 !important;
    overflow: hidden !important;
}

/* Gdy user zwija, wracamy do max-height: 0 — definicja już jest wyżej
 * w v2.6.4, tu tylko upewniamy się że .is-expanded jest głównym
 * sterownikiem. Transition działa: 0 → 4000 → 0 smooth. */

/* Chevron rotation — także na .is-expanded (redundant z aria-expanded
 * ale pewność): */
section.hbt-seo-expandable.is-expanded .hbt-seo-toggle-indicator {
    transform: rotate(180deg) !important;
    background: var(--primary) !important;
    color: #fff !important;
}
section.hbt-seo-expandable.is-expanded .hbt-seo-toggle {
    background: rgba(139, 195, 74, .06) !important;
    border-bottom: 1px solid var(--border-l) !important;
}

/* ================================================================ */
/* KONIEC v2.7.4                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.5 — UNIFIKACJA NAGŁÓWKA PODSTRON Z BLOG HERO (2026-04-21)
 * ----------------------------------------------------------------
 * User: "jak jest nagłówek jakieś podstrony to niech on będzie w
 * takim samym prostokącie jak BLOG".
 *
 * Live .hbt-blog-hero:
 *   background: linear-gradient(135deg, #1A1714 0%, #2D5016 55%, #8BC34A 100%)
 *   padding: 48px 32px
 *   border-radius: 10px
 *   color: #fff
 *   H1: 38px, white
 *
 * Dopasowuję .hbt-page-header 1:1 — każda podstrona (regulamin,
 * polityka, serwis, o-nas, koszt-wysylki, reklamacje etc.) wygląda
 * identycznie jak hero blogu.
 * ================================================================ */

.hbt-page .hbt-page-header,
main.hbt-page > article > .hbt-page-header,
article.hbt-page-article > .hbt-page-header {
    background: linear-gradient(135deg, #1A1714 0%, #2D5016 55%, #8BC34A 100%) !important;
    color: #fff !important;
    padding: 48px 32px !important;
    margin: 0 0 28px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 16px rgba(26, 23, 20, .08) !important;
}

.hbt-page .hbt-page-header::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .08) 0, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .06) 0, transparent 50%) !important;
    pointer-events: none !important;
}

.hbt-page .hbt-page-header > .container-full,
.hbt-page .hbt-page-header > div {
    position: relative !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.hbt-page .hbt-page-header h1,
.hbt-page .hbt-page-header .container-full h1 {
    font-size: clamp(26px, 4vw, 38px) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15) !important;
    border: 0 !important;
}

/* Opcjonalny podtytuł / lead pod H1 (jeśli page ma excerpt) */
.hbt-page .hbt-page-header .hbt-page-subtitle,
.hbt-page .hbt-page-header .page-excerpt,
.hbt-page .hbt-page-header p {
    color: rgba(255, 255, 255, .85) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin: 10px 0 0 !important;
    line-height: 1.65 !important;
    max-width: 800px !important;
}

/* Mobile: kompakt, mniejszy padding */
@media (max-width: 768px) {
    .hbt-page .hbt-page-header,
    main.hbt-page > article > .hbt-page-header,
    article.hbt-page-article > .hbt-page-header {
        padding: 32px 20px !important;
        margin: 0 0 20px !important;
        border-radius: 10px !important;
    }
    .hbt-page .hbt-page-header h1 {
        font-size: 24px !important;
    }
    .hbt-page .hbt-page-header p {
        font-size: 14px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.7.5                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.6 — UNIFIKACJA HERO: BRAND + CATEGORY (2026-04-21)
 * ----------------------------------------------------------------
 * User: "jak wejdziesz w wersji mobilnej na jakiegokolwiek
 * producenta cały nagłówek z opisem czasami jest długgggiiii
 * trzeba byłoby ustawic taka sama szerokość i długość jak bloga
 * tylko dolozyc strzalke zeby sie rozwinal opis w calosci".
 *
 * Design:
 *   • Klasa .hbt-hero-uni (unified hero) z brand + category layouts
 *   • 1:1 size z blog-hero: padding 48px 32px, radius 10px, gradient
 *     135° (#1A1714 → #2D5016 → #8BC34A), white text
 *   • Desktop: [copy 1fr] [image 200px] — side by side
 *   • Mobile: [image centered top] + [copy stack], opis clamp do
 *     3 linii + button "Pokaż więcej"
 *   • Click button → section.is-expanded → opis full-height
 * ================================================================ */

/* ---------- UNIFIED HERO (brand + category) ---------- */
section.hbt-hero-uni,
.hbt-cat-hero.hbt-hero-uni,
.hbt-brand-hero.hbt-hero-uni {
    background: linear-gradient(135deg, #1A1714 0%, #2D5016 55%, #8BC34A 100%) !important;
    color: #fff !important;
    padding: 48px 32px !important;
    margin: 0 0 28px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 16px rgba(26, 23, 20, .08) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
section.hbt-hero-uni::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .08) 0, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .06) 0, transparent 50%) !important;
    pointer-events: none !important;
}

/* Inner: 2-col layout (copy | image) */
section.hbt-hero-uni .hbt-hero-uni-inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 200px !important;
    gap: 32px !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

section.hbt-hero-uni .hbt-hero-uni-copy {
    min-width: 0 !important;
    text-align: left !important;
}

section.hbt-hero-uni .hbt-hero-uni-eyebrow {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: var(--secondary) !important;
    background: rgba(255, 255, 255, .15) !important;
    padding: 5px 14px !important;
    border-radius: 999px !important;
    margin-bottom: 14px !important;
}

section.hbt-hero-uni h1 {
    font-size: clamp(26px, 4vw, 38px) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15) !important;
}

section.hbt-hero-uni .hbt-hero-uni-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 0 14px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 500 !important;
}
section.hbt-hero-uni .hbt-hero-uni-meta i {
    color: var(--secondary) !important;
    margin-right: 6px !important;
}
section.hbt-hero-uni .hbt-hero-uni-meta .hbt-brand-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    background: rgba(255, 255, 255, .12) !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

/* Desc — full-height on desktop, clamp on mobile */
section.hbt-hero-uni .hbt-hero-uni-desc {
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, .85) !important;
    margin: 8px 0 0 !important;
    max-width: 680px !important;
    overflow: hidden !important;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1) !important;
}
section.hbt-hero-uni .hbt-hero-uni-desc p {
    margin: 0 0 8px !important;
    color: inherit !important;
    font-size: inherit !important;
}
section.hbt-hero-uni .hbt-hero-uni-desc p:last-child {
    margin-bottom: 0 !important;
}

/* Toggle button — desktop: hidden (opis full-width), mobile: visible */
section.hbt-hero-uni .hbt-hero-uni-toggle {
    display: none !important; /* Desktop: hidden by default */
    align-items: center !important;
    gap: 6px !important;
    margin: 10px 0 0 !important;
    padding: 8px 14px !important;
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s !important;
}
section.hbt-hero-uni .hbt-hero-uni-toggle:hover {
    background: rgba(255, 255, 255, .25) !important;
    border-color: rgba(255, 255, 255, .4) !important;
}
section.hbt-hero-uni .hbt-hero-uni-toggle i {
    transition: transform .3s ease !important;
}
section.hbt-hero-uni.is-expanded .hbt-hero-uni-toggle i {
    transform: rotate(180deg) !important;
}
section.hbt-hero-uni .hbt-hero-uni-toggle-less { display: none !important; }
section.hbt-hero-uni.is-expanded .hbt-hero-uni-toggle-more { display: none !important; }
section.hbt-hero-uni.is-expanded .hbt-hero-uni-toggle-less { display: inline !important; }

/* Featured image (category) / logo (brand) */
section.hbt-hero-uni .hbt-hero-uni-image {
    width: 200px !important;
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, .1) !important;
    border: 2px solid rgba(255, 255, 255, .18) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}
section.hbt-hero-uni .hbt-hero-uni-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .2)) !important;
}
section.hbt-hero-uni .hbt-hero-uni-image-placeholder {
    font-size: 72px !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, .8) !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

/* ---------- MOBILE <768px: stack + clamp desc + visible toggle ---------- */
@media (max-width: 768px) {
    section.hbt-hero-uni {
        padding: 24px 18px !important;
        margin: 0 0 20px !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-inner {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 16px !important;
        text-align: center !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-copy {
        text-align: center !important;
        order: 2 !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-image {
        order: 1 !important;
        width: 120px !important;
        height: 120px !important;
        padding: 14px !important;
        margin: 0 auto !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-image-placeholder {
        font-size: 44px !important;
    }
    section.hbt-hero-uni h1 {
        font-size: 22px !important;
        margin: 4px 0 8px !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-eyebrow {
        font-size: 10px !important;
        padding: 4px 10px !important;
        margin-bottom: 10px !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-meta {
        justify-content: center !important;
        font-size: 12px !important;
        margin: 0 0 10px !important;
    }

    /* Desc: clamp do 3 linii + gradient fade-out przy collapsed */
    section.hbt-hero-uni .hbt-hero-uni-desc {
        position: relative !important;
        max-height: calc(1.65em * 3) !important; /* 3 lines */
        font-size: 13px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-desc::after {
        content: "" !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 24px !important;
        background: linear-gradient(to bottom, transparent 0%, #2D5016 100%) !important;
        pointer-events: none !important;
        transition: opacity .3s ease !important;
    }

    /* Expanded state: full height + hide fade */
    section.hbt-hero-uni.is-expanded .hbt-hero-uni-desc {
        max-height: 2000px !important; /* duży max żeby CSS transition zadziałał */
    }
    section.hbt-hero-uni.is-expanded .hbt-hero-uni-desc::after {
        opacity: 0 !important;
    }

    /* Toggle button — VISIBLE na mobile */
    section.hbt-hero-uni .hbt-hero-uni-toggle {
        display: inline-flex !important;
        margin: 14px auto 0 !important;
    }
}

/* ---------- MOBILE <480px: kompaktowiej ---------- */
@media (max-width: 480px) {
    section.hbt-hero-uni {
        padding: 20px 14px !important;
    }
    section.hbt-hero-uni .hbt-hero-uni-image {
        width: 100px !important;
        height: 100px !important;
        padding: 10px !important;
    }
    section.hbt-hero-uni h1 {
        font-size: 20px !important;
    }
}

/* ================================================================ */
/* KONIEC v2.7.6                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.8 — HERO COLLAPSE DESKTOP + BRAND-CATS COLLAPSIBLE +
 *          CONTACT-HERO UNIFIKACJA Z BLOG-HERO (2026-04-21)
 * ----------------------------------------------------------------
 * User:
 *   1) "w wersji mobilnej i desktopowej zawijaj tez tekst w
 *      nagłówkach kategorii i markach" → desc też collapsed na
 *      desktop, button "Pokaż więcej" widoczny wszędzie.
 *   2) "jak wchodze w markę to kategorie niech też się zwijają" →
 *      .hbt-brand-cats z max-height + button.
 *   3) "na stronie kontakt popraw odstep i baner na taki sam jak
 *      w blogu ale zachowaj przyciski" → .contact-hero dostaje
 *      gradient + padding + radius z blog-hero.
 * ================================================================ */

/* ---------- 1) Hero-uni DESC CLAMP — też DESKTOP ---------- */
/* Desktop: clamp desc do 3 linii, toggle widoczny */
section.hbt-hero-uni .hbt-hero-uni-desc {
    position: relative !important;
    max-height: calc(1.65em * 3) !important;
    overflow: hidden !important;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1) !important;
}
section.hbt-hero-uni .hbt-hero-uni-desc::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 28px !important;
    background: linear-gradient(to bottom, transparent 0%, #2D5016 100%) !important;
    pointer-events: none !important;
    transition: opacity .3s ease !important;
}
section.hbt-hero-uni.is-expanded .hbt-hero-uni-desc {
    max-height: 2000px !important;
}
section.hbt-hero-uni.is-expanded .hbt-hero-uni-desc::after {
    opacity: 0 !important;
}

/* Toggle button widoczny na desktop i mobile */
section.hbt-hero-uni .hbt-hero-uni-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 12px 0 0 !important;
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s !important;
}
section.hbt-hero-uni .hbt-hero-uni-toggle:hover {
    background: rgba(255, 255, 255, .25) !important;
    border-color: rgba(255, 255, 255, .4) !important;
}
/* Fade buttona tekstu less/more + chevron rotate (już w v2.7.6) */

/* ---------- 2) .hbt-collapsible — generic (brand-cats + inne) ---------- */

/* Wrapper sekcji — tylko gdy PHP doda klasę .hbt-collapsible */
section.hbt-brand-cats.hbt-collapsible {
    position: relative !important;
}
section.hbt-brand-cats.hbt-collapsible .hbt-brand-cats-list.hbt-collapsible-body {
    max-height: 120px !important;  /* ~2 rzędy chipów */
    overflow: hidden !important;
    position: relative !important;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1) !important;
}
/* Gradient fade na końcu list (przy collapsed) */
section.hbt-brand-cats.hbt-collapsible .hbt-brand-cats-list.hbt-collapsible-body::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 40px !important;
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%) !important;
    pointer-events: none !important;
    transition: opacity .3s ease !important;
}
/* Expanded state */
section.hbt-brand-cats.hbt-collapsible.is-expanded .hbt-brand-cats-list.hbt-collapsible-body {
    max-height: 3000px !important;
}
section.hbt-brand-cats.hbt-collapsible.is-expanded .hbt-brand-cats-list.hbt-collapsible-body::after {
    opacity: 0 !important;
}

/* Generic toggle button — brand-cats (pill styled) */
.hbt-collapsible-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 14px auto 0 !important;
    padding: 10px 22px !important;
    background: #fff !important;
    color: var(--primary-d) !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .15s, color .15s, border-color .15s !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}
.hbt-collapsible-toggle:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary-d) !important;
}
.hbt-collapsible-toggle i {
    font-size: 11px !important;
    transition: transform .3s ease !important;
}
.hbt-collapsible.is-expanded .hbt-collapsible-toggle i {
    transform: rotate(180deg) !important;
}
.hbt-collapsible-toggle .hbt-collapsible-toggle-less {
    display: none !important;
}
.hbt-collapsible.is-expanded .hbt-collapsible-toggle .hbt-collapsible-toggle-more {
    display: none !important;
}
.hbt-collapsible.is-expanded .hbt-collapsible-toggle .hbt-collapsible-toggle-less {
    display: inline !important;
}

/* Wrapper section padding dla przycisku */
section.hbt-brand-cats.hbt-collapsible {
    padding-bottom: 8px !important;
    text-align: center !important;
}
section.hbt-brand-cats.hbt-collapsible .hbt-brand-cats-head {
    text-align: left !important;
}

/* Mobile: mniejszy button */
@media (max-width: 768px) {
    section.hbt-brand-cats.hbt-collapsible .hbt-brand-cats-list.hbt-collapsible-body {
        max-height: 160px !important;  /* ~4 rzędy mniejszych chipów */
    }
    .hbt-collapsible-toggle {
        padding: 8px 18px !important;
        font-size: 12px !important;
    }
}

/* ---------- 3) .contact-hero = blog-hero ---------- */
/* Gradient + padding + radius jak blog, ale zachowaj buttons z white-translucent */

section.contact-hero {
    background: linear-gradient(135deg, #1A1714 0%, #2D5016 55%, #8BC34A 100%) !important;
    padding: 48px 32px !important;
    margin: 0 0 28px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 16px rgba(26, 23, 20, .08) !important;
    color: #fff !important;
}
section.contact-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .08) 0, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .06) 0, transparent 50%) !important;
    pointer-events: none !important;
}
section.contact-hero > .container-full,
section.contact-hero > div {
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
section.contact-hero .contact-hero-inner {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Eyebrow już miał styling z v2.6.5 — pozostaje yellow chip */

section.contact-hero h1 {
    font-size: clamp(26px, 4vw, 38px) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 14px 0 10px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15) !important;
}
section.contact-hero .contact-hero-lead {
    color: rgba(255, 255, 255, .85) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    margin: 0 auto 20px !important;
    max-width: 680px !important;
}

/* Buttons — zachowane z v2.6.5 (white-translucent), tylko spacing polish */
section.contact-hero .contact-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    margin-top: 6px !important;
}

@media (max-width: 768px) {
    section.contact-hero {
        padding: 32px 20px !important;
        margin: 0 0 20px !important;
    }
    section.contact-hero h1 {
        font-size: 22px !important;
    }
    section.contact-hero .contact-hero-lead {
        font-size: 14px !important;
    }
    section.contact-hero .contact-hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    section.contact-hero .contact-hero-actions a {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ================================================================ */
/* KONIEC v2.7.8                                                     */
/* ================================================================ */

/* ================================================================
 * v2.7.9 — SEARCH BAR: pełne schowanie na mobile (2026-04-21)
 * ----------------------------------------------------------------
 * User: "wyszukiwarka z wersji desktopowej nie znika całkiem w
 * wersji mobilnej zostaje jakas szara ramka obok logo".
 *
 * Live pomiar wykazał:
 *   • v2.6.1 wymusza `min-height: 52px !important; height: 52px !important`
 *     na form.site-search — to wygrywa z `max-height: 0` z v2.7.3
 *   • v2.7.3 zerował tylko border-top/bottom — LEFT i RIGHT (1.11px
 *     × 2 = 2px) pozostawały widoczne jako szara pionowa ramka obok
 *     logo, z pełną wysokością 52px
 *
 * Fix: na mobile (<768px) + body.header-scrolled:
 *   • height: 0 + min-height: 0 (nadpisuje v2.6.1 rules)
 *   • border: 0 (zeruje WSZYSTKIE 4 boki, nie tylko top/bottom)
 *   • reszta z v2.7.3: max-height, opacity, margin, padding, pointer
 * ================================================================ */

@media (max-width: 768px) {
    body.header-scrolled form.site-search,
    body.header-scrolled .site-search {
        max-height: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-width: 0 !important;
        box-shadow: none !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }
    /* Wszystkie dzieci (inputy, buttony, separatory) też zero-height,
     * żeby nic nie wypchnęło wrappera. */
    body.header-scrolled form.site-search input,
    body.header-scrolled form.site-search button,
    body.header-scrolled form.site-search select {
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
    }
}

/* ================================================================
 * #13 MOBILE HEADER + CART FIX (2026-04-21)
 * Bug 1: Pusta ramka obok logo na mobile = desktop searchbar widoczny
 * Bug 2: Cart item drugi produkt rozjeżdża się (3,0 nakłada na qty)
 * ================================================================ */
@media (max-width: 991px) {
    html[lang] body.wp-site .site-header .header-row > form[class="site-search"],
    html[lang] body .site-header .header-row > form.site-search[method],
    html body .site-header form.site-search {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    html body .site-header .header-row {
        justify-content: space-between !important;
        align-items: center !important;
    }
}

@media (max-width: 768px) {
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item {
        display: grid !important;
        grid-template-columns: 72px 1fr auto !important;
        grid-template-areas:
            "img   name    remove"
            "img   price   price"
            "img   qty     total" !important;
        gap: 4px 12px !important;
        padding: 12px !important;
        margin: 0 0 12px !important;
        background: #fff !important;
        border: 1px solid var(--border-l, #F0F0F0) !important;
        border-radius: 12px !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td::before { display: none !important; }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail { grid-area: img !important; }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail img {
        width: 72px !important; height: 72px !important; object-fit: contain !important;
        border-radius: 8px !important; border: 1px solid var(--border-l, #F0F0F0) !important; background: #fff !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name {
        grid-area: name !important; font-size: 14px !important; font-weight: 600 !important;
        line-height: 1.35 !important; padding-right: 8px !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name a {
        color: var(--dark, #1A1714) !important; text-decoration: none !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price {
        grid-area: price !important; font-size: 13px !important; color: var(--text-l, #616161) !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity { grid-area: qty !important; }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity .quantity {
        display: inline-flex !important; align-items: center !important;
        border: 1px solid var(--border, #E6E6E6) !important; border-radius: 8px !important;
        background: #fff !important; width: auto !important; max-width: 100px !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity input.qty {
        width: 48px !important; min-height: 36px !important; border: 0 !important;
        text-align: center !important; font-size: 15px !important; font-weight: 700 !important;
        background: transparent !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal {
        grid-area: total !important; text-align: right !important;
        font-size: 16px !important; font-weight: 800 !important;
        color: var(--primary-d, #689F38) !important;
        white-space: nowrap !important; align-self: end !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
        grid-area: remove !important; text-align: right !important;
    }
    html body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove a.remove {
        display: inline-flex !important; align-items: center !important; justify-content: center !important;
        width: 28px !important; height: 28px !important; border-radius: 50% !important;
        background: var(--bg2, #F5F6F8) !important; color: var(--text-l, #616161) !important;
        font-size: 14px !important; text-decoration: none !important;
    }
}

/* ================================================================ */
/* KONIEC v2.7.9 + #13 mobile fix                                    */
/* ================================================================ */


/* ================================================================
   HBT 3.0 — Loading placeholder dla kart produktów
   Zamiast jednolitego szarego tła przy ładowaniu (lazy load) —
   subtelny gradient + ikonka HBT (SVG inline). Znika po załadowaniu
   obrazka przez `img[src]:not([src=""])` + blc-inner background.
================================================================ */
.hbt-loop-card__image,
.products li.product a img,
ul.products li a.woocommerce-LoopProduct-link,
.blc-inner{
    background: linear-gradient(135deg, #fafafa 0%, #f0f3f2 100%);
    background-size: cover;
}
.hbt-loop-card__image{
    position: relative;
    min-height: 180px;
    overflow: hidden;
}
.hbt-loop-card__image::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23d7e8c7' opacity='.35'><path d='M24 4l20 12v16L24 44 4 32V16z'/></svg>");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 48px;
    opacity: .35;
    pointer-events: none;
    z-index: 0;
    transition: opacity .25s ease;
}
.hbt-loop-card__image img{ position: relative; z-index: 1; }
.hbt-loop-card__image img.lazyloaded ~ ::before,
.hbt-loop-card__image img[src*="http"]:not([src*="placeholder"]) ~ ::before{
    opacity: 0;
}
/* ================================================================ */
/* KONIEC HBT 3.0 thumb placeholder                                  */
/* ================================================================ */


/* ================================================================
   HBT 3.0 — Contact Form 7 — klasy hbt-*
   Szablon CF7 w HBT-native klasach (hbt-form-row/hbt-form-field
   /hbt-input/hbt-textarea/hbt-form-consent/hbt-btn-submit).
================================================================ */
.hbt-contact-form{
    max-width: 820px;
    margin: 0 auto;
}
.hbt-contact-form--compact{ max-width: 480px; }

.hbt-form-title{
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text, #212121);
    margin: 0 0 24px;
    padding-bottom: 14px;
    position: relative;
}
.hbt-form-title::after{
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 48px; height: 3px;
    background: var(--primary, #7CB342);
    border-radius: 2px;
}

/* 2-kolumnowy rząd (imię+temat, email+tel); mobile = 1 kol. */
.hbt-form-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.hbt-form-field{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.hbt-form-row .hbt-form-field{ margin-bottom: 0; }
.hbt-form-field--full{ grid-column: 1 / -1; }

.hbt-form-field label{
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #212121);
    letter-spacing: .2px;
}

/* CF7 wraps inputs in span.wpcf7-form-control-wrap — reset margins */
.hbt-contact-form .wpcf7-form-control-wrap{ display: block; }
.hbt-contact-form p{ margin: 0; }

/* Input + Textarea + Select */
.hbt-input,
input.hbt-input,
.hbt-textarea,
textarea.hbt-textarea,
.hbt-select,
select.hbt-select{
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text, #212121);
    background: #fff;
    border: 1px solid var(--border, #E0E0E0);
    border-radius: 6px;
    transition: border-color .18s ease, box-shadow .18s ease;
    box-sizing: border-box;
}
.hbt-input:focus,
.hbt-textarea:focus,
.hbt-select:focus{
    outline: 0;
    border-color: var(--primary, #7CB342);
    box-shadow: 0 0 0 3px rgba(124, 179, 66, .15);
}

/* Select z custom chevronem (SVG inline, HBT green) */
.hbt-select,
select.hbt-select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237CB342' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='2,2 6,6 10,2'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    cursor: pointer;
}
.hbt-textarea{
    resize: vertical;
    min-height: 160px;
    line-height: 1.5;
}

/* Zgody / acceptance */
.hbt-form-consent{
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-l, #616161);
}
.hbt-form-consent .wpcf7-list-item{
    display: block;
    margin: 0;
}
.hbt-form-consent .wpcf7-list-item-label{
    padding-left: 6px;
}
.hbt-form-consent input[type="checkbox"]{
    width: 16px; height: 16px;
    margin-right: 4px;
    accent-color: var(--primary, #7CB342);
    vertical-align: top;
    margin-top: 2px;
}
.hbt-form-consent a{
    color: var(--primary, #7CB342);
    text-decoration: underline;
}
.hbt-form-consent a:hover{ color: var(--primary-d, #689F38); }

/* Submit */
.hbt-form-submit-row{
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hbt-btn-submit,
input.hbt-btn-submit,
.hbt-form-submit-row input[type="submit"]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #fff;
    background: var(--primary, #7CB342);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
    min-width: 220px;
}
.hbt-btn-submit:hover,
.hbt-form-submit-row input[type="submit"]:hover{
    background: var(--primary-d, #689F38);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 179, 66, .25);
}
.hbt-btn-submit:active{
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(124, 179, 66, .2);
}

/* Response & validation (CF7 generic) */
.hbt-contact-form .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output{
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    border: 0;
}
.wpcf7 form.sent .wpcf7-response-output{
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--primary, #7CB342);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output{
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}
.wpcf7-not-valid-tip{
    display: block;
    color: #c62828;
    font-size: 12px;
    margin-top: 4px;
}
.wpcf7-spinner{ vertical-align: middle; }

/* Mobile */
@media (max-width: 640px){
    .hbt-form-row{
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hbt-btn-submit,
    .hbt-form-submit-row input[type="submit"]{
        width: 100%;
        min-width: 0;
    }
}
/* ================================================================ */
/* KONIEC HBT 3.0 contact form                                       */
/* ================================================================ */


/* ================================================================
   HBT 3.0 — LIST-VIEW enhancements (content-product.php)
   ----------------------------------------------------------------
   Problem z v2.x list-view:
     • Karta ~400px wys (tylko 4 produkty / ekran 1080p)
     • CTA full width = wizualny ciężar
     • Prawa strona karty pusta ~50% szerokości
     • Puste gwiazdki przy 0 opinii wyglądają jak niska jakość
     • Brak stock-info i wishlist/quickview
   Rozwiązanie v3.0:
     • 3-kolumnowy grid: 140 | info | 240 (thumb | info | price+cta)
     • Cena + Omnibus + CTA w trzecią kolumnę (right-aligned)
     • Actions (wishlist/quickview) floating top-right
     • Stock info wyróżniony (zielony ✓ dostępne)
     • "Brak opinii" zamiast 5 pustych gwiazdek gdy count=0
     • Padding 14px → karta ~150px wys → 6-7 produktów/ekran
================================================================ */

/* Stock info + actions są UKRYTE w grid-view (tylko list-view) */
.hbt-loop-card__stock,
.hbt-loop-card__actions{ display: none; }

/* Fallback „Brak opinii" — w grid-view ukryte, w list-view widoczne */
.hbt-loop-card__rating-count--empty{
    font-size: 11px;
    color: #9e9e9e;
    font-weight: 400;
    margin-left: 4px;
}

/* ─── LIST VIEW aktywny: ul.products.list ────────────────────── */
/* Strategia: body = display:contents żeby jego dzieci trafiały
 * prosto jako grid items do zewnętrznego grida <li>. Grid ma 3
 * kolumny i 3 wiersze z nazwanymi obszarami — price + cta siedzą
 * w 3. kolumnie pionowo (price góra, cta dół). */
body.woocommerce ul.products.list > li.product,
body.woocommerce-page ul.products.list > li.product,
.hbt-main-wrap ul.products.list > li.product{
    grid-template-columns: 140px minmax(0, 1fr) 240px !important;
    grid-template-rows: auto auto 1fr auto !important;
    grid-template-areas:
      "thumb meta     price"
      "thumb title    price"
      "thumb content  price"
      "thumb stock    cta"  !important;
    gap: 4px 18px !important;
    padding: 14px !important;
    min-height: 140px !important;
    position: relative;
    align-items: start !important;
}

/* Body też przezroczysty — każde dziecko dostaje swoje area */
body.woocommerce ul.products.list > li.product .hbt-loop-card__body,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__body{
    display: contents !important;
}

/* Thumbnail — 140x140, span całej wysokości karty */
body.woocommerce ul.products.list > li.product .hbt-loop-card__image,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__image{
    grid-area: thumb !important;
    grid-row: 1 / -1 !important;
    width: 140px !important;
    height: 140px !important;
    background: #fafafa !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 10px !important;
    align-self: center !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__image img,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__image img{
    padding: 8px !important;
}

/* Meta/title/rating — w info area */
body.woocommerce ul.products.list > li.product .hbt-loop-card__meta,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__meta{
    grid-area: meta !important;
    margin: 0 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__title,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__title{
    grid-area: title !important;
    margin: 2px 0 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__rating,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__rating{
    grid-area: content !important;
    align-self: start !important;
    font-size: 12px;
    margin: 2px 0 !important;
}
body.woocommerce ul.products.list > li.product.hbt-loop-card--no-rating .star-rating,
body.woocommerce-page ul.products.list > li.product.hbt-loop-card--no-rating .star-rating{
    display: none !important;
}

/* Spacer — nieużywany w list-view */
body.woocommerce ul.products.list > li.product .hbt-loop-card__spacer,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__spacer{
    display: none !important;
}

/* Stock info — pokazujemy w list-view */
body.woocommerce ul.products.list > li.product .hbt-loop-card__stock,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__stock{
    grid-area: stock !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-d, #689F38);
    align-self: end !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__stock i,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__stock i{
    font-size: 11px;
    color: var(--primary, #7CB342);
}
body.woocommerce ul.products.list > li.product.hbt-loop-card--oos .hbt-loop-card__stock,
body.woocommerce-page ul.products.list > li.product.hbt-loop-card--oos .hbt-loop-card__stock{
    color: #c62828;
}
body.woocommerce ul.products.list > li.product.hbt-loop-card--oos .hbt-loop-card__stock i,
body.woocommerce-page ul.products.list > li.product.hbt-loop-card--oos .hbt-loop-card__stock i{
    color: #c62828;
}

/* Actions (wishlist/quickview) — absolute w prawym górnym rogu nad cta col */
body.woocommerce ul.products.list > li.product .hbt-loop-card__actions,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__actions{
    display: inline-flex !important;
    gap: 6px;
    position: absolute;
    top: 12px;
    right: 260px;
    z-index: 2;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__action,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__action{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-l, #F0F0F0);
    color: var(--text-l, #616161);
    font-size: 14px;
    text-decoration: none;
    transition: all .18s ease;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__action:hover,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__action:hover{
    background: var(--primary, #7CB342);
    border-color: var(--primary, #7CB342);
    color: #fff;
    transform: translateY(-1px);
}

/* PRICE AREA — 3. kolumna, wiersze 1-3 (góra + środek) */
body.woocommerce ul.products.list > li.product .hbt-loop-card__price,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__price{
    grid-area: price !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    align-items: flex-end !important;
    align-self: start !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__price .price,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__price .price{
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--primary-d, #689F38) !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__price del,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__price del{
    font-size: 13px !important;
    color: #9e9e9e !important;
    opacity: .9;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__price-net,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__price-net{
    font-size: 12px !important;
    color: var(--text-l, #616161) !important;
    font-weight: 500 !important;
}

/* Omnibus SZARY w list-view */
body.woocommerce ul.products.list > li.product .hbt-omnibus,
body.woocommerce-page ul.products.list > li.product .hbt-omnibus{
    font-size: 10.5px !important;
    color: #9e9e9e !important;
    text-align: right !important;
    margin-top: 2px !important;
    line-height: 1.3 !important;
}
body.woocommerce ul.products.list > li.product .hbt-omnibus strong,
body.woocommerce-page ul.products.list > li.product .hbt-omnibus strong{
    color: #757575 !important;
    font-weight: 600 !important;
}

/* CTA — 3. kolumna, ostatni wiersz */
body.woocommerce ul.products.list > li.product .hbt-loop-card__cta,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__cta{
    grid-area: cta !important;
    border-top: 0 !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
    align-self: end !important;
    justify-self: stretch !important;
    width: 100% !important;
}
body.woocommerce ul.products.list > li.product .hbt-loop-card__btn,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__btn,
body.woocommerce ul.products.list > li.product .hbt-loop-card__cta .button,
body.woocommerce-page ul.products.list > li.product .hbt-loop-card__cta .button{
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 16px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-radius: 8px !important;
}

/* Mobile — ukryj actions, thumbnail mniejszy, price pod info, CTA full row */
@media (max-width: 768px){
    body.woocommerce ul.products.list > li.product .hbt-loop-card__actions,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__actions{
        display: none !important;
    }
    body.woocommerce ul.products.list > li.product,
    body.woocommerce-page ul.products.list > li.product{
        grid-template-columns: 100px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto auto auto auto !important;
        grid-template-areas:
            "thumb meta"
            "thumb title"
            "thumb content"
            "thumb stock"
            "price price"
            "cta   cta" !important;
        padding: 12px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__image,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__image{
        width: 100px !important;
        height: 100px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__price,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__price{
        text-align: left !important;
        align-items: flex-start !important;
        margin-top: 6px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__price .price,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__price .price{
        font-size: 18px !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-omnibus,
    body.woocommerce-page ul.products.list > li.product .hbt-omnibus{
        text-align: left !important;
    }
    body.woocommerce ul.products.list > li.product .hbt-loop-card__cta,
    body.woocommerce-page ul.products.list > li.product .hbt-loop-card__cta{
        margin-top: 6px !important;
    }
}
/* ================================================================ */
/* KONIEC HBT 3.0 list-view enhancements                             */
/* ================================================================ */


/* ================================================================
   HBT 3.0 — HEADER MENU FIX
   ----------------------------------------------------------------
   Bug #1: .nav-row { overflow: hidden } klipsuje submenu położony
           `top: 100%` poniżej paska nav → dropdown niewidoczny.
           Fix: overflow: visible na .nav-row (nie zmienia layoutu,
           tylko przestaje clipować dropdown).

   Bug #2: WP-native menu (Appearance → Menus / Customizer) renderuje
           <a>Label</a> bez chevronu — user nie widzi że item ma dzieci.
           Fix: HBT_Nav_Walker (inc/nav-menu-walker.php) dopina FA-chevron
           do itemów z klasą `menu-item-has-children`. Istniejący CSS
           (.nav-links li > a .fa-chevron-down) już go styluje.

   Bug #3: „Serwis martwy" — user w Customizerze Menu dodał Serwis jako
           Custom Link z href="#" i sub-pages pod spodem. Klik na # = dead.
           Fix: Walker ma smart-URL resolver — gdy href=`#` albo pusty, idzie
           do get_page_by_path(sanitize_title(label)) i używa permalinka.
           Czyli „Serwis" z href=# automatycznie dostaje /serwis/.
================================================================ */
.nav-row{ overflow: visible !important; }

/* Chevron z Walkera — dodatkowa klasa gdyby ktoś stylował osobno */
.nav-links .hbt-menu-chevron{
    font-size: 9px;
    margin-left: 6px;
    opacity: .7;
    transition: transform .2s;
}
.nav-links li:hover > a > .hbt-menu-chevron{
    transform: rotate(180deg);
}

/* Safety: upewnij się że sub-menu jest WIDOCZNY na hover niezależnie
   od kolejności w stosie CSS z plugin-ów WC/HBT legacy. */
.nav-links li.menu-item-has-children:hover > .sub-menu,
.nav-links li.menu-item-has-children:focus-within > .sub-menu,
.nav-links li:hover > .sub-menu{
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Sub-sub-menu (głębsze poziomy) — obok rodzica */
.nav-links .sub-menu .sub-menu{
    left: 100%;
    top: 0;
    border-radius: var(--r-lg);
}
.nav-links .sub-menu .hbt-menu-chevron--deep{
    margin-left: auto;
    padding-left: 8px;
}
/* ================================================================ */
/* KONIEC HBT 3.0 header menu fix                                    */
/* ================================================================ */


/* ================================================================
   HBT 3.0 — /kontakt/ — aside 3 bloki + mapa
   ----------------------------------------------------------------
   Problem: shortcode [hbt_contact_aside] w [hbt_contact_default]
   renderuje 3 karty (Szybkie odpowiedzi / Dane firmy / Znajdź nas)
   BEZ żadnego CSS — stackują się pionowo, wyglądają jak gołe divy.
   Fix: 3-kolumnowy grid + styling kart (białe tło, dark wariant,
   social wariant).

   Drugi bug: [hbt_contact_map] outputuje .contact-map-wrap z
   inline height, ale iframe nie ma width/height CSS → renderowany
   jako 0×0. Fix: .contact-map-wrap iframe { width:100%; height:100% }
================================================================ */

/* Sekcja wrappująca aside */
.contact-aside-section{
    padding: 48px 0 64px;
    background: var(--bg2, #FBFBF9);
}
.contact-aside-section .container-full{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Override: .contact-aside = 3-col grid (nie stary padded box) */
.contact-aside-section .contact-aside{
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
}

/* Karta aside — standard (białe tło) */
.contact-aside-card{
    background: #fff;
    border: 1px solid var(--border-l, #F0F0F0);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 2px 10px rgba(26, 23, 20, .04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.contact-aside-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26, 23, 20, .08);
    border-color: var(--primary-l, #AED581);
}
.contact-aside-card h4{
    font-size: 16px;
    font-weight: 800;
    color: var(--dark, #1A1714);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #7CB342);
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-aside-card h4 i{
    color: var(--primary, #7CB342);
    font-size: 18px;
}

/* Szybkie odpowiedzi — lista linków */
.contact-fast-list{
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.contact-fast-list li{
    padding: 8px 0;
    border-bottom: 1px solid var(--border-l, #F0F0F0);
}
.contact-fast-list li:last-child{ border-bottom: 0; }
.contact-fast-list a{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text, #1A1714);
    text-decoration: none;
    transition: color .18s, padding-left .18s;
}
.contact-fast-list a::before{
    content: "\f105"; /* fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary, #7CB342);
    font-size: 11px;
    opacity: .6;
    transition: opacity .18s, transform .18s;
}
.contact-fast-list a:hover{
    color: var(--primary-d, #689F38);
    padding-left: 4px;
}
.contact-fast-list a:hover::before{
    opacity: 1;
    transform: translateX(2px);
}

/* Dane firmy — dark variant (wyróżniona karta na środku) */
.contact-aside-card.contact-aside-dark{
    background: linear-gradient(135deg, var(--dark, #1A1714) 0%, var(--dark2, #2C2824) 100%);
    border-color: var(--dark, #1A1714);
    color: #e5e5e5;
}
.contact-aside-card.contact-aside-dark h4{
    color: #fff;
    border-bottom-color: var(--primary, #7CB342);
}
.contact-aside-card.contact-aside-dark h4 i{
    color: var(--primary-l, #AED581);
}
.contact-aside-card.contact-aside-dark p{
    color: #e5e5e5;
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0;
    flex: 1;
}
.contact-aside-card.contact-aside-dark p strong{
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

/* Znajdź nas — social icons */
.contact-aside-card.contact-aside-social .contact-social-links{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    align-content: flex-start;
}
.contact-social-links a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg2, #FBFBF9);
    border: 1px solid var(--border-l, #F0F0F0);
    color: var(--dark, #1A1714);
    font-size: 18px;
    text-decoration: none;
    transition: all .2s ease;
}
.contact-social-links a:hover{
    background: var(--primary, #7CB342);
    border-color: var(--primary, #7CB342);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 179, 66, .25);
}
.contact-social-links .contact-social-placeholder{
    background: transparent;
    border-style: dashed;
    color: var(--text-l, #616161);
}

/* Mapa — fix na 0×0 iframe */
.contact-map-section{
    padding: 0 0 56px;
    background: var(--bg2, #FBFBF9);
}
.contact-map-section .container-full,
.contact-map-section{
    /* sekcja pozycjonuje sama, bez dodatkowego container-full */
}
.contact-map-wrap{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.contact-map-wrap iframe{
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(26, 23, 20, .08);
}

/* Responsive */
@media(max-width: 991px){
    .contact-aside-section .contact-aside{
        grid-template-columns: 1fr 1fr;
    }
    .contact-aside-card.contact-aside-social{
        grid-column: 1 / -1; /* social spans 2 cols na tablet */
    }
}
@media(max-width: 640px){
    .contact-aside-section{ padding: 32px 0 40px; }
    .contact-aside-section .contact-aside{
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-aside-card{ padding: 22px 20px; }
    .contact-aside-card.contact-aside-social{ grid-column: auto; }
    .contact-map-wrap{ padding: 0 12px; }
    .contact-map-wrap iframe{ min-height: 280px; border-radius: 10px; }
}
/* ================================================================ */
/* KONIEC HBT 3.0 /kontakt/ fix                                      */
/* ================================================================ */


/* ================================================================
   HBT 3.0 — BUG #1 (audit 2026-04-22): Select2 overflow /zamowienie/
   ----------------------------------------------------------------
   Select2 na /zamowienie/ nie ukrywa oryginalnego `<select>` (bug
   init lub CSS wyłącza jego default display:none). Efekt: szeroki
   natywny select rozciąga stronę o +138px (desktop), +64px (tablet),
   +44px (mobile). Wymuszamy hidden na wszystkich WC country/state
   selectach — Select2 renderuje własne wrappery z tym samym funk.
================================================================ */
body.woocommerce-checkout select.country_to_state,
body.woocommerce-checkout select.state_select,
body.woocommerce-checkout select#billing_country,
body.woocommerce-checkout select#shipping_country,
body.woocommerce-checkout select#billing_state,
body.woocommerce-checkout select#shipping_state,
body.woocommerce-cart select.country_to_state,
body.woocommerce-cart select#calc_shipping_country,
body.woocommerce-cart select#calc_shipping_state{
    /* Select2 wrapper przejmuje role — oryginalny select ma być
       niewidoczny ale ciągle dostępny dla submit'u formularza. */
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Gdy Select2 NIE wczyta się (fallback), pokaż natywny select normalnie */
body.no-select2.woocommerce-checkout select.country_to_state,
body.no-select2.woocommerce-checkout select.state_select{
    position: static !important;
    clip: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
}


/* ================================================================
   HBT 3.0 — BUG #2 (audit 2026-04-22): Cart mobile grid-template-areas
   ----------------------------------------------------------------
   Sekcja #13 w v2.7.10 ustawiała grid-template-columns na tr.cart_item
   przy mobile ale zapomniała grid-template-areas. Przez to grid-area
   na cells (product-thumbnail, product-name itd.) nie miały do czego
   przypiąć — cells rozrzucone w default grid order (DOM kolejność).
   Fix: dodaj grid-template-areas na <768px i map grid-area na każdy td.
================================================================ */
@media (max-width: 768px){
    body.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item,
    body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item{
        display: grid !important;
        grid-template-columns: 88px 1fr auto !important;
        grid-template-areas:
            "thumb name   remove"
            "thumb name   name"
            "thumb qty    total"  !important;
        gap: 6px 12px !important;
        padding: 14px !important;
        background: #fff !important;
        border: 1px solid var(--border-l, #F0F0F0) !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 10px rgba(26, 23, 20, .04);
        position: relative;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail{
        grid-area: thumb !important;
        width: 88px !important;
        height: 88px !important;
        padding: 0 !important;
        background: #fafafa !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail img{
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 6px !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name{
        grid-area: name !important;
        padding: 0 !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        color: var(--dark, #1A1714) !important;
        align-self: start !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name a{
        color: var(--dark, #1A1714) !important;
        text-decoration: none !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price{
        display: none !important; /* cena jednostkowa ukryta — total wyraźniejszy na małym ekranie */
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity{
        grid-area: qty !important;
        padding: 0 !important;
        align-self: center !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity .quantity{
        margin: 0 !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal{
        grid-area: total !important;
        padding: 0 !important;
        text-align: right !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        color: var(--primary-d, #689F38) !important;
        align-self: center !important;
        white-space: nowrap !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove{
        grid-area: remove !important;
        padding: 0 !important;
        text-align: right !important;
        align-self: start !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove a.remove{
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important; height: 28px !important;
        border-radius: 50% !important;
        background: var(--bg2, #F5F6F8) !important;
        color: var(--text-l, #616161) !important;
        font-size: 14px !important;
        text-decoration: none !important;
    }
}


/* ================================================================
   HBT 3.0 — BUG #4 (audit 2026-04-22): promo-bar na tablecie
   ----------------------------------------------------------------
   Promo bar był ukrywany przy ≤991px (tablet + mobile). Na tablecie
   (768-991) jest sporo miejsca na telefon/godziny/promocje — nie ma
   powodu ukrywać. Zmniejszam breakpoint do 480px (tylko mały mobile).
================================================================ */
@media (min-width: 481px) and (max-width: 991px){
    .promo-bar{ display: block !important; }
    .promo-bar .container-full{
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 6px 14px;
        font-size: 11.5px;
    }
    /* Środkowy tekst (dealer) ukryty na tablecie — zostaje lewy (promo)
       + prawy (telefon/godziny). */
    .promo-bar .promo-center{ display: none !important; }
}
/* Mobile ≤480px: hide whole promo-bar (za mało miejsca) */
@media (max-width: 480px){
    .promo-bar{ display: none !important; }
}


/* ================================================================
   HBT 3.0 — BUG #6: H1 page-title na /koszyk/ i /zamowienie/
================================================================ */
.hbt-wc-page-title{
    font-size: 28px;
    font-weight: 800;
    color: var(--dark, #1A1714);
    margin: 24px 0 20px;
    padding: 0 0 12px;
    border-bottom: 3px solid var(--primary, #7CB342);
    line-height: 1.2;
    letter-spacing: -.3px;
}
@media (max-width: 768px){
    .hbt-wc-page-title{
        font-size: 22px;
        margin: 16px 0 14px;
        padding-bottom: 10px;
    }
}
/* ================================================================ */
/* KONIEC HBT 3.0 audit-fixes (BUG #1, #2, #4, #6)                   */
/* ================================================================ */


/* ================================================================
   HBT 3.0.2 — /koszyk/ desktop polish (screenshots 2026-04-22)
   ----------------------------------------------------------------
   Co było źle:
     • H1 "Twój koszyk" lądował NA DOLE strony (shortcode output
       najpierw printuje notices, potem cart.php)
     • Thumbnail produktu w rzędzie nie centrował się wertykalnie
       z nazwą produktu — ucinane wizualnie
     • Tooltip "Metody wysyłki zostaną zaktualizowane…" wychodzi
       poza kolumnę Podsumowania (floating popup bez constrain)
     • Nagłówki kolumn (PRODUKT/CENA/ILOŚĆ/KWOTA) w zbyt jasnym
       szarym → słabo czytelne na beżowym tle
================================================================ */

/* --- H1 page title position (fix: filter the_content prepends) --- */
body.woocommerce-cart .hbt-wc-page-title,
body.woocommerce-checkout .hbt-wc-page-title{
    margin-top: 28px;
}

/* --- Cart row: alignment desktop --- */
@media (min-width: 769px){
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item > td,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item > td{
        vertical-align: middle !important;
        padding: 18px 14px !important;
    }
    /* Thumbnail cell — fixed square so image center-aligned */
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail{
        width: 96px !important;
        padding: 10px !important;
        vertical-align: middle !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail a,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail img{
        display: block !important;
        width: 76px !important;
        height: 76px !important;
        max-width: 76px !important;
        max-height: 76px !important;
        object-fit: contain !important;
        background: #fafafa !important;
        border: 1px solid var(--border-l, #F0F0F0) !important;
        border-radius: 10px !important;
        padding: 6px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    /* Title / price / qty / subtotal — vertically centered */
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name{
        font-weight: 600 !important;
        color: var(--dark, #1A1714) !important;
        font-size: 14.5px !important;
        line-height: 1.45 !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a{
        color: var(--dark, #1A1714) !important;
        text-decoration: none !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a:hover{
        color: var(--primary-d, #689F38) !important;
    }
    /* Column headers — ciemniejszy szary, lepszy kontrast */
    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th{
        color: var(--text-l, #616161) !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        letter-spacing: .8px !important;
        text-transform: uppercase;
        padding: 16px 14px !important;
        border-bottom: 1px solid var(--border-l, #F0F0F0) !important;
        background: transparent !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal{
        font-weight: 700 !important;
        color: var(--dark, #1A1714) !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal .amount{
        color: var(--primary-d, #689F38) !important;
        font-size: 15px !important;
    }
    /* Fix v3.0.2 user feedback: „zł" dziedziczy kolor liczby, nie
       ma własnego !important-green z linii 5400. Dotyczy wszystkich
       cellek cart table (Cena jednostkowa + Kwota). */
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price .woocommerce-Price-amount,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-amount{
        color: inherit !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price .woocommerce-Price-currencySymbol,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-currencySymbol{
        color: inherit !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-amount{
        color: var(--primary-d, #689F38) !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove{
        width: 40px !important;
        text-align: center !important;
    }
}

/* === „zł" matchuje kolor liczby — Podsumowanie koszyka + Checkout === */
/* Globalnie: waluta NIE ma własnego koloru — dziedziczy od .amount,
   a .amount dziedziczy od td. W ten sposób "22,03" i "zł" zawsze się zgadzają. */
body.woocommerce-cart .cart_totals tr th,
body.woocommerce-cart .cart_totals tr td,
body.woocommerce-cart .cart_totals tr td .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals tr td .woocommerce-Price-amount bdi,
body.woocommerce-cart .cart_totals tr td .woocommerce-Price-currencySymbol,
body.woocommerce-checkout #order_review tr td .woocommerce-Price-amount,
body.woocommerce-checkout #order_review tr td .woocommerce-Price-amount bdi,
body.woocommerce-checkout #order_review tr td .woocommerce-Price-currencySymbol{
    color: inherit !important;
}
/* Kwota / Przesyłka — jedno kolor per row (dark) */
body.woocommerce-cart .cart_totals tr.cart-subtotal td,
body.woocommerce-cart .cart_totals tr.cart-subtotal th,
body.woocommerce-cart .cart_totals tr.shipping td,
body.woocommerce-cart .cart_totals tr.shipping th,
body.woocommerce-checkout #order_review tr.cart-subtotal td,
body.woocommerce-checkout #order_review tr.cart-subtotal th{
    color: var(--dark, #1A1714) !important;
}
/* Subtotal row — liczbę robimy zieloną (obie części waluty matchują) */
body.woocommerce-cart .cart_totals tr.cart-subtotal td .woocommerce-Price-amount,
body.woocommerce-checkout #order_review tr.cart-subtotal td .woocommerce-Price-amount{
    color: var(--primary-d, #689F38) !important;
    font-weight: 700 !important;
}
/* Order-total ("Łącznie") — zielony na td level, dzieci dziedziczą */
body.woocommerce-cart .cart_totals tr.order-total td,
body.woocommerce-cart .cart_totals tr.order-total th,
body.woocommerce-checkout #order_review tr.order-total td,
body.woocommerce-checkout #order_review tr.order-total th{
    color: var(--primary-d, #689F38) !important;
}

/* --- Podsumowanie koszyka: tooltip / popup alignment --- */
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cart-collaterals{
    position: relative;
    overflow: visible;
}
body.woocommerce-cart .cart_totals .shipping-calculator-form,
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator,
body.woocommerce-cart .cart_totals .shipping-notice,
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
body.woocommerce-cart .cart_totals .shipping td[data-title="Wysyłka"],
body.woocommerce-cart .cart_totals tr.shipping > td{
    position: static !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Tooltip bubble „Metody wysyłki zostaną zaktualizowane…" */
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .shipping-calculator-form p.form-row,
body.woocommerce-cart .cart_totals .woocommerce-info,
body.woocommerce-cart .cart_totals .shipping > td > *:last-child,
body.woocommerce-cart .shipping__notice{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    background: var(--bg2, #FBFBF9) !important;
    border: 1px solid var(--border-l, #F0F0F0) !important;
    border-left: 3px solid var(--primary, #7CB342) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: var(--text-l, #616161) !important;
    position: static !important;
    white-space: normal !important;
}
/* Wyrównanie option'ów wysyłki (Zwykła dostawa / Odbiór osobisty) */
body.woocommerce-cart .cart_totals ul#shipping_method,
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods ul{
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-cart .cart_totals ul#shipping_method li,
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li{
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: var(--text, #1A1714) !important;
}
body.woocommerce-cart .cart_totals ul#shipping_method input[type="radio"]{
    accent-color: var(--primary, #7CB342);
    width: 16px; height: 16px;
    margin: 0 !important;
}
body.woocommerce-cart .cart_totals ul#shipping_method label{
    margin: 0 !important;
    flex: 1;
    cursor: pointer;
}

/* --- Mobile ≤768: już mamy grid-template-areas fix z BUG #2, tu tylko kolor titleu --- */
@media (max-width: 768px){
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name{
        color: var(--dark, #1A1714) !important;
    }
    body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name a{
        color: var(--dark, #1A1714) !important;
        font-weight: 600 !important;
    }
}
/* ================================================================ */
/* KONIEC HBT 3.0.2 cart polish                                      */
/* ================================================================ */


/* ================================================================
   HBT 3.0.3 — /zamowienie/ polish (screenshot feedback 2026-04-22)
   ----------------------------------------------------------------
   Z uwag user'a:
     • za duży odstęp od headera — zmniejszyć margin-top H1
     • 2 równe kolumny (50/50) — jak w koszyku ale 2-kol zamiast 1fr 380px
     • regulowane z Customizera (—hbt-checkout-cols-ratio CSS var)
     • mniejsze odstępy między polami formularza
     • ramki na WSZYSTKICH płatnościach/wysyłkach, nie tylko selected
     • selected = primary border + soft glow
     • brak wrap/truncate tekstu na etykietach opcji
     • "zł" sprawdzony (patrz v3.0.2 fix — inherit color)
================================================================ */

/* --- H1 margin unified (cart + checkout) --- */
body.woocommerce-cart .hbt-wc-page-title,
body.woocommerce-checkout .hbt-wc-page-title{
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* --- Układ dwukolumnowy (desktop ≥769px) --- */
:root{
    /* Proporcja formularz : podsumowanie. Edytowalne przez Customizer
       (hbt_checkout_cols_ratio → „50/50" | „60/40" | „55/45"). */
    --hbt-checkout-cols: 1fr 1fr;
    --hbt-checkout-gap: 24px;
}
@media (min-width: 769px){
    body.woocommerce-checkout .hbt-main-wrap form.checkout{
        display: grid !important;
        grid-template-columns: var(--hbt-checkout-cols) !important;
        gap: var(--hbt-checkout-gap) !important;
        align-items: start !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout > #customer_details{
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout > h3#order_review_heading{
        display: none !important; /* ukryte, mamy H1 na górze */
    }
    body.woocommerce-checkout .hbt-main-wrap form.checkout > #order_review{
        grid-column: 2 !important;
        grid-row: 1 !important;
        position: sticky;
        top: 20px;
        align-self: start;
    }
}

/* --- Form fields tight spacing --- */
body.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout #customer_details .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout #customer_details .woocommerce-additional-fields__field-wrapper{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px !important;
}
body.woocommerce-checkout #customer_details p.form-row{
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}
body.woocommerce-checkout #customer_details p.form-row-wide,
body.woocommerce-checkout #customer_details .form-row-wide{
    grid-column: 1 / -1 !important;
}
body.woocommerce-checkout #customer_details p.form-row-first{ grid-column: 1 !important; }
body.woocommerce-checkout #customer_details p.form-row-last{ grid-column: 2 !important; }
body.woocommerce-checkout #customer_details .woocommerce-billing-fields h3,
body.woocommerce-checkout #customer_details .woocommerce-shipping-fields h3,
body.woocommerce-checkout #customer_details .woocommerce-additional-fields h3{
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--dark, #1A1714) !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--primary, #7CB342) !important;
    grid-column: 1 / -1;
}
body.woocommerce-checkout #customer_details label{
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--dark, #1A1714) !important;
    margin-bottom: 4px !important;
    display: block !important;
}
body.woocommerce-checkout #customer_details input[type="text"],
body.woocommerce-checkout #customer_details input[type="email"],
body.woocommerce-checkout #customer_details input[type="tel"],
body.woocommerce-checkout #customer_details input[type="password"],
body.woocommerce-checkout #customer_details textarea,
body.woocommerce-checkout #customer_details .select2-selection{
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border, #E0E0E0) !important;
    background: #fff !important;
    transition: border-color .15s, box-shadow .15s !important;
    height: auto !important;
    min-height: 0 !important;
}
body.woocommerce-checkout #customer_details input:focus,
body.woocommerce-checkout #customer_details textarea:focus,
body.woocommerce-checkout #customer_details .select2-selection:focus,
body.woocommerce-checkout #customer_details .select2-container--open .select2-selection{
    border-color: var(--primary, #7CB342) !important;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, .15) !important;
    outline: 0 !important;
}
body.woocommerce-checkout #customer_details textarea{
    min-height: 80px !important;
    resize: vertical !important;
}
/* „Stwórz konto?", „Wysłać na inny adres?" checkboxy */
body.woocommerce-checkout .create-account,
body.woocommerce-checkout .woocommerce-account-fields,
body.woocommerce-checkout .woocommerce-shipping-fields{
    margin-top: 12px !important;
}

/* --- Order review right column polish --- */
body.woocommerce-checkout #order_review{
    background: #fff !important;
    border: 1px solid var(--border-l, #F0F0F0) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    box-shadow: 0 4px 18px rgba(26, 23, 20, .04);
}

/* --- Payment methods: uniform border + highlighted selection --- */
body.woocommerce-checkout #payment ul.payment_methods{
    background: transparent !important;
    padding: 0 !important;
    margin: 16px 0 !important;
    list-style: none !important;
    border: 0 !important;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method{
    background: #fff !important;
    border: 1.5px solid var(--border, #E0E0E0) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    position: relative;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover{
    border-color: var(--primary-l, #AED581) !important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked){
    border-color: var(--primary, #7CB342) !important;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, .12) !important;
    background: rgba(232, 245, 233, .4) !important;
}
/* Fallback dla JS-przełączania (WC dodaje .hbt-selected albo zwykłe radio) */
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ label{
    color: var(--primary-d, #689F38) !important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--dark, #1A1714) !important;
    cursor: pointer !important;
    margin: 0 !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label img{
    max-height: 24px !important;
    width: auto !important;
    margin-left: auto !important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"]{
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--primary, #7CB342) !important;
    margin: 0 !important;
    flex-shrink: 0;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box{
    background: var(--bg2, #FBFBF9) !important;
    border: 0 !important;
    border-radius: 8px !important;
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    font-size: 12.5px !important;
    color: var(--text-l, #616161) !important;
    line-height: 1.5;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box::before{
    display: none !important; /* usuwa trójkącik z WC default */
}

/* --- Shipping methods border parity (checkout + cart totals) --- */
body.woocommerce-checkout #order_review .shipping ul#shipping_method li,
body.woocommerce-cart .cart_totals ul#shipping_method li{
    border: 1.5px solid var(--border, #E0E0E0) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin: 6px 0 !important;
    background: #fff !important;
    transition: border-color .18s ease;
}
body.woocommerce-checkout #order_review .shipping ul#shipping_method li:hover,
body.woocommerce-cart .cart_totals ul#shipping_method li:hover{
    border-color: var(--primary-l, #AED581) !important;
}
body.woocommerce-checkout #order_review .shipping ul#shipping_method li:has(input:checked),
body.woocommerce-cart .cart_totals ul#shipping_method li:has(input:checked){
    border-color: var(--primary, #7CB342) !important;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, .12) !important;
}
body.woocommerce-checkout #order_review .shipping ul#shipping_method label,
body.woocommerce-cart .cart_totals ul#shipping_method label{
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--dark, #1A1714) !important;
    white-space: normal !important;
    line-height: 1.4;
}

/* --- Terms checkbox row --- */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{
    margin: 16px 0 !important;
    padding: 12px 14px !important;
    background: var(--bg2, #FBFBF9) !important;
    border: 1px solid var(--border-l, #F0F0F0) !important;
    border-radius: 10px !important;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label{
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--dark, #1A1714) !important;
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
    white-space: normal !important;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]{
    accent-color: var(--primary, #7CB342);
    margin-top: 3px !important;
    flex-shrink: 0;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a{
    color: var(--primary-d, #689F38) !important;
    text-decoration: underline !important;
}

/* --- Place order button --- */
body.woocommerce-checkout #place_order{
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .6px !important;
    background: var(--primary, #7CB342) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: background .18s, transform .1s, box-shadow .18s;
    white-space: normal !important;
    line-height: 1.2 !important;
}
body.woocommerce-checkout #place_order:hover{
    background: var(--primary-d, #689F38) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 179, 66, .3);
}

/* --- Mobile: kolumny stack --- */
@media (max-width: 768px){
    body.woocommerce-checkout .hbt-main-wrap form.checkout{
        display: block !important;
    }
    body.woocommerce-checkout #order_review{
        margin-top: 20px !important;
        position: static !important;
    }
    body.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout #customer_details .woocommerce-shipping-fields__field-wrapper{
        grid-template-columns: 1fr !important;
    }
    body.woocommerce-checkout #customer_details p.form-row-first,
    body.woocommerce-checkout #customer_details p.form-row-last{
        grid-column: 1 !important;
    }
}
/* ================================================================ */
/* KONIEC HBT 3.0.3 checkout polish                                  */
/* ================================================================ */

