.shop-cart-trigger {
    position: relative;
}

.shop-cart-count {
    position: absolute;
    top: -6px;
    left: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.shop-cart-overlay[hidden],
.shop-cart-bottom[hidden],
.shop-cart-message[hidden],
.shop-cart-count[hidden] {
    display: none !important;
}

.shop-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(4px);
}

.shop-cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1999;
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    box-shadow: 12px 0 38px rgba(15, 23, 42, .18);
    transform: translateX(-105%);
    transition: transform .28s ease;
}

.shop-cart-drawer.is-open {
    transform: translateX(0);
}

body.shop-cart-open {
    overflow: hidden;
}

.shop-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 21px 19px;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
}

.shop-cart-head small {
    color: #64748b;
}

.shop-cart-head h2 {
    margin: 5px 0 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.shop-cart-head h2 span {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.shop-cart-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.shop-cart-message {
    margin: 12px 16px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #e8f7ee;
    color: #16713e;
    font-size: 13px;
}

.shop-cart-message.is-error {
    background: #fff1f2;
    color: #be123c;
}

.shop-cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
}

.shop-cart-empty {
    min-height: 210px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.shop-cart-empty i {
    font-size: 48px;
    color: #94a3b8;
}

.shop-cart-empty strong {
    color: #0f172a;
    font-size: 16px;
}

.shop-cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}

.shop-cart-item-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eaf3ff;
    color: #1680ed;
    font-size: 21px;
}

.shop-cart-item-body {
    flex: 1;
    min-width: 0;
}

.shop-cart-item-title {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.shop-cart-item-price {
    margin-top: 5px;
    color: #0876df;
    font-size: 14px;
    font-weight: 800;
}

.shop-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

.shop-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.shop-cart-qty button {
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 7px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.shop-cart-remove,
.shop-cart-remove-coupon {
    border: 0;
    background: none;
    color: #e54860;
    font-size: 12px;
    cursor: pointer;
}

.shop-cart-bottom {
    padding: 17px 19px 19px;
    background: #fff;
    border-top: 1px solid #e9eef5;
    box-shadow: 0 -8px 25px rgba(15, 23, 42, .04);
}

.shop-cart-bottom label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

.shop-cart-coupon-row {
    display: flex;
    gap: 8px;
}

.shop-cart-coupon-row input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dce5ef;
    border-radius: 11px;
    outline: none;
}

.shop-cart-coupon-row input:focus {
    border-color: #1680ed;
}

.shop-cart-coupon-row button {
    padding: 0 17px;
    border: 0;
    border-radius: 11px;
    background: #1680ed;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.shop-cart-remove-coupon {
    margin-top: 8px;
}

.shop-cart-summary {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.shop-cart-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.shop-cart-summary strong {
    color: #1e293b;
}

.shop-cart-summary .shop-cart-total {
    margin-top: 2px;
    padding-top: 15px;
    border-top: 1px dashed #d7e1eb;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.shop-cart-summary .shop-cart-total strong {
    color: #0876df;
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .shop-cart-drawer {
        transition: none;
    }
}
