/* Checkout Page Styling - Mini Mart
 ==================================================*/

/* Checkout Container
 ==================================================*/
.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.checkout-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Checkout Main Content
 ==================================================*/
.checkout-main {
    flex: 1;
    min-width: 0;
}

/* Checkout Sidebar (Order Summary)
 ==================================================*/
.checkout-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Page Title
 ==================================================*/
.checkout-page-title {
    margin-bottom: 30px;
}

.checkout-page-title h2 {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.checkout-page-title p {
    font-family: 'Fira Sans', sans-serif;
    font-style: italic;
    color: #666;
    font-size: 16px;
}

/* Checkout Stepper
 ==================================================*/
.checkout-stepper {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 123, 255, 0.08);
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.checkout-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.checkout-step.active .checkout-step-number {
    background: var(--color-primary, #007bff);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.checkout-step.completed .checkout-step-number {
    background: #28a745;
    color: #fff;
}

.checkout-step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-step.active .checkout-step-label {
    color: var(--color-primary, #007bff);
    font-weight: 700;
}

/* Checkout Steps Content
 ==================================================*/
.checkout-step-content {
    display: none;
}

.checkout-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkout Sections
 ==================================================*/
.checkout-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 123, 255, 0.08);
}

.checkout-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.checkout-section-title h3 {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-section-title i {
    color: var(--color-primary, #007bff);
    margin-right: 12px;
    font-size: 24px;
}

/* Form Styles
 ==================================================*/
.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.checkout-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Fira Sans', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.checkout-form-control:focus {
    outline: none;
    border-color: var(--color-primary, #007bff);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 0, 123, 255), 0.1);
}

.checkout-form-control::placeholder {
    color: #adb5bd;
}

.checkout-form-row {
    display: flex;
    gap: 20px;
}

.checkout-form-row .checkout-form-group {
    flex: 1;
}

/* Removed shipping options styles - not used for mini mart */

/* Order Summary Card
 ==================================================*/
.order-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 123, 255, 0.08);
}

.order-summary-title {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

/* Product Items
 ==================================================*/
.order-product-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-product-item:last-child {
    border-bottom: none;
}

.order-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-details {
    flex: 1;
}

.order-product-name {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin-bottom: 5px;
}

.order-product-info {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.order-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary, #007bff);
}

.order-product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e9ecef;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--color-primary, #007bff);
    color: #fff;
    border-color: var(--color-primary, #007bff);
}

.quantity-value {
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

/* Order Summary Totals
 ==================================================*/
.order-summary-totals {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f1f3f4;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.order-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Removed discount and shipping row styles - no longer used */

/* Removed shipping row styling */

.order-summary-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary, #007bff);
    font-family: 'Poppins', sans-serif;
}

/* Removed promo code styles - feature no longer used */

/* Payment Methods
 ==================================================*/
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.payment-method-card:hover {
    border-color: var(--color-primary, #007bff);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.payment-method-card.selected {
    border-color: var(--color-primary, #007bff);
    background: linear-gradient(135deg, #e7f1ff 0%, #f8f9fa 100%);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 0, 123, 255), 0.1);
}

.payment-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.payment-method-icon i {
    font-size: 24px;
    color: var(--color-primary, #007bff);
}

.payment-method-info {
    flex: 1;
}

.payment-method-title {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin-bottom: 5px;
}

.payment-method-desc {
    font-size: 13px;
    color: #666;
}

.payment-method-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.payment-method-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary, #007bff);
    opacity: 0;
    transition: all 0.3s ease;
}

.payment-method-card.selected .payment-method-radio {
    border-color: var(--color-primary, #007bff);
}

.payment-method-card.selected .payment-method-radio::after {
    opacity: 1;
}

/* Credit Card Form
 ==================================================*/
.credit-card-form {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.credit-card-preview {
    background: linear-gradient(135deg, var(--color-primary, #007bff) 0%, #0056b3 100%);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.credit-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.credit-card-number-preview {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.credit-card-info-preview {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.credit-card-holder-preview,
.credit-card-expiry-preview {
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.credit-card-label {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.credit-card-value {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Checkout Actions
 ==================================================*/
.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f1f3f4;
}

.btn-checkout-back {
    padding: 12px 30px;
    background: #f8f9fa;
    color: #333;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-checkout-back:hover {
    background: #e9ecef;
}

.btn-checkout-next {
    padding: 12px 35px;
    background: var(--color-primary, #007bff);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-checkout-next:hover {
    background: #0056b3;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-checkout-confirm {
    background: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-checkout-confirm:hover {
    background: #218838;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Contact Information
 ==================================================*/
.contact-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: var(--color-primary, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.contact-info-icon i {
    font-size: 20px;
}

.contact-info-details {
    flex: 1;
}

.contact-info-name {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin-bottom: 5px;
}

.contact-info-text {
    font-size: 14px;
    color: #666;
}

/* Validation States
 ==================================================*/
.checkout-form-control.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.checkout-form-control.is-valid {
    border-color: #28a745;
    background: #f5fff5;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.checkout-form-group.has-error .error-message {
    display: block;
}

/* Success Message
 ==================================================*/
.checkout-success {
    text-align: center;
    padding: 60px 30px;
}

.checkout-success-icon {
    width: 100px;
    height: 100px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 50px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.checkout-success-title {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.checkout-success-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading Spinner
 ==================================================*/
.checkout-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner-checkout {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Styles
 ==================================================*/
@media (max-width: 991px) {
    .checkout-wrapper {
        flex-direction: column;
    }
    
    .checkout-sidebar {
        width: 100%;
        position: static;
    }
    
    .checkout-form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 767px) {
    .checkout-container {
        padding: 20px 15px;
    }
    
    .checkout-page-title h2 {
        font-size: 24px;
    }
    
    .checkout-steps {
        flex-wrap: wrap;
    }
    
    .checkout-steps::before {
        display: none;
    }
    
    .checkout-step {
        flex: 0 0 auto;
        margin-right: 20px;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .order-summary-card {
        padding: 20px;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .btn-checkout-back,
    .btn-checkout-next {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .order-product-item {
        flex-direction: column;
    }
    
    .order-product-image {
        width: 100%;
        height: 150px;
    }
    
    .checkout-step-label {
        display: none;
    }
}

/* Appointment Summary / Billing Information
 ==================================================*/
.appointment-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.appointment-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.appointment-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.appointment-summary-item:first-child {
    padding-top: 0;
}

.appointment-summary-label {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #495057;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.appointment-summary-value {
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #212529;
    text-align: right;
    max-width: 65%;
    word-wrap: break-word;
}

.appointment-summary-value.highlight {
    color: var(--color-primary, #007bff);
}

/* Animations
 ==================================================*/
.fade-enter {
    opacity: 0;
    transform: translateX(-20px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.fade-exit {
    opacity: 1;
    transform: translateX(0);
}

.fade-exit-active {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}
