/*
Theme Name: Speed Nadruki
Theme URI: https://speednadruki.pl
Author: Speed Nadruki
Author URI: https://speednadruki.pl
Description: Custom theme dla sklepu Speed Nadruki - odzież firmowa z nadrukiem DTF
Version: 1.0.45
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: speednadruki
Last Modified: 2026-01-22 (Added --navy-hover variable)
*/

/* ==========================================================================
   Self-hosted Poppins (Polish subset, woff2)
   ========================================================================== */

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Variables - Paleta kolorów
   ========================================================================== */

:root {
    /* Main Colors */
    --navy: #1a2b4a;
    --navy-hover: #0f1a2e;
    --mint: #69a4b4;
    --mint-hover: #5a8f9e;
    --mint-light: #e8f4f7;

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-inverse: #ffffff;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-subtle: #f3f4f6;
    --bg-muted: #e5e7eb;
    --bg-dark: #1f2937;
    --bg-darker: #111827;

    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;

    /* Status Colors */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-error: #ef4444;
    --status-info: #3b82f6;

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 24px;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--text-inverse);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Headings - clamp(min, preferred, max) */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    color: var(--navy);
}

h1 {
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);      /* 28px → 40px */
    font-weight: 700;
    letter-spacing: -0.3px;
}
h2 {
    font-size: clamp(1.5rem, 1.25rem + 0.75vw, 2rem);     /* 24px → 32px */
    font-weight: 700;
    letter-spacing: -0.3px;
}
h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);  /* 20px → 26px */
    font-weight: 600;
}
h4 {
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);  /* 17px → 20px */
    font-weight: 600;
}
h5 {
    font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem); /* 15px → 17px */
    font-weight: 600;
}
h6 {
    font-size: clamp(0.8125rem, 0.78rem + 0.1vw, 0.9375rem); /* 13px → 15px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* Body text */
p {
    font-size: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14px → 15px */
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);    /* 16px → 18px */
    font-weight: 400;
}

small, .small {
    font-size: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem); /* 12px → 13px */
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section {
    padding: var(--spacing-3xl) 0;
}

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

.section--primary {
    background-color: var(--navy);
    color: var(--text-inverse);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 15px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Primary - Mint */
.btn-primary {
    background-color: var(--mint);
    color: var(--text-inverse);
    border-color: var(--mint);
}

.btn-primary:hover {
    background-color: var(--mint-hover);
    border-color: var(--mint-hover);
}

/* Secondary - Outline Mint */
.btn-secondary {
    background-color: transparent;
    color: var(--mint);
    border-color: var(--mint);
}

.btn-secondary:hover {
    background-color: var(--mint);
    color: var(--text-inverse);
}

/* Navy - Solid */
.btn-navy {
    background-color: var(--navy);
    color: var(--text-inverse);
    border-color: var(--navy);
}

.btn-navy:hover {
    background-color: var(--navy-hover);
    border-color: var(--navy-hover);
}

/* Outline Navy */
.btn-outline-navy {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: var(--text-inverse);
}

/* Ghost */
.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
}

/* Light - for dark backgrounds */
.btn-light {
    background-color: var(--text-inverse);
    color: var(--navy);
    border-color: var(--text-inverse);
}

.btn-light:hover {
    background-color: var(--bg-light);
    border-color: var(--bg-light);
}

/* Outline Light - for dark backgrounds */
.btn-outline-light {
    background-color: transparent;
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background-color: var(--text-inverse);
    color: var(--navy);
    border-color: var(--text-inverse);
}

/* Ghost Light - for dark backgrounds */
.btn-ghost-light {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: transparent;
}

.btn-ghost-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
}

/* Button sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

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

/* ==========================================================================
   Badges - Znaczniki produktów
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    color: var(--text-inverse);
}

.badge-new {
    background-color: var(--status-success);
}

.badge-bestseller {
    background-color: var(--status-warning);
}

.badge-sale {
    background-color: var(--status-error);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: var(--font-size-base);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    background-color: var(--text-inverse);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px var(--mint-light);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Icons (Lucide-style SVG)
   ========================================================================== */

.icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 20px; height: 20px; }
.icon--xl { width: 24px; height: 24px; }

/* ==========================================================================
   Top Bar
   ========================================================================== */

.top-bar {
    background-color: var(--bg-subtle);
    padding: 5px 0;
    font-size: 12px;
    line-height: 1;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__logo {
    display: none;
}

/* Left — utility nav */
.top-bar__nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.top-bar__nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    padding: 0 14px;
    line-height: 1;
    transition: color var(--transition-fast);
}

.top-bar__nav a:first-child {
    padding-left: 0;
}

.top-bar__nav a:hover {
    color: var(--text-primary);
}

.top-bar__nav a + a {
    position: relative;
}

.top-bar__nav a + a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: var(--border-light);
}

/* Right — contact + social */
.top-bar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__right > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.top-bar__right > a:hover {
    color: var(--text-primary);
}

.top-bar__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar__social a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.top-bar__social a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: var(--text-inverse);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__wrapper {
    position: relative;
}

.site-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: inline-flex;
    text-decoration: none;
}

.site-logo__img {
    width: 170px;
    height: auto;
    padding-top: 5px;
}

/* Navigation */
.main-navigation {
    justify-self: center;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8vw;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li {
    margin: 0;
}

.main-navigation .nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.main-navigation .nav-menu a:hover {
    color: var(--mint);
}

.main-navigation .nav-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Header Actions (icons) */
.site-header__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.site-header__actions a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.site-header__actions a:hover {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
}

/* Header Shop Button */
.site-header__actions .header-shop-btn {
    width: auto;
    height: 35px;
    padding: 8px 20px 5px;
    background: var(--navy);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-md);
    letter-spacing: 0.02em;
    align-self: center;
    margin-right: 10px;
}

.site-header__actions .header-shop-btn:hover {
    background: var(--mint);
    color: #fff;
}

/* Header Logo CTA Button — same base as shop-btn, custom gradient */
.site-header__actions .header-logo-btn {
    width: auto;
    height: 35px;
    padding: 8px 20px 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mint-light, #e8f4f7);
    color: var(--navy);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-md);
    letter-spacing: 0.02em;
    align-self: center;
    margin-right: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .4s ease;
}

.site-header__actions .header-logo-btn:hover {
    background: var(--mint);
    color: #fff;
}

.site-header__actions .header-logo-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.header-logo-btn__sparkle {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.header-logo-btn__sparkle .ai-sparkle-aurora--big {
    width: 16px;
    height: 16px;
}

.header-logo-btn__sparkle .ai-sparkle-aurora--small {
    width: 9px;
    height: 9px;
    position: absolute;
    bottom: -2px;
    right: -4px;
}

/* Header Cart Button */
.site-header__actions .header-cart {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.site-header__actions .header-cart:hover {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
}

.header-cart__count {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--navy);
    color: var(--text-inverse);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    padding: 3px 3px 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   Mega Menu
   ========================================================================== */

/* Trigger Button */
.mega-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.mega-menu-trigger:hover {
    color: var(--mint);
}

.mega-menu-trigger[aria-expanded="true"] {
    color: var(--mint);
}

.mega-menu-trigger[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.mega-menu-trigger .icon {
    transition: transform var(--transition-fast);
}

/* Mega Menu Panel */
.mega-menu {
    position: absolute;
    top: 100%;
    left: calc((100% - var(--container-max)) / 2 + 20px);
    transform: translateY(-10px);
    width: auto;
    background: var(--bg-white);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu__container {
    display: grid;
    grid-template-columns: 220px 340px 250px;
    position: relative;
}

/* Sidebar */
.mega-menu__sidebar {
    background: var(--bg-light);
    padding: 24px 0;
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
}

.mega-menu__cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.mega-menu__cat-btn:hover {
    background: var(--bg-white);
    color: var(--bg-darker);
}

.mega-menu__cat-btn.is-active {
    background: var(--bg-white);
    color: var(--mint);
    font-weight: 600;
    border-left: 3px solid var(--mint);
}

.mega-menu__cat-btn .icon {
    opacity: 0.4;
}

.mega-menu__cat-btn.is-active .icon {
    opacity: 1;
    color: var(--mint);
}

/* Content Area */
.mega-menu__content {
    padding: 24px 32px;
    width: 340px;
}

/* Product List */
.mega-menu__product-list {
    display: none;
}

.mega-menu__product-list.is-active {
    display: block;
}

.mega-menu__cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--bg-darker);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

.mega-menu__all-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--mint);
    text-decoration: none;
    max-width: 70px;
    text-align: right;
    line-height: 1.3;
    flex-shrink: 0;
}

.mega-menu__all-link:hover {
    text-decoration: underline;
}

.mega-menu__product-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu__product-links li a {
    display: block;
    padding: 14px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.mega-menu__product-links li a:hover {
    color: var(--mint);
}

.mega-menu__product-links li {
    border-bottom: 1px solid var(--bg-subtle);
}

.mega-menu__product-links li:last-child {
    border-bottom: none;
}

/* Category Image */
.mega-menu__image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg-light);
    padding: 24px;
    width: 250px;
    min-height: 300px;
}

.mega-menu__cat-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}

/* Close Button */
.mega-menu__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mega-menu__close:hover {
    background: var(--bg-subtle);
    color: var(--bg-darker);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

/* Hamburger Button - hidden by default */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Hamburger animation when open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Container - hidden by default */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity var(--transition-slow);
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* Overlay */
.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Panel */
.mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-white);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

/* Header */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu__header .site-logo__img {
    width: 140px;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.mobile-menu__close:hover {
    color: var(--bg-darker);
}

/* Navigation */
.mobile-menu__nav {
    flex: 1;
    padding: 0;
}

.mobile-menu__item {
    border-bottom: 1px solid var(--bg-subtle);
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mobile-menu__link:hover {
    background: var(--bg-light);
}

.mobile-menu__link .icon {
    width: 20px;
    height: 20px;
    margin-right: 0;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform var(--transition-fast);
}

/* Produkty - wyróżnienie */
.mobile-menu__item--has-children > .mobile-menu__link {
    background: var(--mint-light);
    color: var(--navy);
    font-weight: 600;
}

.mobile-menu__item--has-children > .mobile-menu__link:hover {
    background: #dceef2;
}

/* Toggle expanded state */
.mobile-menu__toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* Submenu */
.mobile-menu__submenu {
    display: none;
    background: var(--bg-light);
}

.mobile-menu__toggle[aria-expanded="true"] + .mobile-menu__submenu {
    display: block;
}

/* Category Accordion */
.mobile-menu__category {
    border-top: 1px solid var(--bg-subtle);
}

.mobile-menu__category:first-child {
    border-top: none;
}

.mobile-menu__cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px 14px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mobile-menu__cat-toggle:hover {
    background: var(--bg-subtle);
}

.mobile-menu__cat-toggle .icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform var(--transition-fast);
}

.mobile-menu__cat-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* Product list */
.mobile-menu__products {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px 0;
    background: var(--bg-white);
}

.mobile-menu__cat-toggle[aria-expanded="true"] + .mobile-menu__products {
    display: block;
}

.mobile-menu__products li a {
    display: block;
    padding: 10px 20px 10px 40px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-menu__products li a:hover {
    background: var(--bg-subtle);
    color: var(--navy);
}

.mobile-menu__products li a strong {
    color: var(--navy);
    font-weight: 600;
}

/* Mobile Menu Footer */
.mobile-menu__footer {
    margin-top: auto;
    padding: 24px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.mobile-menu__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-menu__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-menu__contact-item:hover {
    color: var(--navy);
}

.mobile-menu__contact-item .icon {
    width: 18px;
    height: 18px;
    stroke: var(--mint);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.mobile-menu__social {
    display: flex;
    gap: 12px;
}

.mobile-menu__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-menu__social a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--text-inverse);
}

.mobile-menu__social .icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}


/* ==========================================================================
   Footer CTA
   ========================================================================== */

.footer-cta {
    background-color: var(--navy);
    padding: 48px 0;
    text-align: center;
}

.footer-cta h3 {
    color: var(--text-inverse);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-cta p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.footer-cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #111827;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}

/* Footer Logo */
.footer-logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo__img {
    width: 170px;
    height: auto;
}

/* Footer Brand */
.site-footer__brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.site-footer__social {
    display: flex;
    gap: 12px;
}

.site-footer__social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.site-footer__social a:hover {
    background: var(--mint);
    color: var(--text-inverse);
}

.site-footer__social svg {
    width: 16px;
    height: 16px;
}

/* Footer Columns */
.site-footer__column h4 {
    color: var(--text-inverse);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.site-footer__column ul {
    list-style: none;
}

.site-footer__column li {
    margin-bottom: 8px;
}

.site-footer__column a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.site-footer__column a:hover {
    color: var(--text-inverse);
}

/* Footer Help Contact */
.footer-help-contact {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-help-contact__title {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.footer-help-contact__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-help-contact__row svg {
    width: 14px;
    height: 14px;
    stroke: var(--mint);
    flex-shrink: 0;
}

.footer-help-contact__row a {
    color: var(--text-inverse);
    font-size: 14px;
    font-weight: 500;
}

.footer-help-contact__row a:hover {
    color: var(--mint);
}

.footer-help-contact__hours {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 6px;
}

/* Footer Bottom */
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px;
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.site-footer__bottom p {
    margin: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
}

.breadcrumbs__item a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumbs__item a:hover {
    color: var(--mint);
}

.breadcrumbs__item--current {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumbs__separator {
    color: var(--text-light);
    margin: 0 4px;
}

/* ==========================================================================
   Page Header (subpages)
   ========================================================================== */

.page-header {
    padding: 40px 0 0;
}

.page-header h1 {
    margin: 0;
}

/* ==========================================================================
   Page Title Bar (subpages - dark variant)
   ========================================================================== */

.page-title-bar {
    background-color: var(--navy);
    min-height: 80px;
    display: flex;
    align-items: center;
    padding: 16px 0;
}

.page-title-bar h1 {
    color: var(--text-inverse);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --container-padding: 20px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px 24px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

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

    /* Header mobile */
    .site-header .container {
        grid-template-columns: 1fr auto;
    }

    .main-navigation {
        display: none;
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        padding: 0px 0 5px;
    }

    .site-header__actions .header-shop-btn {
        order: 1;
    }

    .site-header__actions a[title="Moje konto"] {
        order: 3;
    }

    .site-header__actions .header-cart-wrapper {
        order: 4;
    }

    /* Enable mobile menu */
    .mobile-menu {
        display: block;
    }

    /* Hide mega menu on mobile */
    .mega-menu {
        display: none !important;
    }

    /* Footer mobile */
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-cta__buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    /* Top bar mobile: nav | logo | phone in one row */
    .top-bar__logo {
        display: block;
    }

    .top-bar__logo-img {
        height: 16px;
        width: auto;
        display: block;
    }

    .top-bar__nav {
        margin-right: auto;
    }

    .top-bar__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .top-bar .container {
        position: relative;
    }

    .top-bar .top-bar__email,
    .top-bar .top-bar__social {
        display: none;
    }

    .top-bar__nav a {
        padding: 8px 10px;
        font-size: 11px;
    }

    .top-bar__right {
        gap: 0;
    }

    .top-bar__phone span,
    .top-bar__phone svg + br {
        display: none;
    }

    /* Header: hide logo, keep actions */
    .site-branding {
        display: none;
    }

    .site-header .container {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .site-header__actions {
        width: 100%;
        display: flex;
        gap: 2px;
        justify-content: flex-start;
    }

    .site-header__actions .header-shop-btn {
        order: 0;
    }

    .site-header__actions .header-logo-btn {
        order: 1;
        margin-right: auto;
    }

    .breadcrumbs {
        padding: 10px 0;
    }

    .breadcrumbs__list {
        font-size: var(--font-size-xs);
        gap: 3px 5px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .site-header__actions .header-shop-btn {
        padding: 6px 12px;
        font-size: 12px;
        height: 30px;
        margin-right: 10px;
        line-height: 12px;
    }

    .site-header__actions .header-logo-btn {
        padding: 6px 12px;
        font-size: 12px;
        height: 30px;
        margin-right: auto;
        line-height: 12px;
    }
}

/* ══════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ══════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 0;
}

.whatsapp-float__tooltip {
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-right: 12px;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.whatsapp-float__btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: #1ebe5d;
}

.whatsapp-float__btn:active {
    transform: scale(1.02);
}

.whatsapp-float__btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Pulse ring */
.whatsapp-float__btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: whatsappPulse 2.5s ease-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* WhatsApp social icon hover (footer) */
.site-footer__social a.social-whatsapp:hover {
    background: #25D366;
    color: var(--text-inverse);
}

/* WhatsApp contact row (footer) */
.footer-help-contact__row--whatsapp svg {
    fill: #25D366;
}

@media (max-width: 1366px) {
    .whatsapp-float {
        bottom: auto;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 0;
    }
    .whatsapp-float__tooltip {
        display: none;
    }
    .whatsapp-float__btn {
        width: 48px;
        height: 48px;
        border-radius: 12px 0 0 12px;
        box-shadow: -2px 2px 10px rgba(37, 211, 102, 0.3);
    }
    .whatsapp-float__btn svg {
        width: 24px;
        height: 24px;
    }
    .whatsapp-float__btn:hover {
        transform: scale(1);
        width: 54px;
        box-shadow: -4px 2px 16px rgba(37, 211, 102, 0.5);
    }
    .whatsapp-float__btn::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float__btn {
        width: 42px;
        height: 42px;
    }
    .whatsapp-float__btn svg {
        width: 22px;
        height: 22px;
    }
}
