/* עיצוב מיני סל */
.mini-cart-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mini-cart-wrapper.active {
    transform: translateX(0);
}

.mini-cart-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mini-cart-title {
    margin: 0;
    font-size: 18px;
}

.mini-cart-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-cart-items {
    margin-bottom: 20px;
}

.mini-cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mini-cart-item-image {
    width: 60px;
    margin-left: 10px;
}

.mini-cart-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mini-cart-item-details {
    flex: 1;
}

.mini-cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.mini-cart-item-price {
    font-size: 14px;
}

.mini-cart-item-quantity {
    color: #777;
    font-size: 13px;
}

.mini-cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
}

.mini-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-cart-button {
    padding: 10px 15px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.view-cart-button {
    background-color: #f0f0f0;
    color: #333;
}

.checkout-button {
    background-color: #4a4a4a;
    color: #fff;
}

.view-cart-button:hover {
    background-color: #e0e0e0;
}

.checkout-button:hover {
    background-color: #333;
}

/* עיצוב התראות */
.woo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 14px;
    z-index: 10000;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.woo-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.woo-notification.success {
    background-color: #4CAF50;
}

.woo-notification.error {
    background-color: #f44336;
}

/* אנימציית טעינה */
.cart-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a4a4a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* התאמה למובייל */
@media (max-width: 576px) {
    .mini-cart-wrapper {
        width: 280px;
    }
}
