.shop-priced-card > .shop-card-image {
    position: relative;
}

.shop-card-image .shop-card-discount {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    border-radius: 7px;
    background: #a1273d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
}

#main_content .wrap-sp .item-sp.shop-priced-card > .nd-sp > .box-gia.shop-card-prices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    text-align: left;
}

#main_content .wrap-sp .item-sp.shop-priced-card > .nd-sp > .box-gia.shop-card-prices--with-cart {
    grid-template-columns: minmax(0, 1fr) 44px;
}

.shop-card-prices__amounts {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 7px;
    min-width: 0;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.shop-card-price {
    color: #282227;
    font-size: clamp(14px, 3.6vw, 17px);
    font-weight: 600;
    white-space: nowrap;
}

.shop-card-price--sale {
    color: #a1273d;
}

.shop-card-price-old {
    color: #655c61;
    font-size: 12px;
    white-space: nowrap;
}

.shop-card-cart {
    box-sizing: border-box;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #ecdce0;
    border-radius: 12px;
    background: #fff5f6;
    color: #932741;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.shop-card-cart:hover {
    border-color: #c48190;
    background: #f9e5e9;
}

.shop-card-cart:focus-visible,
.shop-cart-page :is(a, button, input):focus-visible {
    outline: 2px solid #932741;
    outline-offset: 2px;
}

.shop-card-cart__icon {
    position: relative;
    width: 22px;
    height: 23px;
}

.shop-card-cart__icon::before,
.shop-card-cart__icon::after {
    position: absolute;
    box-sizing: border-box;
    content: "";
}

.shop-card-cart__icon::before {
    inset: 7px 3px 2px;
    border: 1.7px solid currentColor;
    border-radius: 2px 2px 4px 4px;
}

.shop-card-cart__icon::after {
    inset: 2px 8px auto;
    height: 8px;
    border: 1.7px solid currentColor;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.shop-card-cart__icon span {
    position: absolute;
    z-index: 1;
    right: -2px;
    bottom: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff5f6;
    font: 600 13px/11px Arial, sans-serif;
}

.shop-cart-page {
    box-sizing: border-box;
    max-width: 1120px;
    padding: 24px 16px 36px;
    color: #292127;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
}

.shop-cart-page .shop-cart-title {
    margin: 0 0 18px;
    color: #342329;
    font-size: 26px;
    line-height: 1.2;
}

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

.shop-cart-items {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee0e4;
    border-radius: 12px;
    background: #fff;
}

.shop-cart-item__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.shop-cart-item__name {
    color: #342329;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.shop-cart-item__name:hover,
.shop-cart-back:hover {
    text-decoration: underline;
}

.shop-cart-item__options,
.shop-cart-item__subtotal span {
    color: #665d62;
    font-size: 12px;
}

.shop-cart-item__unit,
.shop-cart-item__subtotal strong,
.shop-cart-summary__total strong {
    display: block;
    color: #96273d;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.shop-cart-quantity {
    display: grid;
    grid-template-columns: 36px 48px 36px;
    width: max-content;
    overflow: hidden;
    border: 1px solid #eee0e4;
    border-radius: 8px;
}

.shop-cart-quantity :is(input, button) {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #342329;
    font: inherit;
    text-align: center;
}

.shop-cart-quantity button {
    background: #f9edf0;
    cursor: pointer;
}

.shop-cart-quantity button:disabled {
    color: #80757b;
    cursor: default;
}

.shop-cart-quantity input {
    appearance: textfield;
}

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

.shop-cart-item__remove,
.shop-cart-clear {
    min-height: 38px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #7f2540;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.shop-cart-summary,
.shop-cart-empty {
    padding: 18px;
    border: 1px solid #eee0e4;
    border-radius: 12px;
    background: #fffafa;
}

.shop-cart-summary h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.shop-cart-summary__total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin: 0 0 14px;
}

.shop-cart-summary__total strong {
    font-size: 20px;
}

.shop-cart-page .shop-cart-primary {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 9px;
    background: #96273d;
    color: #fff;
    text-decoration: none;
}

.shop-cart-page .shop-cart-primary:hover {
    background: #792035;
}

.shop-cart-back {
    display: block;
    margin-top: 10px;
    color: #672437;
    text-align: center;
}

.shop-cart-clear {
    display: block;
    margin: 2px auto 0;
    font-size: 13px;
}

.shop-cart-empty p {
    margin: 0 0 12px;
}

.shop-cart-empty .shop-cart-primary {
    width: fit-content;
}

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

@media (max-width: 580px) {
    .shop-cart-page {
        padding: 16px 10px 24px;
    }

    .shop-cart-item {
        grid-template-columns: 66px minmax(0, 1fr) auto;
        grid-template-areas:
            "photo description remove"
            "quantity quantity subtotal";
        gap: 10px;
        padding: 10px;
    }

    .shop-cart-item__photo { grid-area: photo; }
    .shop-cart-item__description { grid-area: description; }
    .shop-cart-item__remove { grid-area: remove; }
    .shop-cart-quantity { grid-area: quantity; }
    .shop-cart-item__subtotal { grid-area: subtotal; text-align: right; }

    .shop-cart-quantity {
        grid-template-columns: 42px 45px 42px;
    }

    .shop-cart-quantity :is(input, button) {
        height: 42px;
        font-size: 16px;
    }
}
