/* ========================================
   Hitek Alternative Catalog
   ======================================== */

.hitek-alternative {
    margin: 32px 18px 40px;
    padding: 20px;
    color: #222;
    background: #e0d8c008;
    border: 1px solid #eee1bb;
    border-radius: 12px;
}

/* Ð—Ð°Ð³Ð¾Ð»Ð¾Ð²Ð¾Ðº */

.hitek-alternative__header {
    margin-bottom: 20px;
}

.hitek-alternative__title {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
}

.hitek-alternative__description {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   ÐÐ°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ñ Ð¿Ð¾ Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð°Ð¼
   ======================================== */

.hitek-alternative__navigation {
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e9e9e9;
}

/* ÐŸÑ€Ð¾ÐºÑ€ÑƒÑ‡Ð¸Ð²Ð°ÐµÐ¼Ð°Ñ Ð¿Ð¾Ð»Ð¾ÑÐ° Ð²ÐºÐ»Ð°Ð´Ð¾Ðº */

.hitek-alternative__tabs {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 28px;

    min-width: 0;
    margin: 0;

    overflow-x: auto;
    overflow-y: hidden;

    border-bottom: 0;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hitek-alternative__tabs::-webkit-scrollbar {
    display: none;
}

/* Ð’ÐºÐ»Ð°Ð´ÐºÐ° Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð° */

.hitek-alternative__tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    margin: 0 0 -1px;
    padding: 14px 0 15px;

    color: #777;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;

    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    box-shadow: none;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.hitek-alternative__tab:hover {
    color: #222;
    background: transparent;
}

.hitek-alternative__tab.is-active,
.hitek-alternative__tab[aria-selected="true"] {
    color: #222;
    font-weight: 600;
    background: transparent;
    border-bottom-color: #d1b04b;
}

.hitek-alternative__tab:focus-visible {
    outline: 2px solid #d1b04b;
    outline-offset: -4px;
}

.hitek-alternative__tab-name {
    display: block;
}

/* Ð¡Ñ‚Ñ€ÐµÐ»ÐºÐ¸ Ð¿Ñ€Ð¾ÐºÑ€ÑƒÑ‚ÐºÐ¸ */

.hitek-alternative__nav-arrow {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;

    width: 30px;
    min-width: 30px;
    margin: 0;
    padding: 0;

    color: #555;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    cursor: pointer;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.hitek-alternative__nav-arrow svg {
    display: block;
    flex: 0 0 auto;
}

.hitek-alternative__nav-arrow:hover:not(:disabled) {
    color: #c6a23d;
    background: transparent;
}

.hitek-alternative__nav-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.hitek-alternative__nav-arrow[hidden] {
    display: none !important;
}

.hitek-alternative__nav-arrow:focus-visible {
    outline: 2px solid #d1b04b;
    outline-offset: -2px;
}

/* ========================================
   ÐŸÐ°Ð½ÐµÐ»ÑŒ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ð¾Ð³Ð¾ Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð°
   ======================================== */

.hitek-alternative__panel[hidden] {
    display: none !important;
}

/* ========================================
   Ð˜Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð¾ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ð¾Ð¼ Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ðµ
   ======================================== */


.hitek-alternative__panel-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-width: 0;
    min-height: 100px;
    margin-bottom: 10px;
    padding: 20px 24px;

    background: linear-gradient(110deg,
            #fffaf0 0%,
            #fffcf7 65%,
            #fffdf9 100%);

    border: 1px solid #efdfc1;
    border-radius: 12px;
}


.hitek-alternative__shop {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 20px;

    min-width: 0;
}

.hitek-alternative__select-shop {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 22px;
    color: #9a721a;
    background: linear-gradient(145deg, #fefefd, #fff9ed);
    border: 1px solid #eee1bb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.hitek-alternative__select-shop:hover {
    border-color: var(--hr-accent);
}

.hitek-alternative__select-shop:focus-visible {
    outline: 2px solid #967522;
    outline-offset: 3px;
}

.hitek-alternative__select-shop svg {
    flex: 0 0 18px;
}

/* Ð˜ÐºÐ¾Ð½ÐºÐ° Ð¼ÐµÑÑ‚Ð¾Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ */

.hitek-alternative__shop-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    color: #c49a39;

    background: linear-gradient(145deg,
            #fff8e9,
            #f8e9cd);

    border-radius: 50%;
}

.hitek-alternative__shop-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

/* ÐÐ°Ð·Ð²Ð°Ð½Ð¸Ðµ Ð¸ Ð°Ð´Ñ€ÐµÑ */

.hitek-alternative__shop-details {
    flex: 1;
    min-width: 0;
}

.hitek-alternative__shop-name {
    color: #262626;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.hitek-alternative__shop-address {
    margin-top: 6px;

    color: #888;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ========================================
   Ð¡Ñ‡Ñ‘Ñ‚Ñ‡Ð¸Ðº Ð¸ Ð½Ð°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ñ Ð¿Ð¾ Ñ‚Ð¾Ð²Ð°Ñ€Ð°Ð¼
   ======================================== */

.hitek-alternative__shown-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 36px;
    margin-bottom: 14px;

    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.hitek-alternative__count-text {
    min-width: 0;
}

/* Ð¡Ñ‚Ñ€ÐµÐ»ÐºÐ¸ ÑÐ»Ð°Ð¹Ð´ÐµÑ€Ð° Ñ‚Ð¾Ð²Ð°Ñ€Ð¾Ð² */

.hitek-alternative__product-navigation {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.hitek-alternative__product-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    padding: 0;

    color: #555;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    box-shadow: none;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.hitek-alternative__product-arrow svg {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.hitek-alternative__product-arrow:hover:not(:disabled) {
    color: #9a721a;
    background: #fffaf0;
    border-color: #d1b04b;
}

.hitek-alternative__product-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.hitek-alternative__product-arrow[hidden] {
    display: none !important;
}

.hitek-alternative__product-arrow:focus-visible {
    outline: 2px solid #d1b04b;
    outline-offset: 3px;
}

/* ========================================
   ÐšÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ Ñ‚Ð¾Ð²Ð°Ñ€Ð¾Ð²
   ======================================== */

.hitek-alternative__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 4);
    grid-template-columns: none;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.hitek-alternative__grid::-webkit-scrollbar {
    display: none;
}

.hitek-alternative__card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 15px;

    background: #fff;
    border: 1px solid #ededed;
    border-radius: 10px;
    scroll-snap-align: start;
}

/* Ð˜Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ */

.hitek-alternative__image {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 190px;
    margin-bottom: 15px;
}

.hitek-alternative__image img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

/* Ð˜Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð¾ Ñ‚Ð¾Ð²Ð°Ñ€Ðµ */

.hitek-alternative__product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 9px;
}

.hitek-alternative__product-name {
    min-height: 38px;
    font-size: 13px;
    line-height: 1.45;
}

.hitek-alternative__price {
    margin-top: auto;
    font-size: 17px;
    font-weight: 700;
}

/* ========================================
   ÐœÐ¾Ð±Ð¸Ð»ÑŒÐ½Ð°Ñ Ð²ÐµÑ€ÑÐ¸Ñ
   ======================================== */

@media (max-width: 767px) {
    .hitek-alternative {
        margin: 24px 0 32px;
        padding: 16px;
    }

    .hitek-alternative__header {
        margin-bottom: 16px;
    }

    .hitek-alternative__header .hitek-alternative__title {
        font-size: 1.26em !important;
    }

    .hitek-alternative__description {
        font-size: 13px;
    }

    .hitek-alternative__navigation {
        gap: 6px;
        margin-bottom: 20px;
    }

    .hitek-alternative__tabs {
        gap: 22px;
    }

    .hitek-alternative__tab {
        padding: 12px 0 13px;
        font-size: 12px;
    }

    .hitek-alternative__nav-arrow {
        flex-basis: 26px;
        width: 26px;
        min-width: 26px;
    }

    .hitek-alternative__panel {
        display: flex;
        flex-direction: column;
    }

    .hitek-alternative__panel-info {
        display: contents;
    }

    .hitek-alternative__shop-address {
        margin-top: 4px;
    }

    .hitek-alternative__shop {
        order: 1;
        flex: 0 0 auto;

        gap: 13px;
        min-height: 76px;
        padding: 14px;

        background: linear-gradient(110deg,
                #fffaf0,
                #fffcf7);
        border-radius: 10px;
    }

    .hitek-alternative__shown-count {
        order: 2;
        min-height: 32px;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .hitek-alternative__product-navigation {
        gap: 6px;
    }

    .hitek-alternative__product-arrow {
        width: 30px;
        height: 30px;
    }

    .hitek-alternative__grid {
        order: 3;
    }

    .hitek-alternative__select-shop {
        order: 4;
        flex: 0 0 auto;
        align-self: stretch;
        width: 100%;
        min-height: 48px;
        margin-top: 16px;
        padding: 13px 16px;
        font-size: 14px;
    }


    .hitek-alternative__grid {
        grid-auto-columns: calc((100% - 8px) / 2);
        gap: 8px;
    }

    .hitek-alternative__card {
        padding: 10px;
    }

    .hitek-alternative__image {
        height: 135px;
        margin-bottom: 10px;
    }

    .hitek-alternative__product-name {
        min-height: 0;
        font-size: 12px;
    }

    .hitek-alternative__price {
        font-size: 15px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .hitek-alternative__tab,
    .hitek-alternative__nav-arrow {
        transition: none;
    }
}