/* Основные стили для боковой корзины */
.cart-offcanvas {
   position: fixed;
   top: 0;
   right: -100%; /* Скрыто по умолчанию */
   width: 300px;
   height: 100%;
   background-color: #fff;
   box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
   overflow-y: auto;
   transition: right 0.3s ease;
   z-index: 1050;
}
.cart-offcanvas.is-open {
   right: 0; /* Показать корзину */
}
.overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   visibility: hidden;
   opacity: 0;
   transition: opacity 0.3s ease;
   z-index: 1040;
}
.overlay.is-visible {
   visibility: visible;
   opacity: 1;
}
.btn.offcanvas-close {
   position: absolute;
   top: 10px;
   right: 10px;
   background-color: #f5f5f5;
   border: none;
   padding: 10px;
   cursor: pointer;
   z-index: 1060;
}
.offcanvas-content-container {
   padding: 20px;
   height: calc(100% - 50px);
   box-sizing: border-box;
}
.offcanvas-cart-item {
   border-bottom: 1px solid #ddd;
   padding: 10px 0;
}
.cart-item-img img {
   max-width: 60px;
   max-height: 60px;
   object-fit: cover;
}
.cart-item-details {
   margin-left: 10px;
}
.offcanvas-summary {
   padding: 20px;
   border-top: 1px solid #ddd;
}
.offcanvas-summary-list {
   display: flex;
   justify-content: space-between;
}
.summary-label {
   font-weight: bold;
}
.summary-value {
   color: #333;
}
.offcanvas-cart-actions .btn {
   margin-top: 10px;
}
.begin-checkout-btn {
   background-color: #007bff;
   color: #fff;
   border: none;
   padding: 10px;
   text-align: center;
   display: block;
}
.btn-link {
   background-color: #f5f5f5;
   color: #007bff;
   text-align: center;
   display: block;
}

.cart-offcanvas {
    position: fixed;
    top: 0;
    right: -400px; /* Скрываем за пределами экрана */
    width: 400px;
    height: 100%;
    background-color: #fff;
    transition: right 0.3s ease;
    z-index: 1001;
}

.cart-offcanvas.open {
    right: 0; /* Показываем корзину */
}

.js-cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}