/* =====================================================
   CART
   ===================================================== */

.cart-page {
    padding: 34px 0 70px;
    background: #fff;
}

.cart-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

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

.cart-overline {
    margin-bottom: 7px;
    color: #7d848d;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.cart-top h1 {
    margin: 0;
    color: #15191f;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.cart-top p {
    margin: 8px 0 0;
    color: #737a83;
    font-size: 13px;
    line-height: 1.4;
}

.cart-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d9dde2;
    border-radius: 7px;
    color: #333940;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cart-back:hover {
    border-color: #bfc5cc;
    background: #f8f9fa;
}

.cart-warning {
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid #ead6a8;
    border-radius: 7px;
    color: #725a20;
    background: #fff8e9;
    font-size: 13px;
    line-height: 1.4;
}

.cart-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
}

.cart-head,
.cart-row {
    display: grid;
    grid-template-columns:
        150px
        minmax(300px, 1fr)
        90px
        125px
        150px
        145px;
    gap: 16px;
    align-items: center;
    padding: 0 16px;
}

.cart-head {
    min-height: 40px;
    color: #7a818a;
    background: #f7f8f9;
    border-bottom: 1px solid #dfe3e7;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.cart-row {
    min-height: 88px;
    border-bottom: 1px solid #eceef0;
    color: #22272d;
}

.cart-row:last-child {
    border-bottom: 0;
}

.cart-row:hover {
    background: #fbfcfd;
}

.cart-sku {
    color: #2b3036;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cart-product {
    min-width: 0;
}

.cart-name {
    color: #20252b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.cart-fitment {
    margin-top: 5px;
    color: #858b93;
    font-size: 11px;
    line-height: 1.25;
}

.cart-warehouse {
    color: #2e343b;
    font-size: 12px;
    font-weight: 600;
}

.cart-price {
    color: #30353b;
    font-size: 13px;
    white-space: nowrap;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    justify-self: start;
}

.cart-qty button {
    width: 30px;
    height: 32px;
    padding: 0;
    border: 1px solid #d5d9de;
    background: #fff;
    color: #343a40;
    cursor: pointer;
    font-size: 15px;
    line-height: 30px;
}

.cart-qty button:first-child {
    border-radius: 5px 0 0 5px;
}

.cart-qty button:last-child {
    border-radius: 0 5px 5px 0;
}

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

.cart-qty input {
    width: 42px;
    height: 32px;
    padding: 0 3px;
    border: 0;
    border-top: 1px solid #d5d9de;
    border-bottom: 1px solid #d5d9de;
    outline: none;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 13px;
    text-align: center;
}

.cart-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.cart-sum strong {
    color: #1f2429;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cart-remove {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a0a6ad;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
}

.cart-remove:hover {
    color: #c22;
}

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

.cart-total-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.cart-total-block span {
    color: #555c64;
    font-size: 14px;
}

.cart-total-block strong {
    color: #15191f;
    font-size: 24px;
    font-weight: 700;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #22272c;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cart-button.secondary {
    color: #24292e;
    background: #fff;
}

.cart-button.secondary:hover {
    background: #f7f8f9;
}

.cart-button.primary {
    gap: 12px;
    color: #fff;
    background: #22272c;
}

.cart-button.primary:hover {
    background: #111418;
}

.cart-empty {
    padding: 65px 20px;
    border: 1px solid #e0e3e6;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.cart-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 10px;
    background: #f3f5f7;
    font-size: 21px;
}

.cart-empty strong {
    display: block;
    color: #20252a;
    font-size: 18px;
    font-weight: 600;
}

.cart-empty p {
    margin: 7px 0 18px;
    color: #777e87;
    font-size: 13px;
}

.cart-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    color: #fff;
    background: #22272c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1000px) {

    .cart-head,
    .cart-row {
        grid-template-columns:
            125px
            minmax(220px, 1fr)
            80px
            105px
            130px
            125px;
        gap: 11px;
    }

    .cart-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {

    .cart-page {
        padding: 24px 0 45px;
    }

    .cart-container {
        width: min(100% - 20px, 1200px);
    }

    .cart-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .cart-top h1 {
        font-size: 28px;
    }

    .cart-back {
        width: 100%;
        justify-content: center;
    }

    .cart-table {
        border: 0;
        overflow: visible;
        background: transparent;
    }

    .cart-head {
        display: none;
    }

    .cart-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 14px;
        min-height: 0;
        padding: 15px;
        margin-bottom: 9px;
        border: 1px solid #e0e3e6;
        border-radius: 8px;
        background: #fff;
    }

    .cart-sku {
        grid-column: 1 / -1;
        font-size: 11px;
    }

    .cart-product {
        grid-column: 1 / -1;
    }

    .cart-warehouse {
        grid-column: 1;
        align-self: center;
    }

    .cart-price {
        grid-column: 1;
        align-self: center;
    }

    .cart-qty {
        grid-column: 2;
        grid-row: 3 / span 2;
        align-self: center;
    }

    .cart-sum {
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid #eceef0;
    }

    .cart-bottom {
        gap: 15px;
        margin-top: 14px;
    }

    .cart-total-block {
        justify-content: space-between;
        width: 100%;
    }

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

    .cart-button {
        width: 100%;
    }
}
