/* 1. MORDUJEMY SCROLL WORDPRESSA I WPBAKERY */
html, body {
    margin: 0 !important; padding: 0 !important;
    width: 100vw !important; height: 100vh !important;
    overflow: hidden !important; background: #fdfbf7 !important;
    -webkit-touch-callout: none; /* Blokuje domyślne menu na iOS (długie naciśnięcie) */
}

header, footer, .site-header, .site-footer, #wpadminbar { display: none !important; }
.site, #page, .site-content, .site-main, .vc_row, .wpb_wrapper {
    padding: 0 !important; margin: 0 !important; border: none !important; transform: none !important;
}

/* 2. GŁÓWNA APLIKACJA STREFY RODZICA */
#parent-app {
    font-family: 'Inter', sans-serif; color: #27272a;
    position: fixed !important; top: 0 !important; left: 0 !important; 
    width: 100vw !important; height: 100vh !important;
    background-color: #fdfbf7 !important; z-index: 999999 !important;
    overflow-y: auto !important; overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important; display: block !important;
}
#parent-app * { box-sizing: border-box; }

.parent-screen { display: none; padding-bottom: 120px; }
.parent-screen.active { display: block; }

/* 3. EKRAN LOGOWANIA */
.login-card { max-width: 400px; margin: 100px auto; background: white; padding: 40px; border-radius: 12px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-top: 4px solid #cda051; width: 90%; }
.parent-input { width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 18px; text-align: center; margin-bottom: 20px; outline: none; letter-spacing: 2px; font-weight: bold; text-transform: uppercase; }
.parent-input:focus { border-color: #cda051; }
.parent-btn { background: #cda051; color: white; border: none; padding: 16px 20px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; width: 100%; text-transform: uppercase; }

/* 4. GÓRNY PASEK */
.top-bar { background: white; padding: 20px; text-align: center; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.top-bar h3 { margin: 0 0 5px 0; color: #cda051; font-weight: 900; }
.top-bar p { margin: 0; font-size: 12px; color: #71717a; }
.back-btn { background: transparent; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 6px; font-weight: bold; color: #27272a; cursor: pointer; }

/* 5. INDEKS TWARZY AI (Siatka) */
.faces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 15px; padding: 20px; max-width: 800px; margin: 0 auto; }
.face-card { text-align: center; cursor: pointer; position: relative; }
.face-img-wrapper { width: 100%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; border: 3px solid #e2e8f0; transition: 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.face-card:hover .face-img-wrapper { border-color: #cda051; transform: scale(1.05); }
.face-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.face-badge { display: block; margin-top: 8px; font-size: 11px; font-weight: bold; color: white; background: #27272a; padding: 4px; border-radius: 4px; }

/* 6. GALERIA I ZABEZPIECZENIA ZDJĘĆ */
.photo-feed { max-width: 600px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 30px; }
.photo-item { background: white; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }

/* TARCZA ANTYKRADZIEŻOWA */
.secure-photo-wrapper { position: relative; width: 100%; user-select: none; }
.secure-img { width: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.anti-theft-shield { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; background: transparent; }

.photo-actions { padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.cart-add-btn { background: #fdfbf7; border: 2px solid #e2e8f0; color: #27272a; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; text-align: left; }
.cart-add-btn:hover, .cart-add-btn.added { border-color: #cda051; background: #fffbeb; color: #a18042; }

/* 7. PŁYWAJĄCY KOSZYK NA DOLE */
.sticky-cart { position: fixed; bottom: 0; left: 0; width: 100%; background: white; border-top: 2px solid #cda051; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 200; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); }
.checkout-btn { background: #cda051; color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; font-size: 15px; text-transform: uppercase; cursor: pointer; }