/**
 * CMSXL and Application User Interface Soft Touch Buttons.
 * Copyright (c) 2023 Anthony Albit. All rights reserved.
 *
 * For more information, please contact:
 * Email: anthony.albit@wayovermedia.com
 * Website: https://cmsxl.com
 */

/* Store CSS */
/*•••••••••••••••••••••••••••••••••••••••••••••••••••••••*/
.store-top {
}

.store-announcements {
}

.category-top {
    color: var(--c-dark);
}

.store-listing {
}
.store-listing-item {
    display: flex;
    flex-direction: column;
    font-size: calc(var(--text-size) * 0.95);
    background-position: center bottom;
    background-size: contain;
    background-color: #ffffff;
    border-radius: var(--acp-border-radius);
    overflow: hidden;
}
.store-listing-item:hover {
    /*background-color: var(--c-ivory);*/
}

.store-listing-item.cart {
    flex-direction: row;
    margin-bottom: 20px;
    zoom: .75;
}
.store-listing-item.cart:last-child {
    margin-bottom: 0;
}
.store-listing-item.order {
    flex-direction: row;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    zoom: .75;
}
.store-listing-item.order:last-child {
    margin-bottom: 0;
}
.store-listing-header {
    padding: 18px 25px;
    min-height: 140px;
}
.store-listing-header.cart {
    padding-left: 0;
    min-height: unset;
    text-align: left;
}
.store-listing-header.order {
    padding: 0;
    min-height: unset;
    text-align: left;
}
.store-listing-category {
    margin-bottom: 2px;
}
.store-listing-category a {
    font-size: calc(var(--text-size) * 1.01);
    color: #808080;
    text-decoration: none;
}
.store-listing-title {
    text-align: left;
    text-transform: uppercase;
}
.store-listing-title.cart {
    line-height: normal;
    text-align: right;
}
.store-listing-title a {
    font-size: calc(var(--text-size) * 1.1);
    font-weight: bold;
    text-decoration: none;
}
.store-listing-image {
    padding: 0 25px;
}
.store-listing-image.cart {
    margin: 15px;
    width: 160px;
    height: 160px;
    border-radius: var(--acp-border-radius);
}
.store-listing-image.order {
    margin: 15px;
    width: 90px;
    min-width: 90px;
    height: 90px;
    min-height: 90px;
    border-radius: var(--acp-border-radius);
}
.store-listing-image img {
    border-radius: var(--acp-border-radius);
}
.store-listing-image.cart img {
    height: 100%;
    max-height: 100%;
}
.store-listing-description {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-grow: 1;
    margin-bottom: 10px;
    padding: 15px 25px;
    color: #242424;
    text-align: center;
}
.store-listing-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px 18px 25px;
    text-align: right;
}
.store-listing-cart.cart {
    justify-content: flex-end;
    margin-top: 20px;
}
.store-listing-price {
    font-size: calc(var(--text-size) * .8);
    font-weight: 600;
    color: #242424;
}
.store-listing-price.cart {
    padding-right: 25px;
    padding-bottom: 5px;
    text-align: right;
}
.store-listing-price.order {
    padding-right: 25px;
    padding-bottom: 5px;
    text-align: right;
}
.store-listing-price b {
    display: block;
    font-size: calc(var(--text-size) * 1.1);
}
.store-club {
}


#storecart-list h1 {
    color: var(--c-light);
}

#hero-bg.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    background-position: center;
    background-size: cover;
}
.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #00000020;
}

.hero-overlay {
    display: flex;
    position: absolute !important;
    align-items: flex-end;
    justify-content: flex-end; /* на десктопе — справа */
    margin-bottom: 30px;
    padding: 0 60px;
    inset: 0;
}

.hero-categories {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 12px;
}
.hero-categories-juumper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-categories a {
    display: inline-block;
    padding: 16px 32px;
    font-size: 24px; /* вручную, т.к. родитель 0 */
    font-weight: 500;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.80); /* тёмный фон с прозрачностью */
    border-radius: 12px;
    transition: background-color 0.3s, color 0.3s;
}

.hero-categories a:hover {
    color: #90e0ef;
    background-color: rgba(0, 0, 0, .9);
}

@media (max-width: 991px) {
    .hero-categories-juumper {
        flex-direction: row;
    }
    .hero-categories {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-overlay {
        justify-content: center; /* на мобилке — по центру */
        padding: 0 20px;
    }
    .hero-categories a {
        padding: 12px 24px;
        font-size: 20px;
    }
}


.hero-links-wrap {
    position: relative;
    z-index: 10;
    min-width: 185px;
    max-width: 185px;
}
@media (max-width: 576px) {
    .hero-links-wrap {
        min-width: 125px;
        max-width: 125px;
    }
}

.hero-links {
    display: flex;
    justify-content: flex-end;
}

.hero-dropdown-content a,
.hero-links a {
    position: relative;
    padding-top: 1px;
    font-size: 14px;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.3s;
}
.hero-links a:hover {
    color: #90e0ef;
}

/* Добавим стрелку вниз к первой ссылке (Contact) */
.hero-contact-trigger::after,
.hero-dropdown-content a::after {
    content: ' ▼';
    font-size: 15px;
    vertical-align: middle;
}
.hero-contact-trigger {
    margin-right: 15px;
}
/* Выпадающее меню */
.hero-contact-dropdown {
    position: absolute;
    z-index: 1001;
    top: -10px;
    right: -10px;
    background-color: transparent;
    transition: opacity 0.5s;
    opacity: 1;
}
.hero-dropdown-content {
    padding: 100px 20px 20px 20px;
    min-width: 290px;
    color: black;
    background: white;
    border-radius: var(--acp-border-radius);
}
.hero-shadow {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Хелпер */
.hero-hidden {
    display: none;
    opacity: 0;
}


.qraway-store-footer {
    padding: 40px;
    font-size: 18px;
    color: #a0a0a0;
    background-color: #242424;
    background-color: #000;
}

.qraway-store-footer-grid {
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    font-size: calc(var(--text-size) * 1);
    grid-template-columns: 1fr 250px 330px;
    gap: 20px;
}
@media (max-width: 1199px) {
    .qraway-store-footer-grid {
        grid-template-columns: 1fr 180px 280px;
    }
}
.qraway-store-footer-block {
}

.qraway-store-footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 0 0;
    font-size: calc(var(--text-size) * 1.12);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    cursor: default;
}
.qraway-store-footer-header {
    display: block;
    padding: 12px 0 0 0;
    font-size: calc(var(--text-size) * 1.12);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.qraway-store-footer-arrow {
    font-size: 12px;
}

.qraway-store-footer-content {
    padding: 10px 0 20px;
}

.qraway-store-footer-links,
.qraway-store-footer-socials {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qraway-store-footer-socials {
    margin-top: 40px;
}

.qraway-store-footer-links li,
.qraway-store-footer-socials li {
    margin: 12px 0;
}

.qraway-store-footer-link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
    opacity: 0.85;
}

.qraway-store-footer-link:hover {
    opacity: 1;
}

.qraway-store-footer-arrow {
    display: none;
}

/* Mobile */
@media (max-width: 991px) {
    .qraway-store-footer {
        padding: 40px 16px;
    }
    .qraway-store-footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Правильный порядок */
    .qraway-store-footer-block:nth-child(2) { order: 1; }
    .qraway-store-footer-block:nth-child(5) { order: 2; }
    .qraway-store-footer-block:nth-child(6) {
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        order: 3;
    }
    .qraway-store-footer-block:nth-child(3) { order: 4; }
    .qraway-store-footer-block:nth-child(1) { order: 5; }
    .qraway-store-footer-block:nth-child(4) { order: 6; }

    .qraway-store-footer-toggle {
        padding: 22px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
    }

    /* Только не для always-visible */
    .qraway-store-footer-block:not(.always-visible) .qraway-store-footer-content {
        display: none;
    }

    .qraway-store-footer-block.open .qraway-store-footer-content {
        display: block;
    }

    .qraway-store-footer-block.open .qraway-store-footer-arrow {
        transform: rotate(180deg);
    }
    .qraway-store-footer-arrow {
        display: inline-block;
    }

    .qraway-store-footer-link {

    }


    .qraway-store-footer-links li, .qraway-store-footer-socials li {
        margin: 30px 0;
    }
    .qraway-store-footer-links li:first-child,
    .qraway-store-footer-socials li:first-child {
        margin-top: 0;
    }
    .qraway-store-footer-links li:last-child,
    .qraway-store-footer-socials li:last-child {
        margin-bottom: 0;
    }
}

.qraway-store-footer-link.external::after {
    content: '↗';
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    transition: opacity 0.2s ease;
    opacity: 0.5;
}

.qraway-store-footer-link.external:hover::after {
    opacity: 1;
}


.qraway-benefits {
    padding: 40px 20px;
    color: var(--c-dark);
    text-align: center;
}

.qraway-benefits-title {
    margin-bottom: 30px;
    font-size: calc(var(--text-size) * 1.8);
    font-weight: 500;
    color: #4e99d3;
}

.qraway-benefits-grid {
    display: grid;
    margin: 0 auto;
    max-width: 1200px;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.qraway-benefit-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    text-align: center;
}

.qraway-benefit-item img {
    margin-bottom: 10px;
    width: 100%;
    max-width: 100px;
    height: auto;
}

.qraway-benefit-item h3 {
    margin: 0;
    line-height: normal;
    font-size: var(--text-size);
    font-weight: 500;
}

/* Мобильная адаптация: 2x2 */
@media (max-width: 767px) {
    .qraway-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.qraway-science-section {
    padding: 60px 20px;
    color: #fff;
    text-align: center;
    background-position: center;
    background-size: cover;
}

.qraway-science-wrapper {
    margin: 0 auto;
    max-width: 1200px;
}

.qraway-science-wrapper h2 {
    margin-bottom: 10px;
    font-size: 32px;
}

.qraway-science-wrapper h3 {
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 400;
}

.qraway-science-grid {
    display: grid;
    align-items: stretch; /* ВАЖНО */
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
}
.qraway-science-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.qraway-science-block {
    display: flex;
    justify-content: space-between;
    flex: 1;
    flex-direction: column;
    padding: 20px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--acp-border-radius);
}

.qraway-science-block p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.qraway-science-block h4 {
    margin: 0;
    font-size: calc(var(--text-size) * .9);
    color: #90e0ef;
    text-transform: uppercase;
}

.qraway-science-image img {
    display: block;
    margin: 0 auto;
    max-width: 140px;
    height: auto;
}

.qraway-science-bottom {
    margin-top: 50px;
    margin-right: auto;
    margin-left: auto;
    max-width: 700px;
}

@media (max-width: 991px) {
    .qraway-science-grid {
        text-align: left;
        grid-template-columns: 1fr;
    }

    .qraway-science-image {
        margin: 30px auto;
        order: -1;
    }

    .qraway-science-col {
        align-items: stretch;
    }
    .qraway-science-bottom {
        margin-top: 30px;
        width: 100%;
        max-width: 700px;
    }
}


.qraway-video-section {
    padding: 40px 20px;
    color: var(--c-dark);
    text-align: center;
    background: #f7f7f7;
}
.qraway-video-section {

}
.qraway-video-grid {
    display: grid;
    margin-top: 30px;
    grid-template-columns: repeat(4, 1fr); /* 4 в ряд на десктопе */
    gap: 30px;
}

@media (max-width: 991px) {
    .qraway-video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на мобиле */
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .qraway-video-grid {
        gap: 15px;
    }
}

.qraway-video-thumb {
    position: relative;
    cursor: pointer;
}

.qraway-video-thumb img {
    display: block;
    width: 100%;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
}

.qraway-video-thumb h3 {
    margin-top: 10px;
    font-size: calc(var(--text-size) * .9);
}

/* Modal */
.qraway-video-modal {
    display: flex;
    position: fixed !important;
    z-index: 9999;
    top: 0; right: 0; bottom: 0; left: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.qraway-video-modal-inner {
    position: relative;
    width: 700px;
    max-width: 90%;
    max-height: 90%;
}

.qraway-video-modal video {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.qraway-video-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 24px;
    color: black;
    text-align: center;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}


/*happy holder guy*/

.store-happy-holder {
    display: flex;
    width: 100%;
    height: 570px;
}
.store-happy-doctors {
    position: absolute !important;
    z-index: 1;
    bottom: 0;
    left: 50px;
    width: 349px;
    height: 520px;
    transition: all .3s ease;
    transform: scaleX(-1);
}
.store-happy-patients {
    position: absolute !important;
    z-index: 1;
    right: 50px;
    bottom: 0;
    width: 220px;
    height: 300px;
    background-position: left;
    transition: all .3s ease;
}
@media (max-width: 991px) {
    .store-happy-holder {
        height: 500px;
    }
    .store-happy-doctors {
        left: 90px;
        width: 302px;
        height: 450px;
    }
    .store-happy-patients {
        top: -150px;
        right: 20px;
        width: 220px;
        height: 300px;
    }
}
@media (max-width: 767px) {
    .store-happy-holder {
        height: 450px;
    }
    .store-happy-doctors {
        left: 30px;
        width: 235px;
        height: 350px;
    }
    .store-happy-patients {
        top: -118px;
        width: 190px;
        height: 260px;
    }
    .home-features-header {
        z-index: 1;
    }
    .home-features-header h1 {
        background-color: #db6b4b99;
    }
}
@media (max-width: 576px) {
    .store-happy-patients {
        right: 10px;
    }
}

.store-happy-benefits {
    display: flex;
    position: absolute !important;
    top: 60px;
    right: 60px;
    align-items: flex-end;
    flex-direction: column;
    width: calc(100% - 440px);
    text-align: right;
}

.store-happy-benefits h2 {
    margin-bottom: 20px;
    font-size: 42px;
    font-weight: 500;
    color: #4e99d3;
}
.store-happy-benefits p {
    margin-bottom: 10px;
    line-height: 1.1;
    font-size: 24px;
    color: var(--c-dark);
}

.store-happy-try-call {
    position: absolute !important;
    right: 60px;
    bottom: 170px;
    width: 200px;
    height: 133px;
    color: #d34e91;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0) rotate(2deg);
    cursor: pointer;
}
.store-happy-try-call:hover {
    transform: translateY(8px) rotate(-1deg);
    filter: brightness(120%);
}

.store-happy-header {
    position: absolute !important;
    z-index: 2;
    right: 60px;
    bottom: 20px;
    text-align: right;
}
.store-happy-header h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 500;
    color: #4e99d3;
    text-transform: uppercase;
}
@media (max-width: 991px) {
    .store-happy-try-call {
        right: 60px;
        bottom: 130px;
    }
    .store-happy-header h1 {
        font-size: 42px;
    }
    .store-happy-benefits h2 {
        font-size: 32px;
    }
    .store-happy-benefits p {
        font-size: 18px;
    }
}
@media (max-width: 767px) {
    .store-happy-try-call {
        z-index: 2;
        right: 20px;
        bottom: 60px;
        width: 160px;
        height: 107px;
    }
    .store-happy-header {
        right: unset;
        left: 0;
        background-color: #4e99d3a0;
    }
    .store-happy-header h1 {
        padding-left: 20px;
        font-size: 36px;
        color: var(--c-ivory);
        text-align: left;
    }
    .store-happy-benefits {
        top: 30px;
        right: 30px;
        width: calc(100% - 260px);
    }
    .store-happy-benefits p {
        max-width: 130px;
    }
}
@media (max-width: 576px) {
    .store-happy-header h1 {
        width: 215px;
    }
}


.store-happy-holder.welcome {
    position: relative;
    height: 430px;
    background: #f2f9ff;
    border-radius: var(--acp-border-radius);
    overflow: hidden;
}

/* карточка слева */
.store-happy-welcome-user {
    z-index: 2;
    left: 120px;
    margin: auto 0;
    transform: scale(1.7); /* масштаб, который тебе понравился */
    transform-origin: left center;
}

.store-happy-user-content {
    padding: 20px 30px;
    min-width: 240px;
    text-align: left;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: var(--acp-border-radius);
}

.store-happy-user-greet {
    margin-bottom: 4px;
    font-size: 20px;
    color: #4e99d3;
}

.store-happy-user-email {
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.store-happy-user-logout {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    background-color: #4e99d3;
    border-radius: 5px;
    transition: background 0.3s;
    cursor: pointer;
}

.store-happy-user-logout:hover {
    color: #fff;
    background-color: #337ab7;
}

/* дядька справа, как всегда */
.store-happy-welcome-guy {
    position: absolute !important;
    z-index: 1;
    top: 0;
    right: 120px;
    bottom: 0;
    margin: auto;
    height: 70%;
}

.store-happy-welcome-guy img {
    height: 100%;
    transform: scaleX(-1);
    pointer-events: none;
}
@media (max-width: 991px) {
    .store-happy-holder.welcome {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        padding: 30px 20px 20px 20px;
        height: auto;
        gap: 10px;
    }

    .store-happy-welcome-user {
        /*position: static;*/
        top: 17px;
        left: 0;
        margin: 0 auto;
        padding-top: 30px;
        padding-bottom: 20px;
        transform: scale(1.3); /* сбрасываем масштаб */
        transform-origin: center center;
    }

    .store-happy-user-content {
        padding: 20px;
        max-width: 300px;
    }

    .store-happy-welcome-guy {
        position: static !important;
        z-index: 2;
        padding-bottom: 20px;
        height: auto;
        text-align: center;
        transform: none;
    }

    .store-happy-welcome-guy img {
        margin: 0 auto;
        height: 240px !important;
        transform: scaleX(-1);
    }
}


.no-select,
.no-select * {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none !important;
}
.no-highlights,
.no-highlights * {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none !important;
}
*:focus {
    outline: none !important;
}
