/**
 * PyziTheme - cake-configurator.css (pyzitheme/assets/css/cake-configurator.css)
 * 
 * Style dla Konfigurator tortów
 *
 * @package     PyziTheme
 * @subpackage  Assets/CSS
 * @author      Patryk Kowalski <p.kowalski@kamikstudio.pl>
 * @copyright   2025 KamikStudio & PyziPyzi
 * @license     Proprietary
 * @version     1.0.0
 * @since       1.0.0
 * 
 * Client: PyziPyzi - Domowe wyroby cukiernicze
 * Website: https://pyzipyzi.pl
 * 
 * This file is part of PyziTheme.
 * Unauthorized copying or distribution is prohibited.
 */

.cake-configurator-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f0e8 0%, #faf7f0 100%);
    padding: 40px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.configurator-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* BACK BUTTON */
.back-button-top {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #5e341c;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.back-btn:hover {
    background: #5e341c;
    color: white;
    transform: translateX(-5px);
}

.back-btn svg {
    fill: currentColor;
}

/* HEADER */
.configurator-header {
    text-align: center;
    margin-bottom: 40px;
}

.configurator-title {
    font-size: 42px;
    font-weight: 700;
    color: #5e341c;
    margin-bottom: 15px;
}

.configurator-lead {
    font-size: 18px;
    color: #666;
}

/* INFO BANNER */
.info-banner {
    background: #fff8f0;
    border: 2px solid #ef6341;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.info-banner h3 {
    font-size: 22px;
    color: #5e341c;
    margin-bottom: 20px;
}

.info-banner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.info-banner li {
    font-size: 15px;
    color: #666;
    padding: 8px 0;
}

/* GRID LAYOUT */
.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start; /* KRYTYCZNE dla sticky! */
}

/* OPTIONS SECTION */
.configurator-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.config-step {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #5e341c;
    margin-bottom: 20px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ef6341;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
}

.step-note {
    margin-top: 15px;
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* INPUT GROUP */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 600;
    color: #5e341c;
}

.input-number {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    max-width: 150px;
    transition: border-color 0.3s;
}

.input-number:focus {
    outline: none;
    border-color: #ef6341;
}

.input-hint {
    font-size: 14px;
    color: #666;
}

.input-hint strong {
    color: #ef6341;
    font-size: 18px;
}

/* OPTION GRID (Biszkopt) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* CAKE TYPE LIST */
.cake-type-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cake-type-card.main-cake {
    position: relative;
    cursor: pointer;
}

.cake-type-card.main-cake input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.cake-type-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px;
    background: #f5f0e8;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
}

.cake-type-content strong {
    font-size: 17px;
    color: #5e341c;
}

.cake-type-content small {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.type-price {
    display: inline-block;
    padding: 6px 14px;
    background: #ef6341;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
    align-self: flex-start;
}

/* GALERIA MINIATUR */
.cake-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

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

.gallery-thumb:hover {
    border-color: #ef6341;
    transform: scale(1.05);
}

/* Pokazuj tylko pierwsze 3 miniatury */
.gallery-thumb:nth-child(n+4) {
    display: none;
}

/* Licznik "+X" na trzecim thumbnailu */
.gallery-thumb[data-remaining]::after {
    content: '+' attr(data-remaining);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(94, 52, 28, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

.gallery-thumb[data-remaining]:hover::after {
    background: rgba(239, 99, 65, 0.95);
}

.cake-type-card.main-cake input:checked + .cake-type-content {
    background: white;
    border-color: #ef6341;
    box-shadow: 0 4px 15px rgba(239, 99, 65, 0.2);
}

.cake-type-card.main-cake:hover .cake-type-content {
    border-color: #ef6341;
}

/* CAKE VARIANTS (warianty tortu) */
.cake-variants {
    display: none;
    margin-left: 30px;
    margin-top: 8px;
    padding-left: 20px;
    border-left: 3px solid #ef6341;
    gap: 8px;
    flex-direction: column;
}

.cake-variants.active {
    display: flex;
}

.cake-variant {
    position: relative;
    cursor: pointer;
}

.cake-variant input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.variant-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #faf7f0;
    border: 2px solid #e8dfd0;
    border-radius: 8px;
    transition: all 0.3s;
}

.variant-content strong {
    font-size: 15px;
    color: #5e341c;
}

.variant-content small {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.variant-price {
    padding: 4px 10px;
    background: #5e341c;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cake-variant input:checked + .variant-content {
    background: white;
    border-color: #ef6341;
}

.cake-variant input:checked + .variant-content .variant-price {
    background: #ef6341;
}

.cake-variant:hover .variant-content {
    border-color: #ef6341;
}

/* INFO NOTE */
.info-note {
    margin-top: 20px;
    padding: 16px 18px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #1565c0;
}

.info-note strong {
    font-weight: 700;
}

/* SHAPE INFO BOX */
.shape-info-box {
    margin-top: 15px;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.shape-info-box.info {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    color: #1565c0;
}

.shape-info-box.warning {
    background: #fff9f0;
    border: 2px solid #ef6341;
    color: #5e341c;
}

.shape-info-box strong {
    display: block;
    margin-bottom: 5px;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-label {
    display: block;
    padding: 16px;
    background: #f5f0e8;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #5e341c;
    transition: all 0.3s;
}

.option-card input:checked + .option-label {
    background: #ef6341;
    color: white;
    border-color: #ef6341;
    transform: scale(1.05);
}

.option-card:hover .option-label {
    border-color: #ef6341;
}

/* CHECKBOX GRID (Przesmarowanie) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.checkbox-card {
    position: relative;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    background: #f5f0e8;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #5e341c;
    transition: all 0.3s;
}

.checkbox-label small {
    font-size: 11px;
    font-weight: 500;
    color: #ef6341;
}

.checkbox-card input:checked + .checkbox-label {
    background: #ef6341;
    color: white;
    border-color: #ef6341;
}

.checkbox-card input:checked + .checkbox-label small {
    color: white;
    opacity: 0.9;
}

.checkbox-card:hover .checkbox-label {
    border-color: #ef6341;
}

/* CHECKBOX LIST DEKORACJA (nowy styl dla wielokrotnego wyboru) */
.checkbox-list-dekoracja {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.checkbox-option-dekoracja {
    cursor: pointer;
    width: 100%;
}

.checkbox-option-dekoracja input[type="checkbox"] {
    display: none;
}

.option-text-dekoracja {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f5f0e8;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.option-text-dekoracja > div:first-child {
    flex: 1;
}

.option-text-dekoracja strong {
    color: #5e341c;
    font-size: 16px;
    display: block;
}

.option-text-dekoracja small {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.checkbox-option-dekoracja input:checked + .option-text-dekoracja {
    border-color: #ef6341;
    background: white;
}

.checkbox-option-dekoracja:hover .option-text-dekoracja {
    border-color: #ef6341;
}

/* Drip options - inline radio buttons */
.drip-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
}

.drip-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #5e341c;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s;
}

.drip-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.drip-radio:hover {
    border-color: #ef6341;
    background: #fff8f0;
}

.drip-radio input:checked {
    accent-color: #ef6341;
}

/* Price tag dla różyczek */
.option-text-dekoracja .price-tag {
    padding: 6px 14px;
    background: #ef6341;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.checkbox-option-dekoracja input:checked + .option-text-dekoracja .price-tag {
    background: #5e341c;
}

/* CHECKBOX LIST (Dodatki) - POPRAWIONE */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%; /* FIX: Pełna szerokość kontenera */
}

.checkbox-option {
    cursor: pointer;
    width: 100%; /* FIX: Pełna szerokość */
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.option-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f5f0e8;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    width: 100%; /* FIX: Pełna szerokość */
    box-sizing: border-box; /* FIX: Padding nie powiększa elementu */
}

.option-text strong {
    color: #5e341c;
    font-size: 15px;
}

.option-price {
    padding: 5px 12px;
    background: #5e341c;
    color: white;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0; /* FIX: Cena się nie zwija */
}

.checkbox-option input:checked + .option-text {
    border-color: #ef6341;
    background: white;
}

.checkbox-option input:checked + .option-text .option-price {
    background: #ef6341;
}

.checkbox-option:hover .option-text {
    border-color: #ef6341;
}

/* SUMMARY SIDEBAR - DOKŁADNIE JAK W BLOGU + SCROLL WEWNĘTRZNY! */
.configurator-summary {
    position: sticky;
    top: 20px;
    height: fit-content; /* KLUCZ dla sticky! */
}

.summary-sticky {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    max-height: 80vh; /* Maksymalnie 80% wysokości viewportu */
    overflow-y: auto; /* Scroll wewnętrzny gdy treść za długa */
    scroll-behavior: smooth; /* Płynny scroll */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ef6341 #f5f0e8; /* Firefox: thumb track */
}

/* Custom scrollbar dla sidebara */
.summary-sticky::-webkit-scrollbar {
    width: 8px;
}

.summary-sticky::-webkit-scrollbar-track {
    background: #f5f0e8;
    border-radius: 10px;
}

.summary-sticky::-webkit-scrollbar-thumb {
    background: #ef6341;
    border-radius: 10px;
}

.summary-sticky::-webkit-scrollbar-thumb:hover {
    background: #d94e2a;
}

.summary-title {
    font-size: 24px;
    font-weight: 700;
    color: #5e341c;
    margin-bottom: 25px;
    text-align: center;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

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

.summary-item span {
    color: #666;
}

.summary-item strong {
    color: #5e341c;
}

/* PRICE SECTION */
.summary-price {
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
}

.price-breakdown {
    margin-bottom: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #5e341c;
    border-top: 2px solid #ef6341;
}

.price-total strong {
    color: #ef6341;
    font-size: 24px;
}

.price-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* ORDER BUTTON */
.btn-order-cake {
    width: 100%;
    padding: 16px;
    background: #ef6341;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-order-cake:hover {
    background: #d94e2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 99, 65, 0.4);
}

/* MODAL */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.order-modal.active {
    opacity: 1;
    visibility: visible;
}

/* GALLERY LIGHTBOX */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.gallery-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image-wrapper {
    text-align: center;
}

.lightbox-image-wrapper img {
    max-width: 85vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-caption {
    color: white;
    font-size: 16px;
    margin-top: 20px;
    font-weight: 600;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.lightbox-close:hover {
    background: #ef6341;
    border-color: #ef6341;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #ef6341;
    border-color: #ef6341;
}

.lightbox-prev svg,
.lightbox-next svg {
    fill: white;
}

/* Modal overlay (istniejący) */

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #5e341c;
    transition: all 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #5e341c;
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.info-box {
    padding: 16px;
    background: #fff9f0;
    border-left: 3px solid #ef6341;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #4a2814;
}

.order-summary-modal {
    background: #f5f0e8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.order-summary-modal h4 {
    font-size: 16px;
    font-weight: 600;
    color: #5e341c;
    margin-bottom: 15px;
}

.modal-price {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    font-size: 18px;
    font-weight: 700;
    color: #5e341c;
}

.modal-price strong {
    color: #ef6341;
    font-size: 22px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 2px solid transparent;
}

/* GŁÓWNY PRZYCISK - Zadzwoń */
.modal-btn.btn-phone {
    background: #ef6341;
    color: white;
    border-color: #ef6341;
    font-size: 18px;
    padding: 18px 24px;
    box-shadow: 0 4px 15px rgba(239, 99, 65, 0.3);
}

.modal-btn.btn-phone:hover {
    background: #d94e2a;
    border-color: #d94e2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 99, 65, 0.4);
}

/* OPCJE - Drukuj i Email */
.modal-btn.btn-print,
.modal-btn.btn-email {
    background: white;
    color: #5e341c;
    border: 2px solid #5e341c;
}

.modal-btn.btn-print:hover,
.modal-btn.btn-email:hover {
    background: #5e341c;
    color: white;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .configurator-grid {
        grid-template-columns: 1fr;
    }

    .configurator-summary {
        position: static; /* Wyłącz sticky na mobile/tablet */
    }
    
    .summary-sticky {
        max-height: none; /* Wyłącz limit wysokości na mobile */
        overflow-y: visible; /* Wyłącz scroll na mobile */
    }

    .info-banner ul {
        grid-template-columns: 1fr;
    }
    
    /* Drip options stack on mobile */
    .drip-options {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .configurator-title {
        font-size: 32px;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .config-step {
        padding: 20px;
    }

    .summary-sticky {
        padding: 20px;
    }
    
    .cake-variants {
        margin-left: 15px;
        padding-left: 15px;
    }
    
    /* Lightbox mobile */
    .lightbox-image-wrapper img {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .configurator-title {
        font-size: 26px;
    }

    .info-banner {
        padding: 20px;
    }
}

/* =============================================
   WERSJA DO DRUKU (PDF)
   ============================================= */

.print-only {
    display: none;
}

@media print {
    /* Ukryj wszystko oprócz wersji do druku */
    body * {
        visibility: hidden;
    }
    
    #printVersion,
    #printVersion * {
        visibility: visible;
    }
    
    #printVersion {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 40px;
        background: white;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 30px;
        border-bottom: 3px solid #ef6341;
    }
    
    .print-header h1 {
        font-size: 32px;
        color: #5e341c;
        margin: 0 0 10px 0;
    }
    
    .print-subtitle {
        font-size: 18px;
        color: #ef6341;
        margin: 0 0 20px 0;
        font-weight: 600;
    }
    
    .print-date,
    .print-order-number {
        font-size: 14px;
        color: #666;
        margin: 5px 0;
    }
    
    .print-order-number strong {
        color: #ef6341;
        font-size: 16px;
    }
    
    .print-content h2 {
        font-size: 20px;
        color: #5e341c;
        margin: 30px 0 20px 0;
        padding-bottom: 10px;
        border-bottom: 2px solid #f5f0e8;
    }
    
    .print-content h3 {
        font-size: 18px;
        color: #5e341c;
        margin: 25px 0 15px 0;
    }
    
    #printConfigDetails {
        line-height: 2;
        font-size: 14px;
    }
    
    #printConfigDetails p {
        margin: 8px 0;
        padding-left: 20px;
    }
    
    #printConfigDetails strong {
        color: #5e341c;
        display: inline-block;
        min-width: 150px;
    }
    
    .print-price-box {
        background: #fff8f0;
        border: 2px solid #ef6341;
        border-radius: 12px;
        padding: 25px;
        margin: 30px 0;
        text-align: center;
    }
    
    .print-price-box h3 {
        margin: 0 0 15px 0;
        color: #5e341c;
    }
    
    .print-total-price {
        font-size: 32px;
        font-weight: 700;
        color: #ef6341;
        margin: 10px 0;
    }
    
    .print-note {
        font-size: 12px;
        color: #999;
        margin-top: 10px;
    }
    
    .print-contact {
        background: #f5f0e8;
        padding: 20px;
        border-radius: 8px;
        margin: 20px 0;
    }
    
    .print-contact p {
        margin: 8px 0;
        font-size: 14px;
    }
    
    .print-footer {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 2px solid #f5f0e8;
        text-align: center;
    }
    
    .print-footer p {
        margin: 10px 0;
        font-size: 13px;
        color: #666;
    }
    
    /* Wymuszenie łamania strony */
    .print-header {
        page-break-after: avoid;
    }
    
    .print-price-box {
        page-break-inside: avoid;
    }
}