/* Arabic Cart Styles */
.cart-drawer {
    direction: rtl;
    text-align: right;
}

.cart-drawer .drawer-header-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #333;
}

.cart-drawer .drawer-cart-empty h2 {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem;
}

.cart-drawer .drawer-notes label {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.cart-drawer .drawer-notes textarea {
    font-family: 'Cairo', sans-serif;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
    resize: vertical;
    min-height: 80px;
}

.cart-drawer .drawer-notes textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.cart-drawer .drawer-subtotal {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    color: #333;
}

.cart-drawer .drawer-ship-text span {
    font-family: 'Cairo', sans-serif;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

.cart-drawer .btn-style2,
.cart-drawer .btn-style4 {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.cart-drawer .btn-style2 {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
}

.cart-drawer .btn-style2:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cart-drawer .btn-style4 {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.cart-drawer .btn-style4:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

/* Cart Items Styling */
.cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 0;
}

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

.cart-item-name a {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.cart-item-name a:hover {
    color: #007bff;
}

.cart-item-variant small {
    font-family: 'Cairo', sans-serif;
    color: #666;
}

.cart-item-price h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #007bff;
    margin: 0;
}

/* Quantity Controls */
.js-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.js-qty-adjust {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.js-qty-adjust:hover {
    background: #e9ecef;
}

.js-qty-adjust:active {
    background: #dee2e6;
}

.js-qty-num {
    border: none;
    text-align: center;
    padding: 0.5rem;
    width: 60px;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
}

.js-qty-num:focus {
    outline: none;
    background: #f8f9fa;
}

/* Remove Button */
.cart-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cart-remove:hover {
    background: #f8d7da;
    color: #721c24;
}

/* Bottom Menu Arabic */
.bottom-menu-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Toast Notifications */
.toast {
    font-family: 'Cairo', sans-serif;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-body {
    font-weight: 500;
    line-height: 1.4;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }

    .cart-item-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        margin-bottom: 1rem;
    }

    .cart-qty-remove {
        flex-direction: column;
        gap: 1rem;
    }

    .drawer-cart-checkout .wt-content-btn {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Empty Cart Animation */
.drawer-cart-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.drawer-cart-empty h2 {
    animation: fadeInUp 0.6s ease-out;
}

.drawer-cart-empty .btn-style2 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Counter Animation */
.cart-counter {
    transition: all 0.3s ease;
}

.cart-counter.updated {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}