 /* Cart Overlay */
.elite-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: all 0.3s ease;
}

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

/* Cart Sidebar */
.elite-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.elite-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #9f2348;
    color: white;
}

.elite-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.elite-cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

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

/* Empty Cart */
.elite-empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.elite-empty-cart i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.elite-empty-cart p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.elite-continue-shopping {
    background: #9f2348;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.elite-continue-shopping:hover {
    background: #8b0000;
}

/* Cart Items */
.elite-cart-item {
     display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    gap: 15px;
}

.elite-cart-item-image {
     width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.elite-cart-item-details {
    flex: 1;
    min-width: 0;
}

.elite-cart-item-name {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
}

.elite-cart-item-price {
     color: var(--elite-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.elite-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elite-quantity-btn {
     width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.elite-quantity-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.elite-quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.elite-remove-item {
     background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}

.elite-remove-item:hover {
    color: #ff4444;
    background: #fff5f5;
    border-radius: 50%;
}

/* Cart Footer */
.elite-cart-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.elite-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.elite-subtotal-amount {
    color: #9f2348;
}

.elite-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elite-view-cart-btn,
.elite-checkout-btn {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.elite-view-cart-btn {
    background: #f8f6ee;
    color: #9f2348;
    border: 1px solid #9f2348;
}

.elite-view-cart-btn:hover {
    background: #9f2348;
    color: white;
}

.elite-checkout-btn {
    background: #9f2348;
    color: white;
}

.elite-checkout-btn:hover {
    background: #8b0000;
}

/* Out of Stock Button */
.elite-out-of-stock {
    background: #999 !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.elite-out-of-stock:hover {
    background: #999 !important;
    transform: none !important;
}

/* Out of Stock Message */
.elite-out-of-stock-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.elite-out-of-stock-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .elite-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .elite-cart-actions {
        flex-direction: column;
    }


     .elite-cart-item {
        padding: 12px 0;
    }
    
    .elite-cart-item-image {
        width: 60px;
        height: 60px;
    }

    .sc_layouts_cart_items_short {
        /* width: 18px; */
        /* height: 18px; */
        font-size: 0.65rem;
        top: -3px;
        right: -3px;
    }
}

/* Update existing cart icon styles */
.sc_layouts_cart {
 position: relative;
    cursor: pointer;
}

/* .sc_layouts_cart_items_short {
      background: var(--elite-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
    line-height: 1;
} */

.sc_layouts_item.elementor-element-3e4a571f .sc_layouts_cart {
    position: relative;
    cursor: pointer;
}


.elite-max-quantity-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Update the existing out of stock message style */
.elite-out-of-stock-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-align: center;
    max-width: 300px;
}

.elite-out-of-stock-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Quantity info style */
.prod-details-quantity-info {
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    border-left: 3px solid #28a745;
}

.prod-details-quantity-info i {
    margin-right: 5px;
}

/* Disabled quantity buttons */
.prod-details-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
}

/* Updated message style */
.elite-out-of-stock-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 15px;
    border-radius: 5px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.elite-out-of-stock-message.show {
    transform: translateX(0);
}

.elite-out-of-stock-message i {
    margin-right: 8px;
}

/* Add to cart button animations */
.prod-details-add-to-cart.loading,
.elite-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.prod-details-add-to-cart.success,
.elite-add-to-cart.success {
    background-color: #28a745 !important;
}
