/**
 * SmartOrdre Floating Cart Widget Styles
 */

/* Floating Cart Button */
.so-floating-cart-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.so-floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.6);
}

.so-floating-cart-btn .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border: 3px solid white;
}

/* Floating Cart Panel */
.so-floating-cart-panel {
    position: fixed !important;
    bottom: 0 !important;
    right: -450px !important;
    width: 420px !important;
    height: calc(100vh - 80px) !important;
    background: white !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    transition: right 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 20px 0 0 0 !important;
}

.so-floating-cart-panel.open {
    right: 0 !important;
}

.so-cart-panel-header {
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 0 0 0;
}

.so-cart-panel-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

.so-cart-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.so-cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.so-cart-panel-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.so-cart-panel-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

/* Cart Items */
.so-mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.so-mini-cart-item-info {
    flex: 1;
}

.so-mini-cart-item-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.so-mini-cart-item-price {
    color: #718096;
    font-size: 0.85em;
}

.so-mini-cart-qty-control {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f7fafc !important;
    padding: 4px !important;
    border-radius: 8px !important;
}

.so-mini-cart-qty-btn {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid #cbd5e0 !important;
    background: white !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #2d3748 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.so-mini-cart-qty-btn:hover {
    background: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
}

.so-mini-cart-qty-input {
    width: 45px !important;
    text-align: center !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    padding: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
}

.so-mini-cart-remove {
    background: #fee;
    color: #dc3545;
    border: 1px solid #fcc;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.so-mini-cart-remove:hover {
    background: #dc3545;
    color: white;
}

.so-cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.so-cart-summary-line.total {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
    margin-top: 12px;
}

.so-cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
}

.so-cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.so-cart-empty-message {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #a0aec0 !important;
    display: block !important;
}

.so-cart-empty-message .icon {
    font-size: 64px !important;
    margin-bottom: 16px !important;
    opacity: 0.5 !important;
    display: block !important;
}

.so-cart-empty-message p {
    font-size: 1.1em !important;
    margin: 0 !important;
    display: block !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .so-floating-cart-panel {
        width: 100%;
        right: -100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .so-floating-cart-panel.open {
        right: 0;
    }
    
    .so-cart-panel-header {
        border-radius: 0;
    }
    
    .so-floating-cart-btn {
        bottom: 80px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* Overlay */
.so-cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9997 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s !important;
}

.so-cart-overlay.active {
    opacity: 1 !important;
    pointer-events: all !important;
}
