.cart-page {
    padding: 34px 0 58px;
}

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

.cart-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    font-weight: 800;
}

.cart-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.cart-breadcrumb strong,
.cart-breadcrumb a:hover {
    color: #18d47a;
}

.cart-header {
    margin-bottom: 26px;
    text-align: center;
}

.cart-header h1,
.cart-section-heading h2 {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: 46px;
    line-height: 1.05;
}

.cart-header h1::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin: 18px auto 0;
    background: #18d47a;
}

.cart-section-heading {
    margin-bottom: 22px;
    text-align: center;
}

.cart-section-heading h2 {
    font-size: 40px;
}

.cart-section-heading p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 18px;
}

.cart-panel {
    margin-bottom: 28px;
}

.cart-table {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
}

.cart-table-head,
.cart-row {
    display: grid;
    grid-template-columns: minmax(320px, 1.35fr) 170px 210px 180px 98px;
    gap: 18px;
    align-items: center;
}

.cart-table-head {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
}

.cart-row {
    min-height: 132px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 22px;
}

.cart-product-cell img {
    display: block;
    width: 150px;
    height: 96px;
    object-fit: cover;
    border-radius: 7px;
}

.cart-product-name {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.cart-product-cell span,
.cart-product-cell small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

.cart-price-cell,
.cart-total-cell {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
}

.cart-price-cell strong,
.cart-total-cell strong {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.cart-quantity {
    display: inline-grid;
    grid-template-columns: 44px 70px 44px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
}

.cart-quantity button,
.cart-quantity span {
    display: grid;
    place-items: center;
    height: 44px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 18px;
}

.cart-quantity button {
    cursor: pointer;
}

.cart-quantity button:last-child {
    border-right: 0;
}

.cart-row-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.cart-row-actions form {
    margin: 0;
}

.cart-row-edit,
.cart-row-delete {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

button.cart-row-delete {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cart-row-edit:hover {
    color: #ffc107;
}

.cart-row-delete {
    color: #ff4747;
}

.cart-request-label {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(24, 212, 122, 0.32);
    border-radius: 6px;
    color: #18d47a;
    font-weight: 900;
}

.cart-panel-total {
    display: flex;
    justify-content: flex-end;
    gap: 34px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.cart-panel-total strong {
    color: #fff;
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    padding: 20px 22px;
}

.cart-actions form {
    margin: 0;
}

.cart-back,
.cart-checkout,
.cart-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.cart-back {
    margin-right: auto;
    border: 1px solid rgba(24, 212, 122, 0.28);
    color: #18d47a;
}

.cart-checkout,
.cart-empty a {
    border: 0;
    background: #18b950;
    color: #fff;
}

.cart-empty {
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    text-align: center;
}

.cart-empty p {
    margin: 0 0 22px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

@media (max-width: 980px) {
    .cart-table-head {
        display: none;
    }

    .cart-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cart-row-actions {
        justify-items: start;
        grid-template-columns: repeat(2, max-content);
    }
}

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

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

    .cart-header h1 {
        font-size: 36px;
    }

    .cart-section-heading h2 {
        font-size: 32px;
    }

    .cart-product-cell {
        align-items: flex-start;
    }

    .cart-product-cell img {
        width: 110px;
        height: 78px;
    }
}
