﻿
.checkout-wrapper {
    min-height: 100vh;
    background: #f7f7f7;
}

/* STEP 1: Review Order */
.review-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.review-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.review-body {
    padding: 2rem;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-image {
    position: relative;
    width: 80px;
    height: 80px;
}

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #e5e5e5;
    }

.quantity-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #333;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.item-details {
    flex: 1;
}

    .item-details h6 {
        margin: 0 0 0.25rem 0;
        font-weight: 600;
    }

.item-price {
    font-weight: 600;
    font-size: 1.1rem;
}

.order-summary-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.total-line {
    border-top: 2px solid #e5e5e5;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* STEP 2: Shopify Checkout */
.shopify-checkout {
    min-height: 100vh;
    background: white;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-right {
        order: -1;
        border-bottom: 1px solid #e5e5e5;
    }
}

/* Left Side */
.checkout-left {
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.checkout-header {
    margin-bottom: 2rem;
}

    .checkout-header h2 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

    .breadcrumb-nav a {
        color: #0066c0;
        text-decoration: none;
    }

    .breadcrumb-nav i {
        font-size: 0.7rem;
    }

.form-section {
    margin-bottom: 2rem;
}

    .form-section h5 {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

.form-control,
.form-select {
    padding: 0.875rem 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #198754;
        box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
        outline: none;
    }

.shipping-info {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.btn-back {
    background: none;
    border: none;
    color: #0066c0;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

    .btn-back:hover {
        text-decoration: underline;
    }

/* Right Side */
.checkout-right {
    background: #fafafa;
    border-left: 1px solid #e5e5e5;
    padding: 3rem;
}

.order-summary-sticky {
    position: sticky;
    top: 2rem;
}

.summary-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item-image {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

    .summary-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #e5e5e5;
    }

.summary-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #666;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.summary-item-details {
    flex: 1;
    min-width: 0;
}

.summary-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-item-variant {
    font-size: 0.875rem;
    color: #666;
}

.summary-item-price {
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 1.5rem 0;
}

.summary-totals {
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e5e5;
}

.total-amount {
    color: #198754;
}

    .total-amount small {
        font-size: 0.75rem;
        color: #666;
        font-weight: 400;
    }

/* Buttons */
.btn-primary {
    background: #198754;
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-primary:hover:not(:disabled) {
        background: #157347;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Success Screen */
.success-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.success-icon {
    color: #198754;
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.order-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-item {
    text-align: center;
}

    .info-item strong {
        display: block;
        margin-bottom: 0.5rem;
        color: #666;
    }

    .info-item div {
        font-size: 1.25rem;
        font-weight: 600;
    }

/* Validation Messages */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-left,
    .checkout-right {
        padding: 1.5rem;
    }

    .order-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
