/* cart2/static/cart2/css/cart2.css */
/* Cart2 Styles - Matching your theme */

/* Cart Icon */
.cart2-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart2-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.cart2-icon:hover {
    background: #e9ecef;
    color: #000;
}

.cart2-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

/* Cart Item Styles */
.cart2-item {
    transition: all 0.2s ease;
}

.cart2-item:hover {
    background-color: #f9fafb;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px 0;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step.active .step-number {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.step.active .step-title {
    color: #3b82f6;
    font-weight: 600;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background: white;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.step-title {
    display: block;
    color: #6b7280;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .step {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        background: #f9fafb;
        border-radius: 8px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .cart2-icon {
        width: 36px;
        height: 36px;
    }
    
    .cart2-count-badge {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
    }
}

/* Loading States */
.cart2-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: cart2-spin 1s linear infinite;
}

@keyframes cart2-spin {
    to { transform: rotate(360deg); }
}

/* Form Styles */
.cart2-form-group {
    margin-bottom: 1.5rem;
}

.cart2-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.cart2-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.cart2-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styles */
.cart2-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cart2-btn-primary {
    background: #3b82f6;
    color: white;
}

.cart2-btn-primary:hover {
    background: #2563eb;
}

.cart2-btn-success {
    background: #10b981;
    color: white;
}

.cart2-btn-success:hover {
    background: #059669;
}

.cart2-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}