/* === FORMULARZ I KONFIGURATOR === */
#projector_form input[type="radio"]:checked + label {
    border: 1px solid #3eae57;
    background-color: #f0fff4;
    box-shadow: 0 0 0 1px #28a745;
    padding-left: 25px;
}

#projector_form #projector_prices_section,
#projector_form #projector_prices_section::before,
.projector_details__wrapper {
    background: #e9e8e7;
}

#projector_longdescription {
    margin-top: 20px;
}

#projector_form .f-group.--radio .f-control:checked + .f-label::after,
#projector_form .f-group.--checkbox .f-control:checked + .f-label::after {
    content: none;
    font-family: FontAwesome;
    left: 8px;
    top: 10px;
    transform: translateY(-50%);
    color: #ea6061;
}

#projector_form .configurator .f-group .f-label {
    display: flex;
    align-items: center;
    min-height: 4rem;
    padding-left: 25px;
    color: #333;
}

/* Ukrywanie elementów systemowych */
#projector_share_config,
#projector_paypo,
#opinions_section,
#projector_warranty {
    display: none;
}

.product_name__block.--name.mb-2.d-sm-flex.justify-content-sm-between.mb-sm-3 {
    margin-bottom: 0px !important;
}

#projector_productname {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-top: 15px;
}

/* Responsywność formularza */
@media (min-width: 979px) {
    .projector_page #content #projector_longdescription[data-traits],
    .projector_page #content #projector_longdescription[data-dictionary] {
        grid-column: 1 / span 2;
    }

    #projector_form .configurator {
        background: #e9e8e7;
        padding: 0px 25px 10px 0px;
    }

    #projector_form #projector_buttons_section {
        margin: auto;
        display: flex;
        margin-left: 320px;
        margin-top: -50px;
    }
}

@media (max-width: 756px) {
    #projector_productname {
        padding-top: 0;
    }
}

#projector_photos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -150vw;
    background: #e8e8e8;
    height: 100%;
    z-index: -1;
}

/* === STYLIZACJA ROZMIARÓW (RADIO BUTTONY) === */
div[data-name="par_2964"] {
    display: grid;
    grid-column: 1 / -1;
}

div[data-name="par_2964"] .configurator__label {
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

div[data-name="par_2964"] input[type="radio"] {
    display: none;
}

div[data-name="par_2964"] .configurator__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

div[data-name="par_2964"] .f-label,
div.--radio:nth-child(1) > label:nth-child(2),
div.--radio:nth-child(2) > label:nth-child(2) {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    min-width: 120px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

div[data-name="par_2964"] .f-label:hover {
    border-color: #b0b0b0;
}

div[data-name="par_2964"] input[type="radio"]:checked + .f-label {
    border-color: #0184a0;
    background-color: #f0f9fb;
    font-weight: 600;
    color: #111;
}

/* === OPIS PREMIUM - KONTENER GŁÓWNY === */
.opis-premium-container {
    grid-column: 1 / -1;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9e9e9;
    line-height: 1.6;
}

.opis-premium-sekcja {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}

.opis-premium-tekst h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #111;
}

.opis-premium-tekst p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
}

.opis-premium-cechy {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opis-premium-cechy li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.opis-premium-cechy li > div {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.opis-premium-cechy .ikona-premium {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 15px;
    margin-top: 4px;
    color: #0184a0;
}

.opis-premium-cechy strong {
    font-weight: 600;
    margin-bottom: 3px;
    color: #222;
}

.opis-premium-obraz {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 0px;
    overflow: hidden;
}

.opis-premium-obraz .obraz-placeholder {
    text-align: center;
    color: #aaa;
    font-size: 15px;
    font-weight: 500;
    border: 2px dashed #ddd;
    padding: 0px;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === KARTY CECH (GRID) === */
.prezent-cechy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.cecha-karta {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cecha-karta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cecha-karta .ikona-premium {
    width: 36px;
    height: 36px;
    margin: 0 auto 20px auto;
    color: #0184a0;
}

.cecha-karta h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 10px 0;
}

.cecha-karta p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* === HIGHLIGHT BOX (KROKI) === */
.opis-premium-highlight-box {
    grid-column: 1 / -1;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    margin: 0 0 70px 0;
}

.opis-premium-highlight-box h3 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 40px;
    color: #111;
    text-align: center;
}

.highlight-box-kroki {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.krok {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px;
    position: relative;
}

.krok:not(:first-child) {
    border-left: 1px solid #e5e7eb;
}

.krok-numer {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #0184a0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.krok-tekst h4 {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #111;
}

.krok-tekst p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* === SEKCJA DEMO KREATORA === */
.sekcja-demo-kreatora {
    background-color: #f9fafb;
    padding-top: 50px;
    padding-bottom: 50px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.sekcja-demo-kreatora .opis-premium-tekst h2 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sekcja-demo-kreatora .opis-premium-tekst h2 svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-right: 12px;
}

.sekcja-demo-kreatora .opis-premium-obraz {
    background-color: transparent;
}

.podtytul-demo {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* === KARUZELA ZDJĘĆ === */
.img-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.img-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.img-carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.img-carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #ed5d5d;
}

.nav-next {
    right: 15px;
    background: #ed5d5d;
    color: white;
}

.nav-prev {
    left: 15px;
    background: #ed5d5d;
    color: white;
}

.img-carousel-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* === STYLIZACJA KONTENERA ANIMACJI (Tailwind-like) === */
#animation-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f7f7f7;
}

#animation-container > div {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}
#animation-container .w-full { width: 100%; }
#animation-container .h-full { height: 100%; }
#animation-container .flex { display: flex; }
#animation-container .items-center { align-items: center; }
#animation-container .justify-center { justify-content: center; }
#animation-container .p-4 { padding: 16px; }
#animation-container .text-center { text-align: center; }
#animation-container .font-display { font-family: 'Montserrat', sans-serif; }
#animation-container .font-extrabold { font-weight: 800; }
#animation-container .text-gray-800 { color: #333; }
#animation-container .mt-1 { margin-top: 4px; }
#animation-container .text-2xl { font-size: 1.5rem; }
#animation-container .text-customRed { color: #dd2e2e; } 
#animation-container .max-w-lg { max-width: 512px; }
#animation-container .grid { display: grid; }
#animation-container .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#animation-container .gap-2 { gap: 8px; }
#animation-container .shadow-lg { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
#animation-container .rounded-lg { border-radius: 8px; }
#animation-container .p-1\.5 { padding: 6px; }
#animation-container .aspect-square { aspect-ratio: 1 / 1; }
#animation-container .bg-white { background-color: #fff; }
#animation-container .bg-gray-300 { background-color: #d1d5db; }
#animation-container .w-3\/4 { width: 75%; }
#animation-container .h-1\.5 { height: 6px; }
#animation-container .rounded-full { border-radius: 9999px; }
#animation-container .overflow-hidden { overflow: hidden; }
#animation-container .shadow-2xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
#animation-container .py-8 { padding-top: 32px; padding-bottom: 32px; }
#animation-container .border-dashed { border-style: dashed; }
#animation-container .border-gray-300 { border-color: #d1d5db; }
#animation-container .bg-customBlue { background-color: #0184a0; }
#animation-container .text-customBlue { color: #0184a0; }
#animation-container .fridge-bg { background-color: #f0f0f0 !important; transition: background-color 1s ease; }
#animation-container .pb-5 { padding-bottom: 20px; }
#animation-container .drop-shadow { filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06)); }

@media (min-width: 640px) {
    #animation-container .sm\:scale-100 { transform: scale(1); }
    #animation-container .sm\:h-\[210px\] { height: 210px; }
    #animation-container .sm\:text-3xl { font-size: 1.875rem; }
}

/* === POLAROID ANIMACJA === */
.creator-animacja-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
    box-sizing: border-box;
}

.creator-animacja-box .polaroid {
    width: 80%;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 15px 15px 45px 15px;
    border-radius: 4px;
    position: relative;
}

.creator-animacja-box .photo {
    background: url("https://i.imgur.com/G37kS5d.jpeg") center center/cover no-repeat;
    padding-bottom: 100%;
}

.creator-animacja-box .efekt {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    animation-duration: 8s;
    animation-iteration-count: infinite;
}

.efekt.tekst {
    animation-name: animacja-tekst;
    color: black;
    font-family: "Courier New", monospace;
    font-size: clamp(10px, 4vw, 16px);
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
}

.efekt.ramka {
    animation-name: animacja-ramka;
    border: 15px solid #222;
    border-bottom-width: 45px;
    box-sizing: border-box;
    border-radius: 4px;
}

@keyframes animacja-tekst {
    0%, 45%, 100% { opacity: 0; transform: translateY(10px); }
    50%, 90% { opacity: 1; transform: translateY(0); }
}

@keyframes animacja-ramka {
    0%, 95%, 100% { opacity: 0; }
    5%, 40% { opacity: 1; }
}

/* === RESPONSYWNOŚĆ OGÓLNA === */
@media (min-width: 992px) {
    .opis-premium-sekcja.odwrocona .opis-premium-tekst {
        order: 2;
        padding: 0 20px;
    }
    .opis-premium-sekcja.odwrocona .opis-premium-obraz {
        order: 1;
    }
}

@media (max-width: 991px) {
    .prezent-cechy-grid {
        grid-template-columns: 1fr;
    }
    .highlight-box-kroki {
        flex-direction: column;
        gap: 35px;
    }
    .krok {
        padding: 0;
    }
    .krok:not(:first-child) {
        border-left: none;
    }
    .opis-premium-sekcja {
        gap: 30px;
        margin-bottom: 50px;
    }
    .opis-premium-tekst h2 {
        font-size: 24px;
    }
    .opis-premium-highlight-box {
        padding: 30px 25px;
    }
}
