:root {
    --top-banner-height: 40px;
    --header-main-height: 64px;
    --header-sub-height: 48px;
    --header-main-top: var(--top-banner-height);
    --header-sub-top: calc(var(--header-main-top) + var(--header-main-height));
    --header-stack-height: calc(var(--header-sub-top) + var(--header-sub-height));
}

@media (min-width: 1024px) {
    .top-banner {
        top: 0;
        transform: translateY(0);
    }

    .top-banner.hide-banner {
        top: 0;
        transform: translateY(-100%);
    }

    .navigation-container,
    .navigation-container.banner-inline {
        top: var(--header-main-top);
    }

    .navigation-subcontainer,
    .navigation-subcontainer.banner-inline {
        top: var(--header-sub-top);
    }

    .catalog-popover,
    .catalog-popover.withdiscount {
        top: calc(var(--header-stack-height) - 1px);
    }

    .container-topdivider,
    .container-topdivider.withdiscount {
        margin-top: calc(var(--header-stack-height) + 26px);
    }

    .container-topdivider.inline,
    .container-topdivider.inline.withdiscount {
        margin-top: calc(var(--header-stack-height) - 4px);
    }

    .ctp-grid > .ctp-column-pricefrom {
        min-width: 220px;
    }

    .ctp-grid > .ctp-column-pricefrom .ctp-section {
        float: none;
        display: block;
    }

    .ctp-grid > .ctp-column-pricefrom .ctp-item {
        white-space: nowrap;
    }
}

.ic-techsheet-add {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 4px;
    background-color: rgba(40, 39, 43, 0.28);
    color: #ffffff;
    text-transform: uppercase;
    font-family: opensans-semibold;
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.6;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    transition: 0.2s;
    box-sizing: border-box;
}

.preview-wineset .label-stock ~ .ic-techsheet-add {
    left: 60px;
    top: 8px;
}

.ic-techsheet-add > .ic-techsheet-icon {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    flex: 0 0 20px;
}

.ic-techsheet-add > .ic-techsheet-icon::before {
    content: "PDF";
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 7px;
    line-height: 7px;
    letter-spacing: 0.3px;
    font-family: opensans-semibold;
}

.ic-techsheet-add > span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
    line-height: 11px;
    transition: 0.2s;
}

.ic-techsheet-add::after {
    content: none;
    display: none;
}

.preview-wineset:hover .ic-techsheet-add {
    top: 20px;
    opacity: 0.85;
    background-color: rgba(40, 39, 43, 0.5);
}

.preview-wineset:hover .ic-techsheet-add:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.6);
}

.preview-wineset.techsheet-focus .ic-techsheet-add {
    width: auto;
    min-width: 34px;
    max-width: 150px;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 10px;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.62);
}

.preview-wineset.techsheet-focus .ic-techsheet-add > span {
    max-width: 96px;
    opacity: 1;
}

.preview-wineset.techsheet-focus .ic-techsheet-add::after {
    opacity: 0 !important;
}

.preview-wineset .ic-winebox-add::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: url(../assets/ic_cart_white.svg) center center no-repeat;
    background-size: 20px 20px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.preview-wineset.techsheet-focus .ic-winebox-add {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    border-radius: 4px;
}

.preview-wineset.techsheet-focus .ic-winebox-add::before {
    opacity: 1;
}

.preview-wineset.techsheet-focus:hover img {
    -webkit-transform: translateX(32px);
    -ms-transform: translateX(32px);
    transform: translateX(32px);
}

.ic-techsheet-add.disabled {
    opacity: 0.55;
    cursor: pointer;
    pointer-events: auto;
}

.ic-techsheet-add.disabled > .ic-techsheet-icon {
    border-color: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 980px) {
    .ic-techsheet-add {
        top: 20px;
        left: 20px;
        right: auto;
        width: 32px;
        height: 32px;
        padding: 0;
        opacity: 0.75;
    }

    .preview-wineset .label-stock ~ .ic-techsheet-add {
        left: 92px;
        top: 20px;
    }

    .preview-wineset:hover .ic-techsheet-add {
        opacity: 0.75;
    }

    .preview-wineset:hover .label-stock ~ .ic-techsheet-add {
        top: 20px;
    }

    .preview-wineset.techsheet-focus .ic-techsheet-add {
        width: 32px;
        min-width: 32px;
        padding: 0;
        gap: 0;
    }

    .preview-wineset.techsheet-focus .ic-techsheet-add > span {
        max-width: 0;
        opacity: 0;
    }

    .preview-wineset.techsheet-focus .ic-winebox-add {
        width: auto;
        height: auto;
        padding: 8px 16px 9px 16px;
        border-radius: 2px;
        font-size: 12px;
        line-height: normal;
    }

    .preview-wineset.techsheet-focus .ic-winebox-add::before {
        opacity: 0;
    }

    .ic-techsheet-add::after {
        display: none;
    }
}
