/* ========================================= */
/* CSS PRO STRÁNKU PRODEJNA - SPS STŘECHY    */
/* Verze: FINAL ZAROVNÁNÍ MOBILU             */
/* ========================================= */

:root {
  --sps-bg-main: transparent; /* Světlé sekce */
  --sps-bg-alt: #333333;      /* Tmavé sekce */
  
  --sps-red: #e12450;
  --sps-text: #ffffff;
  --sps-text-muted: #d6d6d6;
}

/* Hlavní kontejner */
.sps-prodejna-container {
  color: var(--sps-text);
  font-family: inherit; 
  max-width: 100%;
  overflow-x: hidden; 
  box-sizing: border-box;
}

.sps-prodejna-container * {
  box-sizing: border-box;
}

.sps-intro {
    font-size: 30px;
    line-height: 1.6;
    margin-bottom: 60px;
    font-weight: 400;
    color: #fff;
}

/* --- Layout sekcí --- */

.vzory {
    background: var(--sps-bg-main);
    padding: 60px 0;
}

/* Tmavé sekce (PC verze - roztahování přes celou šířku) */
.vz-panel {
    background: var(--sps-bg-alt);
    padding: 80px 20px;
    margin: 0 calc(50% - 50vw); 
    width: 100vw;
}

.vz-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid systém */
.vz-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    gap: 60px;
    align-items: center;
}

/* Střídání stran na PC */
.vz-panel .vz-row .vz-text { order: 2; }
.vz-panel .vz-row .vz-carousel { order: 1; }

/* --- Typografie --- */
.vz-h2 {
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    margin-top: 0;
    margin-bottom: 24px;
    position: relative;
    line-height: 1.2;
}

.vz-h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--sps-red);
    margin-top: 15px;
    border-radius: 2px;
}

.vz-list {
    margin: 0;
    padding-left: 50px; /* Odsazení na PC */
    line-height: 1.8;
    font-size: 16px;
}

.vz-list li {
    color: var(--sps-text-muted);
    margin-bottom: 8px;
}

/* --- CAROUSEL (Slider) --- */
.vz-carousel {
    position: relative;
    padding: 0;
    width: 100%;
}

.vz-carousel .viewport {
    overflow: hidden;
    padding-bottom: 15px;
}

.vz-carousel .track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.vz-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 loga vedle sebe */
    gap: 20px;
}

/* Karta loga */
.vz-logo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vz-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Skryté inputy */
.vz-carousel input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* --- Tečky --- */
.vz-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    height: 14px;
}

.vz-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.vz-dot:hover {
    background: rgba(255,255,255,0.5);
}

/* Aktivní tečka - Červená */
.vz-carousel input[type=radio]:nth-of-type(1):checked ~ .vz-dots .vz-dot:nth-child(1),
.vz-carousel input[type=radio]:nth-of-type(2):checked ~ .vz-dots .vz-dot:nth-child(2),
.vz-carousel input[type=radio]:nth-of-type(3):checked ~ .vz-dots .vz-dot:nth-child(3),
.vz-carousel input[type=radio]:nth-of-type(4):checked ~ .vz-dots .vz-dot:nth-child(4),
.vz-carousel input[type=radio]:nth-of-type(5):checked ~ .vz-dots .vz-dot:nth-child(5) {
    background: var(--sps-red);
    transform: scale(1.1);
}

/* Posuv slideru */
.vz-carousel input[type=radio]:nth-of-type(1):checked ~ .viewport .track { transform: translateX(0); }
.vz-carousel input[type=radio]:nth-of-type(2):checked ~ .viewport .track { transform: translateX(-100%); }
.vz-carousel input[type=radio]:nth-of-type(3):checked ~ .viewport .track { transform: translateX(-200%); }
.vz-carousel input[type=radio]:nth-of-type(4):checked ~ .viewport .track { transform: translateX(-300%); }
.vz-carousel input[type=radio]:nth-of-type(5):checked ~ .viewport .track { transform: translateX(-400%); }

/* --- RESPONSIVITA (MOBILNÍ ZAŘÍZENÍ) --- */
@media (max-width: 980px) {
    
    /* 1. Hlavní rozložení na sloupce */
    .vz-row {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    /* 2. Zrušení PC prohazování stran */
    .vz-panel .vz-row .vz-text { order: unset; }
    .vz-panel .vz-row .vz-carousel { order: unset; }
    
    /* 3. Paddingy a roztahování */
    .vz-panel {
        padding: 50px 15px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .vzory {
        padding: 50px 0;
    }
    
    /* 4. KONTEJNER PRO TEXT - CENTROVÁNÍ OBSAHU */
    .vz-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Toto vycentruje nadpis, ale neovlivní text uvnitř p/ul pokud jim dáme vlastní styl */
    }

    /* Nadpis vycentrovaný */
    .vz-h2 {
        font-size: 26px;
        text-align: center;
        width: 100%;
    }
    
    /* Čárka pod nadpisem na střed */
    .vz-h2::after {
        margin: 15px auto 0 auto;
    }
    
    /* 5. OPRAVA ZAROVNÁNÍ SEZNAMU (BULLETS) */
    .vz-list {
        display: block;         /* Chová se jako blok, ne inline */
        width: 100%;            /* Roztáhne se na šířku */
        max-width: 100%;        /* Jistota */
        padding-left: 25px;     /* Pevné odsazení zleva pro puntíky */
        padding-right: 5px;     /* Odsazení zprava */
        text-align: left;       /* Text vždy zarovnaný doleva */
        box-sizing: border-box;
        margin: 0;
    }
    
    /* Pokud jsou tam nějaké odstavce (p), taky zarovnat vlevo */
    .vz-text p {
        text-align: left;
        width: 100%;
        padding: 0 5px;
    }
    
    /* Úvodní text nahoře - ten může zůstat na střed */
    .sps-intro {
        font-size: 20px;
        text-align: center;
        margin-bottom: 40px;
        padding: 0 10px;
    }
}