:root {
    --primary: #42aac7;
    --secondary: #8bc636;
    --danger: #ef4444;
    --success: #10b981;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #fafafa;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.brand-names h1 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.brand-names p {
    font-size: 12px;
    color: #6b7280;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Progress Bar */
.checkout-progress {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 8px 16px rgba(66, 170, 199, 0.3);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: var(--success);
    color: var(--white);
}

.step-text {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

.step.active .step-text {
    color: var(--primary);
    font-weight: 700;
}

.step-line {
    width: 100px;
    height: 3px;
    background: var(--light-gray);
    margin: 0 20px;
}

.step-line.completed {
    background: var(--success);
}

/* Main Checkout */
.checkout-main {
    padding: 60px 0 100px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: start;
}

/* Forms */
.checkout-forms {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s;
}

.form-section:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.header-icon {
    font-size: 28px;
}

.section-header h2 {
    font-size: 22px;
    color: var(--dark);
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(66, 170, 199, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-card {
    cursor: pointer;
}

.payment-card input {
    display: none;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--light-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-card input:checked + .card-content {
    border-color: var(--primary);
    background: rgba(66, 170, 199, 0.05);
    box-shadow: 0 0 0 4px rgba(66, 170, 199, 0.1);
}

.payment-icon {
    font-size: 36px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.payment-desc {
    font-size: 13px;
    color: var(--gray);
}

.check-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.payment-card input:checked + .card-content .check-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 180px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.summary-title {
    font-size: 24px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

/* Order Items */
.order-items {
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
    padding-left: 8px;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 8px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.item-number {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.item-qty {
    font-size: 13px;
    color: var(--gray);
}

/* Pricing */
.pricing {
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
}

.price-row span:first-child {
    color: var(--gray);
    font-weight: 500;
}

.price-row span:last-child {
    color: var(--dark);
    font-weight: 700;
}

.price-row .vat {
    color: var(--secondary);
}

.price-row .free {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-gray), transparent);
    margin: 24px 0;
}

.price-row.total {
    margin-top: 24px;
    padding-top: 24px;
}

.price-row.total span:first-child {
    font-size: 18px;
    color: var(--dark);
    font-weight: 700;
}

.price-row.total span:last-child {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Place Order Button */
.btn-place-order {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 10px 20px rgba(66, 170, 199, 0.3);
    margin-bottom: 20px;
}

.btn-place-order:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(66, 170, 199, 0.4);
}

/* Terms & Security */
.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    cursor: pointer;
}

.terms input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius);
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
}

.security-badge svg {
    color: var(--success);
}

/* Scrollbar */
.order-items::-webkit-scrollbar {
    width: 6px;
}

.order-items::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-bar {
        padding: 0 20px;
    }
    
    .step-line {
        width: 60px;
        margin: 0 10px;
    }
    
    .step-text {
        font-size: 12px;
    }
    
    .step-circle {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .form-section {
        padding: 24px;
    }
}
