/* Side Cart Styles */
.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-cart.side-open {
    transform: translateX(0);
}

.side-cart-open {
    overflow: hidden;
}

.side-cart-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.mini-cart-header .side-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.side-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.side-close:hover {
    background-color: #f5f5f5;
}

.mini-cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-item .el.card-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.mini-cart-item .cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.mini-cart-info {
    flex: 1;
}

.mini-cart-info .item-heading {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.mini-cart-price {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.mini-cart-type {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.mini-cart-del {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mini-cart-del:hover {
    color: #c82333;
}

.mini-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
}

.mini-cart-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-cart-btns .btn {
    width: 100%;
    justify-content: center;
}

.mini-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    color: #666;
}

.mini-cart-empty .products-empty-icon {
    margin-bottom: 15px;
}

.mini-cart-empty .products-empty-message {
    margin: 0;
}

/* Responsive styles */
@media (max-width: 576px) {
    .side-cart {
        width: 100vw;
        max-width: 100vw;
    }
    
    .side-cart-scroll {
        padding: 15px;
    }
    
    .mini-cart-item {
        flex-direction: column;
    }
    
    .mini-cart-item .el.card-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .mini-cart-footer {
        padding: 15px;
    }
}

/* Overlay for side cart */
body.side-cart-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    pointer-events: none;
}