/* Enhanced Cart and Wishlist Styles */

/* Progress Steps */
.progress-steps {
    margin-top: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #8B0233, #2c1810);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 2, 51, 0.3);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

.step.active .step-label {
    color: #8B0233;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e9ecef;
    margin: 0 1rem;
    margin-top: -20px;
}

/* Enhanced Hover Effects */
.cart-item-image:hover .cart-item-overlay,
.wishlist-item-image:hover .wishlist-item-overlay {
    opacity: 1 !important;
}

.cart-item-card:hover,
.wishlist-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
    border-left-color: #d4af37 !important;
}

/* Enhanced Button Styles */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

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

/* Enhanced Form Controls */
.quantity-input {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2c1810 !important;
    text-align: center !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    background: white !important;
    padding: 0.5rem !important;
    width: 70px !important;
    height: 40px !important;
    line-height: 1.2 !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.quantity-input:focus {
    border-color: #8B0233 !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 2, 51, 0.25) !important;
    outline: none !important;
}

.quantity-input:hover {
    border-color: #8B0233 !important;
}

/* Enhanced Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Fix Header Button Hover Issues */
.navbar-actions .btn {
    position: relative !important;
    overflow: visible !important;
    transition: all 0.2s ease !important;
    z-index: 1 !important;
}

.navbar-actions .btn:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

.navbar-actions .btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 2, 51, 0.25) !important;
}

.cart-badge, .wishlist-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    transform: none !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.25rem 0.5rem !important;
    z-index: 15 !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    background: #8B0233 !important;
    color: white !important;
    border-radius: 50px !important;
    animation: none !important;
    transition: all 0.2s ease !important;
}

.cart-badge:hover, .wishlist-badge:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

/* Prevent badge flickering */
.navbar-actions .btn:hover .cart-badge,
.navbar-actions .btn:hover .wishlist-badge {
    animation: none !important;
    transform: scale(1.1) !important;
}

/* Enhanced Card Styles */
.cart-item-card,
.wishlist-item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.cart-item-card:hover,
.wishlist-item-card:hover {
    border-color: rgba(139, 2, 51, 0.2) !important;
}

/* Enhanced Summary Cards */
.cart-summary-card,
.wishlist-summary-card {
    transition: all 0.3s ease;
}

.cart-summary-card:hover,
.wishlist-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Enhanced Empty States */
.empty-cart-container,
.empty-wishlist-container {
    transition: all 0.3s ease;
}

.empty-cart-container:hover,
.empty-wishlist-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Enhanced Icons */
.cart-icon-wrapper,
.wishlist-icon-wrapper {
    transition: all 0.3s ease;
}

.cart-icon-wrapper:hover,
.wishlist-icon-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 2, 51, 0.2);
}

/* Enhanced Typography */
.product-name a {
    transition: all 0.3s ease;
}

.product-name a:hover {
    color: #8B0233 !important;
    text-decoration: underline !important;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .step-line {
        width: 40px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .cart-item-card,
    .wishlist-item-card {
        padding: 1.5rem;
    }
    
    .product-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .quantity-controls .btn {
        width: 30px;
        height: 30px;
    }
    
    .quantity-input {
        width: 60px !important;
    }
}

@media (max-width: 576px) {
    .cart-header-content h1,
    .wishlist-header-content h1 {
        font-size: 2rem;
    }
    
    .cart-item-card,
    .wishlist-item-card {
        padding: 1rem;
    }
    
    .product-actions {
        margin-top: 1rem;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Cart Styles */
.cart-item-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cart-product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.cart-product-image:hover {
    transform: scale(1.05);
}

.cart-placeholder-image {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--text-muted);
}

.cart-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.cart-item-image:hover .cart-item-overlay {
    opacity: 1;
}

.variant-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.color-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.size-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--dark-gold));
    color: white;
}

.product-actions {
    margin-top: 0.5rem;
}

.product-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.quantity-input {
    text-align: center;
    border: 2px solid var(--text-muted);
    border-radius: 5px;
    font-weight: 600;
}

.quantity-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 2, 51, 0.25);
}

.cart-summary-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.summary-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--text-muted);
}

.summary-total {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Enhanced Wishlist Styles */
.wishlist-item-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

.wishlist-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wishlist-product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.wishlist-product-image:hover {
    transform: scale(1.05);
}

.wishlist-placeholder-image {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--text-muted);
}

.wishlist-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.wishlist-item-image:hover .wishlist-item-overlay {
    opacity: 1;
}

.wishlist-heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.product-meta {
    margin-top: 0.5rem;
}

.wishlist-summary-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.summary-stats .col-4 {
    padding: 1rem 0.5rem;
}

.summary-stats h4 {
    margin-bottom: 0.25rem;
}

.wishlist-actions {
    margin-top: 1rem;
}

.wishlist-actions .btn {
    margin: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-item-card,
    .wishlist-item-card {
        padding: 1rem;
    }
    
    .cart-product-image,
    .wishlist-product-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-placeholder-image,
    .wishlist-placeholder-image {
        width: 80px;
        height: 80px;
    }
    
    .product-actions {
        margin-top: 1rem;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}
