/* --- KRYSTALSPACE TOAST NOTIFICATION --- */
.ks-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.ks-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.ks-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ks-toast i {
    font-size: 18px;
}

/* Kolorystyka dla dodawania */
.ks-toast.added i {
    color: #e74c3c; /* Kolor serca */
}

.ks-toast.added {
    border-left: 4px solid var(--ks-indigo);
}

/* Kolorystyka dla usuwania */
.ks-toast.removed i {
    color: var(--ks-slate);
}

.ks-toast span {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ks-dark);
}

/* Dostosowanie do mobile (wyśrodkowanie na dole) */
@media (max-width: 768px) {
    .ks-toast {
        right: 20px;
        left: 20px;
        bottom: 85px; /* Nad Mobile Bottom Nav */
        text-align: center;
        justify-content: center;
    }
}
/* =================================================
   1. KONTEKST KARTY (POZYCJONOWANIE)
   ================================================= */
.woocommerce ul.products li.product, 
.ks-product-card,
.ks-post-card {
    position: relative; /* Wymagane do pozycjonowania serca */
}

/* =================================================
   2. STYL PRZYCISKU SERCA (TOGGLE)
   ================================================= */
.ks-wishlist-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ks-slate);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Interakcje */
.ks-wishlist-toggle:hover {
    transform: scale(1.15);
    background: #ffffff;
    color: var(--ks-indigo);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

/* Stan aktywny (Produkt w ulubionych) */
.ks-wishlist-toggle.is-active {
    color: var(--ks-indigo); /* Spójność z marką KrystalSpace */
    background: #ffffff;
}

.ks-wishlist-toggle.is-active i {
    animation: ksHeartBeat 0.4s ease-out; /* Animacja przy aktywacji */
}

/* Stan ładowania (AJAX) */
.ks-wishlist-toggle.loading {
    opacity: 0.6;
    pointer-events: none; /* Blokada kliknięć podczas zapisu */
}

.ks-wishlist-toggle i {
    font-size: 16px;
    pointer-events: none;
}

/* =================================================
   3. ANIMACJE
   ================================================= */
@keyframes ksHeartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* =================================================
   4. STRONA LISTY ULUBIONYCH (WIDOK PEŁNY)
   ================================================= */
.ks-wishlist-page {
    padding: 80px 0;
    min-height: 60vh;
}

/* Pusta lista ulubionych */
.ks-empty-wishlist {
    text-align: center;
    padding: 80px 40px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    max-width: 650px;
    margin: 40px auto;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.ks-empty-wishlist .empty-icon {
    font-size: 72px;
    color: var(--ks-indigo);
    margin-bottom: 30px;
    opacity: 0.2;
}

.ks-empty-wishlist h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--ks-dark);
}

.ks-empty-wishlist p {
    color: var(--ks-slate);
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Przycisk powrotu - Gradient Premium */
.ks-btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--ks-gradient);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.ks-btn-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}
/* Kontener główny karty */
.ks-post-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.ks-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(33, 147, 176, 0.15);
}

.ks-post-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Miniaturka i Date Badge */
.ks-post-thumbnail {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.ks-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ks-post-card:hover .ks-post-thumbnail img {
    transform: scale(1.1);
}

.ks-post-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ec8088;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(33, 147, 176, 0.3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 50px;
}

.ks-post-date-badge .day {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.ks-post-date-badge .month {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.9;
}

/* Treść karty */
.ks-post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ks-post-category a {
    color: #ec8088;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    margin-bottom: 12px;
    display: inline-block;
}

.ks-post-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
}

.ks-post-title a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s;
}

.ks-post-title a:hover {
    color: #2193b0;
}

.ks-post-excerpt {
    color: #636e72;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Meta informacje (Autor, Czas) */
.ks-post-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f2f6;
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #b2bec3;
    margin-bottom: 20px;
}

.ks-post-meta i {
    color: #ec8088;
    margin-right: 5px;
    font-size: 16px;
}

/* Przycisk Czytaj więcej */
.ks-post-more {
    color: #ec8088;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.ks-post-more i {
    transition: transform 0.3s ease;
}

.ks-post-more:hover {
    color: #1a7a94;
}

.ks-post-more:hover i {
    transform: translateX(5px);
}

/* RWD - Siatka (Przykład dla kontenera nadrzędnego) */
.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .blog-grid-modern {
        grid-template-columns: 1fr;
    }
}
/* --- KRYSTALSPACE CONTACT PAGE --- */

.krystal-contact-page {
    background: #fbfbfd;
    overflow-x: hidden;
}

/* 1. Page Hero Split */
.page-hero-split {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f0f7 100%);
    overflow: hidden;
}

.hero-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.breadcrumb-nav {
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.breadcrumb-nav a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover { color: #6e45e2; }

.breadcrumb-nav i {
    font-size: 10px;
    margin: 0 8px;
}

.krystal-contact-page .page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 25px;
}

.krystal-contact-page .page-title span {
    background: linear-gradient(90deg, #6e45e2, #88d3ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-intro-text {
    font-size: 1.1rem;
    color: #555;
    max-width: 500px;
}

/* Image Frame with Glass Effect */
.image-glass-frame {
    position: relative;
    border-radius: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.floating-img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.page-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* 2. Contact Grid Section */
.contact-main-section {
    padding: 100px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
}

/* Glass Effect Utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border-radius: 24px;
}

/* Sidebar Details */
.contact-details-card {
    padding: 40px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.detail-item:last-child { margin-bottom: 0; }

.icon-circle {
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6e45e2;
    box-shadow: 0 10px 20px rgba(110, 69, 226, 0.1);
    margin-right: 20px;
    flex-shrink: 0;
}

.detail-item h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Contact FAQ Sidebar */
.contact-faq-wrap {
    padding: 0 10px;
}

.contact-faq-wrap .sub-title {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* 3. Form Area */
.contact-form-card {
    padding: 50px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-form-card p {
    color: #666;
    margin-bottom: 40px;
}

/* Contact Form 7 Styling */
.cf7-wrapper input:not([type="submit"]),
.cf7-wrapper textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e1e1e1;
    background: #fdfdfd;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: inherit;
    transition: all 0.3s;
}

.cf7-wrapper input:focus,
.cf7-wrapper textarea:focus {
    border-color: #6e45e2;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(110, 69, 226, 0.05);
    outline: none;
}

.cf7-wrapper .wpcf7-submit {
    background: #000;
    color: #fff;
    padding: 18px 45px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
}

.cf7-wrapper .wpcf7-submit:hover {
    background: linear-gradient(180deg, #f8fafc 0%, #ec808840 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 69, 226, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-sidebar {
        order: 2;
    }
    .contact-form-area {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-layout-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-hero-content {
        padding: 0 20px;
    }
    .breadcrumb-nav { justify-content: center; display: flex; align-items: center; }
    .page-hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    .contact-form-card {
        padding: 30px 20px;
    }
}
/* --- MOBILE BOTTOM NAV SETTINGS --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--ks-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
    /* Obsługa "Safe Area" dla iPhone'ów z notchem */
    padding-bottom: env(safe-area-inset-bottom);
}

/* Ukrywamy na desktopie (powyżej 1100px tak jak Twój header) */
@media (min-width: 1100px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Pojedynczy element nawigacji */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ks-slate);
    flex: 1;
    height: 100%;
    transition: var(--ks-transition);
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: var(--ks-transition);
}

.mobile-nav-item span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
	color:black;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stan aktywny / Hover */
.mobile-nav-item:active,
.mobile-nav-item:hover {
    color: var(--ks-indigo);
}

.mobile-nav-item:active i {
    transform: translateY(-3px);
}

/* --- KOSZYK I BUBBLE --- */
.mobile-cart-icon-wrap {
    position: relative;
    display: inline-block;
}

.mobile-bottom-nav .cart-count-bubble {
    position: absolute;
    display:none!important;
    top: -8px;
    right: -10px;
    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;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* Dodatkowy margines dla treści strony, aby nav nic nie zasłaniał */
body {
    padding-bottom: 65px;
}

@media (min-width: 1100px) {
    body {
        padding-bottom: 0;
    }
}
/* KARTA WPISU (Crystal Post Card) */
.krystal-post-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.krystal-post-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.1);
    border-color: var(--ks-blue);
}

/* Obrazek na karcie */
.post-card-image {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.krystal-post-card:hover .post-card-image img {
    transform: scale(1.1);
}

/* Kategoria na obrazku (Glassmorphism) */
.post-card-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
}

.post-card-category a {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ks-navy);
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Treść karty */
.post-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--ks-slate);
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 15px;
}

.post-card-title a {
    color: var(--ks-navy);
    text-decoration: none;
    transition: color 0.3s;
}

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

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--ks-slate);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Link "Czytaj więcej" */
.post-card-link {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ks-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.post-card-link:hover {
    gap: 12px;
}

/* --- PAGINACJA --- */
.krystal-pagination-wrap {
    margin-top: 70px;
    text-align: center;
}

.krystal-pagination-wrap .page-numbers {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    margin: 0 5px;
    text-decoration: none;
    color: var(--ks-navy);
    font-weight: 700;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.krystal-pagination-wrap .page-numbers.current {
    background: var(--ks-gradient);
    color: #fff;
    border-color: transparent;
}

.krystal-pagination-wrap .page-numbers:hover:not(.current) {
    border-color: var(--ks-blue);
    color: var(--ks-blue);
}

/* Responsywność */
@media (max-width: 768px) {
    .krystal-blog-grid {
        grid-template-columns: 1fr;
    }
}
/* --- PAGE HERO STYLES --- */
.krystal-page {
    background-color: #ffffff;
}

.page-hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    overflow: hidden;
}

.hero-layout-wrapper {
    display: grid;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Układ dzielony (z obrazkiem) */
.page-hero-split .hero-layout-wrapper {
    grid-template-columns: 1fr 1fr;
}

/* Układ centrowany (bez obrazka) */
.page-hero-centered {
    text-align: center;
    padding: 120px 0 120px;
}
.page-hero-centered .hero-layout-wrapper {
    grid-template-columns: 1fr;
}

/* Tytuł i Breadcrumbs */
.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--ks-navy);
    line-height: 1.1;
    margin-top: 15px;
}

.breadcrumb-nav {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ks-slate);
}
.breadcrumb-nav a {
    color: var(--ks-blue);
    text-decoration: none;
}
.breadcrumb-nav i {
    font-size: 0.7rem;
    margin: 0 8px;
    opacity: 0.5;
}

/* Obrazek w ramce */
.image-glass-frame {
    background: rgba(255, 255, 255, 0.4);
    padding: 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.image-glass-frame img {
    border-radius: 20px;
    width: 100%;
}

/* --- CONTENT SECTION --- */
.page-body-container {
    padding: 80px 0 120px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.page-content-card {
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
}

/* Stylizacja standardowych elementów wewnątrz strony */
.entry-content h2 { margin-top: 1.8em; margin-bottom: 0.8em; }
.entry-content p { margin-bottom: 1.5em; }

.page-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.page-hero-wave svg {
    height: 80px;
    width: 100%;
}

/* Responsywność */
@media (max-width: 991px) {
    .page-hero-split .hero-layout-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-hero-image {
        order: -1; /* Obrazek nad tekstem na mobile */
        max-width: 400px;
        margin: 0 auto;
    }
    .page-content-card {
        padding: 30px 20px;
    }
}
/* =================================================
   KRYSTAL SINGLE POST – SPLIT LAYOUT STYLES
================================================= */

/* Główne tło dla pojedynczego wpisu */
.krystal-single-split {
    background-color: #f8fafc; /* Bardzo jasne tło */
}

/* --- HERO SECTION (NAGŁÓWEK Z PODZIAŁEM) --- */
.krystal-hero-split-header {
    padding: 120px 0 150px; /* Duży padding góra/dół */
    background: linear-gradient(180deg, #f8fafc 0%, #ec808840 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid-split {
    display: grid;
    grid-template-columns: 1fr; /* Domyślnie (mobile) jedna kolumna */
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* Desktop Layout - Podział Lewa/Prawa */
@media (min-width: 992px) {
    .hero-grid-split {
        grid-template-columns: 5fr 7fr; /* Lewa kolumna nieco węższa niż prawa z obrazkiem */
        align-items: center; /* Wyśrodkowanie pionowe */
    }
}

/* LEWA KOLUMNA: TYPOGRAFIA */
.hero-text-content .entry-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsywna wielkość fontu */
    font-weight: 800;
    color: var(--ks-navy, #1e293b);
    line-height: 1.15;
    margin-bottom: 30px;
}

/* Meta Autora (Avatar + Imię) */
.post-author-top {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.author-avatar-wrap img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15);
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.author-name {
    font-weight: 700;
    color: var(--ks-slate, #64748b);
    font-size: 1.1rem;
}

/* Meta Daty */
.post-date-meta {
    display: flex;
    align-items: center;
    color: var(--ks-slate, #64748b);
    font-size: 1rem;
    gap: 10px;
}

.post-date-meta i {
    color: var(--ks-blue, #3b82f6);
}

/* PRAWA KOLUMNA: OBRAZEK WYRÓŻNIAJĄCY */
.krystal-featured-image-box {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08); /* Miękki cień */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Efekt "Glass" na kontenerze obrazka */
.glass-effect {
     backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.krystal-featured-image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.krystal-featured-image-box:hover img {
    transform: scale(1.03); /* Lekkie powiększenie przy najechaniu */
}

/* Dekoracyjna fala na dole nagłówka */
.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.hero-wave-bottom svg {
     height: 100px;
     width: 100%;
}


/* --- MAIN CONTENT BODY --- */
.krystal-content-body {
    padding-bottom: 100px;
    position: relative;
    z-index: 3;
    margin-top: -60px; /* Lekkie nasunięcie na falę nagłówka */
}

/* Karta z treścią wpisu */
.entry-content-card {
    background: #ffffff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

/* Stylizacja tekstu wewnątrz wpisu */
.lead-text-enhanced p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.8em;
}

.entry-content h2,
.entry-content h3 {
    color: var(--ks-navy, #1e293b);
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.8em;
    padding-left: 1.5em;
}
.entry-content li {
    margin-bottom: 0.8em;
    color: #334155;
}

/* Stopka wpisu (Tagi) */
.entry-footer {
    border-color: #f1f5f9 !important;
}
.tags-label {
    font-weight: 700;
    color: var(--ks-navy);
    margin-right: 10px;
}
.tags-label i {
    color: var(--ks-green, #22c55e);
}
.entry-tags a {
    display: inline-block;
    background: #f1f5f9;
    color: var(--ks-slate);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: 0.3s;
}
.entry-tags a:hover {
    background: var(--ks-blue);
    color: white;
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    .krystal-hero-split-header {
        padding: 100px 0 120px;
    }
    .hero-grid-split {
        gap: 40px;
    }
    /* Na mobile obrazek nad tekstem (lub odwrotnie, zależy od preferencji) */
    .hero-image-wrapper {
        order: -1; 
    }
    .entry-content-card {
        padding: 30px;
    }
}
/* Stylizacja sekcji */
.krystal-features {
    padding: 100px 0 60px;
    background: #f8fafc; /* Bardzo jasny błękit/szarość */
    position: relative;
    overflow: hidden;
}

/* Fala na górze */
.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider .shape-fill {
    fill: #ffffff; /* Kolor sekcji powyżej (np. slidera) */
}
.krystal-page {
    background-color: #ffffff;
}

.page-hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #ec808840 100%);
    overflow: hidden;
}

.hero-layout-wrapper {
    display: grid;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Układ dzielony (z obrazkiem) */
.page-hero-split .hero-layout-wrapper {
    grid-template-columns: 1fr 1fr;
}

/* Układ centrowany (bez obrazka) */
.page-hero-centered {
    text-align: center;
    padding: 120px 0 120px;
}
.page-hero-centered .hero-layout-wrapper {
    grid-template-columns: 1fr;
}

/* Tytuł i Breadcrumbs */
.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--ks-navy);
    line-height: 1.1;
    margin-top: 15px;
}

.breadcrumb-nav {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ks-slate);
}
.breadcrumb-nav a {
    color: var(--ks-blue);
    text-decoration: none;
}
.breadcrumb-nav i {
    font-size: 0.7rem;
    margin: 0 8px;
    opacity: 0.5;
}

/* Obrazek w ramce */
.image-glass-frame {
    background: rgba(255, 255, 255, 0.4);
    padding: 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.image-glass-frame img {
    border-radius: 20px;
    width: 100%;
}

/* --- CONTENT SECTION --- */
.page-body-container {
    padding: 80px 0 120px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.page-content-card {
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
}

/* Stylizacja standardowych elementów wewnątrz strony */
.entry-content h2 { margin-top: 1.8em; margin-bottom: 0.8em; }
.entry-content p { margin-bottom: 1.5em; }

.page-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.page-hero-wave svg {
    height: 80px;
    width: 100%;
}

/* Responsywność */
@media (max-width: 991px) {
    .page-hero-split .hero-layout-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-hero-image {
        order: -1; /* Obrazek nad tekstem na mobile */
        max-width: 400px;
        margin: 0 auto;
    }
    .page-content-card {
        padding: 30px 20px;
    }
}



/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    .krystal-hero-split-header {
        padding: 100px 0 120px;
    }
    .hero-grid-split {
        gap: 40px;
    }
    /* Na mobile obrazek nad tekstem (lub odwrotnie, zależy od preferencji) */
    .hero-image-wrapper {
        order: -1; 
    }
    .entry-content-card {
        padding: 30px;
    }
}
/* Stylizacja sekcji */
.krystal-features {
    padding: 100px 0 60px;
    background: #f8fafc; /* Bardzo jasny błękit/szarość */
    position: relative;
    overflow: hidden;
}

/* Fala na górze */
.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider .shape-fill {
    fill: #ffffff; /* Kolor sekcji powyżej (np. slidera) */
}
.ks-shop-container {
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* Układ Sidebar + Content */
.ks-shop-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar (Lewa strona) */
.ks-sidebar {
    position: sticky;
    top: 100px; /* Wysokość dopasowana do Sticky Header */
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.ks-sidebar .widget-title {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--ks-navy);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ks-sidebar .widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--ks-gradient);
    border-radius: 4px;
}

/* Styl listy kategorii w sidebarze */
.ks-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ks-sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--ks-border);
    font-weight: 500;
}

.ks-sidebar ul li:last-child { border-bottom: none; }
.ks-sidebar ul li a { transition: var(--ks-transition); }
.ks-sidebar ul li a:hover { color: var(--ks-blue); padding-left: 5px; }

/* Siatka Produktów */
.ks-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Usunięcie domyślnych floatów WooCommerce */
.ks-shop-content ul.products::before,
.ks-shop-content ul.products::after { display: none !important; }

/* Paginacja */
.ks-pagination-wrap {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.ks-pagination-wrap .page-numbers {
    display: flex;
    gap: 10px;
    list-style: none;
}

/* RWD - Responsywność */
@media (max-width: 1150px) {
    .ks-shop-wrapper { grid-template-columns: 1fr; }
    .ks-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
    .ks-shop-content ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    .ks-sidebar { grid-template-columns: 1fr; }
    .ks-shop-content ul.products { grid-template-columns: 1fr !important; }
    .ks-shop-toolbar { 
        flex-direction: column; 
        gap: 15px; 
        border-radius: 20px;
        text-align: center; 
    }
}
/* ==========================================================================
   KRYSTALSPACE – BASE LAYOUT SYSTEM
   Plik: assets/css/base/layout.css
   Rola: Fundament układu, gridy, kontenery, sekcje
   ========================================================================== */

/* =========================
   1. ROOT TOKENS (LAYOUT)
========================= */
:root {
    --ks-container: 1400px;
    --ks-container-narrow: 1200px;
    --ks-gap-xs: 8px;
    --ks-gap-sm: 16px;
    --ks-gap-md: 24px;
    --ks-gap-lg: 40px;
    --ks-gap-xl: 80px;

    --ks-radius-sm: 8px;
    --ks-radius-md: 14px;
    --ks-radius-lg: 24px;

    --ks-shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
    --ks-shadow-hover: 0 20px 50px rgba(0,0,0,0.12);

    --ks-z-header: 1000;
    --ks-z-overlay: 1050;
    --ks-z-drawer: 1100;
}

/* =========================
   2. RESET LAYOUT
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   3. CONTAINERS
========================= */
.container {
    width: 100%;
    max-width: var(--ks-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-narrow {
    max-width: var(--ks-container-narrow);
}

.container-fluid {
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* =========================
   4. GLOBAL SECTIONS
========================= */
section {
    position: relative;
}

.section-padding {
    padding: var(--ks-gap-xl) 0;
}

.section-padding-sm {
    padding: var(--ks-gap-lg) 0;
}

.section-header {
    margin-bottom: var(--ks-gap-lg);
    text-align: center;
}

/* =========================
   5. GRID SYSTEM
========================= */
.grid {
    display: grid;
    gap: var(--ks-gap-md);
}

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

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* =========================
   6. FLEX HELPERS
========================= */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.gap-xs { gap: var(--ks-gap-xs); }
.gap-sm { gap: var(--ks-gap-sm); }
.gap-md { gap: var(--ks-gap-md); }
.gap-lg { gap: var(--ks-gap-lg); }

/* =========================
   7. PAGE STRUCTURE
========================= */
.site-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--ks-z-header);
}

.site-footer {
    margin-top: auto;
}

/* =========================
   8. OVERLAYS & DRAWERS
========================= */
.site-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: var(--ks-z-overlay);
}

body.menu-open .site-overlay,
body.side-cart-open .site-overlay {
    opacity: 1;
    visibility: visible;
}

/* =========================
   9. UTILITIES
========================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.hidden { display: none !important; }

/* =========================
   10. RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: var(--ks-gap-lg) 0;
    }

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

@media (max-width: 600px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}