/* ===== WOOCOMMERCE ENHANCER STYLES ===== */

/* UKRYJ KONKRETNE ELEMENTY - BARDZO PRECYZYJNIE */
h1.product_title.entry-title,
.avada-availability,
.product-border.fusion-separator,
.cpc-single-product-message,
.product_meta,
.sku_wrapper,
.posted_in,
.woocommerce-product-details__short-description {
    display: none !important;
}

/* ZACHOWAJ SUMMARY CONTAINER ALE UKRYJ JEGO ZAWARTOŚĆ */
.summary-container > h1,
.summary-container > .avada-availability,
.summary-container > .product-border,
.summary-container > .cpc-single-product-message,
.summary-container > .product_meta {
    display: none !important;
}

/* UKRYJ SHORT DESCRIPTION NAD ZDJĘCIEM */
.single-product .woocommerce-product-details__short-description,
.single-product .product_title + .woocommerce-product-details__short-description,
.woocommerce-breadcrumb + .woocommerce-product-details__short-description {
    display: none !important;
}

/* UKRYJ ELEMENT KATEGORIE */
.posted_in {
    display: none !important;
}

/* KONFIGURATOR WOOCOMMERCE - CZYSTE STYLE */
.cpc-woocommerce-configurator {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.cpc-configurator-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.cpc-woo-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cpc-woo-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
    margin: 0 0 15px 0;
}

.cpc-woo-field {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.cpc-woo-label {
    font-weight: 500;
    min-width: 180px;
    color: #555;
    margin: 0;
}

.cpc-woo-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    min-width: 200px;
    font-size: 14px;
}

.cpc-woo-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.cpc-woo-value {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    min-width: 200px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cpc-woo-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cpc-woo-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .cpc-woo-select,
    .cpc-woo-value {
        width: 100%;
        min-width: auto;
    }
}

/* INTEGRACJA Z WOOCOMMERCE */
.woocommerce div.product .cpc-woocommerce-configurator {
    clear: both;
    width: 100%;
}

/* MARGIN DOOKOŁA GŁÓWNEGO ELEMENTU PRODUKTU */
.product.type-product {
    margin: 30px !important;
}

/* DROPDOWN OPISU PRODUKTU - MAŁA STRZAŁKA INLINE ZA TEKSTEM */
.cpc-description-dropdown {
    display: inline;
    margin-left: 5px;
}

.cpc-description-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    display: inline;
    vertical-align: baseline;
    margin: 0;
}

.cpc-description-arrow:hover {
    color: #0073aa;
    transform: scale(1.1);
}

.cpc-description-arrow:focus {
    outline: none;
    color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
    border-radius: 3px;
}

.cpc-arrow-icon {
    transition: transform 0.3s ease;
}

.cpc-description-content {
    margin-top: 15px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
    width: 100%;
    clear: both;
}

.cpc-description-content .post-content {
    margin: 0;
    padding: 0;
}

.cpc-description-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

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

/* ATRYBUTY PRODUKTU POD OPISEM */
.cpc-product-attributes {
    margin-top: 20px;
    margin-bottom: 20px;
}

.cpc-product-attributes .shop_attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.cpc-product-attributes .shop_attributes tr {
    border-bottom: 1px solid #eee;
}

.cpc-product-attributes .shop_attributes th {
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    width: 30%;
    background-color: #f9f9f9;
    border-right: 1px solid #eee;
}

.cpc-product-attributes .shop_attributes td {
    padding: 8px 12px;
    background-color: #fff;
}

.cpc-product-attributes .shop_attributes td p {
    margin: 0;
}

/* KONTENER KRÓTKIEGO OPISU - NORMALNY FLOW DLA INLINE PRZYCISKU */
.woocommerce-product-details__short-description {
    display: block !important;
}

.woocommerce-product-details__short-description p {
    margin: 0 !important;
    display: inline !important;
}

/* SPECYFIKACJA PRODUKTU NA PEŁNĄ SZEROKOŚĆ */
.cpc-full-width-specification {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 40px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

.cpc-full-width-specification .cpc-woocommerce-configurator {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .cpc-full-width-specification {
        padding: 20px 10px;
    }
}

/* ===== LAYOUT STYLES ===== */

/* OGRANICZENIE SZEROKOŚCI DO FULL HD NA DUŻYCH EKRANACH */
@media (min-width: 1921px) {
    /* Główny kontener produktu */
    .single-product .product.type-product {
        max-width: 1920px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* Specyfikacja produktu na pełną szerokość również ograniczona */
    .product-specification-full-width {
        max-width: 1920px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
}

/* NOWY UKŁAD GRID - 2 KOLUMNY: GALERIA | INFORMACJE + PRZYCISKI */
.single-product .product {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    gap: 20px !important;
    grid-template-areas:
        "gallery xyz" !important;
}

/* RESPONSYWNOŚĆ GRID - MOBILE: JEDNA KOLUMNA */
@media (max-width: 768px) {
    .single-product .product {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "gallery"
            "xyz" !important;
        gap: 30px !important;
    }

    .single-product .xyz-container {
        padding-top: 20px !important;
        padding-left: 20px !important;
        max-width: none !important;
    }
}

/* RESPONSYWNOŚĆ GRID - TABLET: ZACHOWAJ 2 KOLUMNY ALE MNIEJSZY GAP */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-product .product {
        gap: 15px !important;
    }

    .single-product .xyz-container {
        padding-top: 30px !important;
        padding-left: 30px !important;
    }
}

/* ELEMENTY PO PRODUKCIE - WYŁĄCZ GRID I PRZYWRÓĆ NORMALNY FLOW */
.single-product .product ~ * {
    grid-area: unset !important;
    grid-column: unset !important;
    grid-row: unset !important;
    display: block !important;
    width: 100% !important;
    margin: 20px 0 !important;
    clear: both !important;
    position: static !important;
    float: none !important;
}

/* BARDZO AGRESYWNE WYŁĄCZENIE GRID DLA ELEMENTÓW POZA KONTENEREM PRODUKTU */
.single-product .product + *,
.single-product .product ~ .social-share,
.single-product .product ~ .related,
.single-product .product ~ .woocommerce-tabs,
.single-product .xyz-container + *,
.single-product .xyz-container ~ * {
    display: block !important;
    grid: none !important;
    grid-area: unset !important;
    grid-column: unset !important;
    grid-row: unset !important;
    grid-template: none !important;
    grid-template-areas: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    position: static !important;
    float: none !important;
    clear: both !important;
}

/* KONTENER XYZ - RESPONSYWNE STYLE */
.single-product .xyz-container {
    grid-area: xyz !important;
    display: block !important;
    min-height: 400px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    /* Domyślne padding dla mobile */
    padding-top: 20px;
    padding-left: 20px;
}

/* Responsywne padding dla xyz-container - DESKTOP TYLKO */
@media (min-width: 1025px) and (max-width: 1199px) {
    .single-product .xyz-container {
        padding-top: 50px;
        padding-left: 50px;
        max-width: 28rem; /* Mniejsza max-width dla średnich ekranów */
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .single-product .xyz-container {
        padding-top: 100px;
        padding-left: 100px;
        max-width: 30rem; /* Średnia max-width */
    }
}

@media (min-width: 1600px) {
    .single-product .xyz-container {
        padding-top: 150px;
        padding-left: 150px;
        max-width: 34.25rem; /* Pełna max-width jak chciałeś */
    }
}

/* UKRYJ INFORMACJE DODATKOWE */
.single-product .woocommerce-tabs,
.single-product .woocommerce-Tabs-panel,
.single-product #tab-additional_information,
.single-product .additional_information_tab {
    display: none !important;
}

/* SOCIAL SHARE I PODOBNE PRODUKTY - PEŁNA SZEROKOŚĆ POD KONTENEREM */
.single-product .social-share,
.single-product .related.products,
.single-product .upsells.products,
.single-product .cross-sells {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 40px 0 !important;
    clear: both !important;
    grid: none !important;
    grid-area: unset !important;
    grid-column: 1 / -1 !important; /* PEŁNA SZEROKOŚĆ GRID */
    grid-row: unset !important;
    position: static !important;
    float: none !important;
    flex: none !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

/* SPECJALNE REGUŁY DLA AVADA THEME - PEŁNA SZEROKOŚĆ */
.fusion-body .single-product .social-share,
.fusion-body .single-product .related.products,
.fusion-body .single-product .upsells.products,
.fusion-body .single-product .cross-sells,
.avada-container .social-share,
.avada-container .related.products {
    display: block !important;
    width: 100% !important;
    grid: none !important;
    grid-column: 1 / -1 !important; /* PEŁNA SZEROKOŚĆ GRID */
    flex: none !important;
    position: static !important;
    clear: both !important;
    margin: 40px 0 !important;
}

/* DODATKOWE WYMUSZENIE PEŁNEJ SZEROKOŚCI */
.single-product .product ~ .social-share,
.single-product .product ~ .related.products,
.single-product .product ~ .upsells.products,
.single-product .product ~ .cross-sells {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Tytuł - ukryty z głównego layout (przeniesiony do xyz-container) */
.single-product .summary {
    display: none !important;
}

/* Galeria - lewa połowa */
.single-product .images {
    grid-area: gallery !important;
    width: 100% !important;
    margin: 0 !important;
}

/* AVADA GALLERY WRAPPER - BEZ PADDINGU DLA MAKSYMALNEJ WIELKOSCI ZDJEC */
.avada-single-product-gallery-wrapper.avada-product-images-global {
    margin-right: 5px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== CUSTOM PRODUCT GALLERY - MAIN 100%, SECONDARY 50% ===== */
.cpc-product-gallery {
    width: 100%;
}

.cpc-gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Odstęp między zdjęciami */
}

/* Główne zdjęcie - pełna szerokość */
.cpc-gallery-item--main {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.2s ease;
    margin-bottom: 10px; /* Dodatkowy margines pod głównym zdjęciem */
}

/* Pozostałe zdjęcia - 50% szerokości (2 w linii) */
.cpc-gallery-item--secondary {
    width: calc(50% - 7.5px); /* 50% minus połowa gap */
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

/* Fallback dla starych klas */
.cpc-gallery-item {
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.cpc-gallery-item:hover,
.cpc-gallery-item--main:hover,
.cpc-gallery-item--secondary:hover {
    opacity: 0.92;
}

.cpc-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsywność galerii - na mobile wszystkie zdjęcia 100% */
@media (max-width: 480px) {
    .cpc-gallery-item--secondary {
        width: 100%;
    }
}

.cpc-gallery-placeholder {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

/* ===== LIGHTBOX STYLES ===== */
.cpc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cpc-lightbox.active {
    display: flex;
}

.cpc-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cpc-lightbox.active .cpc-lightbox-overlay {
    opacity: 1;
}

.cpc-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpc-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cpc-lightbox.active .cpc-lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.cpc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cpc-lightbox-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.cpc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.2s ease;
}

.cpc-lightbox-nav:hover {
    opacity: 0.7;
}

.cpc-lightbox-prev {
    left: 10px;
}

.cpc-lightbox-next {
    right: 10px;
}

.cpc-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 2px;
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .cpc-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .cpc-lightbox-nav {
        padding: 15px;
    }

    .cpc-lightbox-prev {
        left: 5px;
    }

    .cpc-lightbox-next {
        right: 5px;
    }

    .cpc-lightbox-counter {
        bottom: 15px;
        font-size: 12px;
    }
}

/* Gallery responsive */
@media (max-width: 768px) {
    .cpc-gallery-images {
        gap: 20px;
    }
}

/* ===== KONFIGURATOR PRODUKTU - MINIMALISTYCZNY DESIGN ===== */
.cpc-configurator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    padding: 0 50px 0 150px;
    margin: 0;
}

.cpc-configurator-title {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 30px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpc-config-group {
    margin-bottom: 40px; /* ZWIĘKSZONY MARGIN MIĘDZY GRUPAMI */
    padding: 0;
    border: none;
}

.cpc-config-group:last-child {
    margin-bottom: 0;
}

.cpc-config-group-title {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 20px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cpc-config-subgroups {
    display: flex;
    flex-direction: column;
    gap: 12px; /* MNIEJSZY GAP MIĘDZY PODGRUPAMI W KONFIGURATORZE */
}

.cpc-config-subgroup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cpc-config-label {
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 6px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpc-config-select,
.cpc-config-input {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cpc-config-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
}

.cpc-config-select:focus,
.cpc-config-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: none;
}

.cpc-config-select:hover {
    border-color: #9ca3af;
}

.cpc-config-input[readonly] {
    background: #f8f9fa;
    color: #6b7280;
    cursor: not-allowed;
}

.cpc-configurator-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.cpc-inquiry-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666 !important; /* ZMIENIONO: bardziej stonowany kolor */
    background: #ffffff !important;
    border: 1px solid #ddd !important; /* ZMIENIONO: jaśniejsza ramka */
    border-radius: 0 !important;
    padding: 12px 24px !important; /* ZMIENIONO: mniejszy padding */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 180px !important; /* ZMIENIONO: mniejsza min-width */
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: none !important;
}

.cpc-inquiry-button:hover {
    border-color: #999 !important; /* ZMIENIONO: stonowany hover */
    background: #f9f9f9 !important;
    color: #333 !important;
    transform: none !important; /* ZMIENIONO: bez transform */
}

.cpc-inquiry-button:active {
    background: #f5f5f5 !important;
    transform: translateY(1px) !important;
}

.cpc-inquiry-button:focus {
    outline: none !important;
    border-color: #999 !important;
    box-shadow: none !important;
}

/* Style dla pojedynczej opcji wyglądającej jak select, ale bez strzałki */
.cpc-config-select.cpc-single-option {
    background-image: none;
    padding-right: 16px;
    cursor: default;
}

.cpc-config-select.cpc-single-option:hover {
    border-color: #d1d5db; /* Bez zmiany koloru ramki na hover */
}

/* Style dla pojedynczych wartości (bez pola wyboru) - LEGACY */
.cpc-config-single-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.cpc-config-single-label {
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpc-config-single-text {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    flex: 1;
}

/* ===== SLIDING PANEL STYLES ===== */
.sliding-panel-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0) !important;
    z-index: 999998 !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    transition: background 0.3s ease, backdrop-filter 0.3s ease !important;
}

.sliding-panel-overlay.active {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important; /* Safari support */
}

.sliding-panel {
    position: fixed !important;
    top: 0 !important;
    right: -33.333% !important;
    width: 33.333% !important; /* ZMIENIONO: 1/3 szerokości ekranu */
    height: 100% !important;
    background: white !important;
    z-index: 999999 !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
    transition: right 0.3s ease !important;
    overflow-y: auto !important;
}

.sliding-panel.active {
    right: 0 !important;
}

.sliding-panel-header {
    padding: 0; /* ZMIENIONO: usuń domyślny padding */
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.close-panel-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    position: absolute;
    top: 25px; /* ZMIENIONO: 25px od góry */
    right: 25px; /* ZMIENIONO: 25px od prawej */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-panel-btn:hover {
    color: #000;
}

.panel-title {
    padding: 25px 25px 20px 25px; /* NOWE: padding dla tytułu */
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-right: 70px; /* NOWE: miejsce na przycisk X */
}

.sliding-panel-content {
    padding: 20px 25px; /* ZMIENIONO: jednolity padding */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* JEDNOLITE STYLE DLA WSZYSTKICH PANELI */
.sliding-panel-content h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.sliding-panel-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.sliding-panel-content ul,
.sliding-panel-content ol {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    padding-left: 20px;
}

/* UKRYJ DUPLIKOWANĄ SPECYFIKACJĘ W KONFIGURATORZE */
#panel-data-configurator .product-specification,
#panel-data-configurator .specification-content,
#panel-data-configurator .spec-group {
    display: none !important;
}

/* RESPONSYWNOŚĆ PANELU */
@media (max-width: 1024px) {
    .sliding-panel {
        right: -50%;
        width: 50%; /* Na mniejszych ekranach 1/2 szerokości */
    }
}

@media (max-width: 768px) {
    .sliding-panel {
        right: -100%;
        width: 100%; /* Na mobile pełna szerokość */
    }
}

/* ===== WSPÓLNE STYLE DLA WSZYSTKICH SLIDING PANELS ===== */

/* Nagłówek panelu - jednakowy dla wszystkich */
.cpc-panel-title {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #000 !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Grupy - jednakowe dla konfiguratora i specyfikacji */
.cpc-panel-group {
    margin-bottom: 40px !important;
    padding: 0 !important;
    border: none !important;
}

.cpc-panel-group:last-child {
    margin-bottom: 0 !important;
}

.cpc-panel-group-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Podgrupy - mniejsze i cieńsze niż grupy */
.cpc-panel-subgroup {
    margin-left: 0 !important;
}

/* Podgrupy w specyfikacji - większy margin */
.specification-content .cpc-panel-subgroup {
    margin-bottom: 20px !important;
}

/* Podgrupy w konfiguratorze - bez margin (używa gap) */
.cpc-configurator .cpc-panel-subgroup {
    margin-bottom: 0 !important;
}

.cpc-panel-subgroup-title {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #666 !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Kontener panelu - jednakowy padding/margin */
.cpc-panel-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== UKRYJ ORYGINALNY AVADA SOCIAL SHARE ===== */
/* Mamy własny minimalistyczny social share w xyz-container */
.single-product .social-share,
.fusion-body .single-product .social-share,
.avada-container .social-share {
    display: none !important;
}

/* ===== MINIMALISTYCZNY SOCIAL SHARE STYLES ===== */
.cpc-social-share {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cpc-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cpc-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cpc-social-icon:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.cpc-social-icon:active {
    transform: translateY(0);
}

/* Responsywność social share */
@media (max-width: 768px) {
    .cpc-social-share {
        margin-top: 30px;
        padding-top: 20px;
    }

    .cpc-social-icons {
        gap: 10px;
        justify-content: center;
    }

    .cpc-social-icon {
        width: 36px;
        height: 36px;
    }
}

/* ACTION BUTTONS HOVER */
.action-btn:hover {
    border-color: #999 !important;
    background: #f9f9f9 !important;
}

/* ===== PDF DOWNLOAD BUTTON STYLES ===== */

.cpc-pdf-download-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666 !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 180px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: none !important;
}

.cpc-pdf-download-button:hover {
    border-color: #999 !important;
    background: #f9f9f9 !important;
    color: #333 !important;
}

.cpc-pdf-download-button:active {
    background: #f5f5f5 !important;
    transform: translateY(1px) !important;
}

.cpc-pdf-download-button:focus {
    outline: none !important;
    border-color: #999 !important;
    box-shadow: none !important;
}

.cpc-pdf-download-button svg {
    flex-shrink: 0;
}

.cpc-pdf-download-button:disabled,
.cpc-pdf-download-button.cpc-loading {
    opacity: 0.7 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

/* Loading spinner animation */
.cpc-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: cpc-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes cpc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cpc-pdf-download-button {
        width: 100% !important;
    }
}
