/* Premium Offcanvas Cart Styles */
.cart-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #ffffff;
    z-index: 100000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 576px) {
    .cart-offcanvas {
        width: 100% !important;
        right: -100% !important;
    }
    .cart-offcanvas.active {
        right: 0 !important;
    }
}

.cart-offcanvas.active {
    right: 0;
}

.cart-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-offcanvas-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.close-offcanvas {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: 0.2s;
    cursor: pointer;
}

.close-offcanvas:hover {
    background: #e9ecef;
    transform: rotate(90deg);
}

.cart-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-offcanvas-footer {
    padding: 25px 20px;
    background: #ffffff;
    border-top: 1px solid #f1f1f1;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02);
}

/* Cart Item Styling for Offcanvas */
.offcanvas-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8f9fa;
    animation: fadeInUp 0.4s ease-out forwards;
}

.offcanvas-item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8f9fa;
}

.offcanvas-item-detail {
    flex: 1;
}

.offcanvas-item-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.offcanvas-item-price {
    color: #008037;
    font-weight: 700;
    font-size: 14px;
}

.offcanvas-qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    background: #f8f9fa;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 50px;
}

.offcanvas-qty-btn {
    border: none;
    background: transparent;
    color: #333;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-summary {
    background: #fcfcfc;
    padding: 15px;
    border-radius: 12px;
}
