.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;
    }
}



/* 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;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    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; }

/* Toolbar (Sortowanie i licznik) - Glassmorphism */
.ks-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ks-border);
    margin-bottom: 40px;
}

/* 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;
    }
}
