/* Reset podstawowych marginesów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* EFEKT STAŁEGO TŁA */
body {
    background-image: url('images/background.png'); 
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* Kontener ułatwiający przewijanie */
.scroll-container {
    width: 100%;
    max-width: 1000px; 
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

/* Biały pasek z informacjami z układu */
.white-panel {
    background: #ffffff; 
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

/* Stylizacja nagłówków */
.product-header {
    text-align: center;
    margin-bottom: 40px;
}
.product-header h1 { font-size: 3.5rem; letter-spacing: 5px; color: #333; }
.product-header h2 { font-size: 1.8rem; color: #666; font-weight: 300; }

/* ========================================= */
/* --- OBSŁUGA ZAKŁADEK (PAGES) --- */
/* ========================================= */
.page-section {
    display: none; /* Domyślnie ukrywa wszystko */
    animation: fadeIn 0.4s ease-in-out;
}
.page-section.active {
    display: block; /* Pokazuje tylko aktywną zakładkę */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Opis produktu */
.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444;
}

/* Siatka ze specyfikacją */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- UKŁAD KOLUMNOWY DLA ZDJĘĆ --- */
.product-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.text-column {
    flex: 1; 
}

.image-column {
    width: 350px; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- ZDJĘCIA Z LUPKĄ --- */
.image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    display: block; 
    object-fit: cover;
    transition: transform 0.4s ease;
}

.zoom-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}
.image-wrapper:hover .zoom-overlay {
    opacity: 1;
}

/* --- EKRAN LIGHTBOXA (POWIĘKSZENIE) --- */
.lightbox {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 3000; 
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Dostosowanie do telefonów dla układu produktu */
@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
    }
    .image-column {
        width: 100%;
    }
}

/* Sekcja zakupu na dole paska */
.purchase-section {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.btn-add-to-cart {
    background: white;
    border: 2px solid #333;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin: 20px 0;
    width: 100%;
}
.btn-add-to-cart:hover {
    background: #333;
    color: white;
}

/* ========================================= */
/* --- NOWE MENU KOŁOWE (RADIAL MENU) --- */
/* ========================================= */
.radial-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Główny przycisk (Białe tło, ciemna ikona) */
.fab-main {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: white; 
    color: #333; 
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.3s;
}

.fab-main:hover {
    background: #f0f0f0; /* Delikatne zszarzenie po najechaniu */
}

.radial-menu.open .fab-main {
    transform: rotate(90deg); 
}

/* Małe wysuwane przyciski (Teraz TEŻ białe tło, ciemna ikona) */
.fab-item {
    position: absolute;
    top: 7.5px; 
    left: 7.5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white; 
    color: #333; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translate(0, 0) scale(0.5);
}

.radial-menu.open .fab-item {
    opacity: 1;
    pointer-events: all;
    transform: translate(var(--tx), var(--ty)) scale(1);
}

.fab-item:hover {
    background: #f0f0f0; 
    color: #333;
}

/* ========================================= */
/* --- STYLIZACJA WYSUWANEGO KOSZYKA --- */
/* ========================================= */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.cart-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.cart-panel {
    position: fixed;
    top: 0; right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-panel.open {
    right: 0; 
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 { font-size: 1.5rem; color: #333; }
.close-cart {
    background: none; border: none;
    font-size: 1.5rem; color: #999;
    cursor: pointer; transition: 0.3s;
}
.close-cart:hover { color: #333; }

.cart-items {
    flex: 1; 
    padding: 30px;
    overflow-y: auto;
}
.empty-cart-msg { text-align: center; color: #888; font-style: italic; }

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.cart-item img {
    width: 80px; height: 80px;
    object-fit: cover; border-radius: 4px;
}
.cart-item-details { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-item-details h4 { font-size: 1rem; margin-bottom: 5px; color: #333; }
.cart-item-price-row { display: flex; justify-content: space-between; align-items: center; color: #666; font-size: 0.9rem; }
.cart-price-actions { display: flex; align-items: center; gap: 15px; }
.cart-price-actions strong { color: #333; font-size: 1.1rem; }

/* Przycisk usuwania */
.remove-item-btn {
    background: none;
    border: none;
    color: #ff4d4f;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}
.remove-item-btn:hover { color: #cc0000; }

.cart-footer {
    padding: 30px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 20px; color: #333; }
.btn-checkout {
    width: 100%; background: #333; color: white;
    border: none; padding: 15px; font-size: 1rem;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-checkout:hover { background: #000; }

/* ========================================= */
/* --- STYLIZACJA ZAKŁADEK POMOC I KONTO --- */
/* ========================================= */
.subpage-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Zakładka Pomoc */
.contact-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}
.contact-card i {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}
.contact-card h3 {
    margin-bottom: 10px;
    color: #333;
}
.contact-card p {
    color: #666;
    line-height: 1.5;
}

/* Zakładka Konto */
.login-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}
.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}
.form-input:focus {
    border-color: #333;
}
.btn-submit {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-submit:hover { background: #000; }
.register-prompt {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}
.register-link {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.register-link:hover { text-decoration: underline; }

/* ========================================= */
/* --- STYLIZACJA BLOKADY NA HASŁO --- */
/* ========================================= */
.password-lock {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #111;
    z-index: 99999; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    max-width: 400px;
    width: 90%;
}

.password-box h2 {
    margin-bottom: 10px;
    color: #333;
}

.password-box p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.password-box input {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
}

.password-box button {
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.password-box button:hover {
    background: #000;
}

.pass-error {
    color: #d9534f !important;
    margin-top: 15px;
    display: none;
    font-size: 0.9rem;
    font-weight: bold;
}