/* MAZE Sidebar Cart - Clean Minimalistic Design */

/* Floating Cart Button */
.maze-floating-actions {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9997;
}

.maze-cart-trigger {
    position: relative;
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.maze-cart-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.maze-cart-trigger svg {
    color: #000;
}

.maze-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    background: #e55973;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 0 7px;
    box-shadow: 0 2px 8px rgba(229, 89, 115, 0.3);
}

@media (max-width: 768px) {
    .maze-floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .maze-cart-trigger {
        width: 56px;
        height: 56px;
    }
    
    .maze-cart-count {
        min-width: 22px;
        height: 22px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
}

.maze-cart-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;
}

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

.maze-cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.maze-cart-sidebar.active {
    right: 0;
}

/* Header */
.maze-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.maze-cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #000;
}

.maze-cart-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #000;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maze-cart-close:hover {
    opacity: 0.6;
}

/* Content */
.maze-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.maze-cart-content::-webkit-scrollbar {
    width: 4px;
}

.maze-cart-content::-webkit-scrollbar-track {
    background: #f8f8f8;
}

.maze-cart-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.maze-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.maze-cart-empty p {
    color: #999;
    font-size: 15px;
    margin: 0;
}

/* Cart Items */
.maze-cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.maze-cart-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.maze-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.maze-cart-item-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.maze-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maze-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maze-cart-item-details h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.maze-cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Quantity Control */
.maze-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.maze-qty-minus,
.maze-qty-plus {
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maze-qty-minus:hover,
.maze-qty-plus:hover {
    background: #f8f8f8;
}

.maze-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    color: #000;
    background: #fff;
}

.maze-cart-item-price {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.3px;
}

/* Remove Button */
.maze-cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.maze-cart-item-remove:hover {
    color: #000;
}

/* Footer */
.maze-cart-footer {
    padding: 24px 32px 32px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.maze-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.maze-cart-total span {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maze-cart-total-amount {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}

.maze-cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 12px;
}

.maze-cart-checkout-btn:hover {
    background: #333;
}

.maze-cart-view-cart {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #000;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.maze-cart-view-cart:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

/* Responsive */
@media (max-width: 768px) {
    .maze-cart-sidebar {
        max-width: 100%;
        right: -100%;
    }
    
    .maze-cart-header,
    .maze-cart-content,
    .maze-cart-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .maze-cart-item-image {
        width: 80px;
        height: 80px;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.maze-cart-item {
    animation: fadeIn 0.3s ease;
}

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