/* Detail produktu (bajky.sk) – k opytaj-sa-13.js:
   1) "Nevieš si vybrať? Poradíme ti." v popise
   2) náš tím, naša predajňa a hodnotenia Heureka a Google pod záložkami */

/* ===== 1) Nevieš si vybrať? Poradíme ti. ===== */
.social-buttons-wrapper.bs-ask__hidden {
    display: none !important;
}

/* sekcia v popise – na celú šírku popisu */
.description-inner > .bs-ask {
    width: 100%;
}
.bs-ask--standalone {
    position: relative;
    z-index: 1;
    margin: 30px 0 !important;
}

.bs-ask {
    margin: 0;
    padding: 20px 60px;
    background: #f6f6f6;
}


.bs-ask__top {
    display: flex;
    align-items: center;
    gap: 16px;
}
.bs-ask__photo {
    flex: 0 0 64px;
    width: 64px !important;                 /* téma inak dáva obrázkom height: auto – vznikol by ovál */
    height: 64px !important;
    max-width: none !important;
    border-radius: 0;                       /* hranatá fotka v štýle bajky.sk */
    object-fit: cover;
}
.bs-ask__body {
    min-width: 0;
}
.bs-ask__title {
    color: #191919;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}
.bs-ask__text {
    margin-top: 4px;
    color: #6f6f6f;
    font-size: 13px;
    line-height: 1.5;
}

/* tlačidlá v štýle bajky.sk: hranaté, verzálky */
.bs-ask__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.bs-ask__btn {
    flex: 1 1 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}
.bs-ask__btn--online {
    background: linear-gradient(135deg, #191919, #3f3f3f);
    color: #fff !important;
}
.bs-ask__btn--online:hover {
    background: linear-gradient(135deg, #3f3f3f, #191919);
}
.bs-ask__btn--phone {
    background: #fff;
    border: 1px solid #191919;
    color: #191919 !important;
}
.bs-ask__btn--phone:hover {
    background: #191919;
    color: #fff !important;
}

/* od tabletu: fotka + text vľavo, tlačidlá vpravo nad sebou – nižší banner */
@media (min-width: 600px) {
    .bs-ask {
        display: flex;
        align-items: center;
        gap: 18px;
    }
    .bs-ask__top {
        flex: 1 1 auto;
        min-width: 0;
    }
    .bs-ask__actions {
        flex: 0 0 170px;
        flex-direction: column;
        margin-top: 0;
    }
    .bs-ask__btn {
        flex: 0 0 auto;
        height: 40px;
    }
}

/* desktop: tlačidlá vpravo vedľa seba */
@media (min-width: 992px) {
    .bs-ask__actions {
        flex: 0 0 auto;
        flex-direction: row;
    }
    .bs-ask__btn {
        width: 130px;
    }
}

/* ===== 2) Náš tím, naša predajňa a hodnotenia Heureka a Google ===== */
.bs-why {
    position: relative;
    z-index: 1;
    margin: 40px 0;
    color: #191919;
}

/* tím + hodnotenia */
.bs-why__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;   /* užší stĺpec s hodnoteniami, tím a predajňa širšie */
    gap: 12px;
}
/* tím a predajňa – samostatné karty ako hodnotenia, na desktope vedľa seba */
.bs-why__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 992px) {
    .bs-why__panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
.bs-why__team {
    padding: 35px 60px;
    background: #f6f6f6;
}

/* naša predajňa */
.bs-why__store {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    padding: 35px 60px;
    background: #f6f6f6;
}
.bs-why__store-photo {
    overflow: hidden;
    background: #e3e3e3;
}
.bs-why__store-photo img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}
.bs-why__store-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;                /* obsah zvislo v strede vedľa fotky */
    min-width: 0;
}
.bs-why__store-meta {
    margin: 0 0 10px;
    color: #6f6f6f;
    font-size: 13px;
}
.bs-why__store-text {
    margin: 0 0 8px !important;
    color: #191919;
    font-size: 13px;
    line-height: 1.45;
}
.bs-why__store-text:last-of-type {
    margin-bottom: 12px !important;
}
/* ako stav dostupnosti pri produkte: zelené verzálky so štvorčekom */
.bs-why__instore {
    color: #37d019;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.bs-why__instore::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin: 0 5px 2px 0;
    background: currentColor;
    vertical-align: middle;
}
.bs-why__team-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.bs-why__team-title {
    margin: 0 0 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}
.bs-why__team-text {
    margin: 0;
    color: #6f6f6f;
    font-size: 13px;
}
.bs-why__more {
    color: #191919 !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
}
.bs-why__more:hover {
    opacity: .7;
}
.bs-why__people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 150px));
    gap: 12px;
}
.bs-why__person {
    display: flex;
    flex-direction: column;
}
.bs-why__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin-bottom: 8px;
    overflow: hidden;
    background: #e3e3e3;
}
.bs-why__photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}
.bs-why__initials {
    color: #b5b5b5;
    font-size: 28px;
    font-weight: 700;
}
.bs-why__name {
    font-size: 13px;
    font-weight: 600 !important;
    text-transform: uppercase;
}
.bs-why__role {
    color: #8a8a8a;
    font-size: 12px;
}

/* hodnotenia Heureka a Google – pod sebou vedľa tímu */
.bs-why .bs-ratings {
    display: grid;
    grid-template-columns: 1fr;             /* explicitne – staré CSS sekcie Poradíme ti ich dávalo vedľa seba */
    gap: 12px;
}
.bs-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 60px;
    background: #f6f6f6;
    color: #191919 !important;
    text-decoration: none !important;
}
.bs-rating:hover {
    background: #efefef;
}
.bs-rating__logo {
    flex: 0 0 44px;
    display: flex;
}
.bs-rating__logo svg,
.bs-rating__logo img {
    display: block;
    width: 44px !important;
    height: 44px !important;
    max-width: none !important;
    object-fit: contain;
}
.bs-rating__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bs-rating__name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.bs-rating__score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.bs-rating__number {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}
/* hviezdičky vyplnené podľa hodnotenia (--bs-fill nastavuje JS, napr. 4,5 = 90 %) */
.bs-rating__stars {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #f5a623 var(--bs-fill, 100%), #d6d6d6 var(--bs-fill, 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bs-rating__count {
    margin-top: 2px;
    color: #6f6f6f;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* tablet */
@media (max-width: 991px) {
    .bs-why__bottom {
        grid-template-columns: 1fr;
    }
    .bs-why .bs-ratings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* mobil */
@media (max-width: 767px) {
    .bs-ask {
        padding: 20px 15px;
    }
    .bs-why {
        margin: 30px 0;
    }
    .bs-why__bottom,
    .bs-why__panel {
        gap: 8px;
    }
    .bs-why__team {
        padding: 35px 15px;
    }
    .bs-why__store {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 35px 15px;
    }
    /* fotka predajne rovnako vysoká ako fotky tímu: (šírka − 2 medzery po 8 px) / 3 */
    .bs-why__store-photo {
        position: relative;
        height: 0;
        padding-top: calc((100% - 16px) / 3);
    }
    .bs-why__store-photo img {
        position: absolute;
        inset: 0;
    }
    .bs-why__people {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .bs-why .bs-ratings {
        gap: 8px;
    }
    .bs-rating {
        gap: 10px;
        padding: 10px 15px;
    }
    .bs-rating__logo {
        flex-basis: 32px;
    }
    .bs-rating__logo svg,
    .bs-rating__logo img {
        width: 32px !important;
        height: 32px !important;
    }
    .bs-rating__name {
        font-size: 10px;
        line-height: 1.3;
    }
    .bs-rating__score {
        gap: 6px;
        margin-top: 1px;
    }
    .bs-rating__number {
        font-size: 16px;
    }
    .bs-rating__stars {
        font-size: 12px;
        letter-spacing: 0;
    }
    .bs-rating__count {
        margin-top: 0;
        font-size: 11px;
    }
}
