/* --- 1. ESTETYKA PREMIUM --- */
.dekkor-intro-section {
    text-align: center;
    max-width: 900px;
    margin: 15px auto 30px auto;
    padding: 0 25px;
    position: relative;
}

.dekkor-intro-text {
    font-family: Baskerville, "Libre Baskerville", "Palatino Linotype", serif !important;
    font-size: 18px !important;
    font-style: italic;
    line-height: 1.45 !important;
    color: #555 !important;
    display: inline-block;
}

.dekkor-intro-text::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: #700001;
    margin: 15px auto 0 auto;
    opacity: 0.4;
}

/* --- 2. NAWIGACJA STICKY (Wersja Desktop - CENTROWANIE) --- */
@media (min-width: 768px) {
    .dekkor-nav-wrapper { 
        margin-top: 10px !important; 
        margin-bottom: 25px; 
        text-align: center; 
        width: 100% !important; /* Wymuszenie zajęcia całej szerokości nad produktami */
        display: block;
    }
    .dekkor-scroll-container { 
        display: flex !important; 
        flex-wrap: wrap !important; 
        justify-content: center !important; /* Bezwzględne wyśrodkowanie pigułek */
        gap: 10px; 
        width: 100%;
    }
    .dekkor-nav-spacer, .dekkor-gradient-left, .dekkor-gradient-right { 
        display: none; 
    }
}

/* --- 2. NAWIGACJA STICKY (Wersja Mobile) --- */
@media (max-width: 767px) {
    /* 1. LIKWIDACJA PRZEŚWITU: Skalibrowany 'top' */
    .dekkor-nav-wrapper { 
        position: fixed; 
        top: 66px; 
        left: 0; 
        width: 100%; 
        background: #ffffff; 
        z-index: 9999; 
        box-shadow: 0 2px 8px rgba(0,0,0,0.12); 
        padding: 8px 0 10px 0; 
    }
    
    /* 2. PROPORCJONALNE ZMNIEJSZENIE SPACERA */
    .dekkor-nav-spacer { display: block; height: 50px; }
    
    /* --- KOMPRESJA TEKSTU NA MOBILE --- */
    .dekkor-intro-section { margin-top: 15px; margin-bottom: 15px; padding: 0 10px; }
    .dekkor-intro-text { font-size: 13px !important; padding: 0 5px; line-height: 1.4 !important; }
    .dekkor-intro-text::after { margin-top: 10px; }

    .dekkor-scroll-container { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 12px; padding: 5px 35px 5px 35px !important; scrollbar-width: none; animation: peekMove 2.2s ease-in-out 1.2s; }
    .dekkor-scroll-container::-webkit-scrollbar { display: none; }
    .dekkor-gradient-left, .dekkor-gradient-right { position: absolute; top: 0; width: 45px; height: 100%; z-index: 10; pointer-events: none; }
    .dekkor-gradient-left { left: 0; background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1)); }
    .dekkor-gradient-right { right: 0; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1)); }
}

/* --- ELEMENTY WSPÓLNE NAWIGACJI --- */
.dekkor-scroll-container a { flex: 0 0 auto; display: inline-block; background: #ffffff; border: 1px solid #dcdcdc; border-radius: 25px; color: #333; font-family: 'Open Sans', Arial, sans-serif; font-size: 13px; font-weight: 600; padding: 7px 18px; text-decoration: none; box-shadow: 0 2px 4px rgba(0,0,0,0.05); white-space: nowrap; }

.dekkor-scroll-container .btn-back { background-color: #fdf7f0; border-color: #fbb450; color: #700001; }
.dekkor-scroll-container a:hover { border-color: #700001; color: #700001; }

@keyframes peekMove { 0% { transform: translateX(0); } 25% { transform: translateX(-100px); } 50% { transform: translateX(0); } 100% { transform: translateX(0); } }

/* --- 3. TYTUŁ KATEGORII (H1) - ZAKTUALIZOWANA ESTETYKA --- */
.dekkor-category-title {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 26px; 
    font-weight: 700; 
    /* KLUCZOWA ZMIANA: Z czarnego (#222222) na głęboki bordowy premium (#700001) */
    color: #700001;
    margin: 0;
    /* Zwiększony letter-spacing dla lepszej hierarchii wizualnej */
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    padding-bottom: 5px; /* Przestrzeń pod linię, jeśli kiedyś zdecydujesz się dodać ::after */
}

@media (max-width: 767px) {
    .dekkor-category-title {
        font-size: 22px; 
        padding-top: 10px;
        padding-bottom: 15px;
    }
}