/* Canvas Slide-out Panel */
.brt-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.brt-canvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.brt-canvas {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: #f1f0ec;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.brt-canvas.active {
    right: 0;
}

.brt-canvas-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brt-canvas-close {
    background: transparent;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.brt-canvas-close svg {
    width: 20px;
    height: 20px;
}

.brt-canvas-tabs {
    display: flex;
    flex: 1;
}

.brt-canvas-tab {
    display: flex;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    margin-right: 10px;
}

.brt-canvas-tab.active {
    font-weight: 700;
    color: #000;
}

.brt-canvas-tab.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.brt-tab-text {
    margin-right: 5px;
}

.brt-canvas-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.brt-canvas-panel {
    display: none;
    height: 100%;
}

.brt-canvas-panel.active {
    display: block;
}

/* Cart panel specific styles */
.brt-canvas-cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brt-canvas-cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

/* Состояния загрузки */
.brt-cart-item.updating {
    opacity: 0.7;
    pointer-events: none;
}

.brt-cart-item.removing {
    opacity: 0.5;
    pointer-events: none;
    background-color: #fff5f5;
}

.brt-canvas-cart-summary {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Wishlist panel specific styles */
.brt-canvas-wishlist-content {
    height: 100%;
}

.brt-canvas-wishlist-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-y: auto;
}

.brt-canvas-wishlist-item {
    border: 1px solid #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
}

.brt-canvas-wishlist-image {
    margin-bottom: 10px;
}

.brt-canvas-wishlist-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.brt-canvas-wishlist-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brt-canvas-wishlist-name {
    font-variation-settings: 'wght' 500;
    margin-bottom: 5px;
    font-size: 14px;
    letter-spacing: 0;
}

.brt-canvas-wishlist-price {
    margin-bottom: 10px;
    font-variation-settings: 'wght' 600;
}

.brt-wishlist-heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 26px;
    height: 28px;
    background: #ffffff;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50px;
}

.brt-wishlist-heart-btn:hover {
    background: transparent;
}

.brt-wishlist-heart-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

input[name='update_cart'] {
   display: none !important;
}
 
button[name='update_cart'] {
   display: none !important;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Responsive */
@media (max-width: 480px) {
    .brt-canvas {
        max-width: 100%;
    }
    
    .brt-canvas-wishlist-items {
        grid-template-columns: 1fr;
    }
}
