:root {
    --primary-orange: #ff9b00;
    --secondary-orange: #ffb84d;
    --dark-text: #1a1a1a;
    --light-text: #666;
    --border-color: #e0e0e0;
    --success-green: #28a745;
    --error-red: #dc3545;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fb 100%);
    min-height: 100vh;
}

/* Checkout Container */
.checkout-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-header {
    margin-bottom: 30px;
}

.checkout-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.checkout-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--light-text);
}

.checkout-breadcrumb a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.checkout-breadcrumb a:hover {
    color: var(--primary-orange);
}

.checkout-breadcrumb span {
    color: var(--primary-orange);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    align-items: start;
}

/* Billing Section */
.billing-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Saved Addresses */
.saved-addresses {
    margin-bottom: 20px;
}

.address-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-card:hover {
    border-color: var(--primary-orange);
    background: #fff5eb;
}

.address-card.selected {
    border-color: var(--primary-orange);
    background: #fff5eb;
}

.address-radio {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.address-text {
    flex: 1;
    font-size: 14px;
    color: var(--dark-text);
}

.toggle-address-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.toggle-address-btn:hover {
    background: var(--primary-orange);
    color: white;
}

/* Form Fields */
.billing-form {
    display: none;
}

.billing-form.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: var(--error-red);
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 155, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.delivery-info {
    background: linear-gradient(135deg, #fff5eb, #fffcf7);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--secondary-orange);
    margin-bottom: 15px;
}

.delivery-info strong {
    color: var(--primary-orange);
    font-size: 15px;
}

.delivery-info p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: var(--light-text);
}

/* Payment Methods */
.payment-methods {
    margin: 25px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-orange);
    background: #fff5eb;
}

.payment-option.selected {
    border-color: var(--primary-orange);
    background: #fff5eb;
}

.payment-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.payment-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text);
}

.payment-logo {
    height: 30px;
    width: auto;
}

/* Coupon Section */
.coupon-section {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.coupon-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.coupon-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #333, #1a1a1a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.coupon-btn:hover {
    background: linear-gradient(135deg, #555, #333);
    transform: translateY(-2px);
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 155, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 155, 0, 0.4);
}

/* Order Summary Sidebar */
.order-summary {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.order-items::-webkit-scrollbar {
    width: 6px;
}

.order-items::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #fff5eb;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.order-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Summary Lines */
.summary-lines {
    padding: 20px 0;
    border-top: 2px solid #f5f5f5;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-line .label {
    color: var(--light-text);
    font-weight: 500;
}

.summary-line .value {
    color: var(--dark-text);
    font-weight: 600;
}

.summary-line.discount .value {
    color: var(--success-green);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    margin-top: 15px;
}

.summary-total .label {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
}

.summary-total .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Wallet Info */
.wallet-info {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f8ff, #ffffff);
    border-radius: 10px;
    border: 2px solid #e3f2fd;
}

.wallet-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wallet-info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
}

.wallet-balance {
    font-size: 16px;
    font-weight: 700;
}

.wallet-balance.sufficient {
    color: var(--success-green);
}

.wallet-balance.insufficient {
    color: var(--error-red);
}

.wallet-message {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 8px;
}

.wallet-message a {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: var(--error-red);
    border: 1px solid #fcc;
}

.alert-success {
    background: #d4edda;
    color: var(--success-green);
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-title {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .coupon-section {
        flex-direction: column;
    }
    
    .coupon-btn {
        width: 100%;
    }
}
