/* body {
    background: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
} */
:root {
    --primary: #982586;
    --secondary: #747574;
    --highlight: #ffdd1b;
    --more_highlight: #d83428;
    --dark: #1a1a1a;
    --green: #2d6a4f;
    --gray: #f1f1f1;
    --cream2: #fef0dc;
    --light: #ffffff;
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Stack Sans Headline", sans-serif;
    color: #000;
}

.offcanvas-header h5 {
    font-family: "Stack Sans Headline", sans-serif;
    color: #000;
    font-size: 18px;
}

.offcanvas-header small {
    color: #888888;
    font-size: 12px;
}

.offcanvas-header h5 i {
    font-size: 16px;
    color: var(--primary);
    margin-right: 10px;
    margin-bottom: 2px;
}

.cart-offcanvas {
    width: 420px !important;
}

.cart-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #ececec;
}

.cart-item h6 {
    font-size: 14px;
    font-weight: 500;
}

.cart-item small {
    font-size: 13px;
}

.product-img {
    width: 70px;
    height: 70px;
    /* object-fit: cover; */
    /* border-radius: 10px; */
}

.price {
    margin-left: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.price {
    margin-left: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.price strong {
    font-size: 12px;
    font-weight: 500;
}

.price strong span {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}


.remove-btn {
    cursor: pointer;
    text-decoration: none;
    color: #d65151;
    font-size: 13px;
    background: transparent;
    border: none;
}
.remove-btn:hover{
    font-weight: 600;
    transform: translateY(-1px);
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-box button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f2f2f2;
}

.qty-box button:hover {
    color: #fff;
    background: var(--primary);
}

.accessory {
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    padding: 12px;
}

.accessory img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    display: block;
    margin: auto;
    margin-bottom: 8px;
}

.cart-footer {
    border-top: 1px solid #ddd;
    padding: 20px;
    background: #fff;
}

.cart-footer strong {
    font-size: 12px;
    font-weight: 500;
}

.cart-footer strong span {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.cart-footer .btn-viewcart {
    border-radius: 5px;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-weight: 600;
}


.cart-footer .btn-viewcart:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 14px rgba(136, 136, 136, 0.356);
    background-color: var(--secondary);
    color: #fff;
}

.cart-footer .btn-checkout {
    border-radius: 5px;
    border: none;
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 500;
}

.cart-footer .btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 14px rgba(203, 89, 248, 0.356);
    /* border: 1px solid var(--primary);
    background-color: #ffffff;
    color: var(--primary); */
}

/* .cart-footer .btn-checkout:hover:hover ~ .cart-footer .btn-viewcart {
    background-color: var(--secondary);
    color: #fff;
} */

/* .btn-checkout:hover + .btn-viewcart {
    background-color: var(--secondary);
    color: #fff;
} */
.btn-dark {
    border-radius: 8px;
}

.btn-outline-dark {
    border-radius: 8px;
}



/* =========================
   RESET
========================= */

/* * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, Helvetica, sans-serif;
            background: #eef2f7;
            color: #222;
            font-size: 11px;
        } */


/* =========================
   MAIN CONTAINER
========================= */

.checkout-container {
    /* width: 100%; */
    /* max-width: 1000px; */
    /* margin: 35px auto; */
    /* padding: 0 15px; */

    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 10px;
}


/* =========================
   LEFT & RIGHT COLUMNS
========================= */

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================
   CARD
========================= */

.card-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 15px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-title {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-subtitle {
    color: #777;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 15px;
}


/* =========================
   FORM GRID
========================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group.full {
    grid-column: 1 / -1;
}



label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 2px;
    margin-top: 5px;
}

input,
select {
    width: 100%;
    height: 29px;

    border: 1px solid #dfe3e8;
    border-radius: 4px;

    padding: 0 9px;

    font-size: 13px;
    color: #333;

    background: #fff;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--primary);
}

.select-option {
    width: 100%;
    height: 29px;

    border: 1px solid #dfe3e8;
    border-radius: 4px;

    padding: 0 9px;

    font-size: 13px;
    color: #333;

    background: #fff;
    outline: none;
    text-align: left;
}

.select-option:focus {
    border-color: var(--primary);
}

.dropdown-menu {
    font-size: 13px;
    color: #333;
    min-width: 100%;
    border: 1px solid #e7d8e8;
    border-top: none;
    border-radius: 0 0 10px 10px;
}
.view-order {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    height: 35px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.view-order:hover {
    color: #ffffff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--secondary),#0e0d0d );
    box-shadow: 0 4px 15px rgba(92, 92, 92, 0.267);
}





/*  =====================
 ADDRESS SELECT AREA   
=====================*/


.address-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.address-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Address Card */
.address-card {
    position: relative;
    width: 220px;
    min-height: 125px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s ease;
}

.address-card:hover {
    border-color: var(--primary);
}

/* Selected Card */
.address-card.selected {
    border: 1px solid var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.address-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 7px;
}

.address-text {
    font-size: 9px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.phone {
    font-size: 9px;
    color: #555;
    margin-top: 2px;
}

/* Edit */
.edit-btn {
    position: absolute;
    top: 12px;
    right: 10px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 9px;
    cursor: pointer;
    padding: 0;
}

.edit-btn:hover {
    color: var(--primary);
}

/* Blue tick */
.selected-icon {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.address-card.selected .selected-icon {
    display: flex;
}

/* Add Address */
.add-address {
    width: 100px;
    min-height: 125px;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    color: #aaa;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition: 0.2s;
}

.add-address:hover {
    background: #eeeeee;
    color: #777;
}

.plus {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 7px;
}

.add-text {
    font-size: 9px;
}

/* Mobile */
@media (max-width: 600px) {
    .address-list {
        flex-direction: column;
    }

    .address-card,
    .add-address {
        width: 100%;
    }
}


/* =========================
   BUTTON AREA
========================= */

.button-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.primary-btn {
    border: none;
    background: var(--primary);
    color: #fff;

    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 15px rgba(208, 26, 232, 0.267);
}

.cancel-btn {
    border: none;
    background: transparent;
    color: #555;

    font-size: 13px;
    cursor: pointer;
}


/* =========================
   ORDER SUMMARY
========================= */

.order-alert {
    background: #fff3f3;
    color: #d64a4a;

    padding: 7px;
    border-radius: 3px;

    font-size: 11px;
    margin-bottom: 12px;
}


/* PRODUCT */

.product {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 0;

    border-bottom: 1px solid #eee;
}

.product-image {
    width: 35px;
    height: 35px;

    border-radius: 3px;

    background: #f1f3f5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
}

.product-qty {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

.product-price {
    font-size: 13px;
    font-weight: 600;
}

.product-price span {
    font-size: 10px;
    font-weight: 500;
}


/* =========================
   TOTALS
========================= */

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-weight: 500;
    font-size: 13px;
}

.summary-row.total {
    font-size: 15px;
    font-weight: 500;
    border-top: 1px solid #eee;
    margin-top: 5px;
    padding-top: 8px;
}

.place-order {
    width: 100%;
    border: none;
    background: var(--primary);
    color: white;
    height: 35px;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}


.place-order:hover {
 color: white;    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 15px rgba(208, 26, 232, 0.267);
}


/* =========================
   PAYMENT
========================= */

.card-number {
    margin-top: 5px;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 9px;
}

.accepted {
    margin-top: 13px;
    font-size: 9px;
    font-weight: 600;
}

.cards {
    display: flex;
    gap: 5px;
    margin-top: 7px;
}

.card-logo {
    width: 28px;
    height: 18px;

    border: 1px solid #ddd;
    border-radius: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 7px;
    font-weight: bold;
}


/* =========================
   ADDITIONAL SERVICE
========================= */

.service-box {
    border: 1px solid #e3e6ea;
    border-radius: 4px;

    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.service-name {
    font-size: 10px;
    font-weight: bold;
}

.service-desc {
    font-size: 8px;
    color: #777;
}

.service-price {
    font-size: 9px;
    margin-right: 7px;
}


/* =========================
   TOGGLE
========================= */

.toggle {
    position: relative;

    width: 27px;
    height: 15px;

    display: inline-block;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;

    background: #ccc;

    border-radius: 20px;

    cursor: pointer;

    transition: 0.2s;
}

.slider:before {
    content: "";

    position: absolute;

    width: 11px;
    height: 11px;

    left: 2px;
    top: 2px;

    background: #fff;

    border-radius: 50%;

    transition: 0.2s;
}

.toggle input:checked+.slider {
    background: #1769e0;
}

.toggle input:checked+.slider:before {
    transform: translateX(12px);
}

/* =========================
   PAYMENT 
========================= */

.pay-option {
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    max-width: fit-content;
}

.pay-option:hover {
    border-color: var(--primary);
}

.pay-option.active {
    border-color:var(--primary);
}

/* =========================
   DELIVERY
========================= */

.delivery-option {
    border: 1px solid #e1e4e8;

    border-radius: 4px;

    padding: 8px;

    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 6px;

    cursor: pointer;
}

.delivery-option:hover {
    border-color: var(--primary);
}

.delivery-option.active {
    border-color:var(--primary);
}

.delivery-icon {
    width: 25px;
    height: 25px;

    background: #f0f4ff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}

.delivery-info {
    flex: 1;
}

.delivery-name {
    font-size: 12px;
    font-weight: 500;
}

.delivery-time {
    font-size: 10px;
    color: #777;
    margin-top: 2px;
}

.delivery-price {
    font-size: 13px;
    font-weight: 600;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 750px) {

    .checkout-container {
        grid-template-columns: 1fr;
        max-width: 550px;
    }

    .right-column {
        /* order: -1; */
    }
}


@media (max-width: 480px) {

    /* body {
        font-size: 10px;
    } */

    .checkout-container {
        padding: 10px;
        margin: 10px auto;
    }

    .card {
        padding: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .payment-row {
        grid-template-columns: 1fr 1fr;
    }
}