/* Wykorzystanie zmiennych w arkuszu stylów */
.krystal-hero-slider {
    height: var(--hero-height-desktop);
    width: 100%;
}

@media (max-width: 1024px) {
    .krystal-hero-slider {
        height: var(--hero-height-tablet);
    }
}

@media (max-width: 768px) {
    .krystal-hero-slider {
        height: var(--hero-height-mobile);
    }
}
/* Konfiguracja sekcji Bestsellerów */
.krystal-bestsellers {
    position: relative;
    background-color: #ec808840;
    padding: 100px 0; /* Zwiększony padding, by fale miały miejsce */
    overflow: hidden;
}

/* Ustawienia wysokości fal */
.krystal-bestsellers .wave-top svg,
.krystal-bestsellers .wave-bottom svg {
    height: 80px; /* Zredukowana wysokość fal */
    width: 100%;
}

/* Pozycjonowanie fal */
.krystal-bestsellers .wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.krystal-bestsellers .wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}




/* Tło sekcji - nawiązanie do czystej wody */
.krystal-newsletter {
    background: linear-gradient(180deg, #f8fafc 0%, #dbeafe 100%);
    padding: 150px 0 100px;
    position: relative;
}

/* Górna fala */
.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-top svg {
    height: 80px;
    width: 100%;
}
    
    
/* Animacja pływania */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Fala na dole */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    height: 100px;
    width: 100%;
}

/* Responsywność */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin: 0 auto 40px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
/* Tło sekcji - nawiązanie do czystej wody */
.krystal-newsletter {
    background: linear-gradient(180deg, #f8fafc 0%, #ec808840 100%);
    padding: 150px 0 100px;
    position: relative;
}

/* Górna fala */
.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-top svg {
    height: 80px;
    width: 100%;
}

/* Magiczny boks newslettera */
.newsletter-crystal-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.1);
}

.newsletter-icon {
    font-size: 3rem;
    color: #ec8088;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.3));
}

.newsletter-content h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 15px;
}

/* Grupa input + przycisk */
.input-group {
    display: flex;
    background: #ffffff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 30px 0 20px;
    border: 1px solid #e2e8f0;
    transition: focus-within 0.3s;
}

.input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 25px;
    font-size: 1rem;
    outline: none;
    color: #1e293b;
}

/* Przycisk zapisu */
.btn-krystal-submit {
    background: #000;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-krystal-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* RODO */
.newsletter-rodo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    max-width: 550px;
    margin: 0 auto;
    cursor: pointer;
}

.rodo-text {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.rodo-text a {
    color: #000;
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 15px;
    }
    .input-group input {
        background: #fff;
        padding: 18px 25px;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
    }
    .btn-krystal-submit {
        justify-content: center;
        padding: 18px;
    }
}
/* =================================================
   KRYSTALSPACE PRODUCT CARD v2.0 – STYLES
   ================================================= */

/* 1. Kontener główny i Animacja wejścia */
.ks-product-card {
    list-style: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Klasa reveal-init (integracja z JS) */
.ks-product-card.reveal-init {
    opacity: 0;
    transform: translateY(20px);
}

.ks-product-card.reveal-init.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Szklany efekt i ramka karty */
.ks-product-inner {
    background: var(--ks-white, #ffffff);
    border-radius: 24px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px #ec8088;
    box-shadow: var(--ks-shadow, 0 10px 30px rgba(0,0,0,0.02));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ks-product-inner.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ks-product-card:hover .ks-product-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
    border-color: var(--ks-blue, #3b82f6);
    background: var(--ks-white, #ffffff);
}

/* 3. Media i Nakładki (Góra karty) */
.ks-product-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ks-bg-light, #f8fafc);
}

.ks-product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    object-fit: cover;
}

.ks-product-card:hover .ks-product-image {
    transform: scale(1.08);
}

/* Odznaki */
.ks-product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ks-badge {
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.ks-badge-sale { background: var(--ks-error, #ef4444); }
.ks-badge-bestseller { background: var(--ks-yellow, #eab308); }
.ks-badge-out { background: var(--ks-slate, #64748b); }

/* Wishlista (YITH) positioning */
.ks-wishlist-pos {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.ks-wishlist-pos .yith-wcwl-add-to-wishlist a {
    background: var(--ks-white, #ffffff);
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.ks-wishlist-pos .yith-wcwl-add-to-wishlist a:hover {
    background: var(--ks-blue, #3b82f6);
    color: #fff !important;
}

/* 4. Przyciski Akcji (Overlay) */
.ks-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
    display: flex;
    justify-content: center;
}

.ks-product-card:hover .ks-card-actions {
    transform: translateY(0);
}

.ks-btn-cart, .ks-btn-view {
    background: #000;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* 5. Body Karty (Informacje) */
.ks-card-body {
    padding: 15px 5px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ks-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ks-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--ks-blue, #3b82f6);
    text-transform: uppercase;
}

.ks-attr-tag {
    font-size: 10px;
    background: var(--ks-bg-light, #f1f5f9);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--ks-slate, #64748b);
    font-weight: 600;
}

.ks-product-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ks-product-title a {
    color: var(--ks-navy, #1e293b);
    text-decoration: none;
    transition: 0.3s;
}

.ks-product-title a:hover { color: var(--ks-blue); }

.ks-product-desc {
    font-size: 13px;
    color: var(--ks-slate, #64748b);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 6. Footer Karty (Cena i Status) */
.ks-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--ks-border, #f1f5f9);
}

.ks-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ks-navy, #1e293b);
}

.ks-price ins { text-decoration: none; }
.ks-price del { font-size: 14px; opacity: 0.5; margin-right: 5px; }

/* Status Magazynowy */
.ks-stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ks-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.instock .ks-dot { background: var(--ks-green, #22c55e); }
.outofstock .ks-dot { background: var(--ks-error, #ef4444); }
.instock .ks-status-text { color: var(--ks-green, #22c55e); }
.outofstock .ks-status-text { color: var(--ks-error, #ef4444); }

/* 7. RWD */
@media (max-width: 768px) {
    .ks-card-actions {
        position: static;
        transform: translateY(0);
        background: none;
        padding: 10px 0 0;
    }
    
    .ks-btn-cart, .ks-btn-view {
        width: 100%;
        justify-content: center;
    }
    
    .ks-product-inner {
        padding: 12px;
        border-radius: 18px;
    }
}

:root {
    --primary-gradient: #ec8088;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --bg-light: #f0f9ff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
	margin-top: 50px;
}

.section-header .subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    color: #2193b0;
    display: block;
    margin-bottom: 10px;
}


.hero-swiper {
    position: relative;
    height: 80vh;
    min-height: 600px;
}

.hero-swiper .swiper, .hero-swiper .swiper-slide {
    height: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}


.hero-readmore {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-readmore:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(33, 147, 176, 0.4);
}
.krystal-features {
    padding: 100px 0;
    position: relative;
    background: var(--white);
}

.wave-divider {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    list-style: none !important;
}

.feature-card:hover {
    background: #ec80881a;
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.krystal-values {
    padding: 100px 0;
}

.value-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 20px 10px;
}

.value-image-wrapper {
    position: relative;
    height: 250px;
}

.value-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value-content-premium {
    padding: 30px;
}

.accent-line {
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 15px 0;
}

.swiper-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}
.krystal-opinions {
    padding: 100px 0;
    background: var(--white);
}

.opinion-card-premium {
    padding: 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #ec808840 100%);
    border-radius: 20px;
    text-align: center;
}

.stars-gold {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 20px;
}

.opinion-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
}
















/* Nowoczesna Karta Blogowa */
.post-card-modern {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #f0f0f0;
}

.post-card-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.post-card-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Biały boks z treścią */
.post-card-content-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    left: 100px; /* Przesunięcie jak na Twoim screenie */
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    z-index: 2;
}

.post-card-tag {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.post-card-title {
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.post-card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.post-card-meta i {
    margin-right: 5px;
    color: #ccc;
}

.post-card-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Interakcja Hover */
.post-card-modern:hover .post-card-bg {
    transform: scale(1.05);
}

.post-card-modern:hover .post-card-content-box {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Mobile */
@media (max-width: 768px) {
    .post-card-modern { height: auto; display: flex; flex-direction: column; }
    .post-card-bg { height: 250px; }
    .post-card-content-box {
        position: static;
        margin: -40px 20px 20px;
        padding: 25px;
        width: auto;
    }
}



































/* Uwaga: style wewnątrz karty zależą od pliku template-parts/content-post-card.php */
.krystal-faq {
    background: var(--bg-light);
    padding: 100px 0;
    position: relative;
}

.faq-accordion-krystal {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item-modern {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-dark);
}

.faq-answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Klasa aktywna dodawana przez JS */
.faq-item-modern.active .faq-answer-content {
    max-height: 500px;
}









/* --- LOGIKA ROZWIJANIA (POPRAWIONA) --- */
.faq-answer-content {
    max-height: 0; 
    overflow: hidden;
    /* Używamy cubic-bezier dla efektu premium */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* USUŃ STĄD: .faq-item-modern.active .faq-answer-content { max-height: 500px; }
   JS zajmie się ustawieniem wysokości inline.
*/

.faq-answer-inner {
    padding: 0 25px 25px 25px;
    color: #666;
    line-height: 1.6;
}

/* --- ANIMACJA IKONY (DOKOŃCZENIE) --- */
.faq-status-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-status-icon::before, 
.faq-status-icon::after {
    content: "";
    position: absolute;
    background-color: #ec8088;
    transition: all 0.3s ease;
}

/* Pozioma kreska (zawsze widoczna) */
.faq-status-icon::before {
    width: 100%;
    height: 2px;
    top: 7px;
    left: 0;
}

/* Pionowa kreska (obraca się i znika przy otwarciu) */
.faq-status-icon::after {
    width: 2px;
    height: 100%;
    left: 7px;
    top: 0;
}

/* Styl dla stanu aktywnego - zmiana ikony w minus */
.faq-item-modern.active .faq-status-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item-modern.active .faq-status-icon::before {
    background-color: #2193b0; /* Możesz zmienić kolor minusa */
}
