/* ==========================================
   CHECKOUT PAGE
========================================== */

.checkout-page {
    background: #0b0b0b;
    min-height: 100vh;
    padding: 90px 0;
    color: #fff;
}


/* ==========================================
   HEADER
========================================== */

.checkout-header {
    text-align: center;
    margin-bottom: 55px;
}

.checkout-small-title {
    display: inline-block;
    color: #D4AF37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.checkout-header h1 {
    font-size: 46px;
    font-weight: 700;
    margin: 0;
}

.checkout-header h1 span {
    color: #D4AF37;
}

.checkout-header p {
    color: #999;
    margin-top: 12px;
}


/* ==========================================
   CARD
========================================== */

.checkout-card {
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 24px;
}

.checkout-card-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.checkout-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 21px;
}

.checkout-card-title h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.checkout-card-title p {
    margin: 4px 0 0;
    color: #777;
    font-size: 13px;
}


/* ==========================================
   FORM
========================================== */

.checkout-card label {
    display: block;
    color: #ddd;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.checkout-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #292929;
    border-radius: 9px;
    padding: 13px 15px;
    color: #fff;
    outline: none;
    transition: 0.3s ease;
}

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

.checkout-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.checkout-textarea {
    resize: vertical;
    min-height: 110px;
}


/* ==========================================
   PAYMENT
========================================== */

.payment-card {
    margin-bottom: 0;
}

.payment-option {
    position: relative;
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

.payment-option:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.03);
}

.payment-option input {
    position: absolute;
    opacity: 0;
}

.payment-option:has(input:checked) {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.06);
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-method-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 20px;
}

.payment-option strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.payment-option span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

.payment-check {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    opacity: 0;
}

.payment-option:has(input:checked) .payment-check {
    opacity: 1;
}


/* ==========================================
   PRODUCTS
========================================== */

.checkout-products {
    margin-bottom: 25px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #222;
}

.checkout-product-image {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 9px;
    overflow: hidden;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-product-info {
    flex: 1;
    min-width: 0;
}

.checkout-product-info h4 {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 5px;
    color: #eee;
}

.checkout-product-info span {
    color: #777;
    font-size: 12px;
}

.checkout-product-price {
    color: #D4AF37;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}


/* ==========================================
   TOTALS
========================================== */

.checkout-totals {
    margin-top: 20px;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #999;
    font-size: 14px;
}

.total-row strong {
    color: #ddd;
}

.discount-row span,
.discount-row strong {
    color: #D4AF37;
}

.discount-row small {
    font-size: 10px;
    color: #888;
}

.total-divider {
    height: 1px;
    background: #292929;
    margin: 20px 0;
}

.grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grand-total span {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.grand-total strong {
    color: #D4AF37;
    font-size: 26px;
}


/* ==========================================
   PLACE ORDER
========================================== */

.place-order-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 28px;
    background: #D4AF37;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.place-order-btn:hover {
    background: #e4c45a;
    transform: translateY(-2px);
}

.checkout-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #666;
    font-size: 11px;
    margin-top: 15px;
}

.checkout-security i {
    color: #D4AF37;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .checkout-page {
        padding: 70px 0;
    }

    .checkout-header h1 {
        font-size: 38px;
    }

}


@media (max-width: 576px) {

    .checkout-page {
        padding: 50px 0;
    }

    .checkout-header {
        margin-bottom: 35px;
    }

    .checkout-header h1 {
        font-size: 31px;
    }

    .checkout-card {
        padding: 20px;
        border-radius: 14px;
    }

    .checkout-card-title {
        margin-bottom: 22px;
    }

    .grand-total strong {
        font-size: 22px;
    }

}