/* Desktop/base styles for Bee Cart component. Mobile rules are in css/media.css. */
.bc-cart-w * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.bc-cart-w {
    position: fixed;
    top: 0;
    z-index: 1000;
    right: 0;
    -ms-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
}

.bc-cart-w--left {
    right: auto;
    left: 0;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}

.bc-cart-w--left .bc-cart-w-btn-show-cart {
    left: auto;
    right: -58px;
    border-radius: 0 2px 2px 0;
    -webkit-border-radius: 0 2px 2px 0;
    border-radius: 0 2px 2px 0;
}

.bc-cart-w-visible .bc-cart-w {
    -ms-transform: translateX(0) translateY(-50%);
    -webkit-transform: translateX(0) translateY(-50%);
    transform: translateX(0) translateY(-50%);
    top: 50% !important;
}

.bc-cart-w-btn-show-cart {
    width: 24px;
    height: 24px;
    background: transparent;
    -webkit-border-radius: 2px 0 0 2px;
    border-radius: 2px 0 0 2px;
    cursor: pointer;
    border-right: none;
    z-index: 10;
}

.bc-cart-w-btn-show-cart-count {
    position: absolute;
    left: 14px;
    top: -3px;
    width: 14px;
    height: 14px;
    line-height: 20px;
    white-space: nowrap;
    font-size: 8px;
    color: #FFF;
    -webkit-border-radius: 100%;
    text-align: center;
    background-color: #ee3733;
    line-height: 14px;
}

.bc-cart-w-btn-show-cart-count__ico {
    margin: 0;
    width: 24px;
    height: 24px;
}
.bc-cart-w-visible .bc-cart-w-btn-show-cart-count,
.bc-cart-w-visible .bc-cart-w-btn-show-cart-count__ico{
    display: none;
}
.bc-cart-w-btn-show-cart-count__close{
    display: none;
	position: fixed;
    right: 25px;
    top: 25px;
    width: 22px;
    height: 22px;
    z-index: 1001;
}
.bc-cart-w-btn-show-cart-count__close svg{
	width: 22px;
    height: 22px;
}
.bc-cart-w-btn-show-cart-count__close svg path{
    stroke:#0C0C2D!important;
}
.bc-cart-w-btn-show-cart-count__close:hover{
    stroke: #ee3834;
}
.bc-cart-w-visible .bc-cart-w-btn-show-cart-count__close{
    display: block;
}
.bc-cart-w-content {
	background-color: #fff;
    max-width: 550px;
    width: 550px;
    height: 100vh;
    position: relative;
    bottom: 0;
    margin-top: 0;
    border-radius: 25px 0 0 25px;
}
.bc-cart-w-visible .bc-cart-w .bc-cart-w-content {
    -webkit-box-shadow:2px 2px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
}
.bc-cart-w-title {
	font-size: 40px;
    color: #000;
    font-weight: 500;
    line-height: 1;
    display: grid;
    grid-template-columns: 1fr 4.5fr 1fr;
    padding-top: 50px;
    gap: 12px;
    margin-top: 30px;
}
.bc-cart-w-title svg{
	width: 40px;
    height: 40px;
}
.bc-cart-w-title svg path{
	stroke:#0C0C2D!important;
}
.bc-cart-w-delete-all svg path{
	stroke:#ee3733!important;
}

.bc-cart-w-delete-all:link,
.bc-cart-w-delete-all:visited,
.bc-cart-w-delete-all {
    font-size: 14px;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-decoration: none;
    display: flex;
    border-radius: 20px;
    max-height: 35px;
    position: relative;
    top: 4px;
    padding: 0px 20px;
		color:#ee3733;
    border: 1px solid #ee3733;
		gap: 8px;
}
.bc-cart-w-delete-all svg {
	width:18px;
	height:18px;
	stroke:#ee3733;
}
.bc-cart-w-delete-all svg path{
	stroke:#ee3733;
}

.bc-cart-w-delete-all:hover {
    background-color: #ee3733;
    color: #fff;;
}
.bc-cart-w-delete-all:hover svg path{
    stroke: #fff !important;
}

.bc-cart-w-delete-all:hover:before {
    background-image: url(images/i_cart-item-delete_a.png);
}

.bc-cart-w-content-inner {
    clear: both;
}

.bc-cart-w-title-w {
    overflow: hidden;
    padding: 25px;
}

.bc-cart-w-content-item, .bc-cart-w-content-item-header-w {
    display: flex;
    width: 100%;
    padding: 15px 25px;
    align-items: center;
    justify-content: space-between;
		position: relative;
}
.bc-cart-w-content-item:hover .bc-cart-w-content-td-remove-link {
    opacity: 1;
}

.bc-cart-w-content-item-header, .bc-cart-w-content-item-body {
    display: table-cell;
}

.bc-cart-w-content-item-body-1,
.bc-cart-w-content-item-header-1 {
    width: 60%;
    border-right: none;
    width: 385px;
}

.bc-cart-w-content-item-body-2,
.bc-cart-w-content-item-header-2 {
    width: 20%;
    border-right: 1px solid #e2e2e2;
    width: 128px;
}

.bc-cart-w-content-item-body-3,
.bc-cart-w-content-item-header-3 {
    /* width: 20%; */
}

.bc-cart-w-content-item-header-w {
    background-color: rgb(242, 242, 242);
    text-align: center;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}

.bc-cart-w-content-tbl-total {
    background-color: rgb(242, 242, 242);
    padding: 15px 60px 15px 20px;
    text-align: right;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}
.bc-cart-w-content-tbl-discount {
    font-weight: 300;
    font-size: 14px;
    margin-bottom: 5px;
}
.bc-cart-w-content-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.bc-cart-w-content-item-body-2 {
    font-size: 16px;
    color: #000;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.bc-cart-w-content-price-w {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 100%;
}

.bc-cart-w-content--old-price {
    font-size: 15px;
    color: #8c8c8c;
    font-weight: 400;
    position: relative;
    display: inline-block
}

.bc-cart-w-content--old-price:before {
    content: '';
    display: block;
    position: absolute;
    border-top: none;
    top: 50%;
    left: -2px;
    right: -2px;
}

.bc-cart-w-content-counter-qty {
	cursor: pointer;
       width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
    font-weight: 500;
    color: #0C0C2D;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background .15s;
}

.bc-cart-w-content-counter-qty:hover {
    background-color: #f2f2f2;
}

.bc-cart-w-content-counter {
    grid-area: qty;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    border-radius: 40px;
    padding: 4px;
}

.bc-cart-w-content-counter-qty.minus, .bc-cart-w-content-counter-qty.plus {
	cursor: pointer;
    width: 24px;
    height: 24px;
    display: block;
    float: left;
    border: none;
    margin: 0 2px;
    position: relative;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    text-align: center;
    padding: 0;
    color: #000;
    background: transparent;
    border: none;
}
.bc-cart-w-content-counter-qty.plus {
    margin: 2px 2px 0;
}
.bc-cart-w-content-counter-qty.minus:hover, .bc-cart-w-content-counter-qty.plus:hover {
	background: #e4e7ec;
}
.bc-cart-w-content-counter .counter-field {
		min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
		    border: none;
    background: transparent;
}

.bc-cart-w-content-counter .counter-field:hover,
.bc-cart-w-content-counter .counter-field:focus,
.bc-cart-w-content-counter .counter-field:active {
    outline: none;
}

.bc-cart-w-content-name a:visited,
.bc-cart-w-content-name a:link,
.bc-cart-w-content-name a {
    text-decoration: none;
	display:block;
}

.bc-cart-w-content-checkout:visited,
.bc-cart-w-content-checkout:link,
.bc-cart-w-content-checkout {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    padding: 6px 16px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    background-color: #ee3733;
    float: right;
}

.bc-cart-w-content-checkout:hover,
.bc-cart-w-content-checkout:active,
.bc-cart-w-content-checkout:focus {
    background: #444;
    color: #fff;
}

.bc-cart-continue-shopping-link:visited,
.bc-cart-continue-shopping-link:link,
.bc-cart-continue-shopping-link {
    color: #0C0C2D;
    top: 30px;
    opacity: .5;
    position: fixed;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding-bottom: 1px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid #0C0C2D;
    transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}
.bc-cart-continue-shopping-link svg path {
		stroke: #0C0C2D!important;
}

.bc-cart-continue-shopping-link:hover,
.bc-cart-continue-shopping-link:active,
.bc-cart-continue-shopping-link:focus {
    color: #007DFF;
}

.bc-cart-w-content-attr {
        font-size: 14px;
    font-weight: 500;
    color: #0C0C2D;
}


.bc-cart-w-content-item-image {
    float: left;
    margin-right: 15px;
    width: 80px;
    text-align: center;
	background: #EFFAFF;
}

.bc-cart-w-content-item-image img {
    max-width: 100%;
}

.bc-cart-w-content-tbl-checkout {
    overflow: hidden;
    padding: 40px 30px 15px;
}

.bc-cart-w-content-td-remove-link {
        right: 25px;
    content: '';
    display: inline-block;
    position: absolute;
    cursor: pointer;
    width: 16px;
    height: 16px;
    top: 2px;
    font-size: 0;
    margin-top: 0;
    padding: 0;
    -webkit-border-radius: 0%;
    border-radius: 0%;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
		opacity: 0;

}
.bc-cart-w-content-td-remove-link  svg path {
	stroke:#ff0100;
}
.bc-cart-w-content-td-remove-link:hover svg path {
	stroke:#ff0100;
}
.bc-cart-w-content-item-body.bc-cart-w-content-item-body-3 {
    text-align: center;
}

.bc-cart-w-content-tbl-w {
    max-height: 64vh;
		margin-top: 40px;
    overflow-y: auto;
}

.bc-cart-w-content-title-empty {

}

.bc-cart-w-content-item-detail {
    min-height: 80px;
	display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.bc-cart-fly-item {
    background-color: #f00;
    width: 30px;
    height: 30px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    background: url(images/cart.png) no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100%;
}


/*button add to cart start*/
.product-buy-block [name="product_count"] {
    cursor: pointer;
    width: 27px;
    height: 27px;
    display: block;
    float: left;
    border: 1px solid #a9a9a9;
    position: relative;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    text-align: center;
    padding: 0;
    color: #000;
    margin-right: -1px;

}
.product-buy-block .product-buy-link {
    display: inline-block;
    color: white;
    background-color: #009688;
    padding: 5px 15px 6px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    text-decoration: none;
    height: 27px;
    font-size: 13px;
    line-height: 1.4;
}

.product-buy-block .product-buy-link:hover,
.product-buy-block .product-buy-link:focus{
    background-color: #26A69A;
}
.product-buy-block {
    margin: 15px 0;
    overflow: hidden;
}
.product-count-spinner__item{
    cursor: pointer;
    width: 25px;
    height: 27px;
    display: block;
    float: left;
    text-align: center;
    border: 1px solid #a9a9a9;
    position: relative;
    font-size: 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.product-count-spinner__item--down {
    margin-right: -1px;
    background-image: url(images/i_minus.png);
}
.product-count-spinner__item--up {

    background-image: url(images/i_plus.png);
}
.product-count-spinner{
    margin-right: 5px;
    float: left;

}
.product-buy-link_in-cart{
    cursor: not-allowed;
    opacity: 0.7;
}
/*button add to cart end*/
.additional-params-item{
    border: none;
    display: inline-block;
    padding: 0;
    line-height: 25px;
    background-color: transparent;
    color: #0C0C2D;
		font-weight: 600;
    margin: 0;
    font-size: 13px;
		letter-spacing: -.03rem;
}
/* ============================================================
   bee_cart — мобильная адаптация (Ventala Airflow design system)
   Подключается из template.php:
   $this->addExternalCss($templateFolder . "/css/media.css");
   template.php не изменяется.
   ============================================================ */

:root {
    --vnt-primary: #007DFF;   /* colors.primary / accent */
    --vnt-ink: #000000;       /* colors.secondary / text */
    --vnt-surface: #FFFFFF;   /* colors.surface */
    --vnt-border: #E5E7EB;    /* colors.border / neutral */
    --vnt-muted: #F3F4F6;     /* colors.muted */
    --vnt-error: #D92D20;     /* colors.error */
    --vnt-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --vnt-radius-md: 8px;     /* rounded.md — карточки */
    --vnt-radius-full: 9999px;/* rounded.full — кнопки-пилюли */
    --vnt-control-h: 44px;    /* высота кнопок по гайду */
    --vnt-space-xs: 8px;
    --vnt-space-sm: 16px;
    --vnt-space-md: 24px;
}

@media (max-width: 768px) {

   .bc-cart-w-visible .bc-cart-w {
		width:100%;
	}
    .bc-cart-w-content {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh; /* учитывает панели мобильных браузеров */
        border-radius: 0;
        display: flex;
        flex-direction: column;
        font-family: var(--vnt-font);
        background-color: var(--vnt-surface);
    }

    .bc-cart-w-content-inner {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .bc-cart-w-content-inner > div:first-child {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .bc-cart-w-content-top {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    /* ---------- Кнопка закрытия ---------- */
    .bc-cart-w-btn-show-cart-count__close {
        right: var(--vnt-space-sm);
        top: var(--vnt-space-sm);
        width: 44px;   /* увеличенная зона касания */
        height: 44px;
        display: none;
        align-items: center;
        justify-content: center;
        border-radius: var(--vnt-radius-full);
        background: var(--vnt-muted);
    }

    .bc-cart-w-visible .bc-cart-w-btn-show-cart-count__close {
        display: flex;
    }

    .bc-cart-w-btn-show-cart-count__close svg {
        width: 16px;
        height: 16px;
    }

    /* ---------- Заголовок ---------- */
    .bc-cart-w-title-w {
        padding: var(--vnt-space-sm);
        flex: 0 0 auto;
    }

    .bc-cart-w-title {
        /* headline-sm: Montserrat 500 20/24 */
        font: 500 20px/24px var(--vnt-font);
        color: var(--vnt-ink);
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: var(--vnt-space-xs);
        padding-top: 52px; /* место под кнопку закрытия */
        margin-top: 30px;
    }

    .bc-cart-w-title svg {
        width: 24px;
        height: 24px;
    }

    /* "Очистить" — компактная пилюля, error-цвет по гайду */
    .bc-cart-w-delete-all,
    .bc-cart-w-delete-all:link,
    .bc-cart-w-delete-all:visited {
        /* label-sm: 500 12/16, letter-spacing .04em */
        font: 500 12px/16px var(--vnt-font);
        letter-spacing: 0.04em;
        height: 32px;
        max-height: 32px;
        padding: 0 12px;
        top: 0;
        gap: 6px;
        border-radius: var(--vnt-radius-full);
        color: var(--vnt-error);
        border: 1px solid var(--vnt-error);
    }

    .bc-cart-w-delete-all svg {
        width: 14px;
        height: 14px;
    }

    .bc-cart-w-delete-all svg path,
    .bc-cart-w-delete-all:link svg path {
        stroke: #fff !important;
    }
		  .bc-cart-w-content-item:first-child {
        border-top: 1px solid #eee;
        padding: 15px;
    }
    .bc-cart-w-delete-all:hover,
    .bc-cart-w-delete-all:active {
        background-color: var(--vnt-error);
        color: #fff;
    }

    /* ---------- Список товаров ---------- */
    .bc-cart-w-content-tbl-w {
        max-height: none;
        flex: 1 1 auto;
        min-height: 0;
        margin-top: var(--vnt-space-xs);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Карточка позиции: инфо сверху, цена слева, счётчик справа */
    .bc-cart-w-content-item {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "info info"
            "price qty";
        gap: 12px;
        padding: var(--vnt-space-sm);
        align-items: center;
    }

    .bc-cart-w-content-item:not(:last-child) {
        border-bottom: 1px solid var(--vnt-border);
    }

    .bc-cart-w-content-item-body {
        display: block;
    }

    .bc-cart-w-content-item-body-1 {
        grid-area: info;
        width: 100%;
        display: flex;
        gap: 12px;
        border-right: none;
    }

    .bc-cart-w-content-item-image {
        float: none;
        flex: 0 0 64px;
        width: 64px;
        margin-right: 0;
        border-radius: 0;
        border: none;
        overflow: hidden;
        align-self: flex-start;
    }

    .bc-cart-w-content-item-detail {
        min-height: 0;
        justify-content: flex-start;
        gap: 4px;
    }

    .bc-cart-w-content-name a {
        /* label-md */
        font: 600 14px/20px var(--vnt-font);
        color:#007DFF;
    }

    .bc-cart-w-content-attr {
        /* caption */
        font-size: 12px;
        line-height: 16px;
        font-weight: 400;
    }

    .additional-params-item {
        font-size: 12px;
        line-height: 18px;
				color: #0C0C2D;
    }

    /* Цена — статично, без absolute-центрирования */
    .bc-cart-w-content-item-body-2 {
        grid-area: price;
        width: auto;
        border-right: none;
        text-align: left;
        font: 500 16px/20px var(--vnt-font);
        color: var(--vnt-ink);
    }

    .bc-cart-w-content-price-w {
        position: static;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
        width: auto;
    }

    .bc-cart-w-content--old-price {
        font-size: 13px;
        text-decoration: line-through;
    }

    /* Счётчик + удаление */
    .bc-cart-w-content-item-body-3 {
        grid-area: qty;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: flex-end;
        text-align: right;
    }

    .bc-cart-w-content-counter {
        background: var(--vnt-muted);
        border-radius: var(--vnt-radius-full);
        padding: 2px;
    }

    /* Зоны касания */
    .bc-cart-w-content-counter-qty.minus,
    .bc-cart-w-content-counter-qty.plus {
        width: 32px;
        height: 32px;
        float: none;
        margin: 0;
        display: grid;
        place-items: center;
        border-radius: var(--vnt-radius-full);
    }

    .bc-cart-w-content-counter .counter-field {
        min-width: 28px;
        font: 600 14px/20px var(--vnt-font);
    }

    /* Удаление всегда видно (hover на тач-устройствах нет) */
    .bc-cart-w-content-td-remove-link {
        position: static;
        opacity: 1;
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: var(--vnt-radius-full);
        background: var(--vnt-muted);
        margin: 0;
    }

    .bc-cart-w-content-td-remove-link svg path {
        stroke: var(--vnt-error);
    }

    /* ---------- Низ: оформление заявки ---------- */
    .bc-cart-w-conten-bottom {
        flex: 0 0 auto;
    }

    .bc-cart-w-content-tbl-checkout {
        display: flex;
        flex-direction: column-reverse; /* кнопка сверху, ссылка под ней */
        gap: 12px;
        padding: var(--vnt-space-sm);
        padding-bottom: calc(var(--vnt-space-sm) + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--vnt-border);
        background: var(--vnt-surface);
    }

    /* Основное действие: чёрная пилюля 44px (button-primary) */
    .bc-cart-w-content-tbl-checkout .how {
        display: flex;
        align-items: center;
        justify-content: center;
        height: var(--vnt-control-h);
        padding: 8px 16px;
        border-radius: var(--vnt-radius-full);
        background: #D2FCB3;
        color: #0C0C2D;
        font: 500 14px/20px var(--vnt-font);
        text-decoration: none;
    }
		.bc-cart-w-content-item-body-1, .bc-cart-w-content-item-body-2, .bc-cart-w-content-item-body-3 {
        display: flex!important;
				text-align: start!important;
    }
    .bc-cart-w-content-tbl-checkout .how:active {
        background: var(--vnt-primary);
    }

    /* "Продолжить покупки" — текстовая ссылка (button-link), не fixed */
    .bc-cart-continue-shopping-link,
    .bc-cart-continue-shopping-link:link,
    .bc-cart-continue-shopping-link:visited {
        position: static;
        opacity: 1;
        justify-content: center;
        font: 500 12px/16px var(--vnt-font);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--vnt-ink);
        border-bottom: none;
        text-decoration: none;
    }

    .bc-cart-continue-shopping-link:active {
        color: var(--vnt-primary);
    }

    .bc-cart-continue-shopping-link svg {
        width: 14px;
        height: 12px;
    }

    /* ---------- Пустая корзина ---------- */
    .bc-cart-w-content-title-empty {
        padding: 0 var(--vnt-space-sm) var(--vnt-space-md);
        font-family: var(--vnt-font);
    }
}

/* Узкие экраны */
@media (max-width: 380px) {
    .bc-cart-w-title {
        font-size: 18px;
        line-height: 22px;
    }

    .bc-cart-w-content-item {
        gap: 10px;
        padding: 12px var(--vnt-space-sm);
    }

    .bc-cart-w-content-item-image {
        flex-basis: 56px;
        width: 56px;
    }
}
