
/* TIMIMI V2 - Cart page */

.tm-basket-button--link {
    text-decoration: none;
}

.tm-cart-page {
    background: #fff;
}

.tm-cart-page__intro {
    padding: 54px 0 34px;
    background: linear-gradient(135deg, #F2FBFC 0%, #FFF5F6 58%, #FFF9EE 100%);
    border-bottom: 1px solid rgba(177, 176, 214, .22);
}

.tm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #8A979A;
    font-size: 13px;
}

.tm-breadcrumb a {
    color: #6FAAB1;
    text-decoration: none;
}

.tm-breadcrumb a:hover {
    text-decoration: underline;
}

.tm-cart-page__intro h1 {
    margin: 7px 0 10px;
    color: var(--tm-heading);
    font-family: "Nunito", "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.tm-cart-page__intro p {
    margin: 0;
    max-width: 610px;
    color: var(--tm-muted);
    font-size: 16px;
    line-height: 1.7;
}

.tm-cart-page__content {
    padding: 58px 0 110px;
}

.tm-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .72fr);
    gap: 34px;
    align-items: start;
}

.tm-cart-list-card,
.tm-cart-summary-card {
    border: 1px solid rgba(177, 176, 214, .28);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(61, 80, 84, .07);
}

.tm-cart-list-card {
    overflow: hidden;
}

.tm-cart-list-card__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px 23px;
    border-bottom: 1px solid #EEF0F2;
}

.tm-cart-list-card__header h2,
.tm-cart-summary-card h2,
.tm-cart-page__empty h2 {
    margin: 5px 0 0;
    color: var(--tm-heading);
    font-family: "Nunito", "Trebuchet MS", Arial, sans-serif;
    font-weight: 700;
}

.tm-cart-list-card__header h2,
.tm-cart-summary-card h2 {
    font-size: 28px;
}

.tm-cart-list-card__header > span {
    color: #8B9699;
    font-size: 13px;
    white-space: nowrap;
}

.tm-cart-page-items {
    padding: 0 30px;
}

.tm-cart-page-item {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid #EEF0F2;
}

.tm-cart-page-item:last-child {
    border-bottom: 0;
}

.tm-cart-page-item__image-wrap {
    width: 124px;
    height: 124px;
    overflow: hidden;
    border-radius: 18px;
    background: #F8F7FB;
    border: 1px solid rgba(177, 176, 214, .2);
}

.tm-cart-page-item__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tm-cart-page-item__details {
    min-width: 0;
}

.tm-cart-page-item__details h3 {
    margin: 0 0 5px;
    color: #485C60;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
}

.tm-cart-page-item__option {
    display: block;
    margin-bottom: 8px;
    color: #7F8B8E;
    font-size: 13px;
}

.tm-cart-page-item__unit-price {
    display: block;
    color: #64878C;
    font-size: 14px;
    font-weight: 700;
}

.tm-cart-page-item__stock {
    display: block;
    margin-top: 6px;
    color: #90999C;
    font-size: 12px;
}

.tm-cart-page-item__stock.is-low {
    color: #D46E77;
}

.tm-cart-page-item__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.tm-cart-qty {
    display: inline-grid;
    grid-template-columns: 34px 44px 34px;
    align-items: center;
    border: 1px solid #DDE2E4;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.tm-cart-qty button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #60777B;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.tm-cart-qty button:hover {
    background: #EDF8FA;
}

.tm-cart-qty strong {
    display: grid;
    place-items: center;
    min-height: 34px;
    border-left: 1px solid #EDF0F1;
    border-right: 1px solid #EDF0F1;
    color: #4D5C60;
    font-size: 13px;
}

.tm-cart-remove {
    padding: 0;
    border: 0;
    background: none;
    color: #A28A91;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tm-cart-remove:hover {
    color: #D46E77;
}

.tm-cart-page-item__right {
    min-width: 112px;
    text-align: right;
}

.tm-cart-page-item__right strong {
    color: #485C60;
    font-size: 16px;
}

.tm-cart-list-card__footer {
    padding: 22px 30px;
    border-top: 1px solid #EEF0F2;
    background: #FCFDFD;
}

.tm-cart-continue {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #629EA6;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.tm-cart-continue:hover {
    color: #4F8991;
}

.tm-cart-summary-card {
    position: sticky;
    top: 138px;
    padding: 30px;
}

.tm-cart-summary-card h2 {
    margin-bottom: 28px;
}

.tm-cart-summary-row,
.tm-cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tm-cart-summary-row {
    padding: 10px 0;
    color: #687679;
    font-size: 14px;
}

.tm-cart-summary-row strong {
    color: #4D5C60;
}

.tm-cart-summary-row--muted {
    color: #8E989A;
    font-size: 13px;
}

.tm-cart-delivery-progress {
    margin: 20px 0 25px;
    padding: 16px;
    border-radius: 16px;
    background: #EDF8FA;
}

.tm-cart-delivery-progress__text {
    margin-bottom: 11px;
    color: #61848A;
    font-size: 12px;
    line-height: 1.45;
}

.tm-cart-delivery-progress__track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(115, 205, 215, .25);
}

.tm-cart-delivery-progress__track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--tm-blue);
    transition: width .25s ease;
}

.tm-cart-summary-total {
    margin-top: 8px;
    padding: 22px 0;
    border-top: 1px solid #E9ECEE;
    border-bottom: 1px solid #E9ECEE;
    color: #4D5C60;
}

.tm-cart-summary-total span {
    font-weight: 750;
}

.tm-cart-summary-total strong {
    color: var(--tm-heading);
    font-size: 25px;
}

.tm-cart-summary-note {
    margin: 18px 0 20px;
    color: #8A9497;
    font-size: 12px;
    line-height: 1.55;
}

.tm-cart-summary-card .tm-button + .tm-button {
    margin-top: 10px;
}

.tm-cart-checkout-disabled {
    opacity: .52;
    cursor: not-allowed;
}

.tm-cart-upgrade-note {
    margin: 9px 0 0;
    color: #9A9298;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.tm-cart-assurance {
    display: grid;
    gap: 9px;
    margin-top: 25px;
    padding-top: 21px;
    border-top: 1px solid #E9ECEE;
    color: #829093;
    font-size: 11px;
}

.tm-cart-page__empty {
    max-width: 680px;
    margin: 24px auto 10px;
    padding: 58px 34px;
    border: 1px solid rgba(177, 176, 214, .28);
    border-radius: 28px;
    background: linear-gradient(145deg, #F5FBFC, #FFF7F7 56%, #FFF9EF);
    text-align: center;
}

.tm-cart-page__empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #FDE8EA;
    color: #E7838A;
    font-size: 28px;
}

.tm-cart-page__empty h2 {
    font-size: 30px;
}

.tm-cart-page__empty p {
    max-width: 490px;
    margin: 12px auto 24px;
    color: #7B888B;
    line-height: 1.65;
}

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

    .tm-cart-summary-card {
        position: static;
    }
}

@media (max-width: 680px) {
    .tm-cart-page__intro {
        padding: 38px 0 28px;
    }

    .tm-cart-page__content {
        padding: 34px 0 72px;
    }

    .tm-cart-list-card,
    .tm-cart-summary-card {
        border-radius: 20px;
    }

    .tm-cart-list-card__header {
        padding: 22px 20px 18px;
    }

    .tm-cart-page-items {
        padding: 0 20px;
    }

    .tm-cart-page-item {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 15px;
        align-items: start;
        padding: 22px 0;
    }

    .tm-cart-page-item__image-wrap {
        width: 92px;
        height: 92px;
    }

    .tm-cart-page-item__right {
        grid-column: 2;
        min-width: 0;
        margin-top: -4px;
        text-align: left;
    }

    .tm-cart-page-item__actions {
        gap: 10px;
        flex-wrap: wrap;
    }

    .tm-cart-list-card__footer {
        padding: 19px 20px;
    }

    .tm-cart-summary-card {
        padding: 25px 22px;
    }
}

@media (max-width: 390px) {
    .tm-cart-page-item {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .tm-cart-page-item__image-wrap {
        width: 78px;
        height: 78px;
        border-radius: 14px;
    }

    .tm-cart-list-card__header {
        align-items: start;
    }
}
