/* =========================================================
   BeautyDepot SK — Homepage styles
   Scope: route common/home only (loaded via header.twig)
   ========================================================= */

.home-banners {
    width: 100%;
    background: #f3f4f6;
    border-radius: 40px 40px 0 0;
    padding: 30px 63px 30px 96px;
    box-sizing: border-box;
}

.home-banners__grid {
    display: grid;
    grid-template-columns: 1145fr 597fr;
    grid-template-rows: clamp(160px, 17.6vw, 310px) clamp(160px, 17.6vw, 310px);
    column-gap: 20px;
    row-gap: 8px;
}

.home-banners__item--1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.home-banners__item--2 {
    grid-column: 2;
    grid-row: 1;
}

.home-banners__item--3 {
    grid-column: 2;
    grid-row: 2;
}

.home-banners__item {
    position: relative;
    background-color: #f3f4f6;
    border-radius: 30px;
    overflow: hidden;
}

.home-banners__item::before {
    content: '';
    position: absolute;
    width: clamp(200px, 25.2vw, 484px);
    height: clamp(200px, 25.2vw, 484px);
    border-radius: 50%;
    background: #fff;
    top: 50%;
    left: 23%;
    transform: translateY(-50%);
    z-index: 1;
}

.home-banners__img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
    z-index: 2;
}
.home-banners__item--3{
    background-image: url("/image/catalog/banners/home_banners/sale_percent_v.png");
    background-repeat: no-repeat;
    background-position: 65% 15px;
    background-size: auto 90%;
}
.home-banners__item--2::before {
    width: clamp(100px, 12.75vw, 245px);
    height: clamp(100px, 12.75vw, 245px);
    right: 0;
    background: #fff;
}



.home-banners__item--3 {
    background-color: #fff;
}

.home-banners__item--3::before {
    display: none;
}


.home-banners__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 52%;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(14px, 3.98vw, 70px);
    padding: 30px 10px 30px clamp(30px, 5.7vw, 100px);
}


.home-banners__item--2 .home-banners__content,
.home-banners__item--3 .home-banners__content {
    width: 58%;
    gap: 0;
    padding: 20px 8px 20px clamp(16px, 2.05vw, 36px);
}


.home-banners__title,
.home-banners__subtitle {
    color: #27292b;
    margin: 0;
    font-family: var(--md-font), sans-serif;
    font-weight: 800;
}

.home-banners__item--1 .home-banners__title {
    font-size: clamp(28px, 4.09vw, 72px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-banners__item--1 .home-banners__subtitle {
    font-size: clamp(12px, 1.59vw, 28px);
    font-weight: 400;
    line-height: 1.5;
}


.home-banners__item--2 .home-banners__title,
.home-banners__item--3 .home-banners__title {
    font-size: clamp(16px, 2.5vw, 44px);
    line-height: 1.2;
    text-transform: uppercase;
}

.home-banners__item--2 .home-banners__subtitle,
.home-banners__item--3 .home-banners__subtitle {
    font-size: clamp(10px, 1.14vw, 20px);
    font-weight: 400;
    line-height: 1.35;
}

.home-banners__item--3 .home-banners__title {
    color: #ee1d24;
}

.home-banners__btn {
    display: inline-block;
    align-self: flex-start;
    background: #ee1d24;
    color: #fff;
    padding: clamp(8px, 0.8vw, 14px) clamp(14px, 1.48vw, 26px);
    border-radius: 23px;
    font-weight: 700;
    font-size: clamp(11px, 0.91vw, 16px);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    white-space: nowrap;
}

.home-banners__btn:hover {
    background: #c01a1f;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 991px) {
   .home-banners__item--1 .home-banners__content{
       justify-content: center;
       gap:35px;
   }
}
@media (max-width: 991px) {
    .home-banners {
        padding: 20px 24px;
        border-radius: 24px 24px 0 0;
    }

    .home-banners__grid {
        column-gap: 12px;
    }

    .home-banners__item--1 .home-banners__title {
        font-size: clamp(22px, 3vw, 42px);
    }
}

@media (max-width: 767px) {
    .home-banners {
        padding: 12px 0;
        border-radius: 16px 16px 0 0;
    }

    .home-banners__grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 250px 250px;
        column-gap: 0;
        row-gap: 6px;
    }
    .home-banners__item--3{
        background-image: url('/image/catalog/banners/home_banners/sale_percent.png');
        background-repeat: no-repeat;
        background-position: top right;
        background-size: auto;
    }
    .home-banners__img{
        right: 20px;
    }
    .home-banners__item--3 .home-banners__img{
        right: 0;
        height: 220px;
    }
    .home-banners__item--1 {
        grid-column: 1;
        grid-row: 1;
    }

    .home-banners__item--2 {
        grid-column: 1;
        grid-row: 3;
    }

    .home-banners__item--3 {
        grid-column: 1;
        grid-row: 2;
    }

    .home-banners__item::before {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 198px;
        height: 198px;
    }

    .home-banners__item--2::before {
        width: 198px;
        height: 198px;
    }

    .home-banners__content {
        width: 55%;
        padding: 24px 24px 24px 24px !important;
        gap: 12px;
    }

    .home-banners__item--2 .home-banners__content,
    .home-banners__item--3 .home-banners__content {
        width: 58%;
        gap: 10px;
    }

    .home-banners__item--1 .home-banners__title {
        font-size: 28px;
    }

    .home-banners__item--1 .home-banners__subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .home-banners__item--2 .home-banners__title,
    .home-banners__item--3 .home-banners__title {
        font-size: 26px;
        line-height: 1.15;
    }

    .home-banners__item--2 .home-banners__subtitle,
    .home-banners__item--3 .home-banners__subtitle {
        font-size: 14px;
        line-height: 1.35;
    }

    .home-banners__btn {
        padding: 9px 18px;
        font-size: 12px;
        border-radius: 20px;
    }
}

.top_zlavy {
    background: #fff;
    padding: 40px 85px 30px;
    border-radius: 40px 40px 0 0;
}

.top-zlavy__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.top-zlavy__title {
    font-size: 32px;
    font-weight: 700;
    color: #27292b;
    text-transform: uppercase;
    letter-spacing: 0.64px;
    margin: 0;
    line-height: 1;
    text-align: center;
}

.top-zlavy__controls {
    display: flex;
    align-items: center;
    gap: 14px;
    position: absolute;
    right: 0;
}

.top-zlavy__view-all {
    font-size: 16px;
    color: #27292b;
    text-decoration: none;
    padding: 10px 18px;
}

.top-zlavy__view-all:hover {
    color: #ee1d24;
    text-decoration: none;
}

.top-zlavy__arrows {
    display: flex;
    gap: 5px;
}

.top_zlavy .swiper-button-prev,
.top_zlavy .swiper-button-next {
    position: static;
    width: 40px;
    height: 40px;
    background: #f2f2f2;
    border-radius: 7px;
    opacity: 0.8;
    margin: 0;
    flex-shrink: 0;
    border:0;
}

.top_zlavy .swiper-button-prev::after,
.top_zlavy .swiper-button-next::after {
    font-size: 14px;
    color: #27292b;
    font-weight: 700;
}
.top_zlavy .swiper-button-prev:hover::after,
.top_zlavy .swiper-button-next:hover::after{
    color: #EE1D24;
}

.top_zlavy .swiper-button-prev.disabled,
.top_zlavy .swiper-button-next.disabled {
    opacity: 0.4;
}

.top-zlavy__slider {
    overflow: hidden;
}
.top-zlavy__slider .swiper-wrapper {
    padding: 12px 0;
}
.top-zlavy__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 20px;
    border-radius: 20px;
    text-align: center;
}
.top-zlavy__card:hover{
    box-shadow: 3px 4px 10px 0px #1717171A;
}
.top-zlavy__badge {
    position: absolute;
    top: 10px;
    left: 11px;
    background: #ee1d24;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
    line-height: 1.2;
}

.top-zlavy__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 268px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.top-zlavy__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-zlavy__brand {
    font-size: 20px;
    font-weight: 700;
    color: #27292b;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-zlavy__name {
    font-size: 18px;
    font-weight: 400;
    color: #101010;
    line-height: 1.5;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-zlavy__price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 24px;
    font-weight: 600;
    padding: 8px 10px 5px;
}

.top-zlavy__price-old {
    color: #bdbdbd;
    text-decoration: line-through;
}

.top-zlavy__price-new {
    color: #ee1d24;
}

.top-zlavy__price-regular {
    color: #27292b;
}

.top-zlavy__cart {
    padding: 0 2px;
    display: flex;
    justify-content: center;
    align-content: center;
}

.top-zlavy__cart-btn {
    font-weight: 600;
    font-family: var(--lt-font);
    min-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 51px;
    background: #f5f5f5;
    border: none;
    border-radius: 26px;
    font-size: 18px;
    color: #6b6f76;
    cursor: pointer;
    transition: background 0.2s;
}

.top-zlavy__cart-btn:not(.top-zlavy__cart-btn--out):hover {
    background: #EE1D24;
    color: #fff;
}
.top-zlavy__cart-btn:not(.top-zlavy__cart-btn--out):hover .ico-shopping-bag {
    filter: brightness(0) invert(1);
}
.top-zlavy__cart-btn--out {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 991px) {
    .top_zlavy {
        padding: 30px 24px 24px;
        border-radius: 24px 24px 0 0;
    }

    .top-zlavy__title {
        font-size: 24px;
    }

    .top-zlavy__img-wrap {
        width: 100%;
        height: 180px;
    }

    .top-zlavy__brand {
        font-size: 16px;
    }

    .top-zlavy__name {
        font-size: 14px;
    }

    .top-zlavy__price {
        font-size: 18px;
    }

    .top-zlavy__cart-btn {
        height: 40px;
        font-size: 14px;
    }

    .top-zlavy__badge {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .top_zlavy {
        padding: 24px 12px 20px;
        border-radius: 16px 16px 0 0;
    }

    .top-zlavy__view-all {
        display: none;
    }
    .top_zlavy .swiper-button-prev,
    .top_zlavy .swiper-button-next {
        width: 34px;
        height: 34px;
    }
    .top_zlavy .swiper-button-prev::after,
    .top_zlavy .swiper-button-next::after {
        font-size: 14px;
    }

    .top-zlavy__img-wrap {
        height: 150px;
    }

    .top-zlavy__brand {
        font-size: 14px;
    }

    .top-zlavy__name {
        font-size: 13px;
    }

    .top-zlavy__price {
        font-size: 16px;
    }

    .top-zlavy__cart-btn {
        height: 36px;
        font-size: 13px;
        border-radius: 18px;
        gap: 6px;
    }

    .top-zlavy__badge {
        font-size: 13px;
        padding: 2px 5px;
    }
}

.home-categories {
    background: #fff;
    padding: 50px 85px 50px;
}

.home-categories__title {
    font-size: 32px;
    font-weight: 700;
    color: #27292b;
    text-transform: uppercase;
    letter-spacing: 0.64px;
    text-align: center;
    margin: 0 0 32px;
    line-height: 1;
}

.home-categories__grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-categories__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 271px;
    min-width: 120px;
    gap: 34px;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 40px;
    transition: background 0.2s, box-shadow 0.2s;
}
@media (min-width: 1024px) {
    .home-categories__card {
        min-height: 270px;
    }
}

.home-categories__card:hover {
    text-decoration: none;
    background: #fff;
    box-shadow: 3px 4px 10px 0 rgba(23, 23, 23, 0.1);
}

.home-categories__card:hover .home-categories__name {
    color: #ee1d24;
}

.home-categories__icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-categories__icon-empty {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.home-categories__name {
    font-size: 22px;
    font-weight: 500;
    color: #27292b;
    text-align: center;
    line-height: 1.23;
    transition: color 0.2s;
}

@media (max-width: 991px) {
    .home-categories {
        padding: 40px 24px 40px;
    }

    .home-categories__card {
        gap: 20px;
    }

    .home-categories__name {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .home-categories {
        padding: 20px 4px 16px;
    }

    .home-categories__title {
        font-size: 24px;
        letter-spacing: 0.48px;
        margin-bottom: 16px;
    }

    .home-categories__grid {
        gap: 15px 10px;
    }

    .home-categories__card {
        flex: none;
        width: calc(33.333% - 7px);
        max-width: none;
        min-width: 0;
        height: 130px;
        gap: 14px;
        padding: 10px 0 0;
        border-radius: 20px;
        justify-content: flex-start;
        transition: background 0.2s;
    }

    .home-categories__card:hover {
        background: #fff;
        box-shadow: 3px 4px 10px 0 rgba(23, 23, 23, 0.1);
    }

    .home-categories__icon {
        width: 60px;
        height: 60px;
    }

    .home-categories__name {
        font-size: 14px;
        font-weight: 700;
        line-height: 18px;
    }
}

/* ---------------------------------------------------------
   STEP 6: barber_form
   --------------------------------------------------------- */

.si-barber {
    background: #f3f4f6;
    border-radius: 40px 40px 0 0;
    padding: 40px 0 30px;
}

.si-barber__heading {
    font-family: 'Acherus Grotesque ExtraBold', sans-serif;
    font-size: 32px;
    text-transform: uppercase;
    color: #27292b;
    text-align: center;
    letter-spacing: 0.64px;
    line-height: 1;
    margin-bottom: 20px;
}

.si-barber__flash {
    margin-bottom: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    position: relative;
}

.si-barber__flash--success { background: #d4edda; color: #155724;    padding: 12px 20px; }
.si-barber__flash--error   { background: #f8d7da; color: #721c24;     padding: 12px 20px;}

.si-barber__card {
    display: flex;
    height: 447px;
    border-radius: 20px;
    box-shadow: 3px 4px 50px 0 rgba(47, 47, 47, 0.08);
}

.si-barber__left {
    flex: 1;
    background: #fff;
    border-radius: 20px 0 0 20px;
    padding: 50px 100px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.si-barber__benefits-title {
    font-family: 'Acherus Grotesque Regular', sans-serif;
    font-size: 30px;
    color: #27292b;
    line-height: 1.5;
}

.si-barber__benefits-title strong {
    font-family: 'Acherus Grotesque ExtraBold', sans-serif;
    color: #ee1d24;
    font-style: normal;
}

.si-barber__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.si-barber__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Acherus Grotesque Regular', sans-serif;
    font-size: 20px;
    color: #27292b;
    line-height: 27px;
}

.si-barber__list li svg {
    flex-shrink: 0;
}

.si-barber__cta-italic {
    font-family: 'Acherus Grotesque ExtraBold', sans-serif;
    font-style: italic;
    font-size: 20px;
    color: #ee1d24;
    text-align: center;
    margin: 0;
    line-height: 27px;
}

.si-barber__right {
    flex: 1;
    border-radius: 0 20px 20px 0;
    position: relative;
    overflow: hidden;
}

.si-barber__right-bg {
    position: absolute;
    inset: 0;
    background: url('/catalog/view/theme/default/image/home_si_barber_form/barber-bg.png') center / cover no-repeat;
}

.si-barber__right-overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 43, 43, 0.15);
    mix-blend-mode: hard-light;
}

.si-barber__form-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
}

.si-barber__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 352px;
    width: 100%;
}

.si-barber__field {
    background: #fff;
    border-radius: 25px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    cursor: text;
    margin-bottom: 0;
    transition: box-shadow 0.2s;
}
.si-barber__field svg{opacity: 0.7}
.si-barber__field:hover,
.si-barber__field:focus-within {
    box-shadow: 3px 4px 10px 0px rgba(23, 23, 23, 0.1);
    color:#101010;
}
.si-barber__field:focus-within svg{
    opacity: 1;
}

.si-barber__field input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #27292b;
    width: 100%;
}
.si-barber__field input:focus {
    outline: none;
    box-shadow: none;
}
.si-barber__field input::placeholder {
    color: #6b6f76;
}
.si-barber__field input:focus::placeholder{
    color: transparent;

}
.si-barber__btn {
    background: #ee1d24;
    border: none;
    border-radius: 23px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    padding: 14px 26px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
    margin: 40px auto 0;
    display: block;
}

.si-barber__btn:hover {
    background: #c9171d;
}
@media (min-width: 992px) {
    .si-barber__fields {
        width: 352px;
    }
}
@media (max-width: 991px) {
    .si-barber {
        padding: 20px 0 0;
    }

    .si-barber__heading {
        font-size: 24px;
        letter-spacing: 0.48px;
        margin-bottom: 15px;
        padding: 0 16px;
    }

    .si-barber__flash {
        margin: 0 16px 12px;
    }

    .si-barber__card {
        flex-direction: column;
        height: auto;
        box-shadow: none;
        border-radius: 0;
    }

    .si-barber__left {
        border-radius: 0;
        padding: 10px 35px 15px;
        gap: 15px;
        background: transparent;
    }

    .si-barber__benefits-title {
        font-size: 20px;
        text-align: center;
    }

    .si-barber__list {
        gap: 16px;
    }

    .si-barber__list li {
        font-size: 16px;
        line-height: 24px;
        gap: 8px;
    }

    .si-barber__list li svg {
        width: 14px;
        height: 14px;
    }

    .si-barber__cta-italic {
        font-size: 16px;
        color: #f14a50;
    }

    .si-barber__right {
        border-radius: 0 0 40px 40px;
        height: 300px;
    }

    .si-barber__right-bg {
        filter: blur(4.4px);
    }

    .si-barber__form-wrap {
        padding: 38px 41px;
        justify-content: flex-start;
        gap: 0;
    }

    .si-barber__form-wrap form {
        display: flex;
        flex-direction: column;
        gap: 22px;
        width: 308px;
        max-width: 100%;
    }

    .si-barber__fields {
        width: 100%;
        gap: 12px;
    }

    .si-barber__field {
        height: 46px;
        border-radius: 23px;
        gap: 14px;
    }

    .si-barber__field input {
        font-size: 15px;
    }

    .si-barber__btn {
        font-size: 13.6px;
        padding: 12px 22px;
        border-radius: 20px;
        display: block;
        margin: 0 auto;
    }
}
