/* ========================================
   COMPREHENSIVE UI ENHANCEMENTS
   For: Home, Menu, Cart, Wishlist, Products, Dashboard
   ======================================== */

/* ... existing CSS content ... */

/* ============================================
   FLOATING CART COMPONENT STYLES
   ============================================ */

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
}

.floating-cart-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FE724C 0%, #FF8A5B 100%);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(254, 114, 76, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(254, 114, 76, 0.5);
}

.floating-cart-btn i {
    font-size: 28px;
    color: white;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 3px solid white;
}

.floating-cart-price {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #1E293B;
    color: #FFFFFF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 3px solid #FFFFFF;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.5);
    transform-origin: bottom right;
}

.floating-cart-btn:hover .floating-cart-price {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Cart Slide Panel - HIDDEN BY DEFAULT */
.cart-slide-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-slide-panel.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.cart-slide-panel.active .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #E5E6EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8F9FA;
}

.cart-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FE724C 0%, #FF8A5B 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper i {
    font-size: 24px;
    color: white;
}

.cart-header-text {
    display: flex;
    flex-direction: column;
}

.cart-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    display: flex;
    align-items: center;
}

.cart-items-count {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    font-weight: 500;
}

.close-cart {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: #FE724C;
    color: white;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #F1F3F5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #FE724C;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #E5E6EB;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #64748B;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    border-color: #FE724C;
    color: #FE724C;
    background: #FEF2EF;
}

.cart-item-qty span {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    min-width: 24px;
    text-align: center;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.empty-cart-illustration {
    margin-bottom: 24px;
}

.empty-cart-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FEF2EF 0%, #FFF5F2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.empty-cart-circle i {
    font-size: 48px;
    color: #FE724C;
}

.empty-cart h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px 0;
}

.empty-cart p {
    font-size: 18px;
    color: #64748B;
    margin: 20px 0;
}

.browse-menu-btn {
    background: linear-gradient(135deg, #FE724C 0%, #FF8A5B 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.browse-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 114, 76, 0.3);
}

.cart-footer {
    padding: 24px;
    border-top: 2px solid #E5E6EB;
    background: #F8F9FA;
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #64748B;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label i {
    font-size: 14px;
    color: #94A3B8;
}

.summary-value {
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #E5E6EB;
    margin: 12px 0;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    padding-top: 12px;
    border-top: 2px solid #E5E6EB;
    margin-top: 12px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #FE724C 0%, #FF8A5B 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 114, 76, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-slide-panel {
        width: 100%;
        right: -100%;
    }

    .floating-cart {
        bottom: 80px;
        right: 20px;
    }

    .floating-cart-btn {
        width: 60px;
        height: 60px;
    }
}