/* HyperTechno homepage composition v3. All selectors are scoped to .ht-home. */
.ht-home {
    --ht-home-accent: var(--ht-color-primary, #d71920);
    --ht-home-accent-dark: var(--ht-color-primary-dark, #aa1419);
    --ht-home-ink: var(--ht-color-ink, #111313);
    --ht-home-muted: var(--ht-color-muted, #676b73);
    --ht-home-surface: var(--ht-color-surface, #fff);
    --ht-home-page: var(--ht-color-soft, #f6f7f9);
    --ht-home-line: var(--ht-color-line, #e5e7eb);
    --ht-home-radius: var(--ht-radius-lg, 16px);
    color: var(--ht-home-ink);
}

.cms-index-index .ht-home {
    padding-block: var(--ht-space-5, 20px) var(--ht-page-shell-gap, 48px);
    background: var(--ht-home-page);
}

.ht-home .ht-home__section {
    margin-block: 0 32px;
}

.ht-home .ht-home__hero {
    margin-block-end: 22px;
}

.ht-home .ht-home__hero .ht-banner,
.ht-home .ht-home__promo .ht-banner {
    margin: 0;
}

.ht-home .ht-home__hero .ht-banner-item,
.ht-home .ht-home__promo .ht-banner-item {
    border-radius: var(--ht-home-radius);
}

.ht-home .ht-home__panel {
    padding: 24px;
    border: 1px solid var(--ht-home-line);
    border-radius: var(--ht-home-radius);
    background: var(--ht-home-surface);
    box-shadow: 0 8px 26px rgba(16, 24, 40, .05);
}

.ht-home .ht-home__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-block-end: 20px;
}

.ht-home .ht-home__title {
    margin: 0;
    color: var(--ht-home-ink);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.25;
}

.ht-home .ht-home__eyebrow {
    display: block;
    margin-block-end: 4px;
    color: var(--ht-home-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.ht-home .ht-home__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--ht-home-accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ht-home .ht-home__more:hover,
.ht-home .ht-home__more:focus {
    color: var(--ht-home-accent-dark);
    text-decoration: none;
}

.ht-home .ht-home__categories {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ht-home .ht-home__category {
    display: flex;
    min-width: 0;
    min-height: 164px;
    padding: 18px 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--ht-home-line);
    border-radius: 14px;
    background: #fff;
    color: var(--ht-home-ink);
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ht-home .ht-home__category:hover,
.ht-home .ht-home__category:focus {
    border-color: #f3a7a7;
    border-color: color-mix(in srgb, var(--ht-home-accent) 40%, white);
    color: var(--ht-home-accent);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.ht-home .ht-home__category-media {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
}

.ht-home .ht-home__category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ht-home .ht-home__category-fallback {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f0;
    background: color-mix(in srgb, var(--ht-home-accent) 9%, white);
    color: var(--ht-home-accent);
    font-size: 30px;
    font-weight: 800;
}

.ht-home .ht-home__category-name {
    min-height: 40px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.ht-home .ht-home__section-banner {
    display: block;
    margin-block-end: 24px;
    overflow: hidden;
    border: 1px solid var(--ht-border, #d9dde3);
    border-radius: 12px;
    background: var(--ht-surface-soft, #f6f7f9);
}

.ht-home .ht-home__section-banner img {
    display: block;
    inline-size: 100%;
    block-size: clamp(120px, 20vw, 240px);
    object-fit: contain;
}

.ht-home .ht-home__section-banner:focus-visible {
    outline: 2px solid var(--ht-home-accent);
    outline-offset: 4px;
}

.ht-home .ht-home__products .content-block,
.ht-home .ht-home__products .block {
    margin-block-end: 0;
    overflow: visible;
}

.ht-home .ht-home__products .product-items {
    margin-block-end: 0;
}

.ht-home .ht-home__products .owl-stage-outer {
    margin: -6px -3px -12px;
    padding: 6px 3px 12px;
}

.ht-home .ht-home__products .owl-stage {
    display: flex;
    align-items: stretch;
}

.ht-home .ht-home__products .owl-item {
    display: flex;
    height: auto;
}

.ht-home .ht-home__products .product.product-item {
    display: flex;
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
}

.ht-home .ht-home__products .product-item-info {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .05);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.ht-home .ht-home__products .product-item-info:hover,
.ht-home .ht-home__products .product-item-info:focus-within {
    border-color: #f2abab;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .11);
    transform: translateY(-4px);
}

.ht-home .ht-home__products .product-item-info .product-top {
    position: relative;
    padding: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    border-block-end: 1px solid #edf0f3;
    background: #f7f8fa;
}

.ht-home .ht-home__products .product-top .product-item-photo {
    position: relative !important;
    z-index: 1;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.ht-home .ht-home__products .product-top img.product-image-photo,
.ht-home .ht-home__products .product-top img.img-hover-show {
    top: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
    height: calc(100% - 24px) !important;
    padding: 0 !important;
    object-fit: contain;
}

.ht-home .ht-home__products .product-top .product-item-photo::after {
    background: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.ht-home .ht-home__products .product-label {
    inset: 12px auto auto 12px !important;
    display: block !important;
    width: auto;
    min-width: 52px;
    height: 24px;
    padding-inline: 8px;
    border-radius: 999px;
    background: var(--ht-home-accent) !important;
    box-shadow: 0 5px 12px rgba(236, 1, 1, .2);
    color: #fff;
    direction: ltr;
    font-size: 11px;
    font-weight: 800;
    line-height: 24px;
    position: absolute !important;
    unicode-bidi: isolate;
    z-index: var(--ht-layer-card-badge, 6);
}

.ht-home .ht-home__products .product-label.multiple-label {
    margin-top: 32px;
}

.ht-home .ht-home__products .product-top .actions-link {
    inset: 12px 12px auto auto !important;
    display: flex;
    margin: 0;
    flex-direction: column !important;
    gap: 8px;
    position: absolute !important;
    z-index: var(--ht-layer-card-actions, 8);
}

.ht-home .ht-home__products .product-top .actions-link > li {
    margin: 0 !important;
}

.ht-home .ht-home__products .product-top .actions-link button,
.ht-home .ht-home__products .product-top .actions-link a.action.quickview {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e7ec !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .96) !important;
    color: var(--ht-home-ink) !important;
    box-shadow: 0 5px 14px rgba(16, 24, 40, .1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-5px) scale(.94) !important;
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease,
        border-color .18s ease, color .18s ease !important;
}

.ht-home .ht-home__products .product-item-info:hover .actions-link button,
.ht-home .ht-home__products .product-item-info:hover .actions-link a.action.quickview,
.ht-home .ht-home__products .product-item-info:focus-within .actions-link button,
.ht-home .ht-home__products .product-item-info:focus-within .actions-link a.action.quickview {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.ht-home .ht-home__products .product-top .actions-link button:hover,
.ht-home .ht-home__products .product-top .actions-link button:focus,
.ht-home .ht-home__products .product-top .actions-link a.action.quickview:hover,
.ht-home .ht-home__products .product-top .actions-link a.action.quickview:focus {
    border-color: var(--ht-home-accent) !important;
    background: var(--ht-home-accent) !important;
    color: #fff !important;
}

.ht-home .ht-home__products .product-top .action-mobile {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    padding: 28px 12px 12px !important;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(247, 248, 250, 0), rgba(247, 248, 250, .98) 42%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.ht-home .ht-home__products .product-item-info:hover .action-mobile,
.ht-home .ht-home__products .product-item-info:focus-within .action-mobile {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

.ht-home .ht-home__products .product-top .action-mobile > form {
    width: 100% !important;
}

.ht-home .ht-home__products .product-top .tocart.btn-cart {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 6 !important;
    display: inline-flex !important;
    width: 100% !important;
    height: 42px;
    padding: 0 14px !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--ht-home-accent) !important;
    border-radius: 10px !important;
    background: var(--ht-home-accent) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: 0 7px 14px rgba(236, 1, 1, .18);
}

.ht-home .ht-home__products .product-top .tocart.btn-cart:hover,
.ht-home .ht-home__products .product-top .tocart.btn-cart:focus {
    border-color: var(--ht-home-accent-dark) !important;
    background: var(--ht-home-accent-dark) !important;
}

.ht-home .ht-home__products .product-item-details {
    display: flex;
    min-width: 0;
    min-height: 126px;
    padding: 14px 14px 16px !important;
    flex: 1 1 auto;
    flex-direction: column;
    text-align: start !important;
}

.ht-home .ht-home__products .product-item-name {
    display: block;
    min-height: 46px;
    margin: 0 0 10px !important;
    overflow: hidden;
}

.ht-home .ht-home__products .product-item-name .product-item-link {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ht-home-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ht-home .ht-home__products .product-item-name .product-item-link:hover,
.ht-home .ht-home__products .product-item-name .product-item-link:focus {
    color: var(--ht-home-accent) !important;
}

.ht-home .ht-home__products .price-box {
    display: flex;
    min-height: 26px;
    margin: auto 0 0 !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: var(--ht-home-accent);
}

.ht-home .ht-home__products .price-box .price {
    color: var(--ht-home-accent) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.35;
}

.ht-home .ht-home__products .price-box .special-price,
.ht-home .ht-home__products .price-box .regular-price,
.ht-home .ht-home__products .price-box .minimal-price,
.ht-home .ht-home__products .price-box .old-price {
    display: inline-flex;
    margin: 0 !important;
    float: none !important;
}

.ht-home .ht-home__products .price-box .old-price .price {
    color: #8a9099 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.ht-home .ht-home__products .owl-nav > div,
.ht-home .ht-home__products .owl-nav > button {
    position: absolute !important;
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    place-items: center;
    border: 1px solid #d9dde3 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--ht-home-ink) !important;
    font-size: 22px !important;
    line-height: 1 !important;
    top: 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .12);
    transition: border-color .18s ease, background-color .18s ease, color .18s ease,
        box-shadow .18s ease, transform .18s ease !important;
}

.ht-home .ht-home__products .owl-nav > div > span,
.ht-home .ht-home__products .owl-nav > button > span {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
    line-height: 0 !important;
    transform: none !important;
}

.ht-home .ht-home__products .owl-nav > div > span > em,
.ht-home .ht-home__products .owl-nav > button > span > em {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: none !important;
}

.ht-home .ht-home__products .owl-nav > div > span > em::before,
.ht-home .ht-home__products .owl-nav > button > span > em::before {
    content: "" !important;
    position: static !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    font-size: 0 !important;
    line-height: 0 !important;
    transform-origin: 50% 50%;
}

.ht-home .ht-home__products .owl-nav > .owl-prev > span > em::before {
    transform: rotate(135deg) !important;
}

.ht-home .ht-home__products .owl-nav > .owl-next > span > em::before {
    transform: rotate(-45deg) !important;
}

.ht-home .ht-home__products .owl-rtl .owl-nav > .owl-prev > span > em::before,
.ht-home .ht-home__products .owl-carousel.owl-rtl .owl-nav > .owl-prev > span > em::before {
    transform: rotate(-45deg) !important;
}

.ht-home .ht-home__products .owl-rtl .owl-nav > .owl-next > span > em::before,
.ht-home .ht-home__products .owl-carousel.owl-rtl .owl-nav > .owl-next > span > em::before {
    transform: rotate(135deg) !important;
}

.ht-home .ht-home__products .owl-nav > div:not(.disabled):hover,
.ht-home .ht-home__products .owl-nav > div:not(.disabled):focus,
.ht-home .ht-home__products .owl-nav > button:not(.disabled):hover,
.ht-home .ht-home__products .owl-nav > button:not(.disabled):focus {
    border-color: var(--ht-home-accent) !important;
    background: var(--ht-home-accent) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(236, 1, 1, .26);
}

.ht-home .ht-home__products .owl-nav > div.disabled,
.ht-home .ht-home__products .owl-nav > button.disabled {
    border-color: #e3e6ea !important;
    background: #fff !important;
    color: #aab0b8 !important;
    opacity: .55 !important;
    pointer-events: none;
}

.ht-home .ht-home__promo .ht-mode-promo-grid,
.ht-home .ht-home__promo .ht-mode-flash-sale .ht-flash-grid {
    gap: 16px;
}

.ht-home .ht-home__services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: var(--ht-home-radius);
    background: var(--ht-home-ink);
    color: #fff;
}

.ht-home .ht-home__service {
    display: flex;
    min-width: 0;
    padding: 24px 20px;
    align-items: center;
    gap: 14px;
    border-inline-end: 1px solid rgba(255, 255, 255, .13);
}

.ht-home .ht-home__service:last-child {
    border-inline-end: 0;
}

.ht-home .ht-home__service-icon {
    flex: 0 0 auto;
    color: #fff;
    font-size: 32px;
}

.ht-home .ht-home__service-title {
    display: block;
    margin-block-end: 4px;
    font-size: 15px;
    font-weight: 800;
}

.ht-home .ht-home__service-text {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1199px) {
    .ht-home .ht-home__products .product-item-info {
        border-radius: 14px;
    }

    .ht-home .ht-home__products .product-item-details {
        padding-inline: 12px !important;
    }

    .ht-home .ht-home__products .owl-nav > div,
    .ht-home .ht-home__products .owl-nav > button {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 991px) {
    .ht-home .ht-home__categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ht-home .ht-home__services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-home .ht-home__products .product-item-info .product-top {
        padding: 10px;
    }

    .ht-home .ht-home__products .product-top img.product-image-photo,
    .ht-home .ht-home__products .product-top img.img-hover-show {
        top: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        height: calc(100% - 20px) !important;
    }

    .ht-home .ht-home__service:nth-child(2) {
        border-inline-end: 0;
    }

    .ht-home .ht-home__service:nth-child(-n + 2) {
        border-block-end: 1px solid rgba(255, 255, 255, .13);
    }
}

@media (max-width: 767px) {
    .cms-index-index .ht-home {
        padding-block: 10px 28px;
    }

    .ht-home .ht-home__section {
        margin-block-end: 22px;
    }

    .ht-home .ht-home__panel {
        padding: 18px 14px;
        border-radius: 13px;
    }

    .ht-home .ht-home__heading {
        margin-block-end: 15px;
    }

    .ht-home .ht-home__title {
        font-size: 21px;
    }

    .ht-home .ht-home__categories {
        display: flex;
        margin-inline: -14px;
        padding-inline: 14px;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .ht-home .ht-home__categories::-webkit-scrollbar {
        display: none;
    }

    .ht-home .ht-home__category {
        min-width: 138px;
        min-height: 154px;
        scroll-snap-align: start;
    }

    .ht-home .ht-home__category-media {
        width: 86px;
        height: 86px;
    }

    .ht-home .ht-home__products .owl-stage-outer {
        margin-inline: -2px;
        padding-inline: 2px;
    }

    .ht-home .ht-home__products .product-item-info:hover,
    .ht-home .ht-home__products .product-item-info:focus-within {
        transform: translateY(-2px);
    }

    .ht-home .ht-home__products .product-item-info .product-top {
        padding: 8px;
    }

    .ht-home .ht-home__products .product-top img.product-image-photo,
    .ht-home .ht-home__products .product-top img.img-hover-show {
        top: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        height: calc(100% - 16px) !important;
    }

    .ht-home .ht-home__products .product-label {
        inset: 8px auto auto 8px !important;
        min-width: 46px;
        height: 24px;
        padding-inline: 8px;
        font-size: 10px;
        line-height: 24px;
    }

    .ht-home .ht-home__products .product-item-details {
        min-height: 116px;
        padding: 11px 10px 12px !important;
    }

    .ht-home .ht-home__products .product-item-name {
        min-height: 42px;
        margin-block-end: 8px !important;
    }

    .ht-home .ht-home__products .product-item-name .product-item-link {
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    .ht-home .ht-home__products .price-box .price {
        font-size: 14.5px !important;
    }

    .ht-home .ht-home__products .price-box .old-price .price {
        font-size: 11px !important;
    }

    .ht-home .ht-home__products .owl-nav {
        display: none !important;
    }

    .ht-home .ht-home__services {
        grid-template-columns: 1fr;
    }

    .ht-home .ht-home__service,
    .ht-home .ht-home__service:nth-child(2) {
        border-inline-end: 0;
        border-block-end: 1px solid rgba(255, 255, 255, .13);
    }

    .ht-home .ht-home__service:last-child {
        border-block-end: 0;
    }
}

@media (max-width: 480px) {
    .ht-home .ht-home__panel {
        padding-inline: 10px;
    }

    .ht-home .ht-home__title {
        font-size: 19px;
    }

    .ht-home .ht-home__more {
        font-size: 12px;
    }

    .ht-home .ht-home__products .product-item-details {
        min-height: 112px;
        padding: 9px 8px 11px !important;
    }

    .ht-home .ht-home__products .product-item-name .product-item-link {
        font-size: 12.5px !important;
    }

    .ht-home .ht-home__products .price-box {
        gap: 3px 5px;
    }

    .ht-home .ht-home__products .price-box .price {
        font-size: 13.5px !important;
    }

    .ht-home .ht-home__products .product-top .tocart.btn-cart {
        height: 36px;
        padding-inline: 8px !important;
        font-size: 11px;
    }

    .ht-home .ht-home__products .product-top .tocart.btn-cart .icon {
        display: none;
    }
}

@media (max-width: 767px), (hover: none) {
    .ht-home .ht-home__products .product-top .actions-link {
        display: none !important;
    }

    .ht-home .ht-home__products .product-top .action-mobile {
        position: static !important;
        inset: auto !important;
        z-index: 5 !important;
        padding: 8px 0 0 !important;
        background: transparent;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: none;
    }

    .ht-home .ht-home__products .product-top .tocart.btn-cart {
        height: 38px;
        border-radius: 9px !important;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .ht-home .ht-home__products .product-top .tocart.btn-cart {
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ht-home .ht-home__category,
    .ht-home .ht-home__products .product-item-info,
    .ht-home .ht-home__products .product-top .actions-link button,
    .ht-home .ht-home__products .product-top .actions-link a.action.quickview,
    .ht-home .ht-home__products .product-top .action-mobile,
    .ht-home .ht-home__products .owl-nav > div,
    .ht-home .ht-home__products .owl-nav > button {
        transition: none;
    }
}
