/* ======================================================
   GLOBAL SAFETY (does NOT break home page)
====================================================== */

/* Header is fixed → push whole site down */


/* Prevent horizontal overflow bugs */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ======================================================
   CHECKOUT PAGE (SCOPED – ONLY CHECKOUT)
====================================================== */

.checkout-page {
    min-height: calc(100vh - 90px);
    padding-bottom: 60px; /* space before footer */
    background: #f8f9fa;
}

/* Card styling without breaking Bootstrap */
.checkout-page .card {
    border-radius: 12px;
    border: 1px solid #eaeaea;
}

/* Sticky summary ONLY on large screens */
@media (min-width: 992px) {
    .checkout-summary-sticky {
        position: sticky;
        top: 110px; /* header + gap */
    }
}

/* ======================================================
   FORM CONTROLS (Bootstrap-friendly)
====================================================== */

.checkout-page .form-control {
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
}

.checkout-page textarea.form-control {
    resize: none;
}

/* ======================================================
   PAYMENT OPTIONS
====================================================== */

.checkout-page .form-check {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkout-page .form-check-input {
    margin-right: 10px;
}

.checkout-page .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ======================================================
   ORDER SUMMARY
====================================================== */

.checkout-page .product-image {
    max-height: 180px;
    object-fit: contain;
}

.checkout-page .price {
    font-size: 18px;
    font-weight: 600;
}

/* ======================================================
   BUTTON
====================================================== */

.checkout-page .btn-place-order {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

/* ======================================================
   MOBILE FIXES (NO OVERLAP EVER)
====================================================== */

@media (max-width: 768px) {

    .checkout-page {
        padding-bottom: 80px;
    }

    .checkout-summary-sticky {
        position: relative !important;
        top: auto !important;
    }
    .checkout-summary {
      position: relative;
     }

    footer {
        position: relative;
    }
}
