.cart-page {
    background: #f7f9fc;
    min-height: 100vh;
    padding: 42px 0 52px;
    color: #0f1f33;
}

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

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

.cart-head h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #07182b;
}

.cart-head h1 span {
    font-size: 21px;
    font-weight: 500;
    color: #60708a;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #7a879b;
    font-weight: 700;
}

.breadcrumb a {
    color: #07182b;
    text-decoration: none;
}

.breadcrumb span {
    color: #b3bdcc;
}

.continue-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1268d8;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 15px;
}

.continue-link svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 38px;
    align-items: start;
}

.cart-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item,
.cart-summary,
.delivery-box,
.trust-row,
.empty-cart {
    background: #ffffff;
    border: 1px solid #dde5f0;
    box-shadow: 0 14px 35px rgba(9, 30, 66, 0.06);
    border-radius: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 150px 140px;
    gap: 26px;
    align-items: center;
    padding: 30px 28px;
}

.item-image {
    height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 100%;
    max-height: 165px;
    object-fit: contain;
}

.item-content h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    color: #101d31;
}

.item-ref {
    margin: 0 0 18px;
    font-size: 14px;
    color: #69778e;
    font-weight: 700;
}

.item-features {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.item-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5b72;
    font-size: 14px;
    font-weight: 700;
}

.item-features span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 2px solid #49c4a2;
    border-radius: 50%;
    color: #49c4a2;
    flex: 0 0 auto;
}

.item-features svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quantity-label {
    margin: 0 0 -10px;
    font-size: 13px;
    font-weight: 800;
    color: #57667d;
}

.quantity-box {
    display: inline-grid;
    grid-template-columns: 42px 42px 42px;
    overflow: hidden;
    width: max-content;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
}

.quantity-box form,
.quantity-box span {
    height: 42px;
}

.quantity-box button,
.quantity-box span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-box button {
    width: 42px;
    height: 42px;
    border: 0;
    background: #ffffff;
    color: #24364f;
    cursor: pointer;
}

.quantity-box button:hover {
    background: #f2f6fb;
}

.quantity-box button svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quantity-box span {
    border-left: 1px solid #dce5f2;
    border-right: 1px solid #dce5f2;
    font-size: 14px;
    font-weight: 800;
    color: #25374f;
}

.remove-form button {
    border: 0;
    background: transparent;
    color: #63748c;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.remove-form button:hover {
    color: #d93444;
}

.remove-form button svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-price {
    text-align: right;
}

.item-price strong {
    display: block;
    font-size: 23px;
    font-weight: 900;
    color: #07182b;
    letter-spacing: -0.03em;
}

.item-price span {
    display: block;
    margin-top: 5px;
    color: #4c5b70;
    font-weight: 800;
    font-size: 14px;
}

.delivery-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
}

.delivery-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eef6ff;
    color: #1268d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.delivery-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.delivery-box strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #17263a;
}

.delivery-box p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #718096;
    font-weight: 700;
}

.delivery-box p span {
    color: #36b889;
    font-weight: 900;
}

.cart-summary {
    position: sticky;
    top: 22px;
    padding: 34px 30px;
}

.cart-summary h2 {
    margin: 0 0 32px;
    text-transform: uppercase;
    color: #142337;
    font-size: 22px;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    color: #18283c;
}

.summary-line strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.summary-line small {
    display: block;
    margin-top: 6px;
    color: #7d8aa0;
    font-size: 14px;
    font-weight: 700;
}

.summary-line > span {
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.summary-line .free {
    color: #33b77f;
}

.cart-summary hr {
    border: 0;
    height: 1px;
    background: #dce5f0;
    margin: 8px 0 28px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.summary-total strong {
    display: block;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 900;
    color: #142337;
}

.summary-total small {
    display: block;
    margin-top: 7px;
    color: #7d8aa0;
    font-size: 14px;
    font-weight: 700;
}

.summary-total span {
    color: #1268d8;
    font-size: 31px;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -0.05em;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    width: 100%;
    border-radius: 7px;
    background: #0968dc;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(9, 104, 220, 0.25);
}

.checkout-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.secure-payment {
    text-align: center;
    margin-top: 20px;
}

.secure-payment p {
    margin: 0 0 14px;
    color: #6c7a90;
    font-weight: 900;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.secure-payment p svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.payments {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.payments span {
    min-width: 54px;
    height: 29px;
    padding: 0 9px;
    border: 1px solid #d7dfeb;
    border-radius: 5px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #17263a;
    font-weight: 900;
    font-size: 12px;
}

.rating-box {
    margin-top: 28px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fbfdff;
}

.rating-box strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #17263a;
    font-size: 23px;
    font-weight: 900;
}

.rating-box strong svg {
    width: 22px;
    height: 22px;
    stroke: #f2a900;
    fill: #f2a900;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rating-box strong span {
    color: #ccd4df;
    font-weight: 800;
}

.rating-box small {
    display: block;
    margin-top: 8px;
    color: #5e6e84;
    font-size: 14px;
    font-weight: 800;
}

.trust-row {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px 24px;
}

.trust-row div {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    padding: 0 22px;
    border-right: 1px solid #dde5f0;
}

.trust-row div:last-child {
    border-right: 0;
}

.trust-row span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef6ff;
    color: #1268d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.trust-row span svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-row p {
    margin: 0;
    color: #7a879b;
    font-weight: 700;
    line-height: 1.45;
}

.trust-row strong {
    display: block;
    color: #34445a;
    font-weight: 900;
}

.empty-cart {
    padding: 70px 30px;
    text-align: center;
}

.empty-cart-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    stroke: #1268d8;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-cart h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #07182b;
}

.empty-cart p {
    margin: 0 0 25px;
    color: #6b7a90;
    font-weight: 700;
}

.empty-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    background: #0968dc;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

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

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 180px 1fr 140px;
    }

    .item-price {
        grid-column: 2 / 4;
        text-align: left;
    }
}

@media (max-width: 850px) {
    .cart-container {
        width: min(100% - 28px, 1400px);
    }

    .cart-head {
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .item-image {
        height: 190px;
    }

    .item-price {
        grid-column: auto;
        text-align: left;
    }

    .trust-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .trust-row div {
        justify-content: flex-start;
        border-right: 0;
        padding: 0;
    }
}

@media (max-width: 520px) {
    .cart-page {
        padding-top: 28px;
    }

    .cart-head h1 {
        font-size: 29px;
    }

    .cart-head h1 span {
        display: block;
        margin: 8px 0 0;
        font-size: 17px;
    }

    .cart-item,
    .cart-summary,
    .delivery-box {
        padding: 22px 18px;
    }

    .summary-total {
        flex-direction: column;
    }

    .summary-total span {
        font-size: 29px;
    }

    .checkout-btn {
        font-size: 13px;
    }

    .trust-row {
        grid-template-columns: 1fr;
    }
}