/* css/checkout.css */

.page-header-space{
    height:90px;
    background: var(--theme-color);
}

.checkout-section{
    padding:80px 20px;
    background:#343434;
    min-height:100vh;
}

.checkout-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 30px;
}

.checkout-box {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.checkout-box h1,
.checkout-box h2 {
    margin-top: 0;
}

.checkout-form label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 6px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

.checkout-form textarea {
    min-height: 100px;
}

.checkout-submit {
    margin-top: 24px;
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
}

@media(max-width:768px) {
    .checkout-wrap {
        grid-template-columns: 1fr;
    }

    .checkout-section {
        padding: 50px 14px;
    }

    .checkout-box {
        padding: 22px;
    }
}

.payment-section{
    padding:80px 20px;
}

.payment-wrap{
    max-width:800px;
    margin:auto;
}

.payment-box{
    background:#fff;
    border-radius:18px;
    padding:35px;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    text-align:center;
}

.payment-total{
    font-size:30px;
    font-weight:700;
    margin:25px 0;
}

.secure-checkout-box{
    margin-top:30px;
}

.secure-checkout-btn{
    background:#111;
    color:#fff;
    border:none;
    padding:18px 30px;
    border-radius:14px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
}

.secure-checkout-btn i{
    margin-right:10px;
}

/* CART PAGE CLEANUP */

.cart-header-content {
    max-width: 950px;
    margin: 0 auto;
    color: #fff;
    padding-top: 45px;
}

.cart-header-content h1 {
    font-size: 42px;
    margin-bottom: 8px;
}

.checkout-box {
    border-radius: 18px;
    padding: 30px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-item-row:last-of-type {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cart-item-img {
    width: 130px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

.cart-item-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.cart-item-info p {
    margin: 0;
    color: #555;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 999px;
    overflow: hidden;
    background: #f8f8f8;
}

.cart-qty a,
.cart-qty span {
    min-width: 38px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
    font-weight: 700;
}

.cart-qty a {
    background: #fff;
}

.cart-qty a:hover {
    background: #2d7a2d;
    color: #fff;
}

.cart-line-total {
    text-align: right;
    min-width: 110px;
}

.cart-line-total strong {
    font-size: 18px;
}

.cart-remove {
    display: inline-block;
    margin-top: 6px;
    color: #a00000;
    text-decoration: none;
    font-size: 14px;
}

.cart-remove:hover {
    text-decoration: underline;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 2px solid #111;
    font-size: 26px;
    font-weight: 800;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    align-items: center;
}

.cart-continue,
.cart-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.cart-continue {
    background: #f2f2f2;
    color: #111;
}

.cart-continue:hover {
    background: #e2e2e2;
}

.cart-checkout {
    width: auto;
    background: #111;
    color: #fff;
}

.cart-checkout:hover {
    background: #2d7a2d;
}

/* MOBILE CART */

@media (max-width: 700px) {
    .checkout-wrap {
        padding: 0 14px;
    }

    .checkout-box {
        padding: 20px;
    }

    .cart-item-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cart-item-info {
        align-items: flex-start;
    }

    .cart-item-img {
        width: 105px;
        height: 90px;
    }

    .cart-line-total {
        text-align: left;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-continue,
    .cart-checkout {
        width: 100%;
    }

    .order-total {
        font-size: 22px;
    }
}

/* MOBILE CART FIXES */

@media (max-width: 700px) {
    .page-header-space {
        padding-top: 90px;
        margin-top: 0;
    }

    .cart-header-content {
        padding: 20px 18px 10px;

    }

    .cart-header-content h1 {
        font-size: 36px;
        line-height: 1.05;
        margin: 0 0 10px;
    }

    .cart-header-content p {
        margin: 0;
        font-size: 16px;
        line-height: 1.35;
    }

    .checkout-section {
        padding-top: 10px;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .cart-continue,
    .cart-checkout {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkout-form .full-width {
    grid-column: 1 / -1;
}

.checkout-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

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

.checkout-submit {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .checkout-form {
        grid-template-columns: 1fr;
    }
}

.checkout-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .checkout-wrap {
        display: flex;
        flex-direction: column;
    }

    .checkout-summary-box {
        order: 1;
    }

    .checkout-form-box {
        order: 2;
    }
}

/* PAYMENT PAGE */

.payment-box h2 {
    margin-top: 0;
    font-size: 30px;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 18px;
}

.payment-detail-row strong {
    font-size: 22px;
}

.payment-note {
    margin: 24px 0 18px;
    color: #444;
}

.secure-checkout-box {
    margin-top: 18px;
}

.secure-checkout-btn {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.secure-checkout-btn:hover {
    background: #2d7a2d;
}

.secure-checkout-btn i {
    margin-right: 8px;
}

#paypal-area {
    margin-top: 22px;
}

@media (max-width: 700px) {
    .payment-detail-row {
        font-size: 16px;
    }

    .payment-detail-row strong {
        font-size: 20px;
    }
}

.shipping-method-section {
    margin-top: 8px;
}

.shipping-message {
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid #d8e3dc;
    border-radius: 8px;
    background: #f5faf7;
    color: #355344;
    line-height: 1.5;
}

.shipping-message-warning {
    border-color: #f2b8b5;
    background: #fff1f1;
    color: #9b1c1c;
}

.shipping-options {
    display: grid;
    gap: 12px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px;
    border: 1px solid #d6dfda;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease,
                background-color 0.2s ease;
}

.shipping-option:hover {
    border-color: #32835d;
    background: #f6fbf8;
}

.shipping-option:has(input:checked) {
    border-color: #17613f;
    background: #edf8f1;
    box-shadow: 0 0 0 2px rgba(23, 97, 63, 0.1);
}

.shipping-option input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    accent-color: #17613f;
}

.shipping-option-text {
    display: block;
    flex: 1;
    min-width: 0;
}

.shipping-option-text strong {
    display: block;
    margin-bottom: 4px;
    color: #1e362a;
}

.shipping-option-text small {
    display: block;
    color: #67766e;
    line-height: 1.4;
}

.shipping-option-price {
    color: #17613f;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.checkout-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.checkout-grand-total {
    margin-top: 5px;
    padding-top: 16px;
    border-top: 2px solid #dce5df;
    font-size: 19px;
}

@media (max-width: 560px) {
    .shipping-option {
        align-items: flex-start;
    }

    .shipping-option-price {
        font-size: 15px;
    }
}

.summary-product{
    display:flex;
    align-items:center;
    gap:12px;

}

.summary-thumb{
    width:50px;
    height:50px;
    border-radius:10px;
    object-fit:cover;
    border:1px solid #ddd;
    flex-shrink:0;

}

.summary-details{
    display:flex;
    flex-direction:column;

}

.summary-details strong{
    font-size:16px;

}

.summary-details small{
    color:#666;
    margin-top:3px;

}

.summary-price{
    font-weight:700;
    font-size:18px;

}

/* Order summary totals */

.order-subtotal,
.shipping-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
}

.order-subtotal span,
.shipping-summary-row span {
    font-size: inherit;
    font-weight: inherit;
}

.order-subtotal span:last-child,
.shipping-summary-row span:last-child {
    max-width: 62%;
    text-align: right;
    line-height: 1.35;
}

.shipping-summary-row {
    border-top: 0;
    border-bottom: 1px solid #dbe5df;
}

#summaryShipping {
    color: #46554d;
    font-size: 15px;
    font-weight: 500;
}

.checkout-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 4px;
    border-top: 0;
    font-size: 20px;
    font-weight: 800;
}

.checkout-grand-total span {
    font-size: inherit;
    font-weight: inherit;
}

.checkout-grand-total span:last-child {
    text-align: right;
}

.payment-message {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 8px;
    line-height: 1.5;
    font-weight: 600;
}

.payment-message-error {
    border: 1px solid #efb2b2;
    background: #fff1f1;
    color: #9b1c1c;
}

.payment-message-success {
    border: 1px solid #a7d8b8;
    background: #edf9f1;
    color: #17613f;
}

.payment-total-row {
    margin-top: 8px;
    padding-top: 17px;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
}

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