/* Content edge padding – 30px (wrapper jest tylko na podstronach, np. produkt) */
:root {
    --content-edge-padding: 30px;
    --palette4: #333333;
}

/*#wrapper {*/
/*    padding: var(--content-edge-padding) !important;*/
/*}*/

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1040;
}

#blockcart-modal,
#post-product-comment-modal {
    z-index: 1050;
}

.modal-backdrop.fade.in {
    opacity: 0.55;
}

#product-reviews-section #product-comments-list-footer {
    padding: 18px 0 28px;
}

#product-reviews-section #product-comments-list-footer .post-product-comment {
    margin-bottom: 6px;
}

/* ===== Hero section – compact breadcrumbs (global) ===== */
#hero_section.hero-section .page-title-wrapper {
    min-height: auto !important;
    padding-block: 10px;
}

/* ===== Promotions page ===== */
.promotions-container {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 15px 30px;
}

.promotions-container .home-categories-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 10px 0 30px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.promotions-container .home-categories-title {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.promotion-card {
    text-align: center;
}

.promotion-card a {
    text-decoration: none;
    color: inherit;
}

.promotion-card-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.promotion-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 12px;
}

.promotion-description {
    margin-bottom: 24px;
    line-height: 1.7;
}

.promotion-products-section {
    margin-bottom: 0;
}

/* Pagination (shared between search & promotions) */
.search-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
}

.search-pagination-info {
    color: #7a7a7a;
    font-size: 14px;
}

.search-pagination-pages {
    margin-left: auto;
}

.search-pagination-pages .pagination {
    margin: 0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.search-pagination-pages .pagination .page-item {
    display: inline-block;
}

.search-pagination-pages .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.search-pagination-pages .page-item .page-link:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.search-pagination-pages .page-item.active .page-link {
    color: #fff;
    background-color: var(--btn-primary-bg-color, #febd69);
    border-color: var(--btn-primary-bg-color, #febd69);
}

.search-pagination-pages .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #e5e5e5;
    pointer-events: none;
}

@media (max-width: 767px) {
    .search-pagination {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .search-pagination-pages {
        margin-left: 0;
    }

    .search-pagination-pages .pagination {
        flex-direction: row !important;
    }
}

/* ===== Product card: center "Dodaj do koszyka" button ===== */
.product-description .product-add-to-cart {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== Product card: image slider arrows ===== */
.product-image-slider {
    position: relative;
}

.product-slider-prev,
.product-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.thumbnail-top:hover .product-slider-prev,
.thumbnail-top:hover .product-slider-next {
    opacity: 1;
}

.product-slider-prev { left: 6px; }
.product-slider-next { right: 6px; }

.product-slider-prev:hover,
.product-slider-next:hover {
    background: #fff;
    border-color: #999;
}

/* ===== Product card: variant size pills ===== */
.thumbnail-top {
    position: relative;
}

.thumbnail-top .product-card-variants {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 8px;
}

.product-card-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.product-card-variant {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.product-card-variant:hover {
    border-color: #febd69;
    text-decoration: none;
    color: #333;
}

.product-card-variant.active {
    border-color: #febd69;
    background: #fdf6ee;
    font-weight: 600;
}

/* ===== Product flags: always visible (global) ===== */
.products.product-loop .product-miniature .thumbnail-container .thumbnail-top .product-flags .product-flag {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Base flag style — bigger, more visible */
.product-flag {
    font-size: 12px !important;
    padding: 5px 14px !important;
    border-radius: 3px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
}

/* Nowość */
.product-flag.product-flag-new {
    background-color: #28a745 !important;
    color: #fff !important;
}

/* Promocja */
.product-flag.product-flag-promotion {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* ===== Product label flags (Szybka wysyłka, W magazynie, Darmowa dostawa) ===== */
.product-flag.product-flag-label {
    background-color: #199588 !important;
    color: #fff !important;
}

/* Custom labels from admin — inline styles for colors, base structure here */
.product-flag.product-flag-custom {
    border-radius: 3px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Product page: flags over gallery */
.images-container {
    position: relative;
}

.images-container .product-flags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.images-container .product-flags .product-flag {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* ===== Toast notification (wishlist / global) ===== */
.saga-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.saga-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.saga-toast--success {
    background: #2e7d32;
}

.saga-toast--info {
    background: #333;
}

/* Opis produktu — ciemniejsza czcionka (theme.css daje #888 przez --palette4) */
.product-information,
.product-information .product-description,
#product-description-short,
#product-description-short ol li,
#product-description-short ul li,
.product-container .summary .product-information .product-description,
.product-description-col-desc,
.product-description-col-desc p,
.product-description-col-desc li,
.product-description-col-desc ul,
.product-description-col-desc ol,
#description {
    color: #333 !important;
}



