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

/*
Theme Name: Soko International
Theme URI: https://soko.pl
Author: Soko International
Description: Dedykowany motyw dla Soko International – profesjonalne środki czystości i wyposażenie łazienek. Zbudowany z myślą o WooCommerce (tryb katalogowy).
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soko
Tags: woocommerce, custom-menu, custom-logo, footer-widgets, responsive-layout
*/

/* =====================================================
   ZMIENNE I RESET
   ===================================================== */
:root {
    --primary-color: #3d0a07;
    --accent-color:  #8a0900;
    --text-dark:     #1a1a1a;
    --text-light:    #666666;
    --bg-light:      #f8f9fa;
    --white:         #ffffff;
    --spacing-unit:  16px;
    --container-width: 1200px;
    --border-radius: 8px;
    --font-main:     'Open Sans', sans-serif;
    --font-heading:  'Roboto', sans-serif;
}

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

/* Skip-to-content for keyboard/screen-reader users */
.skip-to-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-to-content:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius);
    z-index: 10000;
    font-weight: 600;
    overflow: visible;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4,
.section-title,
.page-title,
.producent-title,
.product-info h1 {
    font-family: var(--font-heading);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* =====================================================
   PRZYCISKI
   ===================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}
.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}
.hero-buttons .btn-outline { margin-left: 10px; }
.hero-buttons .btn-outline:hover { background: rgba(255,255,255,0.1); }
.offer-section .btn-outline,
.sidebar .btn-outline,
.container > .btn-outline,
.product-actions .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin-left: 0;
}
.offer-section .btn-outline:hover,
.product-actions .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}
.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}
.btn-white:hover {
    background-color: #e8e8e8;
    color: var(--primary-color);
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding a { display: inline-flex; align-items: center; }
.site-branding img { height: 50px; width: auto; }

.main-navigation .menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.menu-item a {
    font-weight: 500;
    color: var(--text-dark);
}
.menu-item a:hover,
.menu-item.current-menu-item > a { color: var(--primary-color); }
.menu-item.button-item > a {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--border-radius);
}
.menu-item.button-item > a:hover { background: var(--accent-color); color: var(--white); }
.menu-toggle { display: none; }

/* Search toggle button – lives in the dark top-bar */
.header-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
    line-height: 1;
}
.header-search-toggle:hover { color: #fff; }

/* Expanding search bar below header */
.header-search-bar {
    background: var(--bg-light);
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.75rem 0;
}
.header-search-bar[hidden] { display: none; }
.header-search-form-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.header-search-form-inner input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-dark);
}
.header-search-form-inner button[type="submit"] {
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.header-search-form-inner button[type="submit"]:hover { background: var(--accent-color); }

/* Dropdown podmenu */
.menu-item-has-children { position: relative; }
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 200px;
    border-radius: var(--border-radius);
    z-index: 999;
    padding: 0.5rem 0;
}
.menu-item-has-children:hover > .sub-menu { display: block; }
.sub-menu .menu-item a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-dark);
    font-weight: 400;
}
.sub-menu .menu-item a:hover { color: var(--primary-color); background: var(--bg-light); }

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider-section {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
    color: #fff;
    background: #222;
}
.slider-container { height: 100%; position: relative; }
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 0;
}
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(61,10,7,0.85) 0%,
        rgba(61,10,7,0.30) 35%,
        transparent 65%);
    z-index: 1;
}
.slide .hero-content { z-index: 2; }
.slide.active { opacity: 1; z-index: 1; }
@media (max-width: 768px) {
    .slide { background-attachment: scroll; }
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-slider-section .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-slider-section .hero-description {
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white; border: none;
    font-size: 2rem; padding: 1rem;
    cursor: pointer; z-index: 10; transition: 0.3s;
}
.slider-btn:hover { background: rgba(0,0,0,0.7); }
.prev-btn { left: 0; }
.next-btn { right: 0; }
.slider-dots {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer; transition: 0.3s;
    border: none;
}
.slider-dot.active { background: #fff; }

/* =====================================================
   SEKCJA FEATURES (Dlaczego Soko?)
   ===================================================== */
.features-section { padding: 5rem 0; background: var(--white); }
.features-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}
.feature-card-pro {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}
.feature-card-pro:hover { transform: translateY(-10px); }
.icon-circle {
    width: 60px; height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: background 0.3s;
}
.icon-circle svg {
    width: 26px; height: 26px;
    stroke: var(--primary-color);
}
.feature-card-pro:hover .icon-circle {
    background: var(--primary-color);
}
.feature-card-pro:hover .icon-circle svg {
    stroke: #fff;
}
.feature-card-pro h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.feature-card-pro p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* =====================================================
   SEKCJA OFERTY (strona główna)
   ===================================================== */
.offer-section { padding: 5rem 0; background-color: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}
.section-title { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; }

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.offer-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}
.card-image {
    height: 220px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 1rem; box-sizing: border-box; }
.card-content { padding: 2rem 1.5rem 1.5rem; text-align: center; }
.card-content h3 { margin-bottom: 0.75rem; color: var(--primary-color); font-size: 1.25rem; }
/* Kreska dekoracyjna – wyśrodkowana, pełna szerokość karty minus padding */
.card-content h3::before {
    content: '';
    display: block;
    width: calc(100% + 3rem); /* wyrównaj do krawędzi zdjęcia */
    margin-left: -1.5rem;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 1rem;
}
.card-content p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: gap 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.read-more:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    gap: 0.6rem;
}

/* =====================================================
   MARQUEE – PARTNERZY
   ===================================================== */
.brands-section {
    padding: 4rem 0;
    background: #fff;
    overflow: hidden;
    border-top: 1px solid #eee;
}
.marquee-wrapper {
    width: 100%; overflow: hidden; position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}
/* Każdy zestaw logotypów jako samodzielna jednostka.
   padding-right = gap między logotypami — wliczany do szerokości elementu,
   więc -50% przesuwa dokładnie jedną kopię bez żadnego skoku. */
.marquee-set {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding-right: 5rem;
}
.brand-item {
    font-size: 2rem; font-weight: 700; color: #ccc;
    text-transform: uppercase; flex-shrink: 0;
    display: flex; align-items: center;
}
.brand-item img {
    max-height: 60px; width: auto;
    filter: grayscale(0%); opacity: 1; transition: 0.3s;
}
.brand-item:hover img { filter: grayscale(0%); opacity: 0.85; }
@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

/* =====================================================
   SEKCJA O FIRMIE (CTA na stronie głównej)
   ===================================================== */
.about-cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 0;
}
.split-layout { display: flex; gap: 4rem; align-items: center; }
.text-block { flex: 1; }
.text-block h2 { margin-bottom: 1.5rem; font-size: 2.5rem; }
.text-block p { margin-bottom: 1.5rem; opacity: 0.9; font-size: 1.1rem; }
.image-block { flex: 1; }
.about-stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.about-stat-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s;
}
.about-stat-box:hover { background: rgba(255,255,255,0.18); }
.about-stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.about-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =====================================================
   AKTUALNOŚCI (strona główna + archiwum)
   ===================================================== */
.latest-news-section { padding: 5rem 0; background: var(--white); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}
.news-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.news-image { height: 200px; overflow: hidden; }
.news-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.news-card:hover .news-image img { transform: scale(1.06); }
.news-excerpt { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.5rem; }
.news-content { padding: 1.5rem; }
.news-date { font-size: 0.85rem; color: #999; margin-bottom: 0.5rem; display: block; }
.news-content h3 { margin-bottom: 1rem; font-size: 1.25rem; }

/* =====================================================
   FOOTER – sekcja kontaktowa
   ===================================================== */
.footer-contact-section {
    background: #1a0403;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 5rem 0;
}
.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.footer-contact-info { color: rgba(255,255,255,0.75); }

/* CF7 form styles inside dark footer */
.footer-contact-form .wpcf7-form { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-form .wpcf7-form p { margin: 0; }
.footer-contact-form input[type="text"],
.footer-contact-form input[type="email"],
.footer-contact-form input[type="tel"],
.footer-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.footer-contact-form input[type="text"]::placeholder,
.footer-contact-form input[type="email"]::placeholder,
.footer-contact-form input[type="tel"]::placeholder,
.footer-contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.footer-contact-form input[type="text"]:focus,
.footer-contact-form input[type="email"]:focus,
.footer-contact-form input[type="tel"]:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
}
.footer-contact-form textarea { min-height: 120px; resize: vertical; }
.footer-contact-form input[type="submit"] {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-start;
}
.footer-contact-form input[type="submit"]:hover { background: var(--primary-color); }
.footer-contact-form .wpcf7-not-valid-tip { color: #ff9090; font-size: 0.8rem; }
.footer-contact-form .wpcf7-response-output { color: rgba(255,255,255,0.7); font-size: 0.9rem; border: none !important; margin: 0 !important; padding: 0 !important; }

@media (max-width: 768px) {
    .footer-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background-color: #111;
    color: #999;
    padding: 0;
}
.footer-widgets {
    padding-top: 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}
.footer-col p { line-height: 1.8; margin-bottom: 0.5rem; }
.footer-col p a { color: #999; }
.footer-col p a:hover { color: var(--white); }
.footer-col h5 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-menu li { margin-bottom: 0.8rem; }
.footer-menu a { color: #aaa; }
.footer-menu a:hover { color: var(--white); }
.site-info {
    border-top: 1px solid #222;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =====================================================
   NAGŁÓWEK PODSTRON
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7a1a14 100%);
    padding: 3.5rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.page-title { font-size: 2.5rem; color: #fff; margin-bottom: 0.5rem; }
.breadcrumb { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* =====================================================
   LAYOUT PODSTRON (sidebar + treść)
   ===================================================== */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}
.sidebar-widget {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}
.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}
.category-list > li {
    margin-bottom: 0.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.4rem;
}
.category-list > li:last-child { border-bottom: none; }
.category-list > li > a { display: block; font-weight: 600; padding: 0.4rem 0; }
.category-list a { color: var(--text-dark); text-decoration: none; }
.category-list a:hover,
.category-list a.active { color: var(--primary-color); }
.category-list a.active { font-weight: 700; }

/* Podkategorie */
.category-sublist {
    list-style: none;
    padding: 0 0 0.4rem 0.9rem;
    margin: 0;
    border-left: 2px solid #e8e8e8;
}
.category-sublist li { margin: 0; border: none; padding: 0; }
.category-sublist a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 400;
    padding: 0.3rem 0;
    color: var(--text-light);
}
.category-sublist a:hover,
.category-sublist a.active { color: var(--primary-color); }
.category-sublist a.active { font-weight: 600; }
.category-sublist a span { font-size: 0.8rem; color: #bbb; margin-left: 0.3rem; }

/* =====================================================
   STRONA POJEDYNCZEGO PRODUKTU
   ===================================================== */
.single-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}
.product-gallery {
    background: #f4f4f4;
    border-radius: var(--border-radius);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-gallery img { max-width: 100%; max-height: 400px; object-fit: contain; }
.product-info h1 { margin-bottom: 0.5rem; color: var(--text-dark); font-size: 2.5rem; }
.product-meta { color: #777; margin-bottom: 2rem; font-size: 0.9rem; }
.product-description { margin-bottom: 2rem; line-height: 1.8; }
.product-description p { margin-bottom: 1rem; }
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}
.specs-table td, .specs-table th {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.specs-table th { color: var(--text-light); font-weight: 500; width: 40%; background: var(--bg-light); }
.product-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Variants badge on product cards – overlay at bottom of image */
.card-image { position: relative; }
.variants-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    padding: 5px 12px;
    background: rgba(0,0,0,0.55);
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
    z-index: 2;
}

/* Variation selector (variable products) */
.product-variations { margin: 2rem 0; }
.variation-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.variation-row label { font-weight: 600; color: var(--text-dark); min-width: 120px; white-space: nowrap; }
.variation-select {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    max-width: 360px;
}
.variation-select:focus { outline: none; border-color: var(--primary-color); }

/* Product gallery image swap */
#product-image-wrap { width: 100%; }
#product-image-wrap img { transition: opacity 0.2s ease; }
#product-main-image { width: 100%; height: auto; object-fit: contain; }

/* =====================================================
   PRODUKTY POWIĄZANE (cross-sell na stronie produktu)
   ===================================================== */
.cross-sell-section {
    padding: 3rem 0 4rem;
    border-top: 1px solid #eee;
}
.cross-sell-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}
.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.cross-sell-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cross-sell-card:hover { transform: translateY(-4px); }
.cross-sell-image {
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cross-sell-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    box-sizing: border-box;
}
.cross-sell-image .no-img {
    font-size: 2.5rem;
    color: #ccc;
}
.cross-sell-body {
    padding: 0.9rem 1rem 1rem;
}
.cross-sell-body h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.cross-sell-body span {
    font-size: 0.78rem;
    color: var(--text-light);
}
@media (max-width: 900px) {
    .cross-sell-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cross-sell-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* =====================================================
   STRONA O NAS
   ===================================================== */
.about-intro-section { padding: 4rem 0; }
.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}
.stat-label { font-size: 0.9rem; color: var(--text-light); margin-top: 0.5rem; }

/* Historia – zwykły tekst */
.history-section { padding: 5rem 0; background: var(--bg-light); }
.history-text-block { max-width: 800px; margin: 0 auto; }
.history-text-content { font-size: 1.05rem; line-height: 1.85; color: var(--text-dark); }
.history-text-content p { margin-bottom: 1.4rem; }
.history-text-content p:last-child { margin-bottom: 0; }

/* Wartości */
.values-section { padding: 5rem 0; background: var(--white); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.value-box {
    text-align: center; padding: 2rem;
    border: 1px solid #eee; border-radius: var(--border-radius);
    transition: 0.3s;
}
.value-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.value-box .icon-circle { margin: 0 auto 1.5rem; }
.value-box h3 { color: var(--primary-color); margin-bottom: 1rem; }

.about-cta { background: var(--primary-color); color: #fff; padding: 4rem 0; }

/* =====================================================
   POJEDYNCZY WPIS (aktualności)
   ===================================================== */
.single-post-container { padding-bottom: 4rem; max-width: 800px; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.post-meta { color: #999; font-size: 0.9rem; margin-bottom: 2rem; }
.post-thumbnail { margin-bottom: 2rem; border-radius: var(--border-radius); overflow: hidden; }
.post-thumbnail img { width: 100%; max-height: 400px; object-fit: cover; }
.post-content { line-height: 1.9; }
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; }

/* =====================================================
   WOOCOMMERCE OVERRIDES
   ===================================================== */
/* Ukryj domyślne elementy WooCommerce, które nie pasują do projektu */
.woocommerce-breadcrumb { display: none; }
.woocommerce-result-count { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; display: block; }
.woocommerce-ordering { margin-bottom: 1rem; }
.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
}

/* Grid WooCommerce – dopasuj do naszego .offer-card */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}
.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); }
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 !important;
    padding: 1rem;
    background: #f8f9fa;
    box-sizing: border-box;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    color: var(--primary-color) !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
}
.woocommerce ul.products li.product .button { display: none !important; }
.woocommerce ul.products li.product .price { display: none !important; }
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    font-weight: 600;
}
/* "Zobacz" link pod produktem w katalogu */
.woocommerce ul.products li.product .product-loop-footer {
    padding: 0 1.5rem 1.5rem;
}
.woocommerce ul.products li.product .product-loop-footer a {
    font-weight: 600;
    color: var(--text-dark);
}
.woocommerce ul.products li.product .product-loop-footer a:hover {
    color: var(--primary-color);
}

/* Usuń clearfix WooCommerce kolidujący z CSS grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

/* Strona katalogu – layout */
.woocommerce-products-header { margin-bottom: 2rem; }
.woocommerce-products-header h1 { font-size: 2rem; color: var(--text-dark); }
.products-listing { width: 100%; }
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* =====================================================
   PAGINACJA
   ===================================================== */
.pagination, .woocommerce-pagination,
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}
.navigation.pagination { margin: 0; }
.pagination .page-numbers,
.woocommerce-pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.3s;
    white-space: nowrap;
}
.pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover,
.pagination .current,
.woocommerce-pagination .current,
.navigation.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; background: none; border: none; cursor: pointer; padding: 5px;
    }
    .hamburger { display: block; width: 25px; height: 3px; background: #333; position: relative; }
    .hamburger::before, .hamburger::after {
        content: ''; width: 25px; height: 3px; background: #333;
        position: absolute; left: 0;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }
    .menu-primary-container {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .menu-primary-container.is-open { display: block; }
    .main-navigation .menu { flex-direction: column; gap: 1rem; }
    .menu-item.button-item > a { display: inline-block; }

    .hero-slider-section { height: 500px; }
    .hero-slider-section .hero-title { font-size: 2.2rem; }

    .split-layout { flex-direction: column; }
    .page-layout { grid-template-columns: 1fr; }
    .single-product-container { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; gap: 1.5rem; }
    .features-grid-pro { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .about-stats-panel { grid-template-columns: repeat(2, 1fr); }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .hero-slider-section .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .features-grid-pro { grid-template-columns: 1fr; }
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}


/* =====================================================
   STICKY SOCIAL ICONS – prawy bok ekranu
   ===================================================== */
.social-sticky {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.social-sticky-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: #fff;
    transition: background 0.2s, width 0.2s;
}
.social-sticky-link:first-child { border-radius: 6px 0 0 0; }
.social-sticky-link:last-child  { border-radius: 0 0 0 6px; }
.social-sticky-link:hover { background: var(--accent-color); width: 50px; }

/* =====================================================
   OPIS KATEGORII na stronie z produktami
   ===================================================== */
.term-description--products {
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}
.term-description--products p { margin: 0; }

/* Lista cech produktu (punktory na stronie produktu) */
.product-description ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.product-description ul li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.8rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}
.product-description ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}
/* ================================================
   STRONA KONTAKT
   ================================================ */
.contact-page-section {
    padding: 4rem 0 5rem;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-page-info .section-eyebrow {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-detail-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.contact-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-detail-list li:first-child {
    border-top: 1px solid #f0f0f0;
}

.contact-detail-list .contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.contact-detail-list a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-detail-list a:hover {
    color: var(--primary-color);
}

.contact-page-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-page-map iframe {
        height: 300px;
    }
}

/* ================================================
   KARUZELA – Polecane Rozwiązania
   ================================================ */
.offer-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offer-carousel {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    scroll-behavior: smooth;
    flex: 1;
    /* ukryj scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.offer-carousel::-webkit-scrollbar { display: none; }

.offer-carousel .offer-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

@media (max-width: 900px) {
    .offer-carousel .offer-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 580px) {
    .offer-carousel .offer-card { flex: 0 0 85%; }
}

/* Strzałki */
.carousel-btn {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}
.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* =========================================================
   TOP BAR – belka informacyjna nad nagłówkiem
   ========================================================= */
.top-bar {
    background-color: var(--primary-color, #3d0a07);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 6px 0;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.top-bar-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
}
.top-bar-item a:hover { color: #fff; text-decoration: underline; }
.top-bar-item svg { opacity: 0.75; flex-shrink: 0; }
@media (max-width: 640px) {
    .top-bar-hours { display: none; }
    .top-bar-inner { gap: 1rem; }
}

/* =========================================================
   SOCIAL MEDIA – ikony w stopce
   ========================================================= */
.site-info-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.social-link:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* =========================================================
   PRODUCENCI – strona z kaflami producentów (page-producenci.php)
   ========================================================= */
.producenci-section { padding: 3rem 0 4rem; }
.producenci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}
.producent-card {
    display: flex;
    flex-direction: column;
    background: var(--white, #fff);
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.producent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}
/* Baza: producenci (najwyższa kategoria) – logo w pełni widoczne */
.producent-logo {
    background: #fff;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.producent-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Modyfikator: podkategorie – zdjęcie wypełnia kafelek */
.producent-logo--cover {
    padding: 0;
}
.producent-logo--cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.producent-name-fallback {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color, #3d0a07);
    text-align: center;
}
.producent-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    background: #f8f8f8;
}
.producent-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark, #111);
    margin: 0;
}
.producent-desc {
    font-size: 0.92rem;
    color: var(--text-light, #666);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.producent-cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color, #3d0a07);
}
@media (max-width: 480px) {
    .producenci-grid { grid-template-columns: 1fr; }
}
.producent-desc--empty { color: var(--text-light); font-style: italic; }
.producent-desc p { margin: 0; }

/* =========================================================
   STRONA GLOWNA – edytowalna strefa tresci (frontpage-content-section)
   ========================================================= */
.frontpage-content-section {
    padding: 4rem 0;
    background: var(--white);
}
.frontpage-content {
    max-width: 900px;
}
.frontpage-content h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary-color); }
.frontpage-content h3 { font-size: 1.4rem; margin: 1.5rem 0 0.5rem; }
.frontpage-content p  { margin-bottom: 1rem; line-height: 1.8; color: var(--text-dark); }
.frontpage-content ul, .frontpage-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.frontpage-content li { margin-bottom: 0.4rem; }

/* =========================================================
   STRONA O FIRMIE – uproszczony szablon
   ========================================================= */
.about-hero-image { margin-bottom: 0; }
.about-content {
    padding-top: 3rem;
    padding-bottom: 4rem;
    max-width: 900px;
}
.about-content h2 { font-size: 1.9rem; margin: 2rem 0 1rem; color: var(--primary-color); }
.about-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
.about-content p  { margin-bottom: 1rem; line-height: 1.8; }
.about-content ul, .about-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.about-content li { margin-bottom: 0.4rem; }
.about-content img { border-radius: 8px; margin: 1rem 0; }

/* =====================================================
   SEPARATOR SEKCJI
   ===================================================== */
.section-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
    position: relative;
}
.section-sep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color) 30%, var(--primary-color) 70%, transparent);
    opacity: 0.25;
}
.section-sep-icon {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 0 1rem;
    color: var(--primary-color);
    font-size: 0.65rem;
    opacity: 0.45;
    letter-spacing: 0.1em;
}


/* =====================================================
   LICZNIK STATYSTYK – animacja
   ===================================================== */
.about-stat-number {
    display: block;
    transition: opacity 0.3s;
}

/* =====================================================
   REVEAL ON SCROLL – animowane wejście sekcji
   ===================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   DOT PATTERN – subtelny wzór tła
   Stosowany na .features-section i .producenci-section
   ===================================================== */
.features-section,
.producenci-section {
    background-image: radial-gradient(circle, rgba(100,10,10,0.13) 1px, transparent 1px);
    background-size: 22px 22px;
}
