* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    line-height: 1.5;
    background: #0a0b10;
}

/* Base Layout */
.checkout-wrapper {
    display: flex;
    min-height: 100vh;
}

.checkout-main {
    flex: 1;
    padding: 4rem 5% 4rem 10%;
    max-width: 65%;
    background: #0a0b10;
}

.checkout-sidebar {
    width: 45%;
    background: #11141d;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 10% 4rem 4%;
}

/* Typography & Links */
.brand-link {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Cinzel', serif;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: 'Cinzel', serif;
}

.sub-text {
    font-size: 0.9rem;
    color: #888888;
}

a {
    color: #cfae70;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e8cd98;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    font-size: 0.85rem;
    color: #666;
}

.breadcrumbs .step.active {
    color: #cfae70;
    font-weight: 500;
}

/* Steps Display */
.checkout-step {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.checkout-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.form-row {
    margin-bottom: 1rem;
}

.form-row.split {
    display: flex;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #666;
}

.form-input:focus {
    outline: none;
    border-color: #cfae70;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(207, 174, 112, 0.5);
}

.form-input.error {
    border-color: #e32c2b;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

/* Buttons and Footer */
.checkout-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #cfae70 0%, #b38d4b 100%);
    color: #000;
    border: none;
    padding: 1.2rem 1.8rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.return-link {
    font-size: 0.9rem;
    color: #cfae70;
}

/* Review Box (Step 2 & 3) */
.review-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 0 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.review-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.review-row .label {
    width: 80px;
    color: #888;
}

.review-row .val {
    flex: 1;
    color: #fff;
}

.review-row a {
    color: #cfae70;
    font-size: 0.8rem;
}

.review-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* Shipping Methods */
.shipping-options {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.radio-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.radio-box:last-child {
    border-bottom: none;
}

.radio-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shipping-name {
    font-size: 0.95rem;
    color: #fff;
}

.shipping-price {
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

/* Payment Box */
.payment-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.payment-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

.payment-body {
    padding: 1.5rem;
}

/* Policy Links */
.policy-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
}

/* Sidebar Elements */
.item-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.item-image {
    position: relative;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #cfae70;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

.item-variant {
    color: #888;
    font-size: 0.85rem;
}

.item-price {
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

.discount-row {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.discount-row input {
    margin-bottom: 0;
}

.totals-section {
    font-size: 0.95rem;
    color: #ccc;
}

.tot-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tot-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: 1rem;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
}

.tot-amount {
    font-size: 1.5rem;
    font-weight: 500;
    color: #cfae70;
}

.tot-amount .currency {
    font-size: 0.85rem;
    color: #888;
    margin-right: 0.2rem;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #11141d;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    border: 1px solid rgba(207, 174, 112, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #cfae70;
    color: #000;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.footer-legal-info-checkout {
    margin-top: 4rem;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-wrapper {
        flex-direction: column-reverse;
    }

    .checkout-main,
    .checkout-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 2rem 5%;
    }

    .checkout-sidebar {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .form-row.split {
        flex-direction: column;
        gap: 1rem;
    }
}