/* ==========================================================================
   CICHY HOME DESIGN - SHOP STYLESHEET
   --------------------------------------------------------------------------
   0.  Globalne Tweaki
   1.  Ogólne Ustawienia Sklepu (Layout)
   2.  Koncepcja: Galeria Vintage (Kategorie)
   3.  Panel Filtrów i Sortowania
   4.  Grid Produktów (Katalog)
   5.  Strona Produktu (Szczegóły)
   6.  Responsywność (Media Queries)
   ========================================================================== */

/* ========================================= */
/* --- 0. GLOBALNE TWEAKI SKLEPU --- */
/* ========================================= */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ========================================= */
/* --- 1. OGÓLNE USTAWIENIA SKLEPU --- */
/* ========================================= */

.shop-page-content {
    /* Odstęp od góry, bo header jest absolute/fixed */
    padding-top: 140px; 
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-color: var(--c-bg-main);
}

.shop-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

/* --- Baner Hero (Opcjonalny na podstronach kategorii) --- */
.category-hero {
    height: 40vh;
    min-height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 40px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.4);
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    will-change: opacity;
}

.category-title-hero {
    font-family: var(--font-head);
    font-size: 4.5rem; color: var(--c-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px; opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.category-description-hero {
    font-size: 1.2rem; font-weight: 300; max-width: 700px; margin: 0 auto;
    color: var(--c-text-main); opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

/* ========================================= */
/* --- 2. KONCEPCJA: GALERIA VINTAGE --- */
/* ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 równe kolumny */
    gap: 30px; /* Odstępy między obrazami */
    height: 75vh; /* Wysokość galerii */
    min-height: 600px;
}

/* --- KARTA BAZOWA --- */
.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
    background-color: #000;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    transition: transform 0.5s var(--ease-luxury);
}

/* --- TŁO (OBRAZ) --- */
.bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    
    /* STAN SPOCZYNKU: Ciemniejszy i czarno-biały */
    filter: grayscale(100%) brightness(0.6); 
    transform: scale(1.05);
    transition: filter 0.6s ease, transform 0.8s ease;
}

/* --- GRADIENT PODBIJAJĄCY TEKST (Dla Czytelności) --- */
.gallery-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Cień od dołu do góry */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
    z-index: 2; 
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* --- ZŁOTA RAMKA (Ukryta domyślnie) --- */
.card-border {
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid var(--c-gold);
    z-index: 3;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s var(--ease-luxury);
    box-shadow: 0 0 15px rgba(0,0,0,0.5); 
}

/* --- TREŚĆ (Napisy) --- */
.card-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: var(--c-white);
}

.card-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--c-gold);
    margin-bottom: 15px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.card-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,1);
    transition: transform 0.5s var(--ease-luxury);
}

.card-desc {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 340px;
    margin-top: 20px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.card-btn {
    margin-top: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--c-gold);
    padding-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- INTERAKCJA (HOVER) --- */

.gallery-card:hover {
    transform: translateY(-10px);
}

.gallery-card:hover .bg-img {
    /* Kolor wraca, ale nie na 100% jasności (dla kontrastu napisów) */
    filter: grayscale(0%) brightness(0.85); 
    transform: scale(1);
}

.gallery-card:hover::after {
    /* Przyciemniamy dół jeszcze mocniej */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
}

.gallery-card:hover .card-border {
    opacity: 1;
    transform: scale(1);
}

.gallery-card:hover .card-title {
    transform: translateY(-20px) scale(0.9);
}

.gallery-card:hover .card-subtitle,
.gallery-card:hover .card-desc,
.gallery-card:hover .card-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================= */
/* --- 3. PANEL FILTRÓW I SORTOWANIA --- */
/* ========================================= */

.controls-placeholder { display: none !important; }

.shop-controls-panel {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    background-color: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filters-wrapper { display: flex; gap: 30px; }
.filter-sort { display: flex; align-items: center; }
.filter-sort label {
    margin-right: 12px; font-size: 0.85rem; color: var(--c-text-muted);
    text-transform: uppercase; letter-spacing: 1.5px;
}
.filter-sort select {
    background-color: var(--c-bg-panel); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-text-main); 
    padding: 10px 35px 10px 15px;
    border-radius: 2px;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
.filter-sort select option {
    background-color: #1a1a1a; 
    color: #e0e0e0; 
    padding: 10px;
}

/* ========================================= */
/* --- 4. GRID PRODUKTÓW (KATALOG) --- */
/* ========================================= */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px; padding-bottom: 80px;
    content-visibility: auto; contain-intrinsic-size: 1000px; 
}
.no-products {
    grid-column: 1 / -1; text-align: center; padding: 60px;
    font-size: 1.2rem; color: var(--c-text-muted);
    border: 1px dashed rgba(255,255,255,0.1);
}
/* --- Karta Produktu (POPRAWKA NA FIOLETOWE LINKI) --- */
.product-card,
.product-card:visited,
.product-card:active,
.product-card:focus {
    background-color: var(--c-bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
    cursor: pointer; position: relative; overflow: hidden;
    opacity: 0; will-change: transform;
    
    /* TO NAPRAWIA FIOLET: */
    color: var(--c-white) !important; 
    text-decoration: none !important;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.4);
    z-index: 2;
}
.product-img-wrapper {
    width: 100%; aspect-ratio: 4/5;
    overflow: hidden; position: relative; background-color: #1a1a1a;
}
.product-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.95;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform;
}
.product-card:hover .product-img-wrapper img { transform: scale(1.08); opacity: 1; }
.product-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay { opacity: 1; }
.view-btn {
    font-family: var(--font-head); color: var(--c-white); border: 1px solid var(--c-white);
    padding: 10px 24px; letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.9rem; transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .view-btn { transform: translateY(0); }
.product-info {
    padding: 25px 20px; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, var(--c-bg-panel) 0%, #161616 100%);
    flex-grow: 1; display: flex; flex-direction: column; justify-content: center;
}
.product-title {
    font-family: var(--font-head); font-size: 1.5rem; font-weight: 400;
    color: var(--c-text-main) !important; /* Dodaj !important */
    margin-bottom: 8px; line-height: 1.2;
    transition: color 0.3s ease;
}
.product-card:hover .product-title { color: var(--c-white); }
.product-meta {
    font-family: var(--font-body); font-size: 0.75rem; color: var(--c-text-muted);
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px;
}
.product-price {
    font-family: var(--font-body); font-weight: 300; font-size: 1.1rem;
    color: #c5a059; letter-spacing: 1px;
}
.product-badge {
    position: absolute; top: 15px; right: 15px;
    background: rgba(20, 20, 20, 0.9); color: #e0e0e0;
    padding: 5px 12px; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.1); z-index: 2;
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card.animate-in {
    animation: slideUpFade 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ========================================= */
/* --- 5. STRONA PRODUKTU (ULTRA CLEAN) --- */
/* ========================================= */
.product-page {
    padding: 140px 20px 80px;
    min-height: 100vh;
    display: flex; justify-content: center;
    position: relative; z-index: 5;
    
    /* Czysty, ciemny gradient - bez zdjęcia */
    background: linear-gradient(to bottom, #141414 0%, #0d0d0d 100%);
    
    content-visibility: auto; contain-intrinsic-size: 1px 1200px;
}

.product-details-container {
    display: grid; grid-template-columns: 1.4fr 1fr;
    max-width: 1300px; width: 100%; gap: 80px; align-items: start;
}

/* --- Lewa Kolumna --- */
.product-gallery { position: relative; }

.main-image-frame {
    width: 100%; height: 700px;
    background-color: #050505;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; margin-bottom: 25px;
    will-change: transform; transform: translateZ(0); z-index: 1;
}
/* Lekki cień (gradient) zamiast box-shadow */
.main-image-frame::after {
    content: ''; position: absolute;
    bottom: -20px; left: 5%; width: 90%; height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
    z-index: -1; pointer-events: none;
}
.main-image-frame img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.main-image-frame:hover img { transform: scale(1.03); }

.thumbnails {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 15px;
}
.thumb-img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1); opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.thumb-img:hover, .thumb-img.active {
    opacity: 1; border-color: #c5a059; transform: translateY(-2px);
}

/* --- Prawa Kolumna (Sticky) --- */
.product-info-panel {
    position: -webkit-sticky; position: sticky; top: 120px;
    display: flex; flex-direction: column; padding: 40px;
    background-color: #161616; /* Solidny kolor */
    border: 1px solid rgba(255,255,255,0.08); border-top: 2px solid #c5a059;
    will-change: transform; transform: translate3d(0,0,0);
}

.product-category-label {
    font-family: var(--font-body); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 4px; color: #c5a059;
    margin-bottom: 20px; opacity: 0.9;
}
.product-title-detail {
    font-family: var(--font-head); font-size: 3rem; font-weight: 400;
    line-height: 1.1; margin-bottom: 30px; color: var(--c-white);
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px;
}
.product-meta-price {
    display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px;
}
.price-detail {
    font-size: 2.2rem; font-weight: 300; color: var(--c-white);
    font-family: var(--font-body); letter-spacing: -1px;
}
.currency-symbol { font-size: 1.2rem; color: var(--c-text-muted); margin-left: 5px; }
.status-badge {
    padding: 6px 16px; border: 1px solid; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px; border-radius: 50px;
}
.status-badge.available { color: #27ae60; border-color: rgba(39, 174, 96, 0.3); background: rgba(39, 174, 96, 0.05); }
.status-badge.sold { color: #c0392b; border-color: rgba(192, 57, 43, 0.3); text-decoration: line-through; opacity: 0.7; }

.product-description {
    margin-bottom: 40px; font-weight: 300; color: #d0d0d0;
    line-height: 1.8; font-size: 1rem; text-align: justify;
}
.product-description::first-letter {
    float: left; font-family: var(--font-head); font-size: 3.5rem;
    line-height: 0.8; padding-right: 12px; color: #c5a059;
}
.product-specs {
    margin-bottom: 40px; background: rgba(255,255,255,0.02); padding: 20px;
}
.spec-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--c-text-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }
.spec-value { color: var(--c-white); font-family: var(--font-body); font-weight: 500; }

.purchase-actions { margin-top: auto; }

.btn-full-width {
    width: 100%; display: block; background-color: transparent;
    color: #c5a059; border: 1px solid #c5a059; padding: 18px 0;
    font-size: 1rem; text-transform: uppercase; letter-spacing: 3px;
    text-align: center; cursor: pointer; position: relative; overflow: hidden; z-index: 1;
    transition: color 0.3s ease, transform 0.2s ease;
}
.btn-full-width:hover { color: #000; }
.btn-full-width::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background-color: #c5a059; transition: width 0.3s ease-out; z-index: -1;
}
.btn-full-width:hover::before { width: 100%; }
.btn-disabled {
    width: 100%; padding: 18px 0; background-color: rgba(255,255,255,0.05);
    color: var(--c-text-muted); border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase; letter-spacing: 2px; text-align: center; cursor: not-allowed;
}

/* ========================================= */
/* --- 6. RESPONSYWNOŚĆ (MEDIA QUERIES) --- */
/* ========================================= */

@media (max-width: 1024px) {
    /* --- Galeria na mniejszych ekranach --- */
    .gallery-grid {
        grid-template-columns: 1fr; /* Jedna kolumna */
        height: auto; 
        gap: 40px;
    }

    .gallery-card {
        height: 500px; /* Stała wysokość karty */
    }

    .bg-img {
        filter: grayscale(20%) brightness(0.8);
    }
    
    .card-title {
        font-size: 3rem;
        transform: translateY(-10px);
    }
    
    .card-desc, .card-btn {
        opacity: 1;
        transform: translateY(0);
    }
    
    .card-border {
        opacity: 0.5; 
        border-color: rgba(255,255,255,0.2);
    }
}

@media (max-width: 992px) {
    .product-details-container { grid-template-columns: 1fr; gap: 40px; }
    .product-info-panel { position: static; padding: 30px; transform: none; }
    .main-image-frame { height: 500px; }
    .category-title-hero { font-size: 3rem; }
}

@media (max-width: 768px) {
    .shop-controls-panel {
        flex-direction: column; 
        align-items: stretch; 
        gap: 15px;
        padding: 20px;
    }

    .filters-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .filter-sort {
        display: flex;
        flex-direction: column; 
        align-items: flex-start;
        width: 100%;
    }

    .filter-sort label {
        margin-bottom: 5px;
        font-size: 0.85rem;
    }

    .filter-sort select {
        width: 100%; 
        padding: 12px;
    }
    
    .shop-page-content {
        padding-top: 100px; /* Mniejszy odstęp na mobile */
    }
}

@media (max-width: 480px) {
    .product-title-detail { font-size: 2.2rem; }
    .main-image-frame { height: 350px; }
    .price-detail { font-size: 1.8rem; }
    .products-grid { grid-template-columns: 1fr; }
}


/* =======================================================
   EFEKT WOW: NOWA STRONA KATEGORII (Appended)
   ======================================================= */

/* --- Layout Strony Kategorii --- */
.category-page-content {
    padding-top: 140px; /* Miejsce na header */
    min-height: 100vh;
    background-color: var(--c-bg-main);
}

/* --- 1. HERO TYPOGRAFICZNE --- */
.category-header-section {
    padding: 60px 20px 40px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Ozdobna linia pionowa nad tytułem */
.category-header-section::before {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background-color: var(--c-gold);
    margin: 0 auto 20px auto;
    opacity: 0.6;
}

.cat-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--c-gold);
    margin-bottom: 10px;
    animation: fadeIn 1s ease-out;
}

.cat-title {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 400; /* Lżejszy font wygląda bardziej elegancko */
    color: var(--c-white);
    line-height: 1;
    margin-bottom: 25px;
    font-style: italic; /* Kursywa dodaje artystycznego sznytu */
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.cat-description {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

/* --- 2. PASEK KONTROLNY (REFINED) --- */
.refined-controls-bar {
    max-width: 1400px;
    margin: 40px auto 60px auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent; /* Brak tła pudełka */
}

/* Lewa strona - Licznik */
.items-counter {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--c-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.items-counter strong {
    color: var(--c-white);
    font-weight: 400;
    border-bottom: 1px solid var(--c-gold); /* Podkreślenie liczby */
    padding-bottom: 2px;
}

/* Prawa strona - Sortowanie (Custom Look) */
.custom-select-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-select-wrapper label {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    font-family: var(--font-head);
    font-style: italic;
}

.select-container {
    position: relative;
    display: inline-block;
}

.select-container select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-white);
    padding: 10px 40px 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 50px; /* Zaokrąglone "pastylki" */
    transition: all 0.3s ease;
}

.select-container select:hover,
.select-container select:focus {
    border-color: var(--c-gold);
    background-color: rgba(255, 255, 255, 0.05);
    outline: none;
}

/* Strzałka SVG */
.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--c-gold);
    width: 14px;
    height: 14px;
}

.select-container select option {
    background-color: #121212;
    color: #fff;
    padding: 10px;
}

/* --- 3. ANIMACJA WEJŚCIA PRODUKTÓW --- */
/* Produkty pojawiają się jeden po drugim */
.product-card {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Opóźnienia dla kolejnych elementów (do 10 sztuk) */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .category-page-content {
        padding-top: 100px;
    }
    
    .cat-title {
        font-size: 3rem;
    }
    
    .refined-controls-bar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 20px;
        margin-top: 20px;
    }
    
    .controls-right, .custom-select-wrapper, .select-container, select {
        width: 100%;
    }
    
    .custom-select-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .select-arrow {
        right: 20px;
    }
}