/**
 * Stomil - Style sklepu
 *
 * Sekcje:
 * 1. Karta produktu (layout 2-kolumnowy)
 * 2. Quick specs (parametry obok zdjęcia)
 * 3. Zakładki (tabs)
 * 4. Tabela specyfikacji
 * 5. Tabela rozmiarów
 * 6. Dokumenty PDF
 * 7. Formularz zapytania
 * 8. Ceny netto/brutto
 * 9. Archiwum/Kategoria (sidebar + grid)
 * 10. Kafelek produktu
 * 11. Responsive
 */

/* ═══ 1. Karta produktu ═════════════════════════════════════════════ */

.stomil-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stomil-archive-page {
    max-width: 1315px;
    margin: 0 auto;
    padding: 20px;
}

/* Kompensacja za sticky header motywu na stronie produktu */
/* Kompensacja za sticky header motywu */
body.single-product .stomil-archive-page {
    margin-top: 120px;
}

body.post-type-archive-product .stomil-archive-page,
body.tax-product_cat .stomil-archive-page {
    margin-top: 120px;
}

.stomil-product-top {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* Galeria WooCommerce w layoucie produktu */
.stomil-product-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
}

.stomil-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    opacity: 1 !important;
}

.stomil-product-gallery .woocommerce-product-gallery__wrapper {
    width: 100%;
}

.stomil-product-gallery .woocommerce-product-gallery__image {
    width: 100%;
}

.stomil-product-gallery .woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
}

.stomil-product-gallery img,
.stomil-product-gallery .wp-post-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: 4px;
    object-fit: contain;
    background: #f8f8f8;
}

.stomil-product-gallery .flex-viewport {
    width: 100% !important;
}

.stomil-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.stomil-product-gallery .flex-control-thumbs li {
    flex: 0 0 60px;
}

.stomil-product-gallery .flex-control-thumbs img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.stomil-product-gallery .flex-control-thumbs img:hover,
.stomil-product-gallery .flex-control-thumbs img.flex-active {
    opacity: 1;
    border-color: #c0392b;
}

.stomil-product-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.3;
}

.stomil-product-sku {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 16px;
}

.stomil-product-price-box {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stomil-stock {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 16px;
}

.stomil-stock--in {
    color: #27ae60;
}

.stomil-stock--out {
    color: #c0392b;
}

.stomil-add-to-cart .quantity {
    margin-right: 10px;
}

.stomil-add-to-cart .single_add_to_cart_button {
    background-color: #c0392b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.stomil-add-to-cart .single_add_to_cart_button:hover {
    background-color: #a93226;
}

.stomil-product-meta {
    margin-top: 16px;
    font-size: 0.85em;
    color: #888;
}

/* ═══ 2. Quick specs ════════════════════════════════════════════════ */

.stomil-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.stomil-quick-spec {
    background-color: #f5f7fa;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    padding: 8px 14px;
    flex: 0 0 auto;
}

.stomil-quick-spec-label {
    display: block;
    font-size: 0.75em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stomil-quick-spec-value {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
}

/* ═══ 3. Zakładki ═══════════════════════════════════════════════════ */

.stomil-tabs {
    margin-top: 40px;
}

.stomil-tabs-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e0e4ea;
}

.stomil-tabs-nav li {
    margin: 0;
}

.stomil-tab-link {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.95em;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.stomil-tab-link:hover {
    color: #333;
}

.stomil-tab-link--active {
    color: #c0392b;
    border-bottom-color: #c0392b;
    font-weight: 600;
}

.stomil-tab-panel {
    display: none;
    padding: 24px 0;
}

.stomil-tab-panel--active {
    display: block;
}

/* ═══ 4. Tabela specyfikacji ════════════════════════════════════════ */

.stomil-spec-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.stomil-spec-table tr:nth-child(even) {
    background-color: #f8f8f8;
}

.stomil-spec-table th,
.stomil-spec-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95em;
}

.stomil-spec-table th {
    width: 40%;
    font-weight: 600;
    color: #333;
    background-color: transparent;
}

.stomil-spec-table td {
    color: #555;
}

/* ═══ 5. Tabela rozmiarów ═══════════════════════════════════════════ */

.stomil-dimensions-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stomil-dimensions-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.stomil-dimensions-table thead th {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.stomil-dimensions-table tbody td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.9em;
}

.stomil-dimensions-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.stomil-dimensions-table tbody tr:hover {
    background-color: #eef2f7;
}

/* ═══ 6. Dokumenty PDF ══════════════════════════════════════════════ */

.stomil-documents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stomil-documents li {
    margin-bottom: 8px;
}

.stomil-documents a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, border-color 0.2s;
}

.stomil-documents a:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.stomil-doc-size {
    font-size: 0.85em;
    color: #999;
}

/* ═══ 7. Formularz zapytania ════════════════════════════════════════ */

.stomil-inquiry-form p > label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.stomil-inquiry-form input[type="text"],
.stomil-inquiry-form input[type="email"],
.stomil-inquiry-form input[type="tel"],
.stomil-inquiry-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

.stomil-inquiry-form textarea {
    resize: vertical;
}

.stomil-inquiry-form .required {
    color: #c00;
}

.stomil-inquiry-form button[type="submit"] {
    background-color: #c0392b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.stomil-inquiry-form button[type="submit"]:hover {
    background-color: #a93226;
}

.stomil-inquiry-sent {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* ═══ 8. Ceny netto / brutto ═══════════════════════════════════════ */

.stomil-price-netto {
    display: block;
    font-size: 1.4em;
    font-weight: 700;
    color: #222;
}

.stomil-price-netto small {
    font-weight: 400;
    font-size: 0.65em;
    color: #888;
}

.stomil-price-brutto {
    display: block;
    font-size: 0.95em;
    color: #888;
    margin-top: 2px;
}

.stomil-price-brutto small {
    font-size: 0.8em;
}

/* ═══ 9. Archiwum / Kategoria ═══════════════════════════════════════ */

body .stomil-archive-layout {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 30px !important;
    margin-top: 20px;
}

.stomil-archive-sidebar {
    min-width: 0;
}

.stomil-widget {
    margin-bottom: 24px;
}

.stomil-widget-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c0392b;
}

.stomil-archive-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}

/* Nagłówek kategorii: zdjęcie + opis */
.stomil-category-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
}

.stomil-category-image {
    flex: 0 0 180px;
}

.stomil-category-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.stomil-category-desc {
    flex: 1;
    font-size: 0.92em;
    color: #444;
    line-height: 1.6;
}

.stomil-category-desc strong {
    color: #222;
}

.stomil-archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stomil-archive-toolbar .woocommerce-result-count {
    margin: 0;
    color: #888;
    font-size: 0.9em;
}

.stomil-archive-toolbar .woocommerce-ordering select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.stomil-pagination {
    margin-top: 30px;
    text-align: center;
}

/* Nadpisanie stylów Imprezy na paginacji */
.stomil-pagination .woocommerce-pagination {
    text-align: center;
}

.stomil-pagination .woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.stomil-pagination .woocommerce-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.stomil-pagination .page-numbers,
.stomil-pagination .woocommerce-pagination ul li a,
.stomil-pagination .woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px !important;
    width: auto !important;
    height: 38px !important;
    padding: 6px 12px !important;
    text-decoration: none !important;
    color: #444 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
    font-weight: 500;
    transition: all 0.2s;
    line-height: 1 !important;
    box-sizing: border-box;
}

.stomil-pagination .page-numbers.current,
.stomil-pagination .page-numbers:hover,
.stomil-pagination .woocommerce-pagination ul li span.current,
.stomil-pagination .woocommerce-pagination ul li a:hover {
    background-color: #c0392b !important;
    color: #fff !important;
    border-color: #c0392b !important;
}

.stomil-pagination .page-numbers.dots,
.stomil-pagination .woocommerce-pagination ul li span.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.stomil-pagination .page-numbers.dots:hover,
.stomil-pagination .woocommerce-pagination ul li span.dots:hover {
    background: transparent;
    color: #444;
    border-color: transparent;
}

.stomil-pagination .page-numbers.prev,
.stomil-pagination .page-numbers.next {
    font-size: 1.1em;
}

.stomil-no-products {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 1.1em;
}

/* ═══ 10. Tabela produktów (listing) ═══════════════════════════════ */

.stomil-product-table-wrap {
    overflow-x: auto;
}

.stomil-product-table {
    width: 100%;
    border-collapse: collapse;
}

.stomil-product-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.95em;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.stomil-col-avail { width: 120px; }
.stomil-col-price { width: 160px; }
.stomil-col-qty { width: 80px; }
.stomil-col-action { width: 150px; }

/* Wiersz produktu */
.stomil-ptr td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.stomil-ptr td:first-child {
    border-left: 3px solid #e8b900;
}

.stomil-ptr-tabs-row td:first-child {
    border-left: 3px solid #e8b900;
}

.stomil-ptr:hover td {
    background-color: #fffdf0;
}

.stomil-ptr-name {
    font-weight: 600;
    font-size: 0.92em;
    color: #222;
    text-decoration: none;
}

.stomil-ptr-name:hover {
    color: #c0392b;
}

/* Dostępność */
.stomil-avail {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
}

.stomil-avail--in {
    color: #27ae60;
}

.stomil-avail--out {
    color: #c0392b;
}

.stomil-avail-sub {
    display: block;
    font-size: 0.75em;
    color: #999;
}

/* Cena w tabeli */
.stomil-ptr-price-netto {
    display: block;
    font-weight: 700;
    font-size: 0.92em;
    color: #222;
}

.stomil-ptr-price-netto small {
    font-weight: 400;
    color: #999;
    font-size: 0.85em;
}

.stomil-ptr-price-brutto {
    display: block;
    font-size: 0.8em;
    color: #999;
}

.stomil-ptr-price-brutto small {
    font-size: 0.9em;
}

.stomil-ptr-price-call {
    color: #888;
    font-style: italic;
    font-size: 0.85em;
}

/* Ilość */
.stomil-ptr-qty-input {
    width: 80px;
    height: 40px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1em;
    line-height: 1;
}

.stomil-col-qty { width: 100px; }

/* Przycisk */
.stomil-ptr-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.78em;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.stomil-ptr-btn--cart {
    background-color: #c0392b !important;
    color: #fff !important;
    border: none !important;
}

.stomil-ptr-btn--cart:hover {
    background-color: #a93226 !important;
}

.stomil-ptr-btn--options {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.stomil-ptr-btn--options:hover {
    background-color: #e0e0e0;
}

/* Mini-zakładki pod produktem */
.stomil-ptr-tabs-row td {
    padding: 0 12px 12px !important;
    border-bottom: 1px solid #e0e0e0;
}

.stomil-ptr-tabs {
    display: flex;
    gap: 16px;
}

.stomil-ptr-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #666;
    text-decoration: none;
    padding: 6px 0;
    font-weight: 500;
    transition: color 0.15s;
    cursor: pointer;
    background: none;
    border: none;
}

.stomil-ptr-tab-link:hover {
    color: #c0392b;
}

.stomil-tab-icon {
    font-size: 0.95em;
    opacity: 0.6;
    flex-shrink: 0;
}

/* ═══ 11. Breadcrumbs ═══════════════════════════════════════════════ */

.woocommerce-breadcrumb {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 20px;
    padding: 12px 0;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #c0392b;
}

/* ═══ 12. Powiązane produkty ════════════════════════════════════════ */

.stomil-related {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stomil-related .related > h2 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ═══ 13. Responsive ════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .stomil-product-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stomil-archive-layout {
        grid-template-columns: 1fr;
    }

    body .stomil-archive-layout {
        grid-template-columns: 1fr !important;
    }

    .stomil-archive-sidebar {
        order: 2;
    }

    .stomil-archive-content {
        order: 1;
    }

    .stomil-category-header {
        flex-direction: column;
    }

    .stomil-category-image {
        flex: 0 0 auto;
    }

    .stomil-spec-table th {
        width: 45%;
    }

    /* ── Kartowy layout wierszy tabeli na mobile ── */

    .stomil-product-table thead {
        display: none;
    }

    .stomil-product-table,
    .stomil-product-table tbody {
        display: block;
    }

    .stomil-ptr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 4px 12px;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
    }

    .stomil-ptr td {
        display: block;
        padding: 0;
        border: none;
        width: auto !important;
    }

    /* Nazwa produktu: góra-lewo */
    .stomil-ptr .stomil-col-product {
        grid-column: 1;
        grid-row: 1;
        font-weight: 700;
        font-size: 0.95em;
    }

    .stomil-ptr .stomil-col-product .stomil-ptr-thumb-link,
    .stomil-ptr .stomil-col-product .stomil-ptr-thumb {
        display: none;
    }

    /* Dostępność: góra-prawo */
    .stomil-ptr .stomil-col-avail {
        grid-column: 2;
        grid-row: 1;
        display: block;
        text-align: right;
        font-size: 0.82em;
    }

    /* Cena: środek-lewo */
    .stomil-ptr .stomil-col-price {
        grid-column: 1;
        grid-row: 2;
        padding-top: 4px;
    }

    .stomil-ptr .stomil-col-price .stomil-ptr-price-netto {
        display: block;
        font-size: 0.95em;
    }

    .stomil-ptr .stomil-col-price .stomil-ptr-price-brutto {
        display: block;
        font-size: 0.8em;
    }

    /* Ilość: środek-prawo */
    .stomil-ptr .stomil-col-qty {
        grid-column: 2;
        grid-row: 2;
        display: block;
        text-align: right;
    }

    .stomil-ptr .stomil-col-qty .stomil-ptr-qty-input {
        width: 50px;
        padding: 4px 6px;
        font-size: 0.9em;
    }

    /* Przycisk: dół, pełna szerokość */
    .stomil-ptr .stomil-col-action {
        grid-column: 1 / -1;
        grid-row: 3;
        padding-top: 8px;
    }

    .stomil-ptr .stomil-ptr-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        font-size: 0.85em;
        border-radius: 20px;
        white-space: nowrap;
    }

    .stomil-ptr .stomil-ptr-btn--inquiry {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        font-size: 0.85em;
        border-radius: 20px;
        white-space: nowrap;
    }

    /* Toggle wariantów jako karta */
    .stomil-var-toggle-row {
        display: block;
    }

    .stomil-var-toggle-row td {
        display: block;
        padding: 10px 16px !important;
        border-left: none !important;
    }

    .stomil-var-toggle-btn {
        width: 100%;
        border-radius: 20px;
        padding: 10px 14px;
        font-size: 0.85em;
    }
}

@media (max-width: 600px) {
    .stomil-product-page,
    .stomil-archive-page {
        padding: 12px;
    }

    .stomil-ptr-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stomil-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .stomil-tab-link {
        padding: 10px 16px;
        border-bottom: 1px solid #e0e4ea;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }

    .stomil-tab-link--active {
        border-bottom-color: #e0e4ea;
        border-left-color: #c0392b;
    }

    /* Tabela specyfikacji: layout kartowy */
    .stomil-spec-table table,
    .stomil-spec-table tbody,
    .stomil-spec-table tr,
    .stomil-spec-table th,
    .stomil-spec-table td {
        display: block;
    }

    .stomil-spec-table tr {
        margin-bottom: 8px;
        border-bottom: 2px solid #e5e5e5;
        padding-bottom: 8px;
    }

    .stomil-spec-table th {
        width: 100%;
        font-size: 0.85em;
        color: #888;
        padding-bottom: 2px;
        border-bottom: none;
    }

    .stomil-spec-table td {
        padding-top: 0;
        font-weight: 600;
        color: #333;
        border-bottom: none;
    }

    /* Tabela rozmiarów: scroll horyzontalny */
    .stomil-dimensions-table {
        margin: 0 -12px;
        padding: 0 12px;
    }

    /* Ceny */
    .stomil-price-netto {
        font-size: 1.2em;
    }

    /* Dokumenty: pełna szerokość */
    .stomil-documents a {
        display: flex;
        width: 100%;
    }

    /* Quick specs */
    .stomil-quick-specs {
        flex-direction: column;
    }

    .stomil-quick-spec {
        flex: 1 1 100%;
    }

    /* Formularz */
    .stomil-inquiry-form input[type="text"],
    .stomil-inquiry-form input[type="email"],
    .stomil-inquiry-form input[type="tel"],
    .stomil-inquiry-form textarea {
        max-width: 100%;
    }
}

/* ═══ 14. Sidebar kategorii (drzewko) ══════════════════════════════ */

.stomil-cat-nav {
    margin-bottom: 24px;
}

.stomil-cat-tree {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.stomil-cat-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Link stylów przeniesiony do .stomil-cat-row > a */

.stomil-cat-count {
    color: #aaa;
    font-weight: 400;
    font-size: 0.85em;
}

.stomil-cat-children {
    list-style: none !important;
    padding: 0 0 0 18px !important;
    margin: 0 !important;
    border-left: 1px solid #e8e8e8;
    margin-left: 14px !important;
    display: none;
}

.stomil-cat-children--open {
    display: block;
}

/* Strzałka toggle */
.stomil-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stomil-cat-row > a {
    flex: 1;
    display: block;
    padding: 10px 14px;
    text-decoration: none !important;
    color: #333;
    font-size: 0.92em;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.stomil-cat-row > a:hover {
    background-color: #f5f7fa;
    border-left-color: #c0392b;
    color: #c0392b;
}

.stomil-cat--active > .stomil-cat-row > a {
    background-color: #fdf6d8;
    border-left-color: #e8b900;
    color: #333;
    font-weight: 700;
}

.stomil-cat--open > .stomil-cat-row > a {
    font-weight: 600;
    color: #c0392b;
}

.stomil-cat-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    padding: 8px 12px;
    color: #888;
    font-size: 0.85em;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.stomil-cat-toggle:hover {
    color: #c0392b;
}

.stomil-cat-toggle--open .stomil-cat-arrow {
    display: inline-block;
    transform: rotate(180deg);
}

.stomil-cat-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.stomil-cat-children .stomil-cat-item > a {
    font-size: 0.87em;
    padding: 7px 12px;
}

/* ═══ 15. Nadpisanie styli Imprezy (wyższa specificity) ════════════ */

body .stomil-add-to-cart .single_add_to_cart_button,
body .stomil-add-to-cart button.single_add_to_cart_button,
body .stomil-add-to-cart .button.alt {
    background-color: #c0392b !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 36px !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

body .stomil-add-to-cart .single_add_to_cart_button:hover,
body .stomil-add-to-cart button.single_add_to_cart_button:hover,
body .stomil-add-to-cart .button.alt:hover {
    background-color: #a93226 !important;
}

/* ═══ 15. Miniaturka w tabeli ═══════════════════════════════════════ */

.stomil-ptr-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stomil-ptr-thumb-link {
    flex: 0 0 70px;
}

.stomil-ptr-thumb {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f8f8;
    padding: 4px;
}

/* ═══ 16. Karty podobnych produktów ════════════════════════════════ */

.stomil-related .products,
.up-sells .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.stomil-rp-card {
    min-width: 0;
    word-break: break-word;
}

.stomil-rp-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    list-style: none;
    transition: box-shadow 0.2s;
    min-width: 0;
    word-break: break-word;
}

.stomil-rp-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.stomil-rp-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.stomil-rp-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stomil-rp-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.stomil-rp-title {
    font-size: 0.85em !important;
    font-weight: 600;
    color: #333;
    margin: 10px 12px 6px !important;
    line-height: 1.3;
}

.stomil-rp-price {
    padding: 0 12px 8px;
    font-size: 0.85em;
}

.stomil-rp-netto {
    display: block;
    font-weight: 700;
    color: #222;
}

.stomil-rp-netto small,
.stomil-rp-brutto small {
    font-weight: 400;
    color: #999;
}

.stomil-rp-brutto {
    display: block;
    font-size: 0.85em;
    color: #999;
}

.stomil-rp-action {
    padding: 0 12px 12px;
}

.stomil-rp-btn {
    display: block !important;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none !important;
    background: #2c3e50;
    color: #fff !important;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.stomil-rp-btn:hover {
    background: #1a252f;
}

/* ═══ 17. Produkty zmienne — nagłówek grupy + warianty ═════════════ */

/* --- Nagłówek grupy (tytuł, parametry, miniaturka) --- */
.stomil-var-header td {
    padding: 0 !important;
    border-bottom: none;
    background: #fff;
}

.stomil-var-header-inner {
    padding: 24px 16px 16px;
    border-bottom: 2px solid #e8e8e8;
}

.stomil-var-header td {
    border-top: 4px solid #ccc;
    padding-top: 20px;
}

.stomil-product-table .stomil-var-header:first-child td {
    border-top: none;
}

.stomil-var-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 3px solid #e8b900;
    margin-bottom: 14px;
    text-decoration: none;
}

.stomil-var-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.stomil-var-title a:hover {
    color: #c0392b;
}

.stomil-var-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.stomil-var-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.stomil-var-specs {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.stomil-var-specs strong {
    font-weight: 700;
    color: #111;
}

.stomil-var-specs p {
    margin: 0;
}

.stomil-var-brand {
    margin-top: 6px;
}

.stomil-var-brand img {
    max-height: 50px;
    width: auto;
    display: block;
}

.stomil-var-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.stomil-var-thumb {
    flex-shrink: 0;
}

.stomil-var-thumb img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f5f5;
    padding: 6px;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.stomil-var-thumb img:hover {
    transform: scale(1.05);
}

.stomil-var-thumb a {
    display: block;
}

.stomil-var-readmore {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.92em;
    font-weight: 600;
}

.stomil-var-readmore:hover {
    color: #005177;
    text-decoration: underline;
}

/* --- Wiersz wariantu --- */
.stomil-var-row > td {
    background: #fff;
}

.stomil-var-row > td:first-child {
    border-left: 3px solid #e8b900;
}

.stomil-var-row:hover > td {
    background: #fffef5;
}

.stomil-var-row .stomil-ptr-product--var {
    padding-left: 16px;
}

.stomil-var-row .stomil-ptr-name {
    font-weight: 700;
    font-size: 0.92em;
    color: #222;
    display: block;
    line-height: 1.4;
}

/* Separator między wariantami */
.stomil-var-row td {
    border-bottom: 1px solid #f0f0f0;
}

.stomil-var-tabs-row td:first-child {
    border-left: 3px solid #e8b900;
}

.stomil-var-tabs-row td {
    border-bottom: 1px solid #e0e0e0;
}

/* --- Przycisk "Zapytaj o dostępność" --- */
.stomil-ptr-btn--inquiry {
    display: inline-block;
    padding: 10px 18px;
    background: #555;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.stomil-ptr-btn--inquiry:hover {
    background: #444;
}

/* --- Toggle wariantów --- */
.stomil-var-toggle-row td {
    padding: 10px 16px !important;
    border-bottom: 2px solid #e0e0e0;
    background: #fafafa;
}

.stomil-var-toggle-row td:first-child {
    border-left: 3px solid #e8b900;
}

.stomil-var-toggle-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 9px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: background-color 0.2s;
}

.stomil-var-toggle-btn:hover {
    background: #a93226;
}

.stomil-var-toggle-btn--collapsed {
    background: #e8b900;
    color: #222;
}

.stomil-var-toggle-btn--collapsed:hover {
    background: #d4a800;
    color: #222;
}

/* --- Qty wrap z jednostką --- */
.stomil-qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stomil-qty-unit {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

/* --- Ukryte warianty (po toggle) --- */
.stomil-var-row--hidden,
.stomil-var-tabs-row--hidden {
    display: none;
}

/* --- Pusta lista wariantów --- */
.stomil-var-empty {
    padding: 16px;
    text-align: center;
}

.stomil-var-empty a {
    color: #0073aa;
    font-weight: 600;
}

/* --- Spacing między grupami produktów --- */
.stomil-var-toggle-row + .stomil-ptr,
.stomil-var-toggle-row + .stomil-var-header {
    border-top: 0;
}

.stomil-var-header + .stomil-var-row > td:first-child {
    border-top: none;
}

/* Jednostka miary obok pola ilości (karta produktu) */
.stomil-add-to-cart .quantity {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.stomil-add-to-cart .stomil-qty-unit {
    font-size: 0.9em;
    color: #555;
    font-weight: 600;
}

/* Formularz wariantu w tabeli */
.stomil-var-cart-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.stomil-var-cart-form .stomil-ptr-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ═══ 18. Lightbox (powiększenie zdjęcia) ══════════════════════════ */

.stomil-var-thumb {
    position: relative;
}

.stomil-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 16px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.stomil-var-thumb:hover .stomil-zoom-icon {
    opacity: 1;
}

.stomil-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.stomil-lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.stomil-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ═══ 19. Tabela właściwości wariantów ═════════════════════════════ */

.stomil-variant-props-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stomil-variant-props-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.stomil-variant-props-table thead th {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.stomil-variant-props-table .stomil-vpt-col-name {
    text-align: left;
    min-width: 160px;
}

.stomil-variant-props-table .stomil-vpt-unit {
    background-color: #34495e;
    font-size: 0.8em;
    font-weight: 400;
    padding: 6px 10px;
}

.stomil-variant-props-table .stomil-vpt-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
    filter: brightness(0) invert(1);
}

.stomil-variant-props-table .stomil-vpt-label {
    vertical-align: middle;
}

.stomil-variant-props-table tbody td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.9em;
}

.stomil-variant-props-table .stomil-vpt-name {
    text-align: left;
    font-weight: 600;
    color: #333;
}

.stomil-variant-props-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.stomil-variant-props-table tbody tr:hover {
    background-color: #eef2f7;
}

@media (max-width: 600px) {
    .stomil-variant-props-table {
        margin: 0 -12px;
        padding: 0 12px;
    }
}

/* ═══ 20. Modal parametrów technicznych ════════════════════════════ */

.stomil-modal-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    padding: 0;
    text-decoration: none;
}

.stomil-modal-trigger:hover {
    color: #c0392b;
}

/* Overlay */
.stomil-props-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 30px 0;
}

/* Modal — pełna szerokość strony (styl jak stary sklep) */
.stomil-props-modal {
    background: #fff;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 2rem 2rem;
    border: 0;
    border-bottom: 3px solid #f0c000;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: stomilModalIn 0.25s ease-out;
}

@keyframes stomilModalIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close button — prawy górny róg */
.stomil-props-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 1;
    transition: color 0.15s;
}

.stomil-props-modal-close:hover {
    color: #000;
}

/* Tytuł — duży, wycentrowany */
.stomil-props-modal-title {
    margin: 0 0 20px 0;
    font-size: 1.6em;
    font-weight: 700;
    color: #222;
    text-align: center;
    padding-right: 40px; /* miejsce na X */
}

/* Zdjęcie produktu — wycentrowane */
.stomil-props-modal-image {
    text-align: center;
    margin-bottom: 20px;
}

.stomil-props-modal-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* Opis */
.stomil-modal-desc {
    text-align: center;
    color: #444;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 20px;
}

.stomil-modal-desc strong {
    color: #222;
}

/* Body — tabela parametrów */
.stomil-props-modal-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* W modalu: styl jak stary sklep — białe tło, bordery, kompaktowe */
.stomil-props-modal-body .stomil-variant-props-table table {
    min-width: 0;
    width: 100%;
    border: 1px solid #ebebeb;
}

/* Header — białe tło, naturalne kolory ikon, bordery */
.stomil-props-modal-body .stomil-variant-props-table thead th {
    background-color: #fff;
    color: #666;
    border: 1px solid #ebebeb;
    padding: 0.75rem 0.4rem;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

/* Kolumna Nazwa */
.stomil-props-modal-body .stomil-variant-props-table .stomil-vpt-col-name {
    min-width: 80px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* Ikony — naturalne kolory (nie białe) */
.stomil-props-modal-body .stomil-variant-props-table .stomil-vpt-icon {
    width: 22px;
    height: 22px;
    filter: none;
    display: block;
    margin: 0 auto 2px;
}

/* Ukryj label tekst w modalu — pokaż tylko ikonę */
.stomil-props-modal-body .stomil-variant-props-table .stomil-vpt-label {
    display: none;
}

/* Pokaż label jako tooltip jeśli nie ma ikony */
.stomil-props-modal-body .stomil-variant-props-table .stomil-vpt-col-prop:not(:has(.stomil-vpt-icon)) .stomil-vpt-label {
    display: inline;
    font-size: 0.75em;
}

/* Jednostki — mały font, szary */
.stomil-props-modal-body .stomil-variant-props-table .stomil-vpt-unit {
    background-color: #fff;
    color: #666;
    border: 1px solid #ebebeb;
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 300;
}

/* Komórki danych — kompaktowe */
.stomil-props-modal-body .stomil-variant-props-table tbody td {
    padding: 0.4rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: #666;
    border: 1px solid #ebebeb;
    text-align: center;
}

/* Nazwa wariantu — mniejszy, lekki */
.stomil-props-modal-body .stomil-variant-props-table .stomil-vpt-name {
    font-size: 0.6875rem;
    font-weight: 300;
    text-align: left;
    color: #666;
}

/* Brak zebry i hover w modalu */
.stomil-props-modal-body .stomil-variant-props-table tbody tr:nth-child(even) {
    background-color: transparent;
}

.stomil-props-modal-body .stomil-variant-props-table tbody tr:hover {
    background-color: transparent;
}

/* ─── Sekcje modala (galeria, opis, dokumenty) ─────────────────────── */

.stomil-modal-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ebebeb;
}

.stomil-modal-section h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Galeria w modalu — siatka miniatur */
.stomil-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.stomil-modal-gallery-item {
    display: block;
    border: 1px solid #ebebeb;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    aspect-ratio: 1;
}

.stomil-modal-gallery-item:hover {
    border-color: #c0392b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stomil-modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Opis produktu w modalu */
.stomil-modal-full-desc {
    color: #444;
    font-size: 0.9em;
    line-height: 1.7;
}

.stomil-modal-full-desc p {
    margin-bottom: 10px;
}

.stomil-modal-full-desc ul,
.stomil-modal-full-desc ol {
    margin: 10px 0 10px 20px;
}

/* Dokumenty PDF w modalu */
.stomil-modal-docs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stomil-modal-docs li {
    margin-bottom: 8px;
}

.stomil-modal-docs li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c0392b;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 6px 10px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

.stomil-modal-docs li a:hover {
    background-color: #fdf2f2;
    border-color: #c0392b;
}

/* Quick specs w modalu */
.stomil-modal-specs {
    text-align: center;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    padding: 10px 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

/* Short desc w modalu */
.stomil-modal-short-desc {
    color: #444;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .stomil-props-modal {
        padding: 20px 15px 25px;
    }
    .stomil-props-modal-title {
        font-size: 1.2em;
    }
    .stomil-props-modal-image img {
        max-height: 200px;
    }
    .stomil-props-modal-overlay {
        padding: 10px 0;
    }
    .stomil-modal-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }
}

/* ═══ 21. AJAX variant add-to-cart states ══════════════════════════ */

.stomil-ajax-var-cart.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.stomil-ajax-var-cart.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: stomilSpin 0.6s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}

@keyframes stomilSpin {
    to { transform: rotate(360deg); }
}

.stomil-ajax-var-cart.added {
    background-color: #27ae60 !important;
}

/* ═══ 22. Modal "Dodano do koszyka" ════════════════════════════════ */

.stomil-cart-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stomil-cart-modal {
    background: #fff;
    max-width: 560px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 30px 35px;
    animation: stomilModalFadeIn 0.25s ease;
}

@keyframes stomilModalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stomil-cart-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.stomil-cart-modal-close:hover {
    color: #333;
}

.stomil-cart-modal-header {
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.stomil-cart-check {
    color: #27ae60;
    font-size: 1.2em;
}

.stomil-cart-modal-product {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.stomil-cart-modal-image {
    flex: 0 0 100px;
}

.stomil-cart-modal-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f8f8f8;
}

.stomil-cart-modal-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stomil-cart-modal-info strong {
    font-size: 1em;
    color: #222;
    line-height: 1.3;
}

.stomil-cart-modal-info span {
    font-size: 0.85em;
    color: #666;
}

/* Tabela cenowa */
.stomil-cart-modal-price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.stomil-cart-modal-price-table thead th {
    background: #f5f5f5;
    padding: 8px 12px;
    font-weight: 600;
    color: #555;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 0.85em;
}

.stomil-cart-modal-price-table tbody td {
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333;
    vertical-align: middle;
}

.stomil-cart-modal-price-table tbody td small {
    color: #888;
}

.stomil-cart-price-label {
    font-weight: 600;
    color: #555 !important;
    text-align: left !important;
    background: #fafafa;
}

/* Przyciski akcji */
.stomil-cart-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.stomil-cart-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.stomil-cart-modal-btn--continue {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
}

.stomil-cart-modal-btn--continue:hover {
    background: #f5f5f5;
    border-color: #999;
}

.stomil-cart-modal-btn--goto {
    background: #c0392b;
    color: #fff;
    border: 1px solid #c0392b;
}

.stomil-cart-modal-btn--goto:hover {
    background: #a93226;
    border-color: #a93226;
}

@media (max-width: 500px) {
    .stomil-cart-modal {
        padding: 20px 18px;
    }
    .stomil-cart-modal-product {
        flex-direction: column;
        text-align: center;
    }
    .stomil-cart-modal-actions {
        flex-direction: column;
    }
    .stomil-cart-modal-btn {
        width: 100%;
    }
}

/* ═══ 23. Accordion opis produktu + SEO kategoria ═════════════════ */

/* Accordion — rozwijany opis produktu */
.stomil-desc-row--hidden {
    display: none;
}

.stomil-desc-content {
    padding: 20px 25px;
    font-size: 0.95em;
    color: #444;
    line-height: 1.7;
    background: #fafafa;
    border-left: 3px solid #e8b900;
}

.stomil-desc-content__title {
    font-size: 1.15em;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
}

.stomil-desc-content p {
    margin-bottom: 10px;
}

.stomil-desc-content ul,
.stomil-desc-content ol {
    margin: 10px 0 10px 20px;
}

.stomil-desc-content h2,
.stomil-desc-content h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
}

/* Przycisk "Opis" w mini-tabach */
.stomil-desc-toggle {
    cursor: pointer;
}

.stomil-desc-toggle--active {
    font-weight: 700;
    color: #c0392b !important;
}

/* ═══ Blok informacyjny produktu (single product) ═════════════════ */

.stomil-single-info {
    padding: 24px 16px 16px;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 16px;
}

.stomil-single-info__title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 0;
    color: #1a1a1a;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 3px solid #e8b900;
    margin-bottom: 16px;
}

.stomil-single-info__top {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 14px;
}

.stomil-single-info__image {
    flex-shrink: 0;
    position: relative;
}

.stomil-single-info__image img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f5f5;
    transition: transform 0.2s ease;
}

.stomil-single-info__image img:hover {
    transform: scale(1.05);
}

.stomil-single-info__image a {
    display: block;
    position: relative;
}

.stomil-single-info__image .stomil-zoom-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 18px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.stomil-single-info__image:hover .stomil-zoom-icon {
    opacity: 1;
}

.stomil-single-info__meta {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.stomil-single-info__specs {
    font-size: 1em;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.stomil-single-info__specs strong {
    font-weight: 700;
    color: #111;
}

.stomil-single-info__brand {
    margin-top: 8px;
}

.stomil-single-info__brand img {
    max-height: 55px;
    width: auto;
    display: block;
}

.stomil-single-info .stomil-ptr-tabs {
    margin-bottom: 14px;
}

/* Panel Materiały PDF */
.stomil-pdf-panel--hidden {
    display: none;
}

.stomil-pdf-panel {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 14px 20px;
    margin-bottom: 14px;
}

.stomil-pdf-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stomil-pdf-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.stomil-pdf-list li:last-child {
    border-bottom: none;
}

.stomil-pdf-link {
    color: #c0392b;
    text-decoration: none;
    font-size: 0.92em;
}

.stomil-pdf-link:hover {
    text-decoration: underline;
}

.stomil-pdf-link i {
    margin-right: 6px;
    color: #c0392b;
}

.stomil-pdf-toggle--active {
    font-weight: 700;
    color: #c0392b !important;
}

.stomil-single-info .stomil-desc-content {
    border-radius: 4px;
}

@media (max-width: 600px) {
    .stomil-single-info__top {
        flex-direction: column;
    }
}

/* ═══ Luigi's Box — Polecane produkty ═════════════════════════════ */

.stomil-lb-recommendations {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid #eee;
}

.stomil-lb-recommendations__title {
    font-size: 1.2em;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}

/* Grid kart polecanych (fallback WC) */
.stomil-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stomil-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.stomil-related-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stomil-related-card__image {
    background: #f5f5f5;
    text-align: center;
    padding: 12px;
}

.stomil-related-card__image img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}

.stomil-related-card__info {
    padding: 10px 12px;
}

.stomil-related-card__name {
    display: block;
    font-size: 0.88em;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 6px;
}

.stomil-related-card__price {
    display: block;
    font-size: 0.85em;
    color: #666;
}

/* Ukryj fallback gdy LB wypełni widget */
.stomil-lb-widget:not(:empty) ~ .stomil-lb-fallback {
    display: none;
}

@media (max-width: 768px) {
    .stomil-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stomil-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Opis SEO kategorii na dole */
.stomil-seo-descriptions {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    font-size: 0.95em;
    color: #444;
    line-height: 1.7;
}

.stomil-seo-descriptions h2 {
    font-size: 1.2em;
    font-weight: 700;
    color: #222;
    margin: 25px 0 10px;
}

.stomil-seo-descriptions h2:first-child {
    margin-top: 0;
}

.stomil-seo-descriptions p {
    margin-bottom: 12px;
}

.stomil-seo-descriptions ul,
.stomil-seo-descriptions ol {
    margin: 10px 0 15px 20px;
}

.stomil-seo-descriptions a {
    color: #c0392b;
}

/* Styl inquiry modal */
.stomil-inquiry-modal {
    max-width: 500px;
}

.stomil-inquiry-product-name {
    text-align: center;
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.stomil-inquiry-modal .stomil-inquiry-form label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.stomil-inquiry-modal .stomil-inquiry-form input[type="text"],
.stomil-inquiry-modal .stomil-inquiry-form input[type="email"],
.stomil-inquiry-modal .stomil-inquiry-form input[type="tel"],
.stomil-inquiry-modal .stomil-inquiry-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    box-sizing: border-box;
}

.stomil-inquiry-modal .stomil-inquiry-form textarea {
    resize: vertical;
}

.stomil-inquiry-modal .stomil-inquiry-form p {
    margin-bottom: 12px;
}

.stomil-inquiry-modal .required {
    color: #c0392b;
}

/* ═══ 24. Nadpisanie Imprezy ═══════════════════════════════════════ */

/* Ukryj domyślne WC elementy które Impreza mogła zostawić */
.stomil-single-product .woocommerce-tabs {
    display: none !important;
}

@media (max-width: 900px) {
    .stomil-related .products,
    .up-sells .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .stomil-related .products,
    .up-sells .products {
        grid-template-columns: 1fr !important;
    }
}
