/* Arses Land - cart page redesign */
.taee-cart-page,
.taee-cart-page * {
    box-sizing: border-box;
}

.taee-cart-page {
    margin-top: 75px;
    background: #f6f8fa;
    color: #171b1f;
    direction: rtl;
}

.taee-cart-page a {
    text-decoration: none;
}

.taee-cart-page > .container,
.taee-cart-page section > .container {
    max-width: 1320px;
}

/* Hero */
.taee-cart-hero {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #0b0e10;
}

.taee-cart-hero__banner {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: contain;
}

/* Checkout progress */
.taee-cart-steps {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #e5e9ed;
    background: #fff;
}

.taee-cart-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px 0 20px;
}

.taee-cart-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #7b8792;
    text-align: center;
}

.taee-cart-step:not(:last-child)::after {
    content: "";
    position: absolute;
    width: calc(100% - 72px);
    height: 2px;
    top: 22px;
    left: calc(-50% + 36px);
    background: repeating-linear-gradient(90deg, #e0e5e9 0 5px, transparent 5px 9px);
}

.taee-cart-step__icon {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #dce2e7;
    border-radius: 50%;
    background: #f3f5f7;
    color: #76818b;
    font-size: 18px;
    box-shadow: 0 5px 12px rgba(15,23,42,.04);
}

.taee-cart-step__label {
    font-size: 13px;
    font-weight: 800;
}

.taee-cart-step.is-active {
    color: var(--primary, #f00311);
}

.taee-cart-step.is-active .taee-cart-step__icon {
    border-color: var(--primary, #f00311);
    background: var(--primary, #f00311);
    color: #fff;
    box-shadow: 0 10px 22px rgba(240,3,17,.2);
}

/* Main */
.taee-cart-page__content {
    padding-top: 34px;
    padding-bottom: 44px;
}

.taee-cart-messages {
    margin-bottom: 18px;
}

.taee-cart-message {
    padding: 12px 15px;
    border: 1px solid #dbe5ed;
    border-radius: 9px;
    background: #fff;
    color: #344454;
    font-size: 13px;
}

.taee-cart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.taee-cart-toolbar__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.taee-cart-toolbar h2 {
    margin: 0;
    color: #151a1e;
    font-size: 23px;
    font-weight: 950;
}

.taee-cart-toolbar h2 span {
    color: #333c43;
    font-size: 16px;
    font-weight: 800;
}

.taee-cart-toolbar small {
    color: #8d979f;
    font-size: 11px;
}

.taee-cart-continue {
    min-height: 42px;
    padding: 7px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--primary, #f00311);
    border-radius: 8px;
    background: #fff;
    color: var(--primary, #f00311) !important;
    font-size: 13px;
    font-weight: 850;
    transition: .18s ease;
}

.taee-cart-continue:hover {
    background: #fff4f5;
    transform: translateY(-1px);
}

.taee-cart-layout {
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    grid-template-areas: "summary items";
    align-items: start;
    gap: 24px;
    direction: ltr;
}

.taee-cart-items-panel {
    grid-area: items;
    min-width: 0;
    direction: rtl;
}

.taee-cart-summary-wrap {
    grid-area: summary;
    min-width: 0;
    direction: rtl;
    align-self: start;
}

.taee-cart-form {
    margin: 0;
}

.taee-cart-table-head {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) 145px 135px 145px 44px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #e2e7eb;
    border-radius: 9px 9px 0 0;
    background: #f8fafb;
    color: #424d56;
    font-size: 12px;
    font-weight: 900;
}

.taee-cart-table-head span:not(:first-child) {
    text-align: center;
}

.taee-cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.taee-cart-item {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) 145px 135px 145px 44px;
    align-items: center;
    gap: 10px;
    min-height: 142px;
    padding: 14px 16px;
    border: 1px solid #e3e8ec;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15,23,42,.025);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.taee-cart-item:hover {
    border-color: #d5dde3;
    box-shadow: 0 10px 24px rgba(15,23,42,.055);
}

.taee-cart-item__product {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.taee-cart-item__image {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
}

.taee-cart-item__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 4px;
}

.taee-cart-item__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.taee-cart-item__name {
    max-width: 100%;
    color: #181d21 !important;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
}

.taee-cart-item__sku,
.taee-cart-item__variant {
    color: #6f7a83;
    font-size: 11px;
    line-height: 1.7;
}

.taee-cart-item__stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 850;
}

.taee-cart-item__stock.is-available {
    color: #16a05d;
}

.taee-cart-item__stock.is-unavailable {
    color: #d93b3b;
}

.taee-cart-item__price,
.taee-cart-item__total,
.taee-cart-item__quantity,
.taee-cart-item__remove {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.taee-cart-item__price,
.taee-cart-item__total {
    flex-direction: column;
    gap: 4px;
}

.taee-cart-item__price strong,
.taee-cart-item__total strong {
    color: #171d22;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.taee-cart-item__price strong small,
.taee-cart-item__total strong small {
    font-size: 10px;
    font-weight: 700;
}

.taee-cart-item__price del {
    color: #9ca4aa;
    font-size: 10px;
    white-space: nowrap;
}

.taee-cart-item__price del small {
    font-size: 9px;
}

.taee-cart-item__total span {
    color: #9aa3aa;
    font-size: 9px;
}

.taee-cart-qty {
    height: 42px;
    display: inline-grid;
    grid-template-columns: 38px 48px 38px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #d9e0e5;
    border-radius: 7px;
    background: #fff;
    direction: rtl;
}

.taee-cart-qty a {
    display: grid;
    place-items: center;
    color: #75818a !important;
    background: #f8fafb;
    font-size: 12px;
    transition: .16s ease;
}

.taee-cart-qty a:hover {
    color: var(--primary, #f00311) !important;
    background: #fff2f3;
}

.taee-cart-qty input {
    width: 48px !important;
    min-width: 48px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-inline: 1px solid #e3e8ec !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #171d22 !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.taee-cart-qty input::-webkit-inner-spin-button,
.taee-cart-qty input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.taee-cart-remove {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #87939c;
    cursor: pointer;
    transition: .16s ease;
}

.taee-cart-remove:hover {
    background: #fff0f1;
    color: var(--primary, #f00311);
}

.taee-cart-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.taee-cart-update {
    min-height: 40px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d8dfe4;
    border-radius: 7px;
    background: #fff;
    color: #4a565f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    transition: .16s ease;
}

.taee-cart-update:hover {
    border-color: #c6d0d7;
    color: var(--primary, #f00311);
}

/* Summary */
.taee-cart-summary {
    position: sticky;
    top: 104px;
    overflow: hidden;
    border: 1px solid #e1e6ea;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
}

.taee-cart-summary > h3 {
    margin: 0;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #edf0f2;
    color: #171b1f;
    font-size: 18px;
    font-weight: 950;
}

.taee-cart-summary__rows {
    padding: 11px 17px 0;
}

.taee-cart-summary__row {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f0f2f4;
    color: #4b565f;
    font-size: 11px;
}

.taee-cart-summary__row strong {
    color: #21282e;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.taee-cart-summary__row.is-discount strong {
    color: var(--primary, #f00311);
}

.taee-cart-summary__row.is-total {
    min-height: 48px;
    color: #222a30;
    font-weight: 900;
}

.taee-cart-summary__row.is-total strong {
    font-size: 13px;
}

.taee-cart-summary__row strong.is-muted {
    color: #7b8790;
    font-weight: 800;
}

.taee-cart-summary__payable {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 17px;
    border-bottom: 1px solid #edf0f2;
    color: #1e252a;
    font-size: 13px;
    font-weight: 950;
}

.taee-cart-summary__payable strong {
    color: var(--primary, #f00311);
    font-size: 20px;
    font-weight: 950;
    white-space: nowrap;
}

.taee-cart-summary__payable small {
    font-size: 11px;
}

.taee-cart-checkout {
    min-height: 50px;
    margin: 14px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 7px;
    background: linear-gradient(100deg, #660033 0%, #5B002D 58%, #4F0028 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 9px 20px rgba(240,3,17,.15);
    transition: .18s ease;
}

.taee-cart-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(240,3,17,.22);
}

.taee-cart-secure {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #68747d;
    font-size: 11px;
    font-weight: 800;
}

.taee-cart-secure i {
    font-size: 15px;
}

.taee-cart-summary__benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #edf0f2;
}

.taee-cart-summary__benefit {
    min-width: 0;
    min-height: 82px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    color: #283139;
    font-size: 10px;
    font-weight: 850;
}

.taee-cart-summary__benefit + .taee-cart-summary__benefit {
    border-right: 1px solid #edf0f2;
}

.taee-cart-summary__benefit img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Recommended products */
.taee-cart-recommendations,
.taee-cart-brands {
    margin-top: 34px;
}

.taee-cart-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.taee-cart-section-heading h2 {
    margin: 0 0 4px;
    color: #171c20;
    font-size: 20px;
    font-weight: 950;
}

.taee-cart-section-heading p {
    margin: 0;
    color: #8a959d;
    font-size: 11px;
}

.taee-cart-section-heading--compact {
    margin-bottom: 10px;
}

.taee-cart-rail-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.taee-cart-rail-controls button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dde3e7;
    border-radius: 7px;
    background: #fff;
    color: #606d76;
    cursor: pointer;
    transition: .16s ease;
}

.taee-cart-rail-controls button:hover {
    border-color: var(--primary, #f00311);
    color: var(--primary, #f00311);
}

.taee-cart-products-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 235px;
    grid-template-rows: 1fr;
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 2px 10px;
}

.taee-cart-products-rail::-webkit-scrollbar {
    display: none;
}

.taee-cart-products-rail > .product-outer {
    width: 235px !important;
    min-width: 235px !important;
    max-width: 235px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    scroll-snap-align: start;
}

.taee-cart-products-rail .theme-product-card {
    height: 100%;
    margin: 0 !important;
    border: 1px solid #e2e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.taee-cart-products-rail .theme-product-card:hover {
    border-color: #d7dde2 !important;
    box-shadow: 0 8px 21px rgba(15,23,42,.07) !important;
}

.taee-cart-products-rail .product__image {
    height: 165px !important;
    padding: 10px !important;
}

.taee-cart-products-rail .product__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.taee-cart-products-rail .product__body {
    padding: 8px 11px 12px !important;
}

.taee-cart-products-rail .product-link h5 {
    min-height: 44px;
}



/* Brands */
.taee-cart-brands__rail {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
    background: #fff;
}

.taee-cart-brand {
    min-width: 0;
    height: 66px;
    display: grid;
    place-items: center;
    padding: 10px;
    background: #fff;
    transition: background .16s ease;
}

.taee-cart-brand + .taee-cart-brand {
    border-right: 1px solid #edf0f2;
}

.taee-cart-brand:hover {
    background: #fafbfc;
}

.taee-cart-brand img {
    width: 100%;
    height: 38px;
    display: block;
    object-fit: contain;
    filter: saturate(.95);
}

/* Empty cart */
.taee-cart-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 20px;
    border: 1px solid #e2e7eb;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.taee-cart-empty__icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #fff0f1;
    color: var(--primary, #f00311);
    font-size: 34px;
}

.taee-cart-empty h2 {
    margin: 0 0 7px;
    font-size: 22px;
    font-weight: 950;
}

.taee-cart-empty p {
    max-width: 480px;
    margin: 0 0 18px;
    color: #7b8790;
    font-size: 12px;
    line-height: 2;
}

.taee-cart-empty > a {
    min-height: 44px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--primary, #f00311);
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
}

.taee-cart-mobile-sticky {
    display: none;
}

/* Dark mode safety */
.dark .taee-cart-page {
    background: #181b1e;
    color: #f0f2f4;
}

.dark .taee-cart-steps,
.dark .taee-cart-item,
.dark .taee-cart-summary,
.dark .taee-cart-products-rail .theme-product-card,
.dark .taee-cart-brands__rail,
.dark .taee-cart-brand,
.dark .taee-cart-empty,
.dark .taee-cart-message,
.dark .taee-cart-continue,
.dark .taee-cart-update {
    background: #24282c !important;
    border-color: #353b40 !important;
}

.dark .taee-cart-table-head {
    background: #202428;
    border-color: #353b40;
    color: #dbe0e4;
}

.dark .taee-cart-toolbar h2,
.dark .taee-cart-toolbar h2 span,
.dark .taee-cart-item__name,
.dark .taee-cart-item__price strong,
.dark .taee-cart-item__total strong,
.dark .taee-cart-summary > h3,
.dark .taee-cart-summary__row.is-total,
.dark .taee-cart-summary__row strong,
.dark .taee-cart-summary__payable,
.dark .taee-cart-section-heading h2,
.dark .taee-cart-products-rail .product-link h5,
.dark .taee-cart-empty h2 {
    color: #f1f3f5 !important;
}

/* Tablet */
@media (max-width: 1199px) {
    .taee-cart-layout {
        grid-template-columns: 285px minmax(0, 1fr);
        gap: 18px;
    }

    .taee-cart-table-head,
    .taee-cart-item {
        grid-template-columns: minmax(230px, 1.6fr) 125px 128px 130px 38px;
        gap: 8px;
    }

    .taee-cart-item__image {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .taee-cart-brands__rail {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .taee-cart-brand:nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 991px) {
    .taee-cart-page {
        margin-top: 0;
    }

    .taee-cart-hero,
    .taee-cart-hero__inner {
        min-height: 185px;
    }

    .taee-cart-hero__copy {
        width: 60%;
    }

    .taee-cart-hero__visual {
        width: 270px;
        height: 170px;
        flex-basis: 270px;
    }

    .taee-cart-hero__tool {
        width: 120px;
        height: 120px;
        right: 70px;
        top: 23px;
        font-size: 50px;
    }

    .taee-cart-hero__cart {
        right: 168px;
        top: 112px;
    }

    .taee-cart-hero__ring--one {
        width: 170px;
        height: 170px;
        right: 48px;
        top: 0;
    }

    .taee-cart-hero__ring--two {
        right: 128px;
        top: 32px;
    }

    .taee-cart-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
        direction: rtl;
    }

    .taee-cart-items-panel,
    .taee-cart-summary-wrap {
        width: 100%;
        grid-column: auto;
    }

    .taee-cart-summary {
        position: static;
    }

    .taee-cart-table-head {
        display: none;
    }

    .taee-cart-item {
        grid-template-columns: minmax(0, 1fr) 138px 138px;
        grid-template-areas:
            "product product remove"
            "price quantity total";
        min-height: 0;
        padding: 14px;
    }

    .taee-cart-item__product { grid-area: product; }
    .taee-cart-item__price { grid-area: price; }
    .taee-cart-item__quantity { grid-area: quantity; }
    .taee-cart-item__total { grid-area: total; }
    .taee-cart-item__remove { grid-area: remove; justify-content: flex-end; align-self: start; }

    .taee-cart-item__price,
    .taee-cart-item__quantity,
    .taee-cart-item__total {
        position: relative;
        min-height: 64px;
        padding-top: 21px;
        border-top: 1px solid #edf0f2;
    }

    .taee-cart-item__price::before,
    .taee-cart-item__quantity::before,
    .taee-cart-item__total::before {
        content: attr(data-label);
        position: absolute;
        top: 5px;
        color: #98a1a8;
        font-size: 9px;
        font-weight: 750;
    }

    .taee-cart-recommendations,
    .taee-cart-brands {
        margin-top: 28px;
    }

    .taee-cart-brands__rail {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .taee-cart-brands__rail::-webkit-scrollbar {
        display: none;
    }

    .taee-cart-brand,
    .taee-cart-brand:nth-child(n+9) {
        display: grid;
        flex: 0 0 130px;
        scroll-snap-align: start;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .taee-cart-page__content {
        padding-top: 20px;
        padding-bottom: 120px;
    }

    .taee-cart-hero,
    .taee-cart-hero__inner {
        min-height: 150px;
    }

    .taee-cart-hero__inner {
        padding-inline: 17px;
    }

    .taee-cart-hero__copy {
        width: 74%;
        padding-block: 22px;
    }

    .taee-cart-hero__eyebrow {
        min-height: 24px;
        margin-bottom: 7px;
        padding: 3px 9px;
        font-size: 9px;
    }

    .taee-cart-hero h1 {
        margin-bottom: 4px;
        font-size: 27px;
    }

    .taee-cart-hero p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 10px;
        line-height: 1.9;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .taee-cart-hero__visual {
        width: 110px;
        height: 140px;
        flex-basis: 110px;
        margin-left: -8px;
    }

    .taee-cart-hero__tool {
        width: 80px;
        height: 80px;
        right: 8px;
        top: 23px;
        border-radius: 22px;
        font-size: 33px;
    }

    .taee-cart-hero__cart {
        width: 45px;
        height: 45px;
        right: 55px;
        top: 89px;
        border-radius: 13px;
        font-size: 18px;
    }

    .taee-cart-hero__ring--one {
        width: 105px;
        height: 105px;
        right: -4px;
        top: 13px;
        box-shadow: 0 0 0 17px rgba(255,255,255,.015);
    }

    .taee-cart-hero__ring--two {
        display: none;
    }

    .taee-cart-steps__grid {
        padding: 13px 0 14px;
    }

    .taee-cart-step {
        gap: 5px;
    }

    .taee-cart-step:not(:last-child)::after {
        width: calc(100% - 48px);
        top: 17px;
        left: calc(-50% + 24px);
    }

    .taee-cart-step__icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .taee-cart-step__label {
        font-size: 9px;
        line-height: 1.5;
    }

    .taee-cart-toolbar {
        align-items: flex-end;
        margin-bottom: 12px;
    }

    .taee-cart-toolbar__title {
        display: block;
    }

    .taee-cart-toolbar h2 {
        font-size: 19px;
    }

    .taee-cart-toolbar h2 span {
        font-size: 13px;
    }

    .taee-cart-toolbar small {
        display: block;
        margin-top: 4px;
    }

    .taee-cart-continue {
        min-height: 36px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .taee-cart-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "product product remove"
            "price quantity total";
        gap: 8px 5px;
        padding: 11px;
    }

    .taee-cart-item__product {
        align-items: flex-start;
        gap: 10px;
    }

    .taee-cart-item__image {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .taee-cart-item__name {
        font-size: 11px;
        line-height: 1.75;
    }

    .taee-cart-item__sku,
    .taee-cart-item__variant,
    .taee-cart-item__stock {
        font-size: 9px;
    }

    .taee-cart-item__price,
    .taee-cart-item__quantity,
    .taee-cart-item__total {
        min-width: 0;
        min-height: 66px;
        padding-top: 22px;
    }

    .taee-cart-item__price strong,
    .taee-cart-item__total strong {
        font-size: 10px;
        white-space: normal;
        line-height: 1.65;
    }

    .taee-cart-item__price del {
        font-size: 8px;
    }

    .taee-cart-qty {
        height: 36px;
        grid-template-columns: 31px 35px 31px;
    }

    .taee-cart-qty input {
        width: 35px !important;
        min-width: 35px !important;
        height: 34px !important;
        font-size: 11px !important;
    }

    .taee-cart-remove {
        width: 31px;
        height: 31px;
        font-size: 12px;
    }

    .taee-cart-form__actions {
        margin-top: 9px;
    }

    .taee-cart-update {
        min-height: 36px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .taee-cart-summary > h3 {
        padding: 15px 14px 11px;
        font-size: 16px;
    }

    .taee-cart-summary__rows {
        padding-inline: 14px;
    }

    .taee-cart-summary__row {
        font-size: 10px;
    }

    .taee-cart-summary__row strong {
        font-size: 10px;
    }

    .taee-cart-summary__payable {
        min-height: 60px;
        padding-inline: 14px;
        font-size: 11px;
    }

    .taee-cart-summary__payable strong {
        font-size: 17px;
    }

    .taee-cart-summary__benefit {
        min-height: 72px;
        font-size: 8px;
    }

    .taee-cart-summary__benefit img {
        width: 26px;
        height: 26px;
    }

    .taee-cart-section-heading {
        align-items: center;
        margin-bottom: 10px;
    }

    .taee-cart-section-heading h2 {
        font-size: 16px;
        line-height: 1.7;
    }

    .taee-cart-section-heading p {
        font-size: 9px;
        line-height: 1.7;
    }

    .taee-cart-rail-controls {
        display: none;
    }

    .taee-cart-products-rail {
        display: flex;
        gap: 8px;
        margin-inline: -2px;
        padding-bottom: 8px;
    }

    .taee-cart-products-rail > .product-outer {
        flex: 0 0 min(56vw, 205px) !important;
        width: min(56vw, 205px) !important;
        min-width: min(56vw, 205px) !important;
    }

    .taee-cart-products-rail .product__image {
        height: 145px !important;
    }

    .taee-cart-brand,
    .taee-cart-brand:nth-child(n+9) {
        flex-basis: 112px;
        height: 60px;
        padding: 8px;
    }

    .taee-cart-brand img {
        height: 33px;
    }

    .taee-cart-mobile-sticky {
        position: fixed;
        z-index: 900;
        right: 0;
        left: 0;
        bottom: 63px;
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 13px;
        border-top: 1px solid #e0e5e9;
        background: rgba(255,255,255,.97);
        box-shadow: 0 -7px 22px rgba(15,23,42,.08);
        backdrop-filter: blur(8px);
    }

    .taee-cart-mobile-sticky > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .taee-cart-mobile-sticky span {
        color: #74808a;
        font-size: 8px;
    }

    .taee-cart-mobile-sticky strong {
        color: #1d2429;
        font-size: 12px;
        font-weight: 950;
        white-space: nowrap;
    }

    .taee-cart-mobile-sticky a {
        min-width: 122px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 14px;
        border-radius: 7px;
        background: var(--primary, #f00311);
        color: #fff !important;
        font-size: 11px;
        font-weight: 900;
    }

    .dark .taee-cart-mobile-sticky {
        border-top-color: #343a40;
        background: rgba(34,38,42,.97);
    }

    .dark .taee-cart-mobile-sticky strong {
        color: #fff;
    }
}

@media (max-width: 420px) {
    .taee-cart-hero__copy {
        width: 76%;
    }

    .taee-cart-hero h1 {
        font-size: 23px;
    }

    .taee-cart-step__label {
        font-size: 8px;
    }

    .taee-cart-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .taee-cart-item__image {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .taee-cart-qty {
        grid-template-columns: 28px 33px 28px;
    }

    .taee-cart-qty input {
        width: 33px !important;
        min-width: 33px !important;
    }
}

.taee-cart-update.is-dirty {
    border-color: var(--primary, #f00311);
    color: var(--primary, #f00311);
    box-shadow: 0 0 0 2px rgba(240,3,17,.07);
}


/* Cart refinement v1.0.1: real banner, aligned summary, product-card font */
.taee-cart-page .taee-cart-hero {
    min-height: 0 !important;
}
.taee-cart-page .taee-cart-hero__banner {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}
@media (max-width: 991px) {
    .taee-cart-layout {
        grid-template-areas: none;
    }
}

/* Cart detail refinement v1.0.2
   Keep the shared product component's typography intact; only cart-specific layout is styled here. */

/* Continue shopping: text starts on the right, chevron follows on the left. */
.taee-cart-continue {
    font-size: 14px;
    font-weight: inherit;
}
.taee-cart-continue i,
.taee-cart-continue i::before {
    color: currentColor !important;
}

/* The active checkout step has a red circle, therefore its icon must stay white
   even when a global Font Awesome rule applies an accent color. */
.taee-cart-step.is-active .taee-cart-step__icon,
.taee-cart-step.is-active .taee-cart-step__icon i,
.taee-cart-step.is-active .taee-cart-step__icon i::before {
    color: #fff !important;
}

/* Stock icons always follow their label color. */
.taee-cart-item__stock.is-available,
.taee-cart-item__stock.is-available i,
.taee-cart-item__stock.is-available i::before {
    color: #16a05d !important;
}
.taee-cart-item__stock.is-unavailable,
.taee-cart-item__stock.is-unavailable i,
.taee-cart-item__stock.is-unavailable i::before {
    color: #d93b3b !important;
}

/* Readability: the first pass was too small compared with the rest of the site. */
.taee-cart-step__label { font-size: 14px; }
.taee-cart-toolbar h2 { font-size: 25px; }
.taee-cart-toolbar h2 span { font-size: 17px; }
.taee-cart-toolbar small { font-size: 12px; }
.taee-cart-table-head { font-size: 13px; }
.taee-cart-item__name { font-size: 16px; }
.taee-cart-item__sku,
.taee-cart-item__variant,
.taee-cart-item__stock { font-size: 12px; }
.taee-cart-item__price strong,
.taee-cart-item__total strong { font-size: 14px; }
.taee-cart-item__price strong small,
.taee-cart-item__total strong small { font-size: 11px; }
.taee-cart-item__price del { font-size: 11px; }
.taee-cart-item__total span { font-size: 10px; }
.taee-cart-update { font-size: 13px; font-weight: inherit; }
.taee-cart-summary > h3 { font-size: 20px; }
.taee-cart-summary__row,
.taee-cart-summary__row strong { font-size: 13px; }
.taee-cart-summary__row.is-total strong { font-size: 14px; }
.taee-cart-summary__payable { font-size: 14px; }
.taee-cart-summary__payable strong { font-size: 21px; }
.taee-cart-secure { font-size: 12px; font-weight: inherit; }
.taee-cart-summary__benefit { font-size: 11px; font-weight: inherit; }
.taee-cart-section-heading h2 { font-size: 22px; }
.taee-cart-section-heading p { font-size: 13px; }

/* components/product.html keeps its own font family, font size, weight and price styles. */

@media (max-width: 767px) {
    .taee-cart-step__label { font-size: 11px; }
    .taee-cart-continue { min-height: 39px; padding: 6px 12px; font-size: 12px; }
    .taee-cart-toolbar h2 { font-size: 21px; }
    .taee-cart-toolbar h2 span { font-size: 14px; }
    .taee-cart-toolbar small { font-size: 11px; }
    .taee-cart-item__name { font-size: 14px; }
    .taee-cart-item__sku,
    .taee-cart-item__variant,
    .taee-cart-item__stock { font-size: 11px; }
    .taee-cart-item__price strong,
    .taee-cart-item__total strong { font-size: 12px; }
    .taee-cart-item__price del { font-size: 10px; }
    .taee-cart-item__price::before,
    .taee-cart-item__quantity::before,
    .taee-cart-item__total::before { font-size: 10px; }
    .taee-cart-update { font-size: 12px; }
    .taee-cart-summary > h3 { font-size: 18px; }
    .taee-cart-summary__row,
    .taee-cart-summary__row strong { font-size: 12px; }
    .taee-cart-summary__payable { font-size: 13px; }
    .taee-cart-summary__payable strong { font-size: 19px; }
    .taee-cart-summary__benefit { font-size: 10px; }
    .taee-cart-section-heading h2 { font-size: 18px; }
    .taee-cart-section-heading p { font-size: 11px; }
    .taee-cart-mobile-sticky span { font-size: 10px; }
    .taee-cart-mobile-sticky strong { font-size: 14px; }
    .taee-cart-mobile-sticky a { font-size: 12px; }
}

@media (max-width: 420px) {
    .taee-cart-step__label { font-size: 10px; }
}


/* Checkout CTA: keep the chevron white on the red button despite global icon colors. */
.taee-cart-checkout i,
.taee-cart-checkout i::before {
    color: #fff !important;
}

/* Cart banner/text refinement v1.0.4 */
.taee-cart-page .taee-cart-hero {
    position: relative;
    min-height: 220px !important;
    background-color: #080a0b;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    isolation: isolate;
}
.taee-cart-page .taee-cart-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.08) 100%);
    pointer-events: none;
}
.taee-cart-page .taee-cart-hero__content {
    width: min(100% - 40px, 1320px);
    min-height: 220px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
}
.taee-cart-page .taee-cart-hero__copy {
    width: min(520px, 46vw);
    padding: 28px 0;
    direction: rtl;
    text-align: right;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.taee-cart-page .taee-cart-hero__copy h1 {
    margin: 0 0 7px;
    color: #fff;
    font-family: inherit;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.35;
}
.taee-cart-page .taee-cart-hero__copy strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
}
.taee-cart-page .taee-cart-hero__copy p {
    margin: 0;
    color: rgba(255,255,255,.92);
    font: inherit;
    font-size: 16px;
    line-height: 1.8;
}

/* Continue-shopping action: Persian text on the right, left-pointing chevron on its left. */
.taee-cart-continue {
    direction: rtl;
    flex-direction: row;
    min-height: 46px;
    padding-inline: 17px;
    gap: 9px;
    font-size: 15px;
}
.taee-cart-continue > span { order: 1; }
.taee-cart-continue > i { order: 2; }

@media (max-width: 991px) {
    .taee-cart-page .taee-cart-hero,
    .taee-cart-page .taee-cart-hero__content {
        min-height: 190px !important;
    }
    .taee-cart-page .taee-cart-hero {
        background-position: 62% center;
    }
    .taee-cart-page .taee-cart-hero__copy {
        width: min(440px, 62vw);
    }
    .taee-cart-page .taee-cart-hero__copy h1 { font-size: 31px; }
    .taee-cart-page .taee-cart-hero__copy strong { font-size: 18px; }
    .taee-cart-page .taee-cart-hero__copy p { font-size: 14px; }
}
@media (max-width: 767px) {
    .taee-cart-page .taee-cart-hero,
    .taee-cart-page .taee-cart-hero__content {
        min-height: 155px !important;
    }
    .taee-cart-page .taee-cart-hero {
        background-position: 68% center;
    }
    .taee-cart-page .taee-cart-hero::before {
        background: linear-gradient(90deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.02) 100%);
    }
    .taee-cart-page .taee-cart-hero__content {
        width: min(100% - 24px, 1320px);
    }
    .taee-cart-page .taee-cart-hero__copy {
        width: 67%;
        padding: 18px 0;
    }
    .taee-cart-page .taee-cart-hero__copy h1 { font-size: 25px; }
    .taee-cart-page .taee-cart-hero__copy strong { font-size: 15px; line-height: 1.55; }
    .taee-cart-page .taee-cart-hero__copy p { font-size: 12px; }
    .taee-cart-continue { min-height: 42px; font-size: 13px; }
}
