/* Informační proužek AngelEyes (FM, 24. 11. 2026) – podle info_prouzek_fm_2.css z Gigamatu,
   upraveno pro šablonu Opal (tomashlad): ta informační lištu vykresluje jen jako .site-msg.information
   (na desktopu šedý pruh nad hlavičkou, na mobilu vyskakovací okno uprostřed obrazovky).
   Text se vkládá do informační lišty v administraci Shoptetu:
   <span class="ae-strip-text ae-strip-text--bf">…</span><a class="ae-strip-btn" href="…">…</a>
   Bez třídy ae-strip-btn v textu se nic z tohoto souboru neuplatní. */

.site-msg.information:has(.ae-strip-btn) {
    padding: 8px 0;
}

.site-msg.information .text:has(> .ae-strip-btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    white-space: nowrap;
}

.ae-strip-text {
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ae-strip-text strong {
    font-weight: 900;
    letter-spacing: .5px;
}

.ae-strip-btn {
    flex: 0 0 auto;
    display: inline-block;
    background: #3CA83B;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.ae-strip-btn:hover,
.ae-strip-btn:focus {
    background: #fff;
    color: #141414 !important;
    transform: translateY(-1px);
}

.ae-strip-btn:active {
    transform: scale(.96);
}

/* Mobil: Opal z lišty dělá vyskakovací okno uprostřed obrazovky – vrátíme ji do pruhu nahoře.
   Text a tlačítko vedle sebe, text max. 2 řádky, tlačítko vpravo. */
@media (max-width: 767px) {
    .site-msg.information:has(.ae-strip-btn) {
        position: relative;
        top: 0 !important;
        left: 0;
        transform: none;
        width: 100%;
        z-index: 1;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
        height: 50px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .site-msg.information:has(.ae-strip-btn) .container {
        width: 100%;
    }

    /* hlavička je na mobilu připnutá nahoře a proužek by překryla – dokud se nescrolluje, posuneme ji pod proužek
       (stejně to šablona řeší u banneru dopravy od dklab) */
    body:not(.headerScrolled):has(.site-msg.information .ae-strip-btn) #header {
        top: 50px;
    }

    .site-msg.information:has(.ae-strip-btn) .container {
        padding: 0 40px 0 12px;
    }

    .site-msg.information:has(.ae-strip-btn) .close {
        top: 50%;
        transform: translateY(-50%);
        right: 8px;
        background-size: 14px;
    }

    .site-msg.information .text:has(> .ae-strip-btn) {
        gap: 8px;
        font-size: 12.5px;
        text-align: left;
    }

    .site-msg.information .text:has(> .ae-strip-btn) .ae-strip-text {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.25;
    }

    .ae-strip-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* část textu jen pro počítač (<span class="ae-strip-pc">) */
    .ae-strip-pc {
        display: none;
    }
}

/* Black Friday: černý proužek, „BLACK FRIDAY“ zeleně, na spodní hraně černo-zelené šrafování.
   Zapne se třídou ae-strip-text--bf v textu lišty. */
.site-msg.information:has(.ae-strip-text--bf) {
    background: #141414;
    color: #fff;
    padding-bottom: 16px;
}

.site-msg.information:has(.ae-strip-text--bf)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: repeating-linear-gradient(-45deg, #3CA83B 0 8px, #141414 8px 16px);
}

/* křížek zavření je v šabloně tmavé SVG – na černém proužku ho zesvětlíme */
.site-msg.information:has(.ae-strip-text--bf) .close {
    filter: invert(1);
}

.ae-strip-text--bf {
    color: #fff;
}

.ae-strip-text--bf strong {
    color: #3CA83B;
}

@media (max-width: 767px) {
    .site-msg.information:has(.ae-strip-text--bf) {
        padding-bottom: 8px;
    }
}

/* ===== Rozcestník kategorie Black Friday (popis kategorie /black-friday/) =====
   Dlaždice značek → modely; odkazy vedou do běžné kategorie s filtrem štítku Black Friday (?dd=198). */
.ae-bf {
    margin: 10px 0 30px;
    font-family: inherit;
}

.ae-bf__intro {
    font-size: 16px;
    margin: 0 0 14px;
}

.ae-bf__intro strong {
    color: #3CA83B;
}

.ae-bf__jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.ae-bf__jump a {
    background: #141414;
    color: #fff !important;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: background .15s ease;
}

.ae-bf__jump a:hover {
    background: #3CA83B;
}

.ae-bf__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.ae-bf__card {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    scroll-margin-top: 90px;
}

#bf-dalsie {
    grid-column: 1 / -1;
}

.ae-bf__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #141414;
    color: #fff !important;
    padding: 12px 18px;
    text-decoration: none !important;
    border-bottom: 4px solid #3CA83B;
}

.ae-bf__brand {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .3px;
}

.ae-bf__all {
    color: #3CA83B;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ae-bf__head:hover .ae-bf__all {
    color: #fff;
}

.ae-bf__models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 16px 18px 18px;
}

.ae-bf__models li {
    margin: 0;
    padding: 0;
}

.ae-bf__models li::before {
    display: none;
}

.ae-bf__models a {
    display: inline-block;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #222 !important;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ae-bf__models a:hover {
    background: #3CA83B;
    border-color: #3CA83B;
    color: #fff !important;
}

@media (max-width: 991px) {
    .ae-bf__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .ae-bf__intro {
        font-size: 14px;
    }

    .ae-bf__jump a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .ae-bf__brand {
        font-size: 17px;
    }

    .ae-bf__models {
        padding: 12px 14px 14px;
        gap: 6px;
    }

    .ae-bf__models a {
        padding: 5px 10px;
        font-size: 13px;
    }
}
