/* Style produktu i kategorii produktów. Ładowane warunkowo. */

/* ============================================
   Single Product Page Styles
   ============================================ */

/* Wrapper dla galerii i summary (50/50) */
.single-product .product-main-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 40px;
    margin-bottom: 40px;
}

.product-gallery-wrapper {
    position: sticky;
    top: 40px;
}

@media (max-width: 768px) {
    .product-gallery-wrapper {
        position: initial;
    }
}

.minuta-product-gallery {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.minuta-gallery-thumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.minuta-gallery-thumbs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    color: #cd0921;
    cursor: pointer;
    transition: opacity 0.2s;
}

.minuta-gallery-thumbs-arrow:hover {
    opacity: 0.8;
}

.minuta-gallery-thumbs-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.minuta-gallery-thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 312px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.minuta-gallery-thumbs-list::-webkit-scrollbar {
    display: none;
}

.minuta-gallery-thumb {
    display: block;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
    transition: border-color 0.2s,
    box-shadow 0.2s;
    flex-shrink: 0;
}

.minuta-gallery-thumb:hover {
    border-color: #e5e7eb;
}

.minuta-gallery-thumb.is-active {
    border-color: #cd0921;
    box-shadow: 0 0 0 1px #cd0921;
}

.minuta-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.minuta-gallery-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin-inline: auto !important;
}

.minuta-gallery-main__inner {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.minuta-gallery-main__inner .woocommerce-product-gallery__image,
.minuta-gallery-main__inner > a {
    display: block;
    line-height: 0;
}

.minuta-gallery-main__inner img.wp-post-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .minuta-gallery-main__inner img.wp-post-image {
        height: 300px;
    }
}

.minuta-gallery-main-badges {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.minuta-gallery-main-badge {
    font-family: var(--font-family-base);
    font-size: 12px;
    line-height: 1.1;
    padding: 5px 8px;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 767px) {
    .minuta-product-gallery {
        flex-direction: column;
        gap: 12px;
    }

    .minuta-gallery-main {
        order: 1;
    }

    .minuta-gallery-thumbs {
        order: 2;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 6px;
    }

    .minuta-gallery-thumbs-arrow--prev svg {
        transform: rotate(-90deg);
    }

    .minuta-gallery-thumbs-arrow--next svg {
        transform: rotate(-90deg);
    }

    .minuta-gallery-thumbs-list {
        flex-direction: row;
        max-height: none;
        max-width: 280px;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 4px 0;
        scroll-behavior: smooth;
    }

    .minuta-gallery-thumb {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }
}

.single-product .summary.entry-summary {
    max-width: 100% !important;
    width: 100% !important;
}

.single-product .payu-mini-installments-widget,
.single-product #installment-mini-45650,
.single-product [id^='installment-mini-'] {
    display: none !important;
}

.product-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-service-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

svg {
    overflow: visible;
}

.tax-pa_mi_producent,
.tax-product_brand,
body[class*='tax-pa_'],
body[class*='term-'] {
    display: block;
}

.tax-pa_mi_producent .woocommerce-shop-wrapper,
.tax-product_brand .woocommerce-shop-wrapper,
body[class*='tax-pa_'] .woocommerce-shop-wrapper,
body[class*='term-'] .woocommerce-shop-wrapper,
body.woocommerce-page.taxonomy .woocommerce-shop-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.tax-pa_mi_producent .woocommerce-shop-content,
.tax-product_brand .woocommerce-shop-content,
body[class*='tax-pa_'] .woocommerce-shop-content,
body[class*='term-'] .woocommerce-shop-content,
body.woocommerce-page.taxonomy .woocommerce-shop-content {
    min-width: 0;
    order: 2;
}

.tax-pa_mi_producent .woocommerce-category-header,
.tax-product_brand .woocommerce-category-header,
body[class*='tax-pa_'] .woocommerce-category-header,
body[class*='term-'] .woocommerce-category-header {
    margin-bottom: 30px;
}

.tax-pa_mi_producent .woocommerce-category-title,
.tax-product_brand .woocommerce-category-title,
body[class*='tax-pa_'] .woocommerce-category-title,
body[class*='term-'] .woocommerce-category-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

/* Responsywność dla archiwów taksonomii */
@media (max-width: 1024px) {
    .tax-pa_mi_producent .woocommerce-shop-wrapper,
    .tax-product_brand .woocommerce-shop-wrapper,
    body[class*='tax-pa_'] .woocommerce-shop-wrapper,
    body[class*='term-'] .woocommerce-shop-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tax-pa_mi_producent .woocommerce-shop-wrapper,
    .tax-product_brand .woocommerce-shop-wrapper,
    body[class*='tax-pa_'] .woocommerce-shop-wrapper,
    body[class*='term-'] .woocommerce-shop-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tax-pa_mi_producent .woocommerce-shop-content,
    .tax-product_brand .woocommerce-shop-content,
    body[class*='tax-pa_'] .woocommerce-shop-content,
    body[class*='term-'] .woocommerce-shop-content {
        order: 1;
    }
}

.product-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-service-item--boxed {
    border: 1px solid #132c54;
    padding: 12px 15px;
}

.product-service-item--raty {
    border: 1px solid #e5e5e5;
    padding: 12px 15px;
    background: #fff;
}

.product-service-item__link {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.product-service-item__link:hover {
    color: #132c54;
    text-decoration: underline;
}

.product-service-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-service-item__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-service-item__icon svg {
    width: 24px;
    height: 24px;
    fill: #cd0921;
}

.product-service-item__text {
    flex: 1;
    font-size: 0.875rem;
    color: #000;
    line-height: 1.5;
}

.product-service-item__text a {
    color: #132c54;
    text-decoration: none;
}

.product-service-item__text a:hover {
    text-decoration: underline;
}

/* Box kontaktowy (prawa strona) */
.product-contact-box {
    background-color: #132c54;
    color: #ffffff;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.product-contact-box__icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-contact-box__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-contact-box__icon svg {
    width: 100%;
    height: 100%;
    fill: #cd0921;
}

.product-contact-box__content {
    flex: 1;
}

.product-contact-box__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.product-contact-box__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #ffffff;
}

.product-contact-box__text strong {
    font-weight: 600;
    color: #ffffff;
}

.product-contact-box__link {
    color: #ffffff;
    text-decoration: underline;
}

.product-contact-box__link:hover {
    text-decoration: none;
}

/* Responsywność dla sekcji informacyjnej */
@media (max-width: 1024px) {
    .single-product .product-main-wrapper {
        gap: 30px;
    }

    .product-info-section {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .single-product .product-main-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .product-info-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-service-info {
        gap: 15px;
    }

    .product-contact-box {
        padding: 20px;
    }
}

/* Cena produktu */
.single-product .price {
    display: flex;
    gap: 8px;
    align-items: center;
}

.minuta-omnibus-message {
    flex: 1;
}

.caraty-product {
    margin-top: 1.5rem;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

/* Lista cech produktu (excerpt) */
.single-product .woocommerce-product-details__short-description {
    margin: 20px 0;
}

.single-product .woocommerce-product-details__short-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.single-product .woocommerce-product-details__short-description li {
    width: 49%;
    color: #727272;
    font-size: var(--font-size-base-xl);
    list-style-type: none;
    padding: 5px 0 5px 0;
    display: inline-block;
    font-weight: 300;
    text-align: left;
}

.single-product .summary .cart .single_add_to_cart_button {
    background-color: #cd0921 !important;
    font-size: var(--font-size-xl) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    padding: 10px 55px !important;
    height: 72px !important;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.single-product .summary .cart .single_add_to_cart_button:hover {
    background-color: #a0071a !important;
}

.single-product .summary .cart .single-product-brand-link-wrap {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.single-product .summary .cart .single-product-brand-link {
    font-size: 13px;
    line-height: 1.35;
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-product .summary .cart .single-product-brand-link:hover {
    color: #111827;
}

/* Wariant z logo marki: bez podkreślenia i koloru tekstu, sam obrazek. */
.single-product .summary .cart .single-product-brand-link--has-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;

    &:hover {
        opacity: 0.7;
    }

    .single-product-brand-logo {
        width: auto;
        height: auto;
        max-width: 150px;
        max-height: 48px;
        object-fit: contain;
    }
}

/* Sticky „Dodaj do koszyka” – tylko na mobile (poniżej 768px), przypina się gdy zjedziemy poniżej przycisku */
@media (min-width: 769px) {
    .single-product-sticky-add-to-cart {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .single-product-sticky-add-to-cart {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .single-product-sticky-add-to-cart.is-visible {
        display: block;
        opacity: 1;
    }

    .single-product-sticky-add-to-cart .cart {
        margin: 0;
        padding: 10px 15px;
    }

    .single-product-sticky-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .single-product-sticky-buttons {
        display: flex;
        flex: 1;
        min-width: 0;
        gap: 8px;
        align-items: center;
    }

    .single-product-sticky-btn {
        flex: 1;
        min-width: 0;
        margin: 0;
        padding: 8px 6px;
        height: 52px;
        box-sizing: border-box;
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.15;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }

    .single-product-sticky-btn:disabled {
        opacity: 0.65;
        cursor: wait;
    }

    /* „Do koszyka” — jasne tło, obramowanie (jak makietka) */
    .single-product-sticky-btn--cart {
        color: #132c54 !important;
        background: #fff !important;
        border: 2px solid #132c54 !important;
        transition: background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    }

    .single-product-sticky-btn--cart:hover:not(:disabled) {
        background: #f8fafc !important;
        border-color: #0f172a !important;
        color: #0f172a !important;
    }

    /* „Kup teraz” — czerwień sklepu */
    .single-product-sticky-btn--buy {
        color: #fff !important;
        background: #cd0921 !important;
        border: none !important;
        transition: background 0.2s ease;
    }

    .single-product-sticky-btn--buy:hover:not(:disabled) {
        background: #a0071a !important;
    }

    .single-product-sticky-add-to-cart .quantity {
        display: none;
    }

    .single-product-sticky-add-to-cart__meta {
        flex: 0 0 30%;
        max-width: 38%;
        min-width: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding-right: 4px;
    }

    .single-product-sticky-add-to-cart__meta .iworks-omnibus {
        display: none;
    }

    .single-product-sticky-add-to-cart__name {
        font-size: 0.9rem;
        font-weight: 600;
        color: #111827;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .single-product-sticky-add-to-cart__price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
        line-height: 1.15;
    }

    .single-product-sticky-add-to-cart__price .woocommerce-Price-amount {
        white-space: nowrap;
    }

    /* Cena przekreślona / stara — mniejsza, szara, u góry */
    .single-product-sticky-add-to-cart__price del {
        display: block;
        order: -1;
        text-decoration: line-through;
        text-decoration-color: #9ca3af;
        font-size: 0.7rem;
        font-weight: 600;
        color: #9ca3af;
    }

    .single-product-sticky-add-to-cart__price del .woocommerce-Price-amount {
        color: #9ca3af;
        font-weight: 600;
        font-size: inherit;
    }

    /* Aktualna / promocyjna — większa, czerwona */
    .single-product-sticky-add-to-cart__price ins {
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        color: #cd0921;
    }

    .single-product-sticky-add-to-cart__price > .woocommerce-Price-amount:first-child:last-child {
        font-size: 1rem;
        font-weight: 600;
        color: #cd0921;
    }

    /* Padding pod sticky: cena + dwa przyciski */
    body.sticky-cart-visible .single-product .summary {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

/* Przywróć taby produktu - używamy własnej implementacji */
.tabs.wc-tabs,
.woocommerce-Tabs-panel {
    display: none !important;
}

/* Box informacyjny pod przyciskiem dodaj do koszyka */
.product-info-box {
    background-color: #132c54;
    color: #ffffff;
    padding: 50px 30px;
    margin-top: 20px;
    font-size: 0.875rem;
    line-height: 1.6;
    width: 100%;
}

.product-info-box__content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-info-box__icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    object-fit: contain;
}

.product-info-box__text {
    flex: 1;
}

.product-info-box p {
    margin: 0;
    color: #fff;
}

.product-info-box p:last-child {
    margin-bottom: 0;
}

.product-info-box a {
    color: #ffffff;
    text-decoration: underline;
}

.product-info-box a:hover {
    text-decoration: none;
}

.product-info-box strong {
    font-weight: 600;
}

/* Cena dla przecenionych produktów */
.product-price-our {
    font-size: 1.5rem;
    font-weight: 600;
}

.products-section__slider .product-price-our .product-price-label {
    color: #000 !important;
}

.product-main-wrapper {
    .price:has(.product-price-suggested) {
        .product-price-suggested, .single-product .price .woocommerce-Price-amount {
            font-size: var(--font-size-xs) !important;
        }
    }
}

/* Mobile - zmniejsz rozmiar sugerowanej ceny */
@media (max-width: 768px) {

    .product-price-our .product-price-label {
        font-size: 18px;
        color: #000;
    }

    .product-price-our .product-price-sale {
        font-size: 14px;
        color: #d3322c;
    }

    .product-price-label {
        font-size: 14px;
    }

    .product-price-our {
        font-size: 16px;
    }

    .product-price-sale {
        font-size: 18px !important;
    }
}

.product-price-label {
    font-weight: 300;
}


.product-price-regular .woocommerce-Price-amount {
    font-weight: 300;
    font-size: 0.875rem;
}

.product-price-our {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.single-product .product-price-our .product-price-label {
    color: #000 !important;
}

.single-product .product-price-our .product-price-sale {
    color: #d3322c !important;
}

.product-price-sale,
.product-price-our .product-price-sale {
    color: #d3322c;
}

.product-price-sale {
    font-weight: 600;
    font-size: 1.5rem;
}

.product-price-sale .woocommerce-Price-amount {
    font-weight: 800;
}

.product-sale-cart-hint {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff1f3;
    border: 1px solid #ffd5db;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-sale-cart-hint strong {
    color: #d90429;
    font-size: 16px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .product-sale-cart-hint {
        margin-top: 12px;
        padding: 12px 10px;
        border: 0;
        border-left: 2px solid #f41d3c;
        border-radius: 0;
    }

    .product-sale-cart-hint strong {
        font-size: 14px;
    }
}

.product-sale-cart-hint span {
    color: #444;
    font-size: 14px;
    line-height: 1.35;
}

.product-sale-cart-hint__tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.product-sale-cart-hint__tooltip-trigger {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #b9b9b9;
    background: #fff;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-sale-cart-hint__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 320px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #111;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.35;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease,
    visibility 0.2s ease;
    z-index: 20;
}

.product-sale-cart-hint__tooltip-wrap:hover .product-sale-cart-hint__tooltip,
.product-sale-cart-hint__tooltip-wrap:focus-within .product-sale-cart-hint__tooltip {
    opacity: 1;
    visibility: visible;
}

/* Cena dla produktów bez przeceny */
.product-price-normal {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin: 20px 0;
}

/* Przekreślenie ceny regularnej (del.product-price-regular) */
del.product-price-regular {
    text-decoration: none;
    color: #999 !important;
    position: relative;
    display: inline;
}

del.product-price-regular::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #999;
}

del.product-price-regular .woocommerce-Price-amount,
del.product-price-regular .woocommerce-Price-currencySymbol,
del.product-price-regular bdi {
    color: #999 !important;
    font-weight: 300 !important;
}

/* Badge procentowy rabatu */
.product-discount-percent {
    display: inline-flex;
    align-items: center;
    align-self: center;
    background-color: #d3322c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    white-space: nowrap;
}

/* Badge w single product — nieco większy */
.single-product .product-discount-percent {
    font-size: 0.875rem;
    padding: 3px 8px;
    position: static;
}

/* Ukryj badge "Sale!" na stronie produktu */
.single-product .onsale,
.woocommerce .onsale,
.single-product .sale-flash {
    display: none !important;
}

/* Ukryj meta informacje produktu (SKU, kategorie) w standardowym miejscu */
.single-product .product_meta {
    display: none !important;
}

/* Ukryj również w wersji block */
.single-product .wp-block-woocommerce-product-meta {
    display: none !important;
}

/* Product Badges */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 15px;
}

.product-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgb(19, 44, 84);
    color: rgb(19, 44, 84);
    font-size: var(--font-size-base-lg);
    font-weight: 300;
    line-height: normal;
    background: #fff;
}

.product-badge--tag,
.product-badge--custom {
    border-color: rgb(19, 44, 84);
    color: rgb(19, 44, 84);
}

/* Badge "Produkt oryginalny" - wyróżniony */
.product-badge--original {
    background-color: #132c54 !important;
    color: #ffffff !important;
    border-color: #132c54 !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
}

@media (max-width: 768px) {
    .product-badge--original {
        background-color: transparent !important;
        color: #132c54 !important;
        border: none !important;
        padding: 0 !important;
    }
}

.product-badge--original svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product-badge--original:hover {
    background-color: #1b3c72 !important;
    border-color: #1b3c72 !important;
}

/* Tytuł produktu */
.single-product-title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

/* Wrapper: tytuł + ikona ulubionych */
.product-title-with-favorite {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.single-product .product_title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .single-product .product_title {
        font-size: 18px;
    }
}

.single-product-favorite {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    margin-top: 0;
}

.single-product-favorite:hover {
    background-color: rgba(205, 9, 33, 0.1);
    transform: scale(1.05);
}

.single-product-favorite svg {
    width: 24px;
    height: 22px;
    color: #666;
    transition: color 0.2s ease,
    fill 0.2s ease;
}

.single-product-favorite:hover svg {
    color: #cd0921;
}

.single-product-favorite.active {
    background-color: rgba(205, 9, 33, 0.1);
}

.single-product-favorite.active svg,
.single-product-favorite.active svg path {
    fill: #cd0921;
    color: #cd0921;
}

.single-product-favorite.active svg path {
    fill: #cd0921;
}

/* ============================================
   Product Tabs System
   ============================================ */
.product-tabs-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.product-tabs-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    border-bottom: none;
    overflow-x: auto;
}

.product-tab-link.active {
    border-bottom: none;
}

.product-tab-item {
    margin: 0;
    min-width: max-content;
}

.product-tab-link {
    display: block;
    padding: 15px 20px 15px 0;
    color: #4d4d4d;
    text-decoration: none;
    font-size: var(--font-size-base-xl);
    font-weight: 600;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    margin-right: 30px;
    position: relative;
}

.product-tab-link:hover {
    color: #cd0921;
}

.product-tab-link.active {
    color: #cd0921;
    border-bottom-color: #132c54;
    border-bottom-width: 3px;
    background: transparent;
}

.product-tabs-content {
    position: relative;
}

.product-tab-panel {
    display: none;
    padding: 20px 0;
}

.product-tab-panel.active {
    display: block;
}

.product-section {
    padding: 20px 0;
    scroll-margin-top: 110px;
}

.product-section-content-wrapper {
    position: relative;
}

.product-section-content[data-collapsible='true'] {
    transition: max-height 0.3s ease,
    opacity 0.3s ease;
    overflow: hidden;
}

.product-section-content-wrapper.is-collapsed .product-section-content[data-collapsible='true'] {
    position: relative;
}

/* Gradient fade tylko na mobile */
@media (max-width: 768px) {
    .product-section-content-wrapper.is-collapsed .product-section-content[data-collapsible='true']::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
        z-index: 1;
    }
}

.product-section-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid #132c54;
    color: #132c54;
    font-size: var(--font-size-base-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-section-toggle:hover {
    background: #132c54;
    color: #ffffff;
}

.product-section-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.product-section-content-wrapper.is-expanded .product-section-toggle-icon {
    transform: rotate(180deg);
}

/* Desktop - zawsze pokazuj pełną zawartość */
@media (min-width: 769px) {
    .product-section-content[data-collapsible='true'] {
        max-height: none !important;
    }

    .product-section-content-wrapper.is-collapsed .product-section-content[data-collapsible='true']::after {
        display: none !important;
    }

    .product-section-toggle {
        display: none !important;
    }
}

/* Prevent duplicate inner headings from Woo templates when we render our own section title */
.product-section--additional_information .woocommerce-product-attributes > h2,
.product-section--additional_information .woocommerce-product-attributes__heading,
.product-section--description .woocommerce-Tabs-panel > h2 {
    display: none;
}

.product-tab-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: #132c54;
    margin: 0 0 25px 0;
}

/* Product Attributes */
.product-attributes-list {
    display: grid;
    gap: 15px;
}

.product-attribute-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.product-attribute-item:last-child {
    border-bottom: none;
}

.product-attribute-label {
    font-weight: 600;
    color: #000;
}

.product-attribute-value {
    color: #666;
}

/* Product Details Tabs - podsekcje szczegółów produktu */
.product-details-tabs {
    display: grid;
    gap: 16px;
}

.product-details-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.product-details-tab {
    padding: 10px 16px;
    border: 1px solid #d9dee7;
    background: #fff;
    color: #132c54;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.product-details-tab.is-active {
    background: #132c54;
    border-color: #132c54;
    color: #fff;
}

.product-details-panel {
    border: 1px solid #e5e5e5;
    background: #fff;
}

.product-details-tabs.is-initialized .product-details-panel {
    display: none;
}

.product-details-tabs.is-initialized .product-details-panel.is-active {
    display: block;
}

.product-details-section-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 10px;
}

.product-details-item {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: start;
}

.product-details-item:last-child {
    border-bottom: none;
}

.product-details-label {
    font-weight: 600;
    color: #000;
    font-size: 0.875rem;
}

.product-details-value {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .product-details-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .product-details-tab {
        flex: 0 0 auto;
        padding: 9px 14px;
        font-size: 0.8125rem;
    }

    .product-details-section-items {
        padding: 4px 16px 10px;
    }

    .product-details-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 9px 0;
    }
}

/* Product Description */
.product-description-content {
    font-size: var(--font-size-base-xl);
    line-height: 1.8;
    color: #333;
}

.product-description-content p {
    margin-bottom: 15px;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

/* Product Brand */
.product-brand-content {
    font-size: var(--font-size-base-xl);
    line-height: 1.8;
    color: #333;
}

.product-brand-content p {
    margin-bottom: 15px;
}

.product-brand-content strong {
    font-size: var(--font-size-xl);
    color: #132c54;
}

/* Product Reviews */
.product-reviews-content {
    font-size: var(--font-size-base-xl);
    line-height: 1.8;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .product-tab-link {
        padding: 12px 15px;
        font-size: var(--font-size-base-lg);
    }

    .product-attribute-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-attribute-label {
        font-weight: 600;
    }

    .product-tab-title {
        font-size: var(--font-size-4xl);
    }
}

#wpgs-gallery {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   Product Additional Description Section
   ============================================ */

.woocommerce-product-attributes-item__label {
    text-align: left !important;
}

.product-additional-description-title {
    font-size: var(--font-size-7xl);
    font-weight: 600;
    color: #222222;
    margin: 0 0 40px 0;
    text-align: center;
}

.product-additional-desc-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product-additional-desc-item:last-of-type {
    margin-bottom: 40px;
}

.product-additional-desc-item--text_right {
    direction: rtl;
}

.product-additional-desc-item--text_right > * {
    direction: ltr;
}

.product-additional-desc-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-additional-desc-item-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: #222222;
    margin: 0;
}

.product-additional-desc-item-text {
    font-size: var(--font-size-base-xl);
    line-height: 1.6;
    color: #444444;
}

.product-additional-desc-item-text p {
    margin: 0 0 15px 0;
}

.product-additional-desc-item-text p:last-child {
    margin-bottom: 0;
}

.product-additional-desc-item-text ul li {
    font-size: 0.875rem;
}

.product-additional-desc-item-text h2,
.product-additional-desc-item-text h3 {
    font-size: 18px;
}

.product-additional-desc-image {
    width: 100%;
}

.product-additional-desc-image img {
    width: 100%;
    max-height: 450px;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Package Contents */
.product-package-contents {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e5e5e5;
}

.product-package-contents-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: #222222;
    margin: 0 0 30px 0;
}

.product-package-contents-list {
    display: flex;
    overflow-x: auto;
    gap: 50px;
    align-items: center;
    justify-content: flex-start;
}

.product-ex-display-note {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e5e5e5;
}

.product-ex-display-note-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: #222222;
    margin: 0 0 30px 0;
}

.product-ex-display-note p {
    margin: 0 0 16px 0;
    color: #444444;
    line-height: 1.7;
}

.product-ex-display-note p:last-child {
    margin-bottom: 0;
}

.product-package-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    position: relative;
    padding: 0;
}

/* Plus między elementami - wyśrodkowany w gapie między obrazkami */
.product-package-item:not(:last-child)::after {
    content: '+';
    position: absolute;
    left: 100%;
    margin-left: 25px; /* połowa gapu 50px - środek między elementami */
    top: 60px; /* środek obrazka 120px */
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 600;
    color: #132c54;
    line-height: 1;
    z-index: 1;
    width: 50px;
    text-align: center;
    pointer-events: none;
}

.product-package-item-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #132c54;
}

.woocommerce-category-image-img {
    width: auto !important;
}

.product-package-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-package-item-label {
    font-size: var(--font-size-base-lg);
    color: #666666;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-additional-desc-item {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-additional-description-section {
        padding: 0;
    }

    .product-additional-description-title {
        font-size: var(--font-size-8xl);
        margin-bottom: 30px;
    }

    .product-additional-desc-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .product-additional-desc-item--text_right {
        direction: ltr;
    }

    .product-additional-desc-item-title {
        font-size: var(--font-size-2xl);
    }

    .product-package-contents {
        margin-top: 40px;
        padding-top: 40px;
    }

    .product-ex-display-note {
        margin-top: 40px;
        padding-top: 40px;
    }

    .product-package-contents-list {
        gap: 12px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 4px 12px;
        scroll-snap-type: x proximity;
    }

    .product-package-item {
        scroll-snap-align: start;
    }

    .product-package-item:not(:last-child)::after {
        left: 100%;
        right: auto;
        margin-left: 6px;
        top: 40px;
        transform: translateY(-50%);
        font-size: 18px;
        width: auto;
    }

    .product-package-item-image {
        width: 80px;
        height: 80px;
    }

    .product-package-item-label {
        font-size: 11px;
        line-height: 1.2;
        max-width: 88px;
    }

    body.sticky-cart-visible div[data-testid*='widgetButtonFrame'] {
        bottom: 120px !important;
    }
}

/* ============================================
   Product Brand Tab - Price Negotiation & Video
   ============================================ */
.product-brand-price-negotiation {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e5e5e5;
}

.product-brand-price-negotiation-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: #132c54;
    margin: 0 0 15px 0;
}

.product-brand-price-negotiation-subtitle {
    font-size: var(--font-size-base-xl);
    color: #222222;
    margin: 0 0 25px 0;
}

.product-brand-price-negotiation-steps {
    margin: 0 0 30px 0;
    padding-left: 0px;
    list-style: none;
}

.product-brand-price-negotiation-step {
    font-size: var(--font-size-base-xl);
    line-height: 1.6;
    color: #444444;
    margin-bottom: 15px;
}

.product-brand-price-negotiation-step:last-child {
    margin-bottom: 0;
}

.product-brand-price-negotiation-step p {
    margin: 0;
}

.product-brand-price-negotiation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    padding: 14px 24px;
    background-color: #132c54;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base-xl);
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none !important;
}

.product-brand-price-negotiation-button:hover {
    background-color: #0f2342;
    color: #ffffff;
}

.product-brand-price-negotiation-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Video Section */
.product-brand-video-section {
    padding-top: 60px;
    border-top: 1px solid #e5e5e5;
    align-items: flex-start;
}

.product-brand-video-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-brand-video-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: #222222;
    margin: 0 0 20px 0 !important;
    padding: 0 0 15px !important;
}

.product-brand-video-container {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    height: 100%;
}

.product-brand-video-container iframe {
    width: 100%;
    min-height: 500px;
    height: 100%;
}

.product-brand-video-container-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

.product-brand-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Partner Box */
.product-brand-partner-box {
    height: 100%;
    background-color: #132c54;
    color: #ffffff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-brand-partner-box img {
    width: 100%;
    height: 98px !important;
    object-fit: contain;
}

.product-brand-partner-logo {
    margin-bottom: 10px;
    background: #fff;
    padding-block: 20px;
    border: 1px solid #cd0921;
}

.product-brand-partner-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-brand-partner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-brand-partner-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #ffffff;
}

.product-brand-partner-label {
    font-size: var(--font-size-base-lg);
    color: #ffffff;
    opacity: 0.9;
}

.product-brand-partner-brand {
    font-size: var(--font-size-base-xl);
    font-weight: 600;
    color: #ffffff;
    margin-top: 5px;
}

.product-brand-partner-text {
    font-size: var(--font-size-base-lg);
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 10px;
}

.product-brand-partner-text p {
    margin: 0 0 10px 0;
    color: #fff !important;
}

.product-brand-partner-text p:last-child {
    margin-bottom: 0;
}

.product-section--additional_information .product-section-content h2 {
    display: none !important;
}

.product-brand-partner-button {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: var(--font-size-base-lg);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.product-brand-partner-button:hover {
    background-color: #ffffff;
    color: #132c54;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-brand-video-container-wrapper {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-brand-price-negotiation {
        margin-top: 30px;
        padding-top: 30px;
    }

    .product-brand-price-negotiation-title {
        font-size: var(--font-size-2xl);
    }

    .product-brand-video-section {
        margin-top: 40px;
        padding-top: 40px;
    }

    .product-brand-video-container-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-brand-partner-box {
        padding: 20px;
    }
}
