/* ============================================================
   CART PAGE — pixel-matched to screenshot
   ============================================================ */

.price-lbl {
    font-size: .65em;
    font-weight: 600;
    opacity: .75;
    letter-spacing: .03em;
    margin-inline-end: .1em
}

/* ===== HEADER ===== */
.cart-header {
    background: #F5F4FF;
    padding-block: clamp(24px,3.5vw,44px)
}

.cart-header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.crumbs {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: #667085;
    margin-bottom: .5rem;
    flex-wrap: wrap
}

    .crumbs a {
        color: #667085
    }

        .crumbs a:hover {
            color: var(--violet)
        }

.crumb-cur {
    color: #6941C6;
    font-weight: 600
}

.cart-header h1 {
    font-size: clamp(1.8rem,3.4vw,2.4rem);
    font-weight: 800;
    color: #101828;
    margin: 0
}

.cart-header-sub {
    font-size: .9rem;
    color: #667085;
    margin: .3rem 0 0
}

/* Trust badges — white card to the right */
.cart-trust-badges {
    display: flex;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(16,24,40,.08);
    overflow: hidden;
    flex-shrink: 0
}

.ctb-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.1rem 1.4rem;
    border-inline-start: 1px solid #F2F4F7
}

    .ctb-item:first-child {
        border-inline-start: none
    }

    .ctb-item svg {
        width: 28px;
        height: 28px;
        color: var(--violet);
        flex: none
    }

    .ctb-item b {
        display: block;
        font-size: .88rem;
        font-weight: 700;
        color: #101828
    }

    .ctb-item span {
        display: block;
        font-size: .73rem;
        color: #667085
    }

@media(max-width:1100px) {
    .cart-trust-badges {
        display: none
    }
}

/* ===== BODY ===== */
.cart-body {
    background: #F9FAFB;
    padding-block: clamp(20px,3vw,40px);
    min-height: 60vh
}

/* Two-col layout: items left, form right */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    align-items: start
}

@media(max-width:1100px) {
    .cart-layout {
        grid-template-columns: 1fr
    }
}

/* ===== LEFT: ITEMS CARD ===== */
.cart-left {
    display: flex;
    flex-direction: column;
    gap: 0
}

.cart-items-card {
    background: #fff;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(16,24,40,.06)
}

/* Card header row */
.ci-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 18px
}

    .ci-top h2 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #101828;
        margin: 0
    }

        .ci-top h2 em {
            font-style: normal;
            font-size: .88rem;
            font-weight: 500;
            color: #667085;
            margin-inline-start: .3rem
        }

.clear-form {
    display: contents
}

.clear-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #F04438;
    font-size: .84rem;
    font-weight: 600;
    padding: .35rem .6rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background .15s
}

    .clear-btn:hover {
        background: #FEF3F2
    }

    .clear-btn svg {
        width: 14px;
        height: 14px
    }

/* Column header bar */
.ct-header {
    display: grid;
    grid-template-columns: 1fr 140px 120px 160px 40px;
    gap: 0;
    align-items: center;
    padding: .6rem 24px;
    background: #F9FAFB;
    border-top: 1px solid #F2F4F7;
    border-bottom: 1px solid #E4E7EC
}

.cth-product {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #98A2B3
}

.cth-price, .cth-qty, .cth-sub {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #98A2B3;
    text-align: center
}

/* === PRODUCT LINE === */
.ct-line {
    display: grid;
    grid-template-columns: 1fr 140px 120px 160px 40px;
    gap: 0;
    align-items: center;
    padding: 18px 24px;
    border-top: 1px solid #F2F4F7;
    transition: background .15s
}

    .ct-line:hover {
        background: #FAFAFA
    }

/* Product cell */
.ct-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0
}

.ct-img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    border: 1px solid #E4E7EC;
    background: #F9FAFB;
    display: grid;
    place-items: center;
    padding: 8px;
    flex: none;
    text-decoration: none;
    overflow: hidden
}

    .ct-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .2s
    }

    .ct-img:hover img {
        transform: scale(1.05)
    }

    .ct-img svg {
        width: 38px;
        height: 38px;
        color: #D0D5DD
    }

.ct-img-svc {
    background: #F4F0FF
}

    .ct-img-svc svg {
        color: var(--violet)
    }

.ct-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0
}

.ct-cat {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--violet);
    background: #F4F0FF;
    padding: .15rem .5rem;
    border-radius: 999px;
    display: inline-block;
    width: fit-content
}

.ct-name {
    font-size: .92rem;
    font-weight: 600;
    color: #101828;
    line-height: 1.35;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}

    .ct-name:hover {
        color: var(--violet)
    }

.ct-model {
    font-size: .65rem;
    color: #98A2B3;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500
}

.ct-stock {
    font-size: .72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .1rem
}

    .ct-stock.in {
        color: #027A48
    }

    .ct-stock.out {
        color: #B42318
    }

/* Unit price cell */
.ct-price {
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
    color: #344054;
    white-space: nowrap;
    padding-inline: 8px
}

.ct-dash {
    color: #D0D5DD;
    font-weight: 400;
    font-size: .9rem
}

/* Qty stepper */
.ct-qty-wrap {
    display: flex;
    justify-content: center
}

.ct-qty {
    display: inline-flex;
    align-items: center;
    background: #F9FAFB;
    border: 1.5px solid #E4E7EC;
    border-radius: 10px;
    overflow: hidden
}

    .ct-qty form {
        display: contents
    }

    .ct-qty button {
        width: 34px;
        height: 36px;
        font-size: 1.05rem;
        font-weight: 700;
        color: #344054;
        display: grid;
        place-items: center;
        border: none;
        background: transparent;
        cursor: pointer;
        transition: .15s;
        border-inline-end: 1.5px solid #E4E7EC
    }

        .ct-qty button:last-of-type {
            border-inline-end: none;
            border-inline-start: 1.5px solid #E4E7EC
        }

        .ct-qty button:hover {
            background: #E9D7FE;
            color: var(--violet)
        }

    .ct-qty span {
        min-width: 36px;
        text-align: center;
        font-size: .9rem;
        font-weight: 700;
        color: #101828;
        line-height: 36px
    }

/* Subtotal cell */
.ct-subtotal {
    text-align: end;
    padding-inline: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .05rem
}

.ct-subtotal-val {
    font-size: .72rem;
    font-weight: 600;
    color: #98A2B3;
    letter-spacing: .04em;
    line-height: 1.2
}

.ct-subtotal-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--violet);
    letter-spacing: -.01em;
    line-height: 1.2
}

.ct-quote-lbl {
    font-size: .8rem;
    color: #98A2B3;
    font-style: italic;
    font-weight: 500
}

/* Remove */
.ct-remove {
    display: flex;
    justify-content: center
}

    .ct-remove form {
        display: contents
    }

    .ct-remove button {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        color: #D0D5DD;
        display: grid;
        place-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: .15s
    }

        .ct-remove button:hover {
            background: #FEF3F2;
            color: #F04438
        }

    .ct-remove svg {
        width: 14px;
        height: 14px
    }

/* === TOTAL BAR (inside the card at bottom) === */
.ct-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: #F5F4FF;
    border-top: 1px solid #E4E7EC
}
/* LEFT: icon + text */
.ct-total-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0
}

.ct-total-left-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EEE9FD;
    display: grid;
    place-items: center;
    flex: none
}

    .ct-total-left-icon svg {
        width: 22px;
        height: 22px;
        color: var(--violet)
    }

.ct-total-left b {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #101828;
    margin-bottom: .2rem
}

.ct-total-left span {
    display: block;
    font-size: .8rem;
    color: #667085
}
/* RIGHT: total label + amount */
.ct-total-right {
    text-align: end;
    flex-shrink: 0
}

.ct-total-label {
    display: block;
    font-size: .78rem;
    color: #667085;
    font-weight: 500;
    margin-bottom: .2rem
}

.ct-total-amount {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: .25rem;
    flex-wrap: nowrap
}

.ct-total-sar {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--violet)
}

.ct-total-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--violet);
    letter-spacing: -.02em;
    line-height: 1
}

.ct-total-note, .ct-total-quote {
    font-size: .78rem;
    color: #98A2B3;
    font-weight: 500
}

.ct-vat-note {
    display: block;
    font-size: .72rem;
    color: #98A2B3;
    margin-top: .25rem;
    font-style: italic;
    text-align: end
}
/* RTL: flip text alignment */
html[dir="rtl"] .ct-total-right {
    text-align: start
}

html[dir="rtl"] .ct-total-amount {
    justify-content: flex-start
}

html[dir="rtl"] .ct-vat-note {
    text-align: start
}

/* ===== RIGHT: QUOTE FORM CARD ===== */
.cart-right {
}

.quote-form-card {
    background: #fff;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(16,24,40,.06);
    position: sticky;
    top: 90px
}

    .quote-form-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #101828;
        margin: 0 0 .35rem
    }

.qf-sub {
    font-size: .84rem;
    color: #667085;
    margin: 0 0 1.6rem;
    line-height: 1.6
}

.qf-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 14px
}

    .qf-field label {
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: #344054
    }

.qf-input-wrap {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #fff;
    border: 1.5px solid #E4E7EC;
    border-radius: 10px;
    padding: .72rem 1rem;
    transition: border-color .15s,box-shadow .15s
}

    .qf-input-wrap:focus-within {
        border-color: var(--violet);
        box-shadow: 0 0 0 3px rgba(124,82,244,.1)
    }

    .qf-input-wrap svg {
        width: 16px;
        height: 16px;
        color: #98A2B3;
        flex: none
    }

    .qf-input-wrap input, .qf-input-wrap textarea {
        border: none;
        outline: none;
        font-family: inherit;
        font-size: .9rem;
        background: transparent;
        width: 100%;
        color: #101828
    }

        .qf-input-wrap input::placeholder, .qf-input-wrap textarea::placeholder {
            color: #C0C7D4
        }

.qf-ta-wrap {
    align-items: flex-start;
    padding-top: .75rem
}

    .qf-ta-wrap svg {
        margin-top: .15rem
    }

.qf-input-wrap textarea {
    resize: none;
    min-height: 76px;
    line-height: 1.55
}

.field-err {
    color: #F04438;
    font-size: .74rem;
    font-weight: 600
}

.form-error {
    color: #F04438;
    font-size: .85rem;
    margin-bottom: 10px
}

    .form-error ul {
        list-style: none;
        padding: 0;
        margin: 0
    }

.qf-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: var(--violet);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1.05rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background .18s,box-shadow .18s;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(124,82,244,.35)
}

    .qf-submit:hover {
        background: var(--violet-dark,#6B41E8);
        box-shadow: 0 6px 18px rgba(124,82,244,.45)
    }

    .qf-submit svg {
        width: 18px;
        height: 18px
    }

.qf-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .74rem;
    color: #98A2B3;
    margin: .85rem 0 0;
    text-align: center
}

    .qf-secure svg {
        width: 13px;
        height: 13px;
        flex: none
    }

/* ===== BOTTOM TRUST STRIP — single white card ===== */
.cart-trust-strip {
    display: flex;
    background: #fff;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(16,24,40,.06)
}

.cts-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-inline-start: 1px solid #F2F4F7
}

    .cts-item:first-child {
        border-inline-start: none
    }

    .cts-item svg {
        width: 32px;
        height: 32px;
        color: var(--violet);
        flex: none;
        margin-top: 2px
    }

    .cts-item b {
        display: block;
        font-size: .9rem;
        font-weight: 700;
        color: #101828;
        margin-bottom: .3rem
    }

    .cts-item span {
        font-size: .78rem;
        color: #667085;
        line-height: 1.55
    }

@media(max-width:900px) {
    .cart-trust-strip {
        flex-wrap: wrap
    }

    .cts-item {
        flex: 1 1 calc(50% - 1px)
    }

        .cts-item:nth-child(3) {
            border-inline-start: none
        }
}

@media(max-width:520px) {
    .cart-trust-strip {
        flex-direction: column
    }

    .cts-item {
        border-inline-start: none;
        border-top: 1px solid #F2F4F7
    }

        .cts-item:first-child {
            border-top: none
        }
}

/* ===== EMPTY & SUCCESS ===== */
.cart-empty-card, .quote-success-card {
    background: #fff;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    padding: clamp(40px,6vw,72px);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(16,24,40,.06)
}

    .cart-empty-card svg, .quote-success-card svg {
        width: 60px;
        height: 60px;
        color: #D0D5DD
    }

    .quote-success-card svg {
        color: var(--violet)
    }

    .cart-empty-card h2 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #101828;
        margin: 0
    }

    .cart-empty-card p, .quote-success-card span {
        color: #667085;
        font-size: .9rem;
        margin: 0
    }

    .quote-success-card b {
        font-size: 1.15rem;
        font-weight: 700;
        color: #101828;
        display: block
    }

.ce-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px
}

/* ===== MOBILE ===== */
@media(max-width:760px) {
    .ct-header {
        display: none
    }

    .ct-line {
        grid-template-columns: 84px 1fr 40px;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 14px 16px
    }

    .ct-product {
        grid-column: 1/3;
        grid-row: 1
    }

    .ct-remove {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        margin-top: 4px
    }

    .ct-price {
        display: none
    }

    .ct-qty-wrap {
        grid-column: 1;
        grid-row: 2;
        justify-content: start
    }

    .ct-subtotal {
        grid-column: 2/4;
        grid-row: 2;
        text-align: end
    }

    .ci-top {
        padding: 16px
    }

    .ct-total-bar {
        flex-direction: column;
        align-items: stretch
    }

    .ct-total-right {
        text-align: start
    }

    .ct-total-amount {
        justify-content: flex-start
    }

    .ct-vat-note {
        text-align: start
    }

    .quote-form-card {
        position: static
    }
}

/* Minus button dimmed when qty is at minimum (handled via JS class) */
.ct-qty form.qty-at-min button {
    opacity: .3;
    cursor: not-allowed;
    pointer-events: none
}

/* ── Continue Shopping row ───────────────────────────────── */
.cart-continue {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 1.1rem 0;
    border-top: 1px solid #F0ECFF;
    margin-top: 1.5rem;
}

    .cart-continue span {
        font-size: .85rem;
        color: var(--muted);
        font-weight: 500;
        margin-inline-end: 4px;
    }

.cart-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .84rem;
    padding: .5rem 1rem;
    border-radius: 10px;
}

    .cart-continue-btn svg {
        flex: none
    }
