/* Empty Cart Animation Styles - Beautiful Basket Design */

.empty-cart-animation {
    width: 100%;
    max-width: 200px;
    margin: 40px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    width: 80px;
    height: 80px;
    color: #059669;
    animation: cartBounce 2s ease-in-out infinite;
}

.floating-item {
    position: absolute;
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.floating-item.item-1 {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.floating-item.item-2 {
    top: -10px;
    right: -10px;
    animation-delay: 0.5s;
}

.floating-item.item-3 {
    bottom: -10px;
    left: -10px;
    animation-delay: 1s;
}

.floating-item.item-4 {
    bottom: -10px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes cartBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

/* Enhance cart empty message */
.cart-empty p {
    padding: 0px 35px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #6c757d;
    margin-top: 20px;
}

/* Item image placeholder */
.item-image-placeholder-mini {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-size: 18px;
    border: 1px solid #e0e0e0;
}

/* Universal Cart Styles - Clean Muslim Theme: White & Green */
.universal-cart-content {
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
}

.universal-cart-header {
    padding: 12px 16px;
    background: #059669;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.universal-cart-header .cart-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.universal-cart-header .cart-title .cartCount {
    background: #ffffff;
    color: #059669;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 22px;
    text-align: center;
    font-weight: 700;
}

.universal-cart-header .cart-subtitle {
    font-size: 11px;
    margin: 4px 0 0 0;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.9;
}

.universal-cart-scroll {
    padding: 16px;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    background: #fafafa;
}

.restaurant-cart-section {
    background: #ffffff;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.restaurant-cart-section:hover {
    border-color: #059669;
}

.restaurant-cart-header {
    background: #f8f8f8;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.restaurant-info-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.restaurant-logo-mini {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.restaurant-logo-placeholder-mini {
    background: #f0f0f0;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.restaurant-name-mini h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.restaurant-name-mini p {
    font-size: 12px;
    margin: 4px 0 0 0;
    color: #666;
    font-weight: 400;
}

.btn-clear-mini {
    background: transparent;
    color: #999;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.btn-clear-mini:hover {
    color: #dc3545;
}

.cart-items-list {
    padding: 12px;
}

.cart-item-mini {
    background: #ffffff;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-mini:hover {
    background: #fafafa;
}

.item-info-mini {
    display: flex;
    gap: 12px;
    flex: 1;
}

.item-image-mini {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.item-details-mini h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #333;
}

.item-variation-mini {
    font-size: 11px;
    color: #999;
    margin: 0 0 4px 0;
}

.item-price-mini {
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

.item-actions-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.quantity-controls-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
}

.qty-btn-mini {
    width: 24px;
    height: 24px;
    border: none;
    background: #059669;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.qty-btn-mini:hover:not(:disabled) {
    background: #047857;
}

.qty-btn-mini:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qty-value-mini {
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.btn-remove-mini {
    display: none;
}

.cart-summary-mini {
    padding: 16px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.summary-row-mini {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.total-row-mini {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.cart-actions-mini {
    padding: 16px;
    background: #ffffff;
}

.btn-checkout-mini {
    width: 100%;
    background: #059669;
    color: white;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout-mini:hover {
    background: #047857;
}

.cart-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 16px 0;
}

/* Scrollbar Styling */
.universal-cart-scroll::-webkit-scrollbar {
    width: 5px;
}

.universal-cart-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.universal-cart-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
}

.universal-cart-scroll::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

