/* 1. Kontener główny i wysokość */
.hero-swiper, .myHeroSwiper {
    width: 100%;
    height: 100vh; /* Pełna wysokość ekranu */
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

/* 2. Tło slajdu */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Przyciemnienie zdjęcia (dla czytelności tekstu) */
.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 40% przyciemnienia */
}

/* 3. Pozycjonowanie treści */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;    /* Centrowanie w pionie */
    justify-content: center; /* Centrowanie w poziomie */
    text-align: center;
    color: #ffffff;
}

.hero-card {
    max-width: 850px;
    padding: 20px;
    /* Animacja wejścia */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Klasa aktywowana przez Swipera po zmianie slajdu */
.swiper-slide-active .hero-card {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Typografia */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Dynamiczna wielkość fontu */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 35px;
    line-height: 1.6;
    white-space: pre-line;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* 5. Przycisk */
.hero-readmore {
    display: inline-flex;
    align-items: center;
    padding: 16px 35px;
    background-color: #007bff; /* Zmień na swój kolor */
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 10px;
    border: 2px solid transparent;
}

.hero-readmore:hover {
    background-color: #fff;
    color: #007bff;
    transform: scale(1.05);
}

/* --- RESPONSYWNOŚĆ (RWD) --- */

/* Tablety */
@media (max-width: 992px) {
    .hero-swiper, .myHeroSwiper {
        height: 80vh; /* Nieco niższy na tabletach */
    }
}

/* Telefony */
@media (max-width: 768px) {
    .hero-swiper, .myHeroSwiper {
        height: 100vh; /* Powrót do pełnej wysokości, by tekst się zmieścił */
        min-height: 500px;
    }

    .hero-card {
        padding: 15px;
    }

    .hero-title {
        margin-bottom: 15px;
		font-size:25px;
    }

    .hero-desc {
        white-space: normal; /* Na małych ekranach pozwalamy tekstowi płynąć swobodnie */
        margin-bottom: 25px;
		font-size:14px;
    }

    .hero-readmore {
        width: 100%; /* Przycisk na całą szerokość na telefonie */
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Telefony w poziomie (Landscape) */
@media (max-height: 500px) {
    .hero-swiper, .myHeroSwiper {
        height: 150vh; /* Zwiększamy wysokość, jeśli ekran jest bardzo niski */
    }
}




/* --- LOGO WRAPPER --- */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Zapobiega ściskaniu logo w nawigacji */
    z-index: 1001;
    transition: var(--ks-transition);
}

/* --- WARIANT 1: LOGO GRAFICZNE (Customizer) --- */
/* WordPress generuje klasę .custom-logo-link dla linku i .custom-logo dla obrazka */

.site-logo .custom-logo-link {
    display: block;
    line-height: 0;
    transition: var(--ks-transition);
}

.site-logo img.custom-logo {
    max-height: 50px; /* Wysokość bazowa w dużym nagłówku */
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Reakcja na Sticky Header (nagłówek zmniejszony) */
.site-header.is-sticky .custom-logo {
    max-height: 40px;
}

/* Hover efekt dla logo graficznego */
.site-logo .custom-logo-link:hover img.custom-logo {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* --- WARIANT 2: LOGO TEKSTOWE (Fallback) --- */
.logo-text {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--ks-dark);
    text-decoration: none;
    letter-spacing: -1px;
    line-height: 1;
    transition: var(--ks-transition);
    display: inline-block;
}

.logo-text span {
    color: var(--ks-indigo);
    transition: var(--ks-transition);
}

/* Hover efekt dla logo tekstowego */
.logo-text:hover {
    color: var(--ks-indigo);
}

.logo-text:hover span {
    color: var(--ks-dark);
}

/* Skalowanie tekstu w Sticky Header */
.site-header.is-sticky .logo-text {
    font-size: 1.4rem;
}

/* --- RESPONSYWNOŚĆ (Mobile) --- */
@media (max-width: 768px) {
    .site-logo img.custom-logo {
        max-height: 35px; /* Mniejsze logo na telefonach */
    }

    .logo-text {
        font-size: 1.3rem;
    }
    
    .site-header.is-sticky .logo-text {
        font-size: 1.2rem;
    }
}
/* =================================================
   HEADER – KRYSTALSPACE SIGNATURE (v2.5)
================================================= */

/* ---------- VARIABLES (Zsynchronizowane z Logo) ---------- */
:root {
    --ks-indigo: #6366f1;
    --ks-purple: #a855f7;
    --ks-dark: #0f172a;
    --ks-slate: #64748b;
    --ks-glass: rgba(255, 255, 255, 0.85);
    --ks-transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    --ks-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --ks-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --ks-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ---------- BASE HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--ks-transition);
}

.site-header-inner {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 24px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ---------- LOGO ---------- */
.site-logo {
    flex-shrink: 0;
    z-index: 1001;
}

.logo-text {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ks-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--ks-indigo);
}

/* =================================================
   DESKTOP NAVIGATION (≥ 1100px)
================================================= */
@media (min-width: 1100px) {
    .main-navigation-desktop {
        flex-grow: 1;
        display: flex;
        justify-content: flex-start;
        margin-left: 50px;
    }

    .main-menu-list {
        display: flex;
        gap: 32px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .main-menu-list a {
        text-decoration: none;
        color: var(--ks-dark);
        font-family: 'DM Sans', sans-serif;
        font-weight: 500;
        font-size: 0.95rem;
        transition: var(--ks-transition);
        position: relative;
        padding: 10px 0;
    }

    .main-menu-list a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--ks-gradient);
        transition: var(--ks-transition);
    }

    .main-menu-list a:hover {
        color: var(--ks-indigo);
    }

    .main-menu-list a:hover::after {
        width: 100%;
    }
}

/* =================================================
   HEADER ACTIONS (Icons & Badges)
================================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--ks-transition);
    color: var(--ks-dark);
    text-decoration: none;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: #f8fafc;
    color: var(--ks-indigo);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1.15rem;
}

/* BADGES (Wishlist & Cart) */
.badge-count.ks-wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ks-gradient); /* Twój fioletowo-niebieski gradient */
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff; /* Biała obwódka "odcina" badge od ikony */
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}


/* =================================================
   SEARCH OVERLAY (Full Screen Glass)
================================================= */
.search-bar-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: var(--ks-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--ks-transition);
}

.search-bar-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.search-field-large {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Archivo', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--ks-dark);
    outline: none;
    text-align: center;
}

.search-field-large::placeholder {
    color: #cbd5e1;
}

/* Zamykanie wyszukiwarki */
.close-search-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--ks-dark);
    transition: var(--ks-transition);
}

.close-search-overlay:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--ks-indigo);
}

/* --- LOCK SCROLL --- */
body.search-open,
body.menu-open {
    overflow: hidden;
}












/* --- GŁÓWNY NAGŁÓWEK --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
background: #ec8088;
}

.site-header-inner {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo-text {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--ks-dark);
    text-decoration: none;
    letter-spacing: -1px;
}
.logo-text span { color: var(--ks-indigo); }

/* --- HAMBURGER ANIMATION --- */
.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2100;
    margin-right: 15px;
}

@media (min-width: 1100px) { .menu-toggle { display: none; } }

.hamburger-box { width: 24px; height: 18px; display: inline-block; position: relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 100%; height: 2px; background-color: var(--ks-dark); position: absolute; transition: var(--ks-transition);
}
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; left: 0; }
.hamburger-inner::after { content: ""; bottom: -8px; left: 0; }

body.menu-open .hamburger-inner { background-color: transparent; }
body.menu-open .hamburger-inner::before { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger-inner::after { transform: translateY(-8px) rotate(-45deg); }

/* --- DESKTOP NAV --- */
.main-navigation-desktop { display: none; margin-left: 60px; }
@media (min-width: 1100px) {
    .main-navigation-desktop { display: block; }
    .main-menu-list { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; }
    .main-menu-list a {
        text-decoration: none; color: var(--ks-dark); font-family: 'DM Sans', sans-serif;
        font-weight: 500; font-size: 0.95rem; transition: var(--ks-transition); position: relative;
    }
    .main-menu-list a:hover { color: var(--ks-indigo); }
}

/* --- HEADER ACTIONS --- */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.action-btn {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: var(--ks-transition); color: var(--ks-dark);
    text-decoration: none; position: relative; background: none; border: none; cursor: pointer;
}
.action-btn:hover { background: #f1f5f9; color: var(--ks-indigo); }
.badge-count {
    position: absolute; top: -4px; right: -4px; background: var(--ks-gradient); color: #fff;
    font-size: 9px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
/* Kropka statusu zalogowanego użytkownika */
.user-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #10b981; /* Sukces / Zielony */
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Sekcja konta w menu mobilnym */
.drawer-account-section {
    padding: 0 0 25px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.drawer-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ks-dark);
    text-decoration: none;
    font-size: 0.95rem;
}

.user-welcome .welcome-text {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--ks-dark);
}

.user-links {
    font-size: 0.85rem;
    color: var(--ks-slate);
}

.user-links a {
    color: var(--ks-indigo);
    text-decoration: none;
    font-weight: 600;
}

.user-links .sep {
    margin: 0 8px;
    opacity: 0.3;
}
.ks-account-trigger { position: relative; }
.user-status-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #10b981; /* Soczysta zieleń */
    border: 2px solid #fff;
    border-radius: 50%;
}
/* Kontener dla Dropdowna */
.ks-account-wrapper {
    position: relative;
}

.ks-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 20px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
}

/* Pokazywanie na hover (Tylko Desktop) */
@media (min-width: 1100px) {
    .ks-account-wrapper:hover .ks-account-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Linki wewnątrz dropdowna */
.dropdown-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--ks-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.dropdown-links li a i {
    width: 16px;
    color: #ec8088;
    font-size: 1rem;
}

.dropdown-links li a:hover {
    color: var(--ks-indigo);
}

.logout-link {
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
}
/* Styl dla gościa */
.guest-msg { font-size: 0.85rem; color: #64748b; margin-bottom: 15px; line-height: 1.4; }
.ks-btn-dropdown {
    display: block;
    background: #ec8088;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.register-hint { font-size: 0.8rem; margin-top: 12px; text-align: center; color: #94a3b8; }
.register-hint a { color: #000; font-weight: 700; text-decoration: none; }