/* ==================================================
   INDU PRATIBHA — CHECKOUT PAGE STYLESHEET
   Built on Bootstrap 5. Relies on the CSS variables and
   shared header/footer/button rules defined in style.css
   (loaded before this file) — do not duplicate them here.
   Only Checkout-page-specific additions live below.
   ================================================== */

.ip-checkout-page {
    background: var(--ip-cream);
    padding: 2.5rem 0 4.5rem;
}

.ip-checkout-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.3rem;
    color: var(--ip-text);
    margin-bottom: 1.75rem;
}

/* ---- Form ---- */
.ip-checkout-form {
    margin-bottom: 2.5rem;
}

.ip-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.ip-form-row.ip-two-col {
    grid-template-columns: 1fr 1fr;
}

.ip-form-control {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--ip-tan);
    border-radius: 8px;
    background: var(--ip-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ip-text);
}

.ip-form-control::placeholder {
    color: #9a8f7c;
}

.ip-form-control:focus {
    outline: none;
    border-color: var(--ip-red);
    box-shadow: 0 0 0 3px rgba(198, 53, 12, 0.1);
}

.ip-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23c6350c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.4rem;
}

/* ---- Order table ---- */
.ip-checkout-subheading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ip-text);
    margin-bottom: 1.25rem;
}

.ip-order-table-wrap {
    background: var(--ip-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(92, 16, 6, 0.08);
}

.ip-order-table {
    width: 100%;
    border-collapse: collapse;
}

.ip-order-table thead th {
    background: var(--ip-cream-deep);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ip-text);
    text-align: left;
    padding: 1.1rem 1.4rem;
}

.ip-order-table thead th:nth-child(2),
.ip-order-table thead th:nth-child(3),
.ip-order-table thead th:nth-child(4) {
    text-align: center;
}

.ip-order-table tbody td {
    padding: 1.1rem 1.4rem;
    border-top: 1px solid var(--ip-cream-deep);
    vertical-align: middle;
}

.ip-order-table tbody tr:first-child td {
    border-top: none;
}

.ip-order-product-cell {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ip-order-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ip-order-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ip-text);
    margin: 0;
}

.ip-order-weight {
    font-size: 0.82rem;
    color: var(--ip-text-light);
    margin: 0.1rem 0 0;
}

.ip-order-price {
    text-align: center;
    color: var(--ip-red);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.ip-order-qty {
    text-align: center;
}

.ip-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.ip-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: var(--ip-red);
    color: var(--ip-white);
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ip-qty-btn:hover {
    background: var(--ip-red-dark);
}

.ip-qty-value {
    min-width: 16px;
    text-align: center;
    font-weight: 600;
}

.ip-order-total {
    text-align: center;
    font-weight: 700;
    color: var(--ip-text);
    white-space: nowrap;
}

/* ---- Order summary sidebar ---- */
.ip-summary-card {
    background: var(--ip-white);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(92, 16, 6, 0.08);
    padding: 1.75rem 1.6rem;
    position: sticky;
    top: 1.5rem;
}

.ip-summary-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ip-text);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ip-cream-deep);
    margin-bottom: 1.25rem;
}

.ip-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--ip-text);
    margin-bottom: 0.85rem;
}

.ip-summary-card hr {
    border: none;
    border-top: 1px solid var(--ip-cream-deep);
    margin: 0.6rem 0 1rem;
}

.ip-summary-total {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
}

.ip-coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--ip-cream-deep);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.25rem;
}

.ip-coupon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ip-text);
}

.ip-coupon-label img {
    width: 18px;
    height: 18px;
}

.ip-btn-coupon {
    background: var(--ip-maroon);
    color: var(--ip-white);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ip-btn-coupon:hover {
    background: var(--ip-maroon-deep);
    color: var(--ip-white);
}

.ip-btn-checkout {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
}

/* ---- Responsive: table becomes stacked cards below lg ---- */
@media (max-width: 991.98px) {
    .ip-form-row.ip-two-col { grid-template-columns: 1fr; }

    .ip-order-table-wrap { box-shadow: none; background: transparent; }
    .ip-order-table thead { display: none; }
    .ip-order-table, .ip-order-table tbody, .ip-order-table tr, .ip-order-table td { display: block; width: 100%; }

    .ip-order-table tbody tr {
        background: var(--ip-white);
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(92, 16, 6, 0.08);
        padding: 1.1rem;
        margin-bottom: 1rem;
        position: relative;
    }

    .ip-order-table tbody td {
        border: none;
        padding: 0.25rem 0;
    }

    .ip-order-price { display: none; }

    .ip-order-qty {
        text-align: left;
        padding-left: 76px !important;
        margin-top: 0.4rem;
    }

    .ip-order-total {
        position: absolute;
        top: 1.1rem;
        right: 1.1rem;
        text-align: right;
    }

    .ip-summary-card { position: static; margin-top: 1.75rem; }
}

@media (max-width: 575.98px) {
    .ip-checkout-title { font-size: 1.85rem; }
    .ip-form-control { padding: 0.8rem 1rem; }
}
