/*
Theme Name: Enhanced Clean Theme
Description: A unique, modern WordPress theme with smart reusable components
Author: Your Name
Version: 2.0
License: GPL v2 or later
Text Domain: clean-theme
*/

/* ================================
   DESIGN TOKENS
   ================================ */
   :root {
    /* Core Colors */

    --primary: #1D3557;
    --accent: #457B9D;
    --secondary: #ECEFF1;
    --text: #37474F;
    --text-light: #78909C; /* Użyj jaśniejszego odcienia --text */
    --text-lighter: #9EAFB7; /* Użyj jeszcze jaśniejszego odcienia */
    --white: #FFFFFF;
    --border: #CFD8DC;

    
    /* Unique Color Combinations */
    --gradient-hero: linear-gradient(135deg, rgba(26,26,26,0.8) 0%, rgba(212,175,55,0.2) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-accent: linear-gradient(90deg, var(--accent) 0%, #a8dadc 100%);
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 2rem;
    --container-width: 1400px;
    --content-width: 800px;
    --gap: 2rem;
    
    /* Unique Design Elements */
    --border-radius: 15px;
    --border-radius-lg: 20px;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 30px 60px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ================================
   UNIQUE TYPOGRAPHY SYSTEM
   ================================ */
.display-text {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subheadline {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

.text-accent {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ================================
   SMART LAYOUT COMPONENTS
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.content-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* ================================
   UNIQUE BUTTON SYSTEM
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.btn-outline:hover {
     border-color: var(--accent);
      color: var(--accent);
}

.btn-outline:hover span{
    color: var(--accent);
}

/* ================================
   UNIQUE CARD SYSTEM
   ================================ */

.brand-page {
    margin: 2rem 0;
}

.brand-description {
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 15/16;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-item:hover .card-image  img {
    transform: scale(1.05);
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.card-content h3 a {
   color: var(--accent);
   text-decoration: none;
}

.card-content p {
    color: var(--text-light);
    line-height: 1.2;
}

/* ================================
   HEADER SYSTEM
   ================================ */
.site-header {
    background: #fff;
    padding: 10px 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    transition: var(--transition);  
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

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

.site-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-title:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .site-header {
        padding: 0;
    }
}
 
/* ================================
   HERO SECTION - ZOPTYMALIZOWANY
   ================================ */
 
/* Definiujemy animację raz, jest dobra */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-page-hero {
    min-height: 80vh; 
    position: relative;
    padding: 5rem 0;
    background-image: url('https://krolestwomebli.pl/wp-content/uploads/2025/10/zdjecieglownekm.webp'); 
    background-size: cover;
    background-position: center;
    
    color: var(--white); /* Cała sekcja używa białego tekstu */
    text-align: center;
    display: flex;
    align-items: center; 
    justify-content: center;
}

/* KRYTYCZNE ULEPSZENIE: Overlay dla poprawy czytelności */
.main-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Kinowy gradient od dołu, zapewnia, że tekst będzie czytelny */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 70%); 
    z-index: 1;
}

.hero-content {
    /* Upewnij się, że treść jest na wierzchu */
    position: relative;
    z-index: 2; 
    max-width: 900px; /* Zwiększenie max-width, by nagłówek był szerszy */
    padding: 0 2rem;
    animation: fadeInUp 1.2s ease-out; /* Lekko spowolniona animacja */
}

.hero-content .display-text {
    margin-bottom: 1rem;
    /* Użycie zmiennych z style.css: większy font i lżejsza waga */
    font-size: 4.5rem; 
    font-weight: 300; 
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Silniejszy cień dla pewności */
}

.hero-content .subheadline {
    margin-bottom: 2.5rem;
    /* Używamy białego, ale z lekką przezroczystością, co wygląda lepiej niż czysty biały */
    color: rgba(255, 255, 255, 0.9); 
    font-size: 1.3rem; /* Lekkie powiększenie tekstu */
}

/* Poprawione przyciski */
.main-page-hero .btn-primary {
    background: var(--gradient-accent); 
    border-color: var(--accent);
    color: var(--white);
    text-shadow: none;
    transition: var(--transition);
}
.main-page-hero .btn-primary:hover {
    /* Dodajemy efekt unoszenia (lift) i cień */
    transform: translateY(-3px); 
    box-shadow: var(--shadow-hover); /* Używamy zmiennej cienia */
    opacity: 0.9;
    border-color: var(--accent); /* Utrzymujemy kolor granicy */
}

/* Opcjonalnie: Ulepszona responsywność tekstu */
@media (max-width: 768px) {
    .main-page-hero {
        min-height: 65vh; 
    }
    .hero-content .display-text {
        font-size: 3rem;
        letter-spacing: 0;
    }
}
/* ================================
   COLLECTION SECTION
   ================================ */
.collections-section {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header .headline {
    margin-bottom: 1rem;
}

/* ================================
   FEATURED SECTION
   ================================ */
.featured-section {
    background: var(--secondary);
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.featured-box {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
}

.featured-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.featured-image:hover img {
    transform: scale(1.02);
}

/* ================================
   CATEGORY SECTION
   ================================ */
.category-item {
    text-align: center;
    padding: 2rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
}

.category-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.category-item:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.footer-text {
	display:flex;
	justify-content: space-between;
}

.footer-link {
	color:var(--white);
	text-decoration: none;
}
/* ================================
   UTILITY CLASSES
   ================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* ================================
   PRODUCT PAGE STYLES
   ================================ */

/* Product Header */
.product-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

/* Product Images */
.product-images .card {
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-images .card:hover {
    border-color: var(--accent);
}

.product-main-link img {
    transition: var(--transition);
}

.product-main-link:hover img {
    transform: scale(1.02);
}

.product-empty-image {
    height: 500px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-box {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
}

 
/* Product Thumbnails */
.product-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
}

.card.product-thumbnail-card {
        max-width: 150px;
}

.product-thumbnail-card {
    aspect-ratio: 1;
}

.product-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Price Section */
.price-display {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.price-display .display-text {
    margin-bottom: 0;
}

.price-currency {
    font-size: 0.6em;
}

.price-original {
    text-decoration: line-through;
    font-size: 1.2rem;
}

.omnibus-price {
    margin-bottom: 1rem;
}

/* Product Details */
.product-details-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-details-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.product-details-row:last-child {
    border-bottom: none;
}

/* Product Description */
.product-description-header {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Characteristics */
.characteristics-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.characteristics-grid {
    column-count: 2;
    column-gap: 15px;
}

/* Care Tips */
.care-tips-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.care-tips-list {
    list-style: none;
    padding: 0;
}

.care-tips-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: var(--transition);
}

/* Tags Section */
.product-tags-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.product-tags-section {
    margin: 2rem;
}
.product-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
        justify-content: center;
}

.product-tag-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    letter-spacing: normal;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: 2px solid;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.product-tag-btn:hover {
 border-color: var(--accent);
 color: var(--accent);
}

/* Related Content */
.related-section,
.related-products,
.seasonal-products {
    position: relative;
}

.related-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.related-content-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Related Product Cards */
.related-product-card .card-image {
    aspect-ratio: 15/16;
    position: relative;
    overflow: hidden;
}

.related-product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
/* 
.related-product-card:hover .card-image img {
    transform: scale(1.05);
} */

.related-product-brand {
    margin-bottom: 0.5rem;
}

.related-product-title {
    font-size: 1rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-price {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.related-empty-image {
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Call to Action Section */
.cta-section .card {
    background: var(--gradient-hero);
    color: var(--white);
}

.cta-section .headline,
.cta-section .subheadline {
    color: var(--white);
}

.cta-section .subheadline {
    color: rgba(255, 255, 255, 0.9);
}

/* Brand Tags Section */
.brand-tags-header {
    font-size: 1.5rem;
}

.brand-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-tag-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.5rem;
    }
 
    
    .product-tags-grid,
    .brand-tags-grid {
        gap: 0.25rem;
    }
    
    .product-tag-btn,
    .brand-tag-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .related-content-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-box {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
   .characteristics-grid {
           column-count: 1;
    }
}

@media (max-width: 480px) {
    .product-empty-image {
        height: 300px;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }
    
    .care-tips-item {
        flex-direction: column;
        gap: 0.25rem;
    }
 
}


/* ================================
   TAG ARCHIVE PAGE STYLES
   ================================ */

/* Archive Header */
.archive-header .display-text {
    text-transform: uppercase;
}

.archive-header .subheadline {
    margin-top: 1rem;
}

/* Products Archive Grid */
.products-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Cards */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-image {
    position: relative;
    aspect-ratio: 4/5;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Card Content */
.product-brand {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1rem;
    flex: 1;
}

.product-title .headline {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Post Cards */
.post-card .headline {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
}

.post-read-more {
    margin-top: 1rem;
}

.post-read-more .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* No Results Card */
.no-results-card {
    grid-column: 1 / -1;
}

/* Pagination Section */
.pagination-section {
    text-align: center;
    margin-top: 2rem;
}

/* Related Tags Section */
.related-tags-section {
    margin-top: 2rem;
}

.related-tags-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-grid .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    letter-spacing: normal;
}

/* Empty state styling */
.empty-state {
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-price-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .tags-grid {
        gap: 0.25rem;
    }
    
    .tags-grid .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-card .card-content {
        padding: 1rem;
    }
    
    .product-brand {
        font-size: 0.8rem;
    }
    
    .product-title .headline {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}

/* ================================
   404 ERROR PAGE STYLES
   ================================ */

/* Error Page Container */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

/* Error Content */
.error-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    margin: 0 auto;
}

/* 404 Number */
.error-number {
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 2rem;
    text-shadow: 6px 5px 4px rgba(0,0,0,0.1);
}

/* Error Title */
.error-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Error Description */
.error-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.error-actions .btn {
    min-width: 160px;
}
 
/* Floating Elements */
.error-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.error-decoration-1 {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.error-decoration-2 {
    top: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--accent-alt);
    border-radius: 30%;
    animation: float 4s ease-in-out infinite reverse;
}

.error-decoration-3 {
    bottom: 15%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 20%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
  
/* Responsive Design */
@media (max-width: 768px) {
    .error-number {
        font-size: 8rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .error-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .error-page {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .error-content {
        padding: 0 1rem;
    }
    
    .error-number {
        font-size: 6rem;
        margin-bottom: 1rem;
    }
    
    .error-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .error-number,
    .error-decoration-1,
    .error-decoration-2,
    .error-decoration-3 {
        animation: none;
    }
  
}


/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .display-text {
        font-size: 2.5rem;
    }
    .subheadline {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .category-item {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .featured-box {
        grid-template-columns: 1fr;
    }

    .related-product-card .card-image,
    .product-card .card-image ,
    .card-image {
        aspect-ratio: 1 / 1;
        max-width: 200px;
        margin: 0 auto;
    }

    .featured-image img {
        height: 400px;
        object-fit: contain;
    }
}

/* ====================================================================
   SEKCJA WIZUALNA Z CYTATEM (VISUAL QUOTE SECTION)  
   ==================================================== */

.visual-quote-content {
    max-width: 800px; 
    margin: 0 auto;
    background: var(--gradient-accent);  
    padding: 2rem 1.5rem;  
    color: var(--white); 
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    border-radius: 30px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.visual-quote-content .quote-text {
    font-size: 2rem;  
    font-weight: 300; 
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.visual-quote-content .text-accent {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


 /* ====================================================================
   SEKCJA KATEGORII - ZOPTYMALIZOWANA (UKŁAD 2x2)
   ==================================================== */

.category-nav-grid {
  display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 350px);  
    gap: 1.5rem;
    margin-top: 3rem;
}

/* WSPÓLNE STYLE KARTY */
.category-nav-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-radius: var(--border-radius-lg); /* Większy border-radius z :root */
    display: flex;
    align-items: flex-end; 
    color: var(--white);
    transition: var(--transition); 
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft); 
}

.category-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%);
    transition: opacity 0.3s ease;
}

.category-nav-card:hover {
    transform: scale(1.02);  
    box-shadow: var(--shadow-hover); 
}

.category-nav-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%);
}

.card-overlay-content {
  position: relative;
    z-index: 2;
    padding: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    width: 100%;
}

.card-title {
     font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-desc {
   font-size: 1rem;
    color: var(--white);
}


/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .category-nav-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 280px);  
        gap: 1.5rem;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
}



/* ====================================================================
   KARTY POSTÓW DLA WNĘTRZ (DESIGN POST CARDS)
   ==================================================== */

   .latest-blog-grid {
     display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
   }

 


.post-card-design {
    border-radius: 0; 
    box-shadow: none;
    border: 1px solid var(--border); 
    transition: var(--transition);
}

.post-card-design:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Delikatny cień przy hover */
}

.post-card-design .category-label a {
    background: rgba(212,175,55,0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.post-card-design .post-card-thumb img {
    height: 250px;
    object-fit: cover;
}

.post-card-design  .post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card-design .post-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
        margin-top: 0.5rem;
    color: var(--primary);
}

.post-card-design .post-card-title a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.post-card-design .post-card-title a:hover {
    color: var(--accent);
}


.post-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
}
 
 @media (max-width: 992px) {
    .latest-blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
            justify-items: center;
    }
    .post-card-design {
        max-width: 400px;
    }
   
} 

/* ================================
   PERFORMANCE OPTIMIZATIONS
   ================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-image img,
.featured-image img {
    will-change: transform;
}

/* Preload critical animations */
.btn,
.card,
.category-item {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



