/* =================================================================
   SHOPPING CART STYLES - iDeskHubs
   Version: 1.0
   Date: October 11, 2025
   ================================================================= */

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

.cart-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.cart-button:active {
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-panel.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Header */
.cart-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Cart Body */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-body::-webkit-scrollbar {
    width: 8px;
}

.cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.8;
}

.empty-cart i {
    font-size: 64px;
    display: block;
    margin-bottom: 15px;
    color: #cbd5e1;
}

/* Cart Item */
.cart-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.item-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.item-details p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.item-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #e2e8f0;
}

.quantity-controls button {
    background: transparent;
    border: none;
    color: #667eea;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls button:hover {
    background: #667eea;
    color: white;
}

.quantity-controls .quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
}

.remove-btn {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #ef4444;
    color: white;
}

/* Cart Footer */
.cart-footer {
    padding: 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748b;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

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

.checkout-btn:active {
    transform: translateY(0);
}

.clear-cart-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-cart-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fee2e2;
}

/* Cart Notifications */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification i {
    font-size: 20px;
}

.cart-notification.success {
    border-left: 4px solid #10b981;
}

.cart-notification.success i {
    color: #10b981;
}

.cart-notification.error {
    border-left: 4px solid #ef4444;
}

.cart-notification.error i {
    color: #ef4444;
}

.cart-notification.info {
    border-left: 4px solid #3b82f6;
}

.cart-notification.info i {
    color: #3b82f6;
}

.cart-notification span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

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

    .floating-cart {
        bottom: 20px;
        right: 20px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .cart-notification {
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* Add to Cart Button (for pricing pages) */
.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 16px;
}

/* Client Area Link Hover Effect */
.nav-link.client-area-link:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}
