/* ===========================================
   Fullscreen Cart Button Styles
   =========================================== */

/* Fullscreen Cart Button */
.fullscreen-cart-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, rgba(116, 83, 254, 0.1), rgba(116, 83, 254, 0.05));
    border: 2px solid rgba(116, 83, 254, 0.3);
    color: var(--store-text);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.fullscreen-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(116, 83, 254, 0.1), transparent);
    transition: left 0.5s ease;
}

.fullscreen-cart-btn:hover::before {
    left: 100%;
}

.fullscreen-cart-btn:hover {
    background: linear-gradient(135deg, rgba(116, 83, 254, 0.2), rgba(116, 83, 254, 0.1));
    border-color: rgba(116, 83, 254, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(116, 83, 254, 0.2);
}

.fullscreen-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(116, 83, 254, 0.3);
}

.fullscreen-cart-btn i {
    font-size: 1rem;
    color: rgba(116, 83, 254, 0.8);
    transition: all 0.3s ease;
}

.fullscreen-cart-btn:hover i {
    color: rgba(116, 83, 254, 1);
    transform: scale(1.1);
}

/* Secondary variant for empty cart */
.fullscreen-cart-btn.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--store-text-muted);
}

.fullscreen-cart-btn.secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--store-text);
}

.fullscreen-cart-btn.secondary i {
    color: var(--store-text-muted);
}

.fullscreen-cart-btn.secondary:hover i {
    color: var(--store-text);
}

/* Enhanced cart actions spacing */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.cart-actions .checkout-btn {
    order: 1;
}

.cart-actions .fullscreen-cart-btn {
    order: 2;
}

.cart-actions .checkout-options {
    order: 3;
}

.cart-actions .continue-shopping-btn {
    order: 4;
}

.cart-actions .cart-login-btn {
    order: 5;
}

/* Enhanced stock information styles for Quick View */
.stock-status-detailed {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-quantity-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(104, 190, 124, 0.1);
    border: 1px solid rgba(104, 190, 124, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--store-success);
}

.cart-quantity-info i {
    color: var(--store-success);
    font-size: 0.8rem;
}

.remaining-stock {
    color: var(--store-text-muted);
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.quantity-help {
    font-size: 0.75rem;
    color: var(--store-text-muted);
    text-align: center;
    margin-top: 0.3rem;
}

.max-quantity-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(104, 190, 124, 0.1);
    border: 1px solid rgba(104, 190, 124, 0.2);
    border-radius: 10px;
    color: var(--store-success);
    margin-bottom: 1rem;
    text-align: center;
}

.max-quantity-notice i {
    color: var(--store-success);
    font-size: 1.2rem;
}

/* Enhanced button states for quantity controls */
.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.qty-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .fullscreen-cart-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .cart-actions {
        gap: 0.5rem;
    }
    
    .stock-status-detailed {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }
    
    .cart-quantity-info {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .max-quantity-notice {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* Dark mode adjustments */
body.dark-mode .fullscreen-cart-btn {
    background: linear-gradient(135deg, rgba(116, 83, 254, 0.15), rgba(116, 83, 254, 0.08));
    border-color: rgba(116, 83, 254, 0.4);
}

body.dark-mode .fullscreen-cart-btn:hover {
    background: linear-gradient(135deg, rgba(116, 83, 254, 0.25), rgba(116, 83, 254, 0.15));
    border-color: rgba(116, 83, 254, 0.6);
}

body.dark-mode .fullscreen-cart-btn.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .fullscreen-cart-btn.secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .stock-status-detailed {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .cart-quantity-info {
    background: rgba(104, 190, 124, 0.15);
    border-color: rgba(104, 190, 124, 0.3);
}

body.dark-mode .max-quantity-notice {
    background: rgba(104, 190, 124, 0.15);
    border-color: rgba(104, 190, 124, 0.3);
}

/* Focus states for accessibility */
.fullscreen-cart-btn:focus {
    outline: 3px solid rgba(116, 83, 254, 0.5);
    outline-offset: 2px;
    border-radius: 12px;
}

.fullscreen-cart-btn.secondary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* Animation for button interaction */
@keyframes fullscreenCartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.fullscreen-cart-btn:active {
    animation: fullscreenCartPulse 0.2s ease-out;
}

/* Loading state for fullscreen cart button */
.fullscreen-cart-btn.loading {
    position: relative;
    color: transparent;
}

.fullscreen-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(116, 83, 254, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}