/*
Theme Name: Halmar Theme
Theme URI: https://halmar.local/
Author: Halmar All Car Parts
Author URI: https://halmar.local/
Description: Custom motyw e-commerce dla Halmar All Car Parts. Zbudowany od zera, bez frameworkow CSS, pelna integracja z WooCommerce i wtyczkami halmar-filter-shop oraz halmar-image-manager. Paleta: grafit + zloty akcent + jasny srodek.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: halmar
Tags: e-commerce, custom, woocommerce, responsive, automotive
*/

/* =========================================================
   1. CSS VARIABLES — paleta, typografia, layout tokens
   ========================================================= */

:root {
    /* --- KOLORY MARKI (dopracowana paleta premium 2026) --- */
    --halmar-gold: #C9A24B;
    --halmar-gold-hover: #D8B86A;
    --halmar-gold-dark: #A8842F;
    --halmar-gold-soft: #D8B86A;
    --halmar-gold-tint: #FBF6EA;
    --halmar-gold-tint-border: #F0E4C6;

    --halmar-silver: #B8B8B8;
    --halmar-silver-light: #E0E0E0;

    --halmar-dark: #1A1A1A;
    --halmar-dark-2: #2D2D2D;
    --halmar-dark-hover: #3A3A3A;
    --halmar-graphite: #1A1A1A;
    --halmar-graphite-2: #262626;

    --halmar-bg: #F5F5F5;
    --halmar-bg-warm: #F7F6F3;
    --halmar-paper-2: #FAF9F6;
    --halmar-white: #FFFFFF;

    --halmar-ink: #161616;
    --halmar-text: #2A2A2A;
    --halmar-text-muted: #6B6B6B;
    --halmar-text-muted-2: #8C8C8C;
    --halmar-text-on-dark: #FFFFFF;
    --halmar-green: #1FAE5A;

    --halmar-border: #E0E0E0;
    --halmar-line: #ECEAE4;
    --halmar-line-2: #E2DFD7;
    --halmar-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --halmar-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.10);
    --halmar-shadow-soft: 0 1px 2px rgba(20,20,20,.05), 0 2px 8px rgba(20,20,20,.04);
    --halmar-shadow-card: 0 8px 30px -12px rgba(20,20,20,.18);
    --halmar-shadow-lg: 0 24px 60px -24px rgba(20,20,20,.30);

    /* --- TYPOGRAFIA --- */
    --font-heading: 'Montserrat', 'Rajdhani', system-ui, sans-serif;
    --font-body: 'Inter', 'Source Sans 3', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

    /* --- LAYOUT --- */
    --container-max: 1280px;
    --container-pad: 20px;
    --header-height: 72px;
    --brand-bar-height: 64px;

    /* --- ROUND CORNERS & SPACING --- */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;

    /* --- TRANSITIONS --- */
    --t-fast: 0.15s ease;
    --t: 0.25s ease;
    --t-slow: 0.4s ease;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--halmar-text);
    background: var(--halmar-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--halmar-dark);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover,
a:focus {
    color: var(--halmar-gold);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-md);
    color: var(--halmar-dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-md); }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    padding-left: 1.25rem;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px; width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* =========================================================
   3. LAYOUT — container, sections
   ========================================================= */

.halmar-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.halmar-section {
    padding: var(--space-2xl) 0;
}

.halmar-section--dark {
    background: var(--halmar-dark);
    color: var(--halmar-text-on-dark);
}

.halmar-section--dark h1,
.halmar-section--dark h2,
.halmar-section--dark h3 {
    color: var(--halmar-text-on-dark);
}

.halmar-section--light {
    background: var(--halmar-bg);
}

.halmar-section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Metaliczny separator — srebrny gradient */
.halmar-divider {
    height: 1px;
    border: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--halmar-silver) 20%,
        var(--halmar-silver-light) 50%,
        var(--halmar-silver) 80%,
        transparent 100%
    );
    margin: var(--space-xl) 0;
}

/* =========================================================
   4. HEADER — ciemny grafit (non-sticky)
   ========================================================= */

.halmar-header {
    position: relative;
    z-index: 100;
    background: var(--halmar-dark);
    color: var(--halmar-text-on-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.halmar-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: var(--space-md);
}

.halmar-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--halmar-text-on-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.halmar-header__logo img {
    max-height: 44px;
    width: auto;
}

.halmar-header__logo:hover,
.halmar-header__logo:focus {
    color: var(--halmar-gold);
}

/* NAV */
.halmar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.halmar-nav ul {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.halmar-nav a {
    color: var(--halmar-text-on-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
    position: relative;
}

.halmar-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--halmar-gold);
    transition: width var(--t);
}

.halmar-nav a:hover::after,
.halmar-nav .current-menu-item > a::after {
    width: 100%;
}

.halmar-nav a:hover,
.halmar-nav .current-menu-item > a {
    color: var(--halmar-gold);
}

/* Header actions (koszyk, konto) */
.halmar-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.halmar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--halmar-text-on-dark);
    background: transparent;
    position: relative;
    transition: background var(--t-fast), color var(--t-fast);
}

.halmar-icon-btn:hover,
.halmar-icon-btn:focus {
    background: rgba(255, 255, 255, 0.08);
    color: var(--halmar-gold);
}

.halmar-icon-btn svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.halmar-cart-count {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--halmar-gold);
    color: var(--halmar-dark);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile hamburger */
.halmar-menu-toggle {
    display: none;
    width: 40px; height: 40px;
    color: var(--halmar-text-on-dark);
    background: transparent;
}

.halmar-menu-toggle svg {
    width: 24px; height: 24px;
}

/* Pasek marek pod headerem */
.halmar-brand-bar {
    background: var(--halmar-dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-sm) 0;
    position: relative;
}

.halmar-brand-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px var(--space-lg);
    min-height: 40px;
    /* Domyślnie 2 rzędy — wartość wyliczona tak, żeby 3. rząd był całkowicie ucięty. */
    max-height: 92px;
    overflow: hidden;
    transition: max-height .35s ease;
    padding-right: 120px; /* miejsce na przycisk "Więcej" */
}

.halmar-brand-bar.is-expanded .halmar-brand-bar__inner {
    max-height: 1200px;
    padding-right: 120px;
}

.halmar-brand-bar__toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--halmar-gold);
    color: var(--halmar-dark);
    border: 1px solid var(--halmar-gold);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--t-fast);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.halmar-brand-bar__toggle:hover,
.halmar-brand-bar__toggle:focus {
    background: #d4b570;
    border-color: #d4b570;
    color: var(--halmar-dark);
    transform: translateY(-50%) translateY(-1px);
}

.halmar-brand-bar__toggle-arrow {
    transition: transform var(--t-fast);
    display: inline-block;
    font-size: 0.7rem;
    line-height: 1;
}

.halmar-brand-bar.is-expanded .halmar-brand-bar__toggle-arrow {
    transform: rotate(180deg);
}

.halmar-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--halmar-silver-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all var(--t-fast);
    cursor: pointer;
    background: transparent;
}

.halmar-brand-chip:hover,
.halmar-brand-chip:focus,
.halmar-brand-chip.is-active {
    color: var(--halmar-gold);
    border-color: var(--halmar-gold);
    background: rgba(212, 168, 32, 0.05);
}

/* =========================================================
   5. BUTTONS
   ========================================================= */

.halmar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    line-height: 1.2;
}

.halmar-btn--primary {
    background: var(--halmar-gold);
    color: var(--halmar-dark);
    border-color: var(--halmar-gold);
}

.halmar-btn--primary:hover,
.halmar-btn--primary:focus {
    background: var(--halmar-gold-hover);
    border-color: var(--halmar-gold-hover);
    color: var(--halmar-dark);
    transform: translateY(-1px);
}

.halmar-btn--ghost {
    background: transparent;
    color: var(--halmar-gold);
    border-color: var(--halmar-gold);
}

.halmar-btn--ghost:hover,
.halmar-btn--ghost:focus {
    background: var(--halmar-gold);
    color: var(--halmar-dark);
}

.halmar-btn--dark {
    background: var(--halmar-dark);
    color: var(--halmar-text-on-dark);
    border-color: var(--halmar-dark);
}

.halmar-btn--dark:hover,
.halmar-btn--dark:focus {
    background: var(--halmar-dark-hover);
    border-color: var(--halmar-dark-hover);
    color: var(--halmar-gold);
}

.halmar-btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* =========================================================
   6. HERO
   ========================================================= */

.halmar-hero {
    position: relative;
    min-height: 520px;
    background: var(--halmar-dark);
    color: var(--halmar-text-on-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.halmar-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}

.halmar-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.65) 50%,
        rgba(26, 26, 26, 0.95) 100%
    );
    z-index: 1;
}

.halmar-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: var(--space-2xl) 0;
}

.halmar-hero__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--halmar-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.halmar-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--halmar-text-on-dark);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.halmar-hero__title em {
    font-style: normal;
    color: var(--halmar-gold);
}

.halmar-hero__lead {
    font-size: 1.125rem;
    color: var(--halmar-silver-light);
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

.halmar-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* =========================================================
   7. TRUST SECTION
   ========================================================= */

.halmar-trust {
    padding: var(--space-2xl) 0;
    background: var(--halmar-white);
}

.halmar-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.halmar-trust__item {
    text-align: center;
    padding: var(--space-lg);
}

.halmar-trust__icon {
    width: 56px; height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--halmar-silver-light), var(--halmar-silver));
    color: var(--halmar-dark);
}

.halmar-trust__icon svg {
    width: 28px; height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.halmar-trust__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
    color: var(--halmar-dark);
}

.halmar-trust__text {
    color: var(--halmar-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================================
   8. HOW-TO (3 kroki)
   ========================================================= */

.halmar-howto {
    background: var(--halmar-bg-warm);
}

.halmar-howto__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    counter-reset: step;
}

.halmar-howto__step {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    background: var(--halmar-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--halmar-shadow);
    text-align: center;
}

.halmar-howto__step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: var(--halmar-gold);
    color: var(--halmar-dark);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(212, 168, 32, 0.35);
}

.halmar-howto__step h3 {
    margin-top: var(--space-md);
    font-size: 1.125rem;
}

.halmar-howto__step p {
    color: var(--halmar-text-muted);
    margin: 0;
}

/* =========================================================
   9. FOOTER
   ========================================================= */

.halmar-footer {
    background: var(--halmar-dark);
    color: var(--halmar-silver-light);
    padding-top: var(--space-2xl);
}

.halmar-footer a {
    color: var(--halmar-silver-light);
}

.halmar-footer a:hover,
.halmar-footer a:focus {
    color: var(--halmar-gold);
}

.halmar-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

@media (max-width: 1100px) {
    .halmar-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .halmar-footer__grid { grid-template-columns: 1fr; }
}

.halmar-footer__col h4 {
    color: var(--halmar-text-on-dark);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.halmar-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.halmar-footer__col li {
    margin-bottom: var(--space-sm);
    font-size: 0.925rem;
    line-height: 1.5;
}

/* Kolumna KONTAKT — li z ikoną: grid 18px | tekst */
.halmar-footer__col--contact li {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 10px;
}

.halmar-footer__col--contact li.halmar-footer__nip {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
}

.halmar-footer__col li svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px;
    max-height: 16px;
    stroke: var(--halmar-gold);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 3px;
    display: block;
}

.halmar-footer__col--contact li a,
.halmar-footer__col--contact li > span {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.halmar-footer__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--halmar-text-on-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.halmar-footer__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--halmar-silver);
    margin: 0;
}

.halmar-footer__social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.halmar-footer__social a {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all var(--t-fast);
}

.halmar-footer__social a:hover {
    border-color: var(--halmar-gold);
    background: rgba(212, 168, 32, 0.1);
}

.halmar-footer__social svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.halmar-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-lg) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.825rem;
    color: var(--halmar-silver);
}

.halmar-footer__payments {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

.halmar-pay-chip {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--halmar-silver-light);
}

/* =========================================================
   10. GENERIC PAGE (page.php)
   ========================================================= */

.halmar-page {
    background: var(--halmar-white);
    padding: var(--space-2xl) 0;
    min-height: 50vh;
}

.halmar-page__content {
    max-width: 780px;
    margin: 0 auto;
}

.halmar-page__content img {
    border-radius: var(--radius);
    margin: var(--space-md) 0;
}

/* =========================================================
   11. 404
   ========================================================= */

.halmar-404 {
    text-align: center;
    padding: var(--space-2xl) var(--container-pad);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--halmar-white);
}

.halmar-404__code {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 15vw, 10rem);
    color: var(--halmar-gold);
    line-height: 1;
    margin: 0;
}

.halmar-404__lead {
    color: var(--halmar-text-muted);
    max-width: 520px;
    margin: var(--space-md) auto var(--space-xl);
}

/* =========================================================
   12. SINGLE PRODUCT FALLBACK
   ========================================================= */

.halmar-product-fallback {
    padding: var(--space-2xl) 0;
    background: var(--halmar-white);
}

.halmar-product-fallback__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.halmar-product-fallback__gallery img {
    border-radius: var(--radius);
    box-shadow: var(--halmar-shadow);
}

.halmar-product-fallback__price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--halmar-dark);
    margin: var(--space-md) 0;
}

.halmar-product-fallback__price .woocommerce-Price-amount {
    color: var(--halmar-dark);
}

/* =========================================================
   13. UTILITY
   ========================================================= */

.halmar-text-center { text-align: center; }
.halmar-mt-lg { margin-top: var(--space-lg); }
.halmar-mb-lg { margin-bottom: var(--space-lg); }
.halmar-hidden { display: none !important; }

/* =========================================================
   14. RESPONSIVE — mobile first (tablet >=768, desktop >=1200)
   ========================================================= */

@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }

    .halmar-section,
    .halmar-trust,
    .halmar-footer {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    /* Mobile nav */
    .halmar-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: var(--halmar-dark);
        padding: var(--space-lg);
        transform: translateY(-110%);
        transition: transform var(--t);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

    .halmar-nav.is-open {
        transform: translateY(0);
    }

    .halmar-nav ul {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }

    .halmar-nav a {
        display: block;
        padding: var(--space-sm) 0;
        font-size: 1rem;
    }

    .halmar-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Pasek marek mobile — scroll poziomy (bez limitu rzędów, bez toggle) */
    .halmar-brand-bar__inner {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: var(--space-md);
        padding-bottom: var(--space-xs);
        padding-right: var(--space-md);
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }

    .halmar-brand-bar__toggle {
        display: none;
    }

    .halmar-brand-chip {
        flex: 0 0 auto;
    }

    /* Product fallback mobile */
    .halmar-product-fallback__grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .halmar-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .halmar-hero {
        min-height: 600px;
    }
}

@media (min-width: 1200px) {
    .halmar-hero {
        min-height: 680px;
    }
}

/* =========================================================
   15. WOOCOMMERCE — overrides pod paletę Halmar
   ========================================================= */

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-top-color: var(--halmar-gold) !important;
    background: var(--halmar-bg) !important;
    border-radius: var(--radius);
    position: relative;
    padding: var(--space-md) var(--space-lg) var(--space-md) 52px; /* miejsce na ikonę po lewej */
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: var(--halmar-gold) !important;
    left: 20px;          /* ikona w lewym marginesie, nie na tekście */
    top: var(--space-md);
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce-page button.button,
.woocommerce-page a.button {
    background: var(--halmar-gold);
    color: var(--halmar-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    padding: 12px 24px;
    transition: all var(--t-fast);
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page a.button:hover {
    background: var(--halmar-gold-hover);
    color: var(--halmar-dark);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid var(--halmar-border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-family: var(--font-body);
    transition: border-color var(--t-fast);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--halmar-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 168, 32, 0.15);
}

.woocommerce-checkout .woocommerce {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl) var(--container-pad);
}

.woocommerce .cart-subtotal,
.woocommerce .order-total {
    font-family: var(--font-mono);
}

.woocommerce-Price-amount {
    font-family: var(--font-mono);
    font-weight: 700;
}

/* =========================================================
   15. REDESIGN 2026 — premium product page + front page
   Komponenty prefiksowane .hlm-* (izolacja od starych klas).
   ========================================================= */

.hlm-eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--halmar-gold-dark)}
.hlm-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--halmar-gold)}
.hlm-h2{font-family:var(--font-heading);font-weight:800;font-size:28px;color:var(--halmar-ink);letter-spacing:-.01em;line-height:1.2}
.hlm-acc{display:block;width:48px;height:4px;background:var(--halmar-gold);border-radius:3px;margin-top:12px}
.hlm-sechead{text-align:center;max-width:640px;margin:0 auto 40px}
.hlm-sechead .hlm-eyebrow{margin-bottom:12px}
.hlm-sechead p{color:var(--halmar-text-muted);font-size:15.5px;margin-top:10px}
.hlm-sechead .hlm-acc{margin-left:auto;margin-right:auto}

/* --- BUTTONS (redesign) --- */
.hlm-btn{font-family:var(--font-heading);font-weight:700;font-size:15px;letter-spacing:.02em;border-radius:10px;border:1px solid transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:.18s;padding:14px 26px;text-decoration:none;line-height:1}
.hlm-btn svg{flex-shrink:0}
.hlm-btn--gold{background:var(--halmar-gold);color:#1a1407;box-shadow:0 10px 26px -10px rgba(201,162,75,.8)}
.hlm-btn--gold:hover{background:var(--halmar-gold-soft);transform:translateY(-1px);color:#1a1407}
.hlm-btn--ghost{background:var(--halmar-white);color:var(--halmar-ink);border-color:var(--halmar-line-2)}
.hlm-btn--ghost:hover{border-color:var(--halmar-gold);color:var(--halmar-gold-dark)}
.hlm-btn--ghost-d{background:transparent;color:#fff;border-color:rgba(255,255,255,.25)}
.hlm-btn--ghost-d:hover{border-color:var(--halmar-gold);color:var(--halmar-gold)}

/* =========================================================
   PRODUCT PAGE
   ========================================================= */
.hlm-pp{background:var(--halmar-paper-2);padding-bottom:56px}
.hlm-crumbs{padding:20px 0 4px;font-size:12.5px;color:var(--halmar-text-muted);font-family:var(--font-mono);letter-spacing:.04em}
.hlm-crumbs a:hover{color:var(--halmar-gold-dark)}
.hlm-crumbs .sep{color:var(--halmar-line-2);margin:0 8px}
.hlm-crumbs .cur{color:var(--halmar-ink)}
.hlm-pp__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:start;padding-top:18px}

/* gallery */
.hlm-gallery{position:sticky;top:96px}
.hlm-stage{position:relative;background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:14px;overflow:hidden;box-shadow:var(--halmar-shadow-soft)}
.hlm-stage__badge{position:absolute;top:16px;left:16px;z-index:3;display:flex;gap:8px;flex-wrap:wrap}
.hlm-tag{font-family:var(--font-heading);font-weight:700;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:6px 11px;border-radius:7px}
.hlm-tag--gold{background:var(--halmar-gold);color:#1a1407}
.hlm-tag--dark{background:rgba(22,22,22,.86);color:#fff;backdrop-filter:blur(4px)}
.hlm-stage__img{aspect-ratio:4/3;cursor:zoom-in;overflow:hidden;background:var(--halmar-white);display:block;width:100%;border:0;padding:0}
.hlm-stage__img img{width:100%;height:100%;object-fit:contain;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.hlm-stage__img:hover img{transform:scale(1.04)}
.hlm-zoomhint{position:absolute;bottom:14px;right:14px;z-index:3;background:rgba(22,22,22,.78);color:#fff;font-size:12px;font-weight:600;padding:7px 12px;border-radius:50px;display:flex;align-items:center;gap:7px;backdrop-filter:blur(4px);pointer-events:none}
.hlm-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:14px}
.hlm-thumb{aspect-ratio:1;border:1.5px solid var(--halmar-line);border-radius:10px;overflow:hidden;cursor:pointer;background:var(--halmar-white);transition:.18s;padding:0}
.hlm-thumb:hover{border-color:var(--halmar-gold-soft)}
.hlm-thumb.is-active{border-color:var(--halmar-gold);box-shadow:0 0 0 3px var(--halmar-gold-tint)}
.hlm-thumb img{width:100%;height:100%;object-fit:cover}

/* info */
.hlm-info .hlm-eyebrow{background:var(--halmar-gold-tint);border:1px solid var(--halmar-gold-tint-border);padding:6px 12px;border-radius:50px;margin-bottom:16px}
.hlm-ptitle{font-family:var(--font-heading);font-weight:800;font-size:30px;line-height:1.18;letter-spacing:-.01em;color:var(--halmar-ink);margin-bottom:14px}
.hlm-metaline{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;font-size:13.5px;color:var(--halmar-text-muted);margin-bottom:22px}
.hlm-sku{font-family:var(--font-mono);color:var(--halmar-ink);background:var(--halmar-white);border:1px solid var(--halmar-line);padding:3px 9px;border-radius:6px;font-size:12.5px}
.hlm-pricebox{background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:14px;padding:22px 24px;margin-bottom:22px;box-shadow:var(--halmar-shadow-soft)}
.hlm-price{font-family:var(--font-mono);font-weight:700;font-size:34px;color:var(--halmar-ink);letter-spacing:-.01em}
.hlm-price .woocommerce-Price-amount{font-size:34px;color:var(--halmar-ink)}
.hlm-price__sub{font-size:13px;color:var(--halmar-text-muted);margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hlm-instock{display:inline-flex;align-items:center;gap:6px;color:var(--halmar-green);font-weight:600;font-size:13px}
.hlm-instock .pip{width:8px;height:8px;border-radius:50%;background:var(--halmar-green);box-shadow:0 0 0 3px rgba(31,174,90,.18)}
.hlm-outstock{color:var(--halmar-text-muted);font-weight:600}

.hlm-specs{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--halmar-line);border:1px solid var(--halmar-line);border-radius:14px;overflow:hidden;margin-bottom:24px}
.hlm-spec{background:var(--halmar-white);padding:14px 16px}
.hlm-spec .k{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--halmar-text-muted-2);font-weight:600;margin-bottom:3px}
.hlm-spec .v{font-family:var(--font-heading);font-weight:700;color:var(--halmar-ink);font-size:15px}
.hlm-spec .v.mono{font-family:var(--font-mono);font-size:14px}

/* cart — also styles the WooCommerce form rendered inside */
.hlm-cart{margin-bottom:6px}
.hlm-cart .quantity{display:inline-flex;align-items:center;border:1px solid var(--halmar-line-2);border-radius:10px;background:var(--halmar-white);overflow:hidden;height:52px}
.hlm-cart .quantity input.qty{width:56px;border:0;text-align:center;font-family:var(--font-mono);font-weight:700;font-size:16px;color:var(--halmar-ink);background:transparent;height:50px}
.hlm-cart form.cart{display:flex;gap:12px;align-items:stretch;margin:0 0 14px;flex-wrap:nowrap}
.hlm-cart .single_add_to_cart_button{flex:1}

/* assurance */
.hlm-assure{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0 4px}
.hlm-assure .a{display:flex;gap:11px;align-items:flex-start;font-size:13px;color:var(--halmar-text)}
.hlm-assure .a svg{flex-shrink:0;margin-top:1px;color:var(--halmar-gold-dark);width:20px;height:20px}
.hlm-assure .a b{font-family:var(--font-heading);font-weight:700;color:var(--halmar-ink);display:block;font-size:13px;line-height:1.3}
.hlm-assure .a span{color:var(--halmar-text-muted);font-size:12.5px}

/* inline help */
.hlm-help{margin-top:20px;background:linear-gradient(135deg,var(--halmar-graphite),var(--halmar-graphite-2));border-radius:14px;padding:18px 20px;color:#fff;position:relative;overflow:hidden}
.hlm-help::before{content:"";position:absolute;top:-40%;right:-10%;width:220px;height:220px;background:radial-gradient(circle,rgba(201,162,75,.22),transparent 70%)}
.hlm-help .ht{position:relative;font-family:var(--font-heading);font-weight:700;font-size:15px;margin-bottom:3px}
.hlm-help .hs{position:relative;color:#bdbdbd;font-size:13px;margin-bottom:14px}
.hlm-help .hb{position:relative;display:flex;gap:10px;flex-wrap:wrap}
.hlm-cbtn{display:inline-flex;align-items:center;gap:9px;padding:11px 16px;border-radius:9px;font-family:var(--font-heading);font-weight:700;font-size:14px;transition:.18s;text-decoration:none}
.hlm-cbtn--call{background:var(--halmar-gold);color:#1a1407}
.hlm-cbtn--call:hover{background:var(--halmar-gold-soft)}
.hlm-cbtn--wa{background:#25D366;color:#fff}
.hlm-cbtn--wa:hover{background:#1da851}
.hlm-cbtn .num{font-family:var(--font-mono)}

/* trust strip (product) */
.hlm-trust{background:var(--halmar-white);border-top:1px solid var(--halmar-line);border-bottom:1px solid var(--halmar-line)}
.hlm-trust__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.hlm-trust__t{padding:34px 26px;text-align:center;border-right:1px solid var(--halmar-line)}
.hlm-trust__t:last-child{border-right:0}
.hlm-trust__ic{width:52px;height:52px;border-radius:50%;background:var(--halmar-gold-tint);border:1px solid var(--halmar-gold-tint-border);display:grid;place-items:center;margin:0 auto 14px;color:var(--halmar-gold-dark)}
.hlm-trust__t h3{font-family:var(--font-heading);font-weight:700;font-size:15px;color:var(--halmar-ink);margin-bottom:7px}
.hlm-trust__t p{font-size:13px;color:var(--halmar-text-muted);line-height:1.5;max-width:230px;margin:0 auto}

/* desc + spec table */
.hlm-section{padding:60px 0}
.hlm-section--light{background:var(--halmar-white)}
.hlm-lay{display:grid;grid-template-columns:1.4fr .9fr;gap:48px;align-items:start}
.hlm-desc p{color:var(--halmar-text);margin:16px 0;font-size:15.5px}
.hlm-desc .lead{font-size:17px;color:var(--halmar-ink)}
.hlm-notice{display:flex;gap:12px;background:var(--halmar-gold-tint);border:1px solid var(--halmar-gold-tint-border);border-radius:14px;padding:16px 18px;font-size:14px;color:#5a4a1f;margin-top:22px}
.hlm-notice svg{flex-shrink:0;color:var(--halmar-gold-dark);margin-top:1px}
.hlm-spectable{background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:14px;overflow:hidden;box-shadow:var(--halmar-shadow-soft)}
.hlm-spectable .head{background:var(--halmar-graphite);color:#fff;font-family:var(--font-heading);font-weight:700;font-size:14px;letter-spacing:.04em;padding:15px 20px;display:flex;align-items:center;gap:9px}
.hlm-spectable .head svg{color:var(--halmar-gold)}
.hlm-strow{display:flex;justify-content:space-between;gap:16px;padding:13px 20px;border-bottom:1px solid var(--halmar-line);font-size:14px}
.hlm-strow:last-child{border-bottom:0}
.hlm-strow .k{color:var(--halmar-text-muted)}
.hlm-strow .v{font-family:var(--font-mono);font-weight:600;color:var(--halmar-ink);text-align:right}

/* cards (related + featured) */
.hlm-related{background:var(--halmar-white);border-top:1px solid var(--halmar-line);padding:60px 0}
.hlm-rhead{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px;flex-wrap:wrap;gap:12px}
.hlm-rgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.hlm-card{background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:14px;overflow:hidden;transition:.2s;position:relative;display:flex;flex-direction:column}
.hlm-card:hover{transform:translateY(-4px);box-shadow:var(--halmar-shadow-card);border-color:var(--halmar-line-2)}
.hlm-card__tag{position:absolute;top:12px;left:12px;z-index:2;font-family:var(--font-heading);font-weight:700;font-size:10px;letter-spacing:.07em;text-transform:uppercase;padding:5px 9px;border-radius:6px;background:var(--halmar-gold);color:#1a1407}
.hlm-card__ph{aspect-ratio:4/3;background:var(--halmar-paper-2);overflow:hidden;display:block}
.hlm-card__ph img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.hlm-card:hover .hlm-card__ph img{transform:scale(1.05)}
.hlm-card__body{padding:16px;display:flex;flex-direction:column;flex:1}
.hlm-card__cb{font-family:var(--font-mono);font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--halmar-gold-dark);margin-bottom:7px}
.hlm-card__cn{font-family:var(--font-heading);font-weight:700;font-size:14px;color:var(--halmar-ink);line-height:1.35;margin-bottom:12px}
.hlm-card__cf{display:flex;justify-content:space-between;align-items:center;margin-top:auto}
.hlm-card__cp{font-family:var(--font-mono);font-weight:700;font-size:17px;color:var(--halmar-ink)}
.hlm-card__cp .woocommerce-Price-amount{font-size:17px}
.hlm-card__go{width:36px;height:36px;border-radius:9px;background:var(--halmar-gold-tint);display:grid;place-items:center;color:var(--halmar-gold-dark);transition:.18s;flex-shrink:0}
.hlm-card:hover .hlm-card__go{background:var(--halmar-gold);color:#1a1407}
.hlm-center-mt{text-align:center;margin-top:36px}

/* lightbox */
.hlm-lb{position:fixed;inset:0;background:rgba(15,15,15,.94);z-index:9999;display:none;align-items:center;justify-content:center;padding:40px;backdrop-filter:blur(6px)}
.hlm-lb.is-open{display:flex}
.hlm-lb img{max-width:90vw;max-height:82vh;border-radius:12px;box-shadow:var(--halmar-shadow-lg);background:#fff;object-fit:contain}
.hlm-lb__x{position:absolute;top:24px;right:28px;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);width:44px;height:44px;border-radius:50%;font-size:22px;cursor:pointer;display:grid;place-items:center}
.hlm-lb__x:hover{background:rgba(255,255,255,.22)}
.hlm-lb__nav{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:24px;cursor:pointer;display:grid;place-items:center}
.hlm-lb__nav:hover{background:rgba(255,255,255,.22)}
.hlm-lb__prev{left:28px}.hlm-lb__next{right:28px}
.hlm-lb__count{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);color:#ddd;font-family:var(--font-mono);font-size:13px}

/* sticky mobile buy bar */
.hlm-buybar{position:fixed;left:0;right:0;bottom:0;background:var(--halmar-white);border-top:1px solid var(--halmar-line);box-shadow:0 -8px 24px -12px rgba(0,0,0,.2);padding:12px 16px;display:none;z-index:80;align-items:center;gap:12px}
.hlm-buybar .bp{font-family:var(--font-mono);font-weight:700;font-size:18px;color:var(--halmar-ink)}
.hlm-buybar .bp .woocommerce-Price-amount{font-size:18px}
.hlm-buybar .hlm-btn{flex:1;padding:13px}

/* =========================================================
   FRONT PAGE
   ========================================================= */
.hlm-hero{position:relative;background:var(--halmar-graphite);color:#fff;overflow:hidden}
.hlm-hero__bg{position:absolute;inset:0;background:radial-gradient(ellipse at 72% 25%,rgba(201,162,75,.20),transparent 58%),linear-gradient(135deg,#2c2c2c,#141414);z-index:0}
.hlm-hero__bg::after{content:"";position:absolute;inset:0;opacity:.5;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:46px 46px;-webkit-mask:radial-gradient(ellipse at 70% 30%,#000,transparent 75%);mask:radial-gradient(ellipse at 70% 30%,#000,transparent 75%)}
.hlm-hero__in{position:relative;z-index:1;display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;padding-top:72px;padding-bottom:64px}
.hlm-hero__title{font-family:var(--font-heading);font-weight:800;font-size:46px;line-height:1.1;letter-spacing:-.02em;margin:16px 0 18px;color:#fff}
.hlm-hero__title em{font-style:normal;color:var(--halmar-gold)}
.hlm-hero .hlm-lead{color:#cfcfcf;font-size:17px;max-width:520px;margin-bottom:26px}
.hlm-hero .hlm-eyebrow{color:var(--halmar-gold);margin-bottom:4px}
.hlm-hbtns{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:30px}
.hlm-heromicro{display:flex;gap:22px;flex-wrap:wrap;color:#bdbdbd;font-size:13.5px}
.hlm-heromicro span{display:inline-flex;align-items:center;gap:8px}
.hlm-heromicro svg{color:var(--halmar-gold);width:16px;height:16px}

/* finder */
.hlm-finder{background:var(--halmar-white);border-radius:20px;box-shadow:var(--halmar-shadow-lg);overflow:hidden;color:var(--halmar-text)}
.hlm-finder__h{background:linear-gradient(135deg,#fff,#fbf9f3);padding:20px 24px;border-bottom:1px solid var(--halmar-line)}
.hlm-finder__h .t{font-family:var(--font-heading);font-weight:800;font-size:18px;color:var(--halmar-ink)}
.hlm-finder__h .s{font-size:13px;color:var(--halmar-text-muted);margin-top:2px}
.hlm-finder__b{padding:22px 24px}
.hlm-fld{margin-bottom:14px}
.hlm-fld label{display:block;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--halmar-text-muted-2);margin-bottom:6px}
.hlm-sel{position:relative}
.hlm-sel select,.hlm-sel input{width:100%;padding:13px 14px;border:1px solid var(--halmar-line-2);border-radius:10px;font-family:var(--font-body);font-size:14.5px;color:var(--halmar-ink);background:var(--halmar-paper-2);appearance:none;-webkit-appearance:none;cursor:pointer}
.hlm-sel select:focus,.hlm-sel input:focus{outline:none;border-color:var(--halmar-gold);background:#fff;box-shadow:0 0 0 3px var(--halmar-gold-tint)}
.hlm-sel--ar::after{content:"";position:absolute;right:14px;top:50%;width:8px;height:8px;border-right:2px solid var(--halmar-text-muted);border-bottom:2px solid var(--halmar-text-muted);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.hlm-finder .hlm-btn{width:100%;margin-top:6px}
.hlm-finder__f{padding:0 24px 20px;font-size:12.5px;color:var(--halmar-text-muted);text-align:center}
.hlm-finder__f a{color:var(--halmar-gold-dark);font-weight:600}

/* stats */
.hlm-stats{background:var(--halmar-graphite-2);border-top:1px solid rgba(255,255,255,.06);position:relative;z-index:1}
.hlm-stats__row{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.hlm-stats__s{padding:26px 20px;text-align:center;border-right:1px solid rgba(255,255,255,.06);color:#fff}
.hlm-stats__s:last-child{border-right:0}
.hlm-stats__n{font-family:var(--font-mono);font-weight:700;font-size:28px;color:var(--halmar-gold)}
.hlm-stats__l{font-size:12.5px;color:#aaa;margin-top:4px;letter-spacing:.03em}

/* brands */
.hlm-brands{display:grid;grid-template-columns:repeat(8,1fr);gap:14px}
.hlm-brand{aspect-ratio:1.5/1;border:1px solid var(--halmar-line);border-radius:10px;background:var(--halmar-white);display:grid;place-items:center;font-family:var(--font-heading);font-weight:700;font-size:14px;letter-spacing:.06em;color:var(--halmar-ink);transition:.18s;text-align:center;padding:6px}
.hlm-brand:hover{border-color:var(--halmar-gold);color:var(--halmar-gold-dark);background:var(--halmar-gold-tint);transform:translateY(-2px);box-shadow:var(--halmar-shadow-soft)}
.hlm-brand--more{background:var(--halmar-graphite);color:#fff;border-color:var(--halmar-graphite)}
.hlm-brand--more:hover{background:var(--halmar-graphite-2);color:var(--halmar-gold)}

/* steps */
.hlm-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.hlm-step{background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:14px;padding:30px 26px;position:relative;transition:.18s}
.hlm-step:hover{box-shadow:var(--halmar-shadow-soft);border-color:var(--halmar-line-2)}
.hlm-step__num{font-family:var(--font-mono);font-weight:700;font-size:14px;color:#1a1407;background:var(--halmar-gold);width:38px;height:38px;border-radius:10px;display:grid;place-items:center;margin-bottom:16px}
.hlm-step h3{font-family:var(--font-heading);font-weight:700;font-size:17px;color:var(--halmar-ink);margin-bottom:8px}
.hlm-step p{font-size:14px;color:var(--halmar-text-muted)}
.hlm-step__line{position:absolute;top:48px;right:-13px;width:26px;height:2px;background:var(--halmar-line-2);z-index:2}
.hlm-step:last-child .hlm-step__line{display:none}

/* =========================================================
   WOOCOMMERCE — przycisk dodaj do koszyka w kolorach marki
   (naprawa domyślnego fioletowego przycisku)
   ========================================================= */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
.woocommerce input.button,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce-page .button{
    background:var(--halmar-gold)!important;color:#1a1407!important;border:0!important;
    font-family:var(--font-heading);font-weight:700;letter-spacing:.02em;
    border-radius:10px;padding:15px 26px;transition:.18s;text-transform:none;
    box-shadow:0 8px 22px -10px rgba(201,162,75,.8);display:inline-flex;align-items:center;justify-content:center;gap:10px
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover{
    background:var(--halmar-gold-soft)!important;color:#1a1407!important;transform:translateY(-1px)
}
.woocommerce .button.disabled,
.woocommerce .single_add_to_cart_button.disabled{opacity:.55;cursor:not-allowed;transform:none}

/* =========================================================
   RESPONSIVE — redesign 2026
   ========================================================= */
@media (max-width:1024px){
  .hlm-pp__grid{grid-template-columns:1fr 1fr;gap:36px}
  .hlm-lay{grid-template-columns:1fr;gap:36px}
  .hlm-rgrid{grid-template-columns:repeat(2,1fr)}
  .hlm-hero__in{grid-template-columns:1fr;gap:36px;padding-top:54px;padding-bottom:48px}
  .hlm-hero__title{font-size:38px}
  .hlm-brands{grid-template-columns:repeat(5,1fr)}
}
@media (max-width:860px){
  .hlm-trust__grid{grid-template-columns:repeat(2,1fr)}
  .hlm-trust__t:nth-child(2){border-right:0}
  .hlm-trust__t:nth-child(1),.hlm-trust__t:nth-child(2){border-bottom:1px solid var(--halmar-line)}
  .hlm-stats__row{grid-template-columns:repeat(2,1fr)}
  .hlm-stats__s:nth-child(2){border-right:0}
  .hlm-steps{grid-template-columns:1fr}
  .hlm-step__line{display:none}
}
@media (max-width:760px){
  .hlm-pp__grid{grid-template-columns:1fr;gap:26px}
  .hlm-gallery{position:static}
  .hlm-ptitle{font-size:24px}
  .hlm-price,.hlm-price .woocommerce-Price-amount{font-size:28px}
  .hlm-assure{grid-template-columns:1fr}
  .hlm-help .hb{flex-direction:column}
  .hlm-cbtn{justify-content:center}
  .hlm-hero__title{font-size:30px}
  .hlm-buybar{display:flex}
  body.single-product{padding-bottom:74px}
}
@media (max-width:560px){
  .hlm-specs{grid-template-columns:1fr}
  .hlm-rgrid{grid-template-columns:1fr}
  .hlm-brands{grid-template-columns:repeat(3,1fr)}
  .hlm-trust__grid{grid-template-columns:1fr}
  .hlm-trust__t{border-right:0}
}

/* finder — wiersz dwukolumnowy (Model + Rocznik) */
.hlm-frow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.hlm-frow{grid-template-columns:1fr}}

/* stats — dynamiczna liczba kolumn */
.hlm-stats__row--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:860px){.hlm-stats__row--3{grid-template-columns:repeat(2,1fr)}}

/* =========================================================
   16. WYSYŁKA I ZWROTY (produkt) — zwijany blok
   ========================================================= */
.hlm-ship{margin-top:16px;background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:14px;overflow:hidden;box-shadow:var(--halmar-shadow-soft)}
.hlm-ship+.hlm-ship{margin-top:10px}
.hlm-ship>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:16px 18px;font-family:var(--font-heading);font-weight:700;font-size:14.5px;color:var(--halmar-ink)}
.hlm-ship>summary::-webkit-details-marker{display:none}
.hlm-ship>summary .ic{width:34px;height:34px;border-radius:9px;background:var(--halmar-gold-tint);border:1px solid var(--halmar-gold-tint-border);display:grid;place-items:center;color:var(--halmar-gold-dark);flex-shrink:0}
.hlm-ship>summary .ch{margin-left:auto;color:var(--halmar-text-muted);transition:transform .2s}
.hlm-ship[open]>summary .ch{transform:rotate(180deg)}
.hlm-ship__body{padding:0 18px 18px 64px;font-size:14px;color:var(--halmar-text-muted);line-height:1.6}
.hlm-ship__body p{margin:0 0 8px}
.hlm-ship__body p:last-child{margin:0}
.hlm-ship__body b{color:var(--halmar-ink);font-weight:600}

/* =========================================================
   17. HARMONIZACJA WIDGETU FILTRA [halmar_shop] z premium
   (override .halmar-fs-* — wyższa specyficzność przez wrapper)
   ========================================================= */
.halmar-shop-widget-wrap .halmar-fs-filters{
    background:var(--halmar-white);border:1px solid var(--halmar-line);
    border-radius:16px;padding:20px;box-shadow:var(--halmar-shadow-soft)
}
.halmar-shop-widget-wrap .halmar-fs-field{margin-bottom:14px}
.halmar-shop-widget-wrap .halmar-fs-field label{
    font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
    color:var(--halmar-text-muted-2);margin-bottom:6px;display:block
}
.halmar-shop-widget-wrap .halmar-fs-field select,
.halmar-shop-widget-wrap .halmar-fs-field input,
.halmar-shop-widget-wrap .halmar-fs-field__range input{
    width:100%;padding:12px 13px;border:1px solid var(--halmar-line-2);
    border-radius:10px;font-family:var(--font-body);font-size:14.5px;
    color:var(--halmar-ink);background:var(--halmar-paper-2);transition:.15s
}
.halmar-shop-widget-wrap .halmar-fs-field select:focus,
.halmar-shop-widget-wrap .halmar-fs-field input:focus,
.halmar-shop-widget-wrap .halmar-fs-field__range input:focus{
    outline:none;border-color:var(--halmar-gold);background:#fff;
    box-shadow:0 0 0 3px var(--halmar-gold-tint)
}
.halmar-shop-widget-wrap .halmar-fs-btn{
    border-radius:10px;font-family:var(--font-heading);font-weight:700;
    letter-spacing:.02em;padding:13px 22px;transition:.18s
}
.halmar-shop-widget-wrap .halmar-fs-btn--primary{
    background:var(--halmar-gold);color:#1a1407;border-color:var(--halmar-gold);
    box-shadow:0 8px 22px -10px rgba(201,162,75,.8)
}
.halmar-shop-widget-wrap .halmar-fs-btn--primary:hover{
    background:var(--halmar-gold-soft);border-color:var(--halmar-gold-soft);transform:translateY(-1px)
}
.halmar-shop-widget-wrap .halmar-fs-btn--ghost{
    background:var(--halmar-white);color:var(--halmar-ink);border:1px solid var(--halmar-line-2)
}
.halmar-shop-widget-wrap .halmar-fs-btn--ghost:hover{border-color:var(--halmar-gold);color:var(--halmar-gold-dark)}
.halmar-shop-widget-wrap .halmar-fs-toolbar{
    background:var(--halmar-white);border:1px solid var(--halmar-line);
    border-radius:12px;padding:12px 16px;margin-bottom:18px
}
.halmar-shop-widget-wrap .halmar-fs-toolbar__count{font-family:var(--font-heading);font-weight:600;color:var(--halmar-ink)}
.halmar-shop-widget-wrap .halmar-fs-toolbar select{
    border:1px solid var(--halmar-line-2);border-radius:8px;padding:8px 12px;background:var(--halmar-paper-2);font-family:var(--font-body)
}
.halmar-shop-widget-wrap .halmar-fs-card{
    background:var(--halmar-white);border:1px solid var(--halmar-line);
    border-radius:14px;overflow:hidden;transition:.2s
}
.halmar-shop-widget-wrap .halmar-fs-card:hover{
    transform:translateY(-4px);box-shadow:var(--halmar-shadow-card);border-color:var(--halmar-line-2)
}
.halmar-shop-widget-wrap .halmar-fs-card__title{font-family:var(--font-heading);font-weight:700}
.halmar-shop-widget-wrap .halmar-fs-card__title a:hover{color:var(--halmar-gold-dark)}
.halmar-shop-widget-wrap .halmar-fs-card__price{font-family:var(--font-mono);font-weight:700;color:var(--halmar-ink)}
.halmar-shop-widget-wrap .halmar-fs-card__badge--stan{background:rgba(22,22,22,.86);color:#fff;border-radius:6px}
.halmar-shop-widget-wrap .halmar-fs-card__badge--sale{background:var(--halmar-gold);color:#1a1407;border-radius:6px}
.halmar-shop-widget-wrap .halmar-fs-page{
    border:1px solid var(--halmar-line-2);border-radius:9px;color:var(--halmar-text);transition:.15s
}
.halmar-shop-widget-wrap .halmar-fs-page.is-active{background:var(--halmar-gold);color:#1a1407;border-color:var(--halmar-gold)}
.halmar-shop-widget-wrap .halmar-fs-page:hover{border-color:var(--halmar-gold);color:var(--halmar-gold-dark)}
.halmar-shop-widget-wrap .halmar-fs-view-btn.is-active{background:var(--halmar-gold);color:#1a1407;border-color:var(--halmar-gold)}

/* =========================================================
   18. POPRAWKI 2026 — ikony zaufania, pasek marek w headerze
   ========================================================= */

/* Ikony w kółkach (sekcja zaufania) — nadaj wymiary/stroke svg z halmar_svg_icon() */
.hlm-trust__ic .halmar-icon{display:inline-flex;align-items:center;justify-content:center}
.hlm-trust__ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hlm-ship>summary .ic svg{width:18px;height:18px}

/* Pasek marek w headerze — premium chipy jak w makiecie */
.halmar-brand-bar{background:#141414}
/* Domyślnie JEDEN rząd; przycisk „Więcej" rozwija do kolejnych rzędów. */
.halmar-brand-bar__inner{justify-content:flex-start;align-items:center;gap:6px 8px;padding-right:130px;max-height:46px}
.halmar-brand-bar.is-expanded .halmar-brand-bar__inner{max-height:600px}
.halmar-brand-chip{
    padding:7px 12px;border-radius:8px;
    color:#9a9a9a;font-family:var(--font-heading);font-weight:600;
    font-size:0.78rem;letter-spacing:0.08em;text-transform:uppercase;
    transition:color var(--t-fast),background var(--t-fast)
}
.halmar-brand-chip:hover,
.halmar-brand-chip:focus,
.halmar-brand-chip.is-active{
    color:var(--halmar-gold);
    background:rgba(201,162,75,0.10)
}

/* =========================================================
   19. KATALOG KATEGORII (strona główna) — Wariant B
   ========================================================= */
.hlm-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;align-items:start}
.hlm-cat{background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:16px;padding:24px 22px;display:flex;flex-direction:column;transition:.2s;position:relative;overflow:hidden}
.hlm-cat::before{content:"";position:absolute;left:0;top:0;height:3px;width:0;background:var(--halmar-gold);transition:width .25s}
.hlm-cat:hover{transform:translateY(-4px);box-shadow:var(--halmar-shadow-card);border-color:var(--halmar-line-2)}
.hlm-cat:hover::before{width:100%}
.hlm-cat__head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.hlm-cat__ic{width:52px;height:52px;border-radius:14px;background:var(--halmar-gold-tint);border:1px solid var(--halmar-gold-tint-border);display:grid;place-items:center;color:var(--halmar-gold-dark);flex-shrink:0;transition:.2s}
.hlm-cat:hover .hlm-cat__ic{background:var(--halmar-gold);color:#1a1407}
.hlm-cat__ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hlm-cat__title{font-family:var(--font-heading);font-weight:800;font-size:16.5px;color:var(--halmar-ink);line-height:1.2}
.hlm-cat__title:hover{color:var(--halmar-gold-dark)}
.hlm-cat__sub{list-style:none;display:flex;flex-direction:column;gap:1px;flex:1;margin:0;padding:0}
.hlm-cat__sub a{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:13.5px;color:var(--halmar-text);transition:.15s}
.hlm-cat__sub a:hover{color:var(--halmar-gold-dark)}
.hlm-cat__sub a .b{width:5px;height:5px;border-radius:50%;background:var(--halmar-line-2);flex-shrink:0;transition:.15s}
.hlm-cat__sub a:hover .b{background:var(--halmar-gold)}
.hlm-cat__all{margin-top:16px;padding-top:14px;border-top:1px solid var(--halmar-line);font-family:var(--font-heading);font-weight:700;font-size:13px;color:var(--halmar-gold-dark);display:inline-flex;align-items:center;gap:7px;transition:.15s}
.hlm-cat__all svg{width:15px;height:15px;transition:transform .15s}
.hlm-cat:hover .hlm-cat__all svg{transform:translateX(3px)}
@media(max-width:1024px){.hlm-cats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.hlm-cats{grid-template-columns:1fr}}

/* Opis kategorii (SEO) + kotwica + podnawigacja */
.hlm-cat-desc{max-width:820px;margin:10px auto 0;color:var(--halmar-text-muted);font-size:15px;line-height:1.65}
.halmar-shop-widget-wrap .halmar-section-title h1{font-family:var(--font-heading);font-weight:800;font-size:30px;color:var(--halmar-ink);letter-spacing:-.01em;line-height:1.15;margin:0}
.hlm-anchor{display:block;position:relative;top:calc(-1 * var(--header-height));height:0;visibility:hidden}
.hlm-subnav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:28px;padding-top:20px;border-top:1px solid var(--halmar-line)}
.hlm-subnav__label{font-family:var(--font-heading);font-weight:700;font-size:13px;color:var(--halmar-text-muted);margin-right:4px}
.hlm-subnav__chip{font-size:13px;font-weight:600;color:var(--halmar-ink);background:var(--halmar-white);border:1px solid var(--halmar-line-2);padding:7px 13px;border-radius:50px;transition:.15s}
.hlm-subnav__chip:hover{border-color:var(--halmar-gold);color:var(--halmar-gold-dark);background:var(--halmar-gold-tint)}

/* =========================================================
   20. PODSTRONA KONTAKT
   ========================================================= */
.hlm-contact{background:var(--halmar-paper-2)}
.hlm-contact__intro{max-width:820px;margin:0 auto 28px;color:var(--halmar-text);font-size:15.5px;line-height:1.7}
.hlm-contact__grid{display:grid;grid-template-columns:1fr 1.15fr;gap:32px;align-items:start}
.hlm-contact__info{display:flex;flex-direction:column;gap:22px}
.hlm-contact__card{background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:16px;padding:26px 26px;box-shadow:var(--halmar-shadow-soft)}
.hlm-contact__h{font-family:var(--font-heading);font-weight:800;font-size:18px;color:var(--halmar-ink);margin:0 0 18px;letter-spacing:-.01em}
.hlm-contact__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.hlm-contact__list li{display:flex;gap:14px;align-items:flex-start;font-size:14.5px;color:var(--halmar-text)}
.hlm-contact__list .ic{width:42px;height:42px;border-radius:11px;background:var(--halmar-gold-tint);border:1px solid var(--halmar-gold-tint-border);display:grid;place-items:center;color:var(--halmar-gold-dark);flex-shrink:0}
.hlm-contact__list .ic svg{width:20px;height:20px}
.hlm-contact__list b{display:block;font-family:var(--font-heading);font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--halmar-text-muted-2);margin-bottom:3px}
.hlm-contact__list a{color:var(--halmar-ink);font-weight:600}
.hlm-contact__list a:hover{color:var(--halmar-gold-dark)}
.hlm-contact__mono{font-family:var(--font-mono)}
.hlm-contact__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.hlm-contact__actions .hlm-cbtn--wa{color:#fff;padding:14px 22px;border-radius:10px;font-family:var(--font-heading);font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:10px}

/* godziny */
.hlm-hours{list-style:none;margin:0;padding:0}
.hlm-hours li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:11px 0;border-bottom:1px solid var(--halmar-line);font-size:14.5px}
.hlm-hours li:last-child{border-bottom:0}
.hlm-hours .d{color:var(--halmar-text);font-weight:500}
.hlm-hours .h{font-family:var(--font-mono);font-weight:600;color:var(--halmar-ink)}
.hlm-hours li.is-closed .h{color:var(--halmar-text-muted-2);font-weight:500}
.hlm-hours li.is-today{background:var(--halmar-gold-tint);margin:0 -12px;padding-left:12px;padding-right:12px;border-radius:8px;border-bottom-color:transparent}
.hlm-hours li.is-today .d{font-weight:700;color:var(--halmar-ink)}
.hlm-hours .badge{display:inline-block;margin-left:8px;font-family:var(--font-heading);font-weight:700;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#1a1407;background:var(--halmar-gold);padding:2px 7px;border-radius:50px;vertical-align:middle}

/* mapa */
.hlm-contact__map{position:sticky;top:96px}
.hlm-map{position:relative;width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;border:1px solid var(--halmar-line);box-shadow:var(--halmar-shadow-card)}
.hlm-map iframe{position:absolute;inset:0;width:100%;height:100%}
.hlm-map__link{display:inline-flex;align-items:center;gap:7px;margin-top:14px;font-family:var(--font-heading);font-weight:700;font-size:14px;color:var(--halmar-gold-dark)}
.hlm-map__link svg{transition:transform .15s}
.hlm-map__link:hover svg{transform:translateX(3px)}

@media(max-width:900px){
  .hlm-contact__grid{grid-template-columns:1fr;gap:24px}
  .hlm-contact__map{position:static}
}

/* =========================================================
   21. SEKCJA OPINII (Trustindex) na stronie głównej
   ========================================================= */
.hlm-reviews{background:var(--halmar-white)}
.hlm-reviews .hlm-trustindex{max-width:var(--max);margin:0 auto}

/* =========================================================
   22. PODSTRONA JAK KUPOWAĆ
   ========================================================= */
.hlm-steps--4{grid-template-columns:repeat(4,1fr)}
@media(max-width:980px){.hlm-steps--4{grid-template-columns:repeat(2,1fr)}.hlm-steps--4 .hlm-step__line{display:none}}
@media(max-width:520px){.hlm-steps--4{grid-template-columns:1fr}}

.hlm-hk{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.hlm-hk__card{background:var(--halmar-white);border:1px solid var(--halmar-line);border-radius:16px;padding:26px 24px;box-shadow:var(--halmar-shadow-soft);transition:.18s}
.hlm-hk__card:hover{box-shadow:var(--halmar-shadow-card);border-color:var(--halmar-line-2)}
.hlm-hk__ic{width:52px;height:52px;border-radius:14px;background:var(--halmar-gold-tint);border:1px solid var(--halmar-gold-tint-border);display:grid;place-items:center;color:var(--halmar-gold-dark);margin-bottom:16px}
.hlm-hk__ic svg{width:26px;height:26px;stroke-linecap:round;stroke-linejoin:round}
.hlm-hk__card h3{font-family:var(--font-heading);font-weight:800;font-size:17px;color:var(--halmar-ink);margin-bottom:12px}
.hlm-hk__card ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.hlm-hk__card li{position:relative;padding-left:22px;font-size:14px;color:var(--halmar-text);line-height:1.45}
.hlm-hk__card li::before{content:"";position:absolute;left:0;top:7px;width:9px;height:6px;border-left:2px solid var(--halmar-gold-dark);border-bottom:2px solid var(--halmar-gold-dark);transform:rotate(-45deg)}
@media(max-width:900px){.hlm-hk{grid-template-columns:1fr}}

.hlm-pay{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:center;margin-top:32px}
.hlm-pay__label{font-family:var(--font-heading);font-weight:700;font-size:13px;color:var(--halmar-text-muted);margin-right:4px}
.hlm-pay__chip{font-family:var(--font-heading);font-weight:700;font-size:12px;letter-spacing:.04em;color:var(--halmar-ink);background:var(--halmar-white);border:1px solid var(--halmar-line-2);padding:8px 14px;border-radius:8px}

.hlm-faq{max-width:820px;margin:0 auto}
.hlm-faq .hlm-ship{margin-bottom:10px}

/* =========================================================
   23. POPRAWKI RESPONSYWNOŚCI (mobile)
   ========================================================= */
/* Brak poziomego przewijania / „za szerokich" sekcji. */
html, body { max-width: 100%; overflow-x: hidden; }

/* Margines bezpieczny (notch) — logo nie chowa się pod paskiem stanu. */
.halmar-header { padding-top: env(safe-area-inset-top, 0px); }

/* Ikona hamburgera — widoczne kreski (SVG potrzebuje stroke). */
.halmar-menu-toggle svg {
    width: 26px; height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.halmar-menu-toggle .halmar-icon { display: inline-flex; }

@media (max-width: 767px) {
    /* Hamburger po prawej, obok konta/koszyka. */
    .halmar-menu-toggle { margin-left: auto; }
    /* Łamanie długich słów w nagłówku hero. */
    .hlm-hero__title { overflow-wrap: break-word; word-break: break-word; }

    /* Wyszukiwarka hero: „Zadzwoń: …" w osobnym wierszu pod tekstem, numer bez łamania. */
    .hlm-finder__f a { display: block; margin-top: 6px; white-space: nowrap; }

    /* FIX: zamknięte menu mobilne chowamy przez visibility/opacity, NIE przez
       translateY(-110%) — inaczej jego dolna krawędź nachodziła na logo/hamburger. */
    .halmar-nav {
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--t), transform var(--t), visibility var(--t);
    }
    .halmar-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Produkt (mobile): bloki zaufania POD opisem i specyfikacją. */
    .hlm-pp { display: flex; flex-direction: column; }
    .hlm-pp > .halmar-container { order: 1; } /* galeria + info */
    .hlm-pp > .hlm-section       { order: 2; } /* opis + specyfikacja */
    .hlm-pp > .hlm-trust         { order: 3; } /* zaufanie */
    .hlm-pp > .hlm-related       { order: 4; } /* podobne części */
}
@media (max-width: 420px) {
    .hlm-hero__title { font-size: 26px; }
}

/* =========================================================
   24. MOJE KONTO (WooCommerce) — styl premium Halmar
   ========================================================= */
.woocommerce-account .woocommerce { max-width: var(--container-max); margin: 0 auto; }

/* Układ: nawigacja (sidebar) + treść */
@media (min-width: 768px) {
    .woocommerce-account .woocommerce::after { content: ""; display: table; clear: both; }
    .woocommerce-account .woocommerce-MyAccount-navigation { float: left; width: 250px; }
    .woocommerce-account .woocommerce-MyAccount-content { float: right; width: calc(100% - 285px); }
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.woocommerce-MyAccount-navigation ul li a {
    display: block; padding: 12px 16px;
    border: 1px solid var(--halmar-line); border-radius: 10px;
    background: var(--halmar-white);
    font-family: var(--font-heading); font-weight: 600; font-size: 14px;
    color: var(--halmar-ink); transition: .15s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    border-color: var(--halmar-gold); background: var(--halmar-gold-tint); color: var(--halmar-gold-dark);
}
.woocommerce-MyAccount-content {
    background: var(--halmar-white); border: 1px solid var(--halmar-line);
    border-radius: 14px; padding: 26px; box-shadow: var(--halmar-shadow-soft);
}

/* Pola formularzy WooCommerce */
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 13px; color: var(--halmar-text); display: block; margin-bottom: 4px; }
.woocommerce form .input-text {
    width: 100%; box-sizing: border-box; border: 1px solid var(--halmar-line-2); border-radius: 10px;
    padding: 11px 13px; font-family: var(--font-body); background: var(--halmar-paper-2);
}
.woocommerce form .input-text:focus {
    border-color: var(--halmar-gold); background: #fff;
    box-shadow: 0 0 0 3px var(--halmar-gold-tint); outline: none;
}
/* Adresy — mniejsze nagłówki + porządny układ */
.woocommerce-account .addresses .title h3,
.woocommerce-account .woocommerce-Address-title h3,
.woocommerce-account .woocommerce-Address h3 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 17px; line-height: 1.25; margin: 0 0 8px;
}
.woocommerce-account .woocommerce-Address,
.woocommerce-account .u-column1.col-1,
.woocommerce-account .u-column2.col-2 { text-align: left; }
.woocommerce-account address { font-style: normal; color: var(--halmar-text-muted); font-size: 14px; line-height: 1.6; }

/* =========================================================
   25. KARTA PRODUKTU — rozbudowana (dostępność, cena+wysyłka, akcje, ulubione)
   ========================================================= */
.hlm-card { position: relative; }
.hlm-card__media { display: block; }
.hlm-card__cn { display: block; color: var(--halmar-ink); }
.hlm-card__cn:hover { color: var(--halmar-gold-dark); }
.hlm-card__avail { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--halmar-green); font-weight: 600; margin: 2px 0 8px; }
.hlm-card__avail .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--halmar-green); box-shadow: 0 0 0 3px rgba(31,174,90,.18); }
.hlm-card__avail--out { color: var(--halmar-text-muted-2); }
.hlm-card__prices { margin: 0 0 12px; }
.hlm-card__prices .hlm-card__cp { display: block; }
.hlm-card__ship { display: block; font-size: 12px; color: var(--halmar-text-muted); margin-top: 2px; }
.hlm-card__actions { display: flex; gap: 8px; margin-top: auto; }
.hlm-card__actions .hlm-btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
.hlm-fav {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--halmar-line);
    background-color: rgba(255,255,255,.95);
    background-image: url('/wp-content/uploads/2026/06/ulubione.webp');
    background-repeat: no-repeat; background-position: center; background-size: 22px 22px;
    cursor: pointer; transition: .15s;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hlm-fav:hover { border-color: var(--halmar-gold); transform: scale(1.06); }
.hlm-fav.is-active {
    border-color: var(--halmar-gold);
    background-image: url('/wp-content/uploads/2026/06/ulubione-akcept.webp');
}
@media (max-width: 380px) {
    .hlm-card__actions { flex-direction: column; }
}

/* =========================================================
   26. LOGO (emblemat Halmar)
   ========================================================= */
/* Logo w nagłówku — nadpisuje bazowy limit max-height:44px (był za mały).
   Duże na PC, mniejsze na mobile (osobna reguła w media poniżej). */
.halmar-header__logo img,
.halmar-logo-img { height: 80px !important; max-height: 80px !important; width: auto; display: block; }
/* Powietrze nad/pod logo w nagłówku */
.halmar-header__inner { padding-top: 14px; padding-bottom: 14px; }
.halmar-footer .halmar-footer__logo-img,
.woocommerce-page .halmar-footer .halmar-footer__logo-img { height: 130px !important; max-height: 130px !important; width: auto !important; max-width: 230px; display: block; margin-bottom: 14px; }
/* Logo na podstronach — ciemny, premium kafelek (widoczne na jasnym tle) */
.halmar-page-logo {
    display: block; margin: 0 auto 18px; height: 110px; width: auto;
    background: linear-gradient(135deg, var(--halmar-graphite), var(--halmar-graphite-2));
    padding: 18px 28px; border-radius: 18px;
    box-shadow: var(--halmar-shadow-card);
}
/* Większe logo (np. „O nas") — pod nagłówkiem */
.halmar-page-logo--xl { height: 180px; padding: 28px 44px; border-radius: 22px; margin: 22px auto 0; }
@media (max-width: 767px) { .halmar-page-logo--xl { height: 120px; padding: 18px 28px; } }
@media (max-width: 767px) {
    .halmar-header__logo img,
    .halmar-logo-img { height: 50px !important; max-height: 50px !important; }
    .halmar-header__inner { padding-top: 8px; padding-bottom: 8px; }
    .halmar-page-logo { height: 84px; padding: 14px 20px; }
}

/* Ikona „Ulubione" w nagłówku */
.halmar-fav-link { position: relative; }
.halmar-fav-ic {
    width: 22px; height: 22px; display: block;
    background: url('/wp-content/uploads/2026/06/ulubione.webp') center/contain no-repeat;
    filter: brightness(0) invert(1); transition: filter .15s;
}
.halmar-fav-link:hover .halmar-fav-ic { filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg); }
.halmar-fav-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--halmar-gold); color: var(--halmar-dark);
    font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* Ulubione — pusty stan */
.hlm-fav-empty { text-align: center; padding: 30px 0; }
.hlm-fav-empty p { color: var(--halmar-text-muted); font-size: 15.5px; margin-bottom: 16px; }

/* =========================================================
   27. KARTY SKLEPU (wtyczka) — dostępność, wysyłka, serce
   ========================================================= */
.halmar-shop-widget-wrap .halmar-fs-card { position: relative; }
.halmar-fs-card__avail { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--halmar-green); margin: 6px 0 2px; }
.halmar-fs-card__avail .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--halmar-green); box-shadow: 0 0 0 3px rgba(31,174,90,.18); }
.halmar-fs-card__avail--out { color: var(--halmar-text-muted-2); }
.halmar-fs-card__ship { font-size: 12px; color: var(--halmar-text-muted); margin-top: 2px; }

/* Edycja adresów — 2 kolumny (osobne od logowania) */
@media (min-width: 768px) {
    .woocommerce-account .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .woocommerce-account .col2-set .col-1,
    .woocommerce-account .col2-set .col-2 { width: 100%; float: none; margin: 0; }
}

/* Brandowany ekran logowania / rejestracji — JEDNA, wyśrodkowana kolumna */
.hlm-login-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.hlm-login-head .hlm-eyebrow { justify-content: center; margin-bottom: 10px; }
.hlm-login-head .hlm-acc { margin: 12px auto 0; }
.hlm-login-head p { color: var(--halmar-text-muted); font-size: 15px; margin-top: 10px; }

.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation { display: none; }
#customer_login.u-columns {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 22px; max-width: 460px; margin: 0 auto; float: none;
}
#customer_login .u-column1,
#customer_login .u-column2 { float: none; width: 100%; margin: 0; max-width: none; }
#customer_login h2 { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--halmar-ink); margin: 0 0 12px; }
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register {
    background: var(--halmar-white); border: 1px solid var(--halmar-line);
    border-radius: 14px; padding: 24px; box-shadow: var(--halmar-shadow-soft); margin: 0;
}
.woocommerce form.woocommerce-form-login .button,
.woocommerce form.woocommerce-form-register .button { width: 100%; margin-top: 4px; }

/* === SEO INTRO (strona główna) === */
.hlm-seo__in { max-width: 820px; margin: 0 auto; }
.hlm-seo__h { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--halmar-ink, #1a1a1a); margin: 0 0 16px; letter-spacing: -0.01em; }
.hlm-seo p { color: #555; line-height: 1.75; margin: 0 0 14px; font-size: 15.5px; }
.hlm-seo p:last-child { margin-bottom: 0; }
.hlm-seo a { color: var(--halmar-gold, #C9A24B); font-weight: 600; text-decoration: none; }
.hlm-seo a:hover { text-decoration: underline; }
