/* ================= QUICK COMMERCE CSS ADDONS ================= */

/* 1. Free Delivery Progress Bar */
.qc-delivery-progress {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,247,250,0.9));
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 10px 16px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.qc-progress-msg {
    color: #1a1c1e;
}

.qc-progress-msg b {
    color: #ff3f6c;
}

.qc-progress-badge {
    background: #e2f9ec;
    color: #10b981;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    animation: qc-pulse-badge 1.8s ease infinite;
}

@keyframes qc-pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    100% { transform: scale(1); }
}

@keyframes slideUpCart {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#cartBar.animated {
    animation: slideUpCart 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.qc-progress-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.qc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff3f6c, #ff6b8b, #10b981);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(255, 63, 108, 0.3);
    position: relative;
}

/* Glowing animation */
.qc-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: qc-shimmer 2s infinite linear;
}

@keyframes qc-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


/* 2. Slide to Order Slider Button */
.slide-to-order-container {
    padding: 16px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.slide-to-order-track {
    flex: 1;
    height: 56px;
    background: #f1f3f5;
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    border: 1px solid rgba(0,0,0,0.03);
}

.slide-to-order-label {
    font-size: 14px;
    font-weight: 800;
    color: #495057;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.slide-to-order-handle {
    width: 48px;
    height: 48px;
    background: #ff3f6c;
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: grab;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(255, 63, 108, 0.4);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.slide-to-order-handle:active {
    cursor: grabbing;
    transform: scale(0.96);
}

.slide-to-order-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 63, 108, 0.08);
    z-index: 1;
    border-radius: 30px 0 0 30px;
    width: 0px;
    pointer-events: none;
}

.slide-to-order-track.completed {
    background: #10b981;
    border-color: #10b981;
}

.slide-to-order-track.completed .slide-to-order-label {
    color: #fff;
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}
