.store-cart-launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 44px;
    min-height: 38px;
}

.store-cart-launcher i {
    font-size: 1rem;
    line-height: 1;
}

.store-cart-launcher-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.store-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 12, 19, 0.65);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.store-cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.store-cart-modal {
    width: min(760px, 100%);
    max-height: min(90dvh, 760px);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
    transform: translateY(8px) scale(0.97);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
    overflow: hidden;
}

.store-cart-overlay.is-open .store-cart-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.store-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ebeff5;
}

.store-cart-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.store-cart-close {
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #344155;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-cart-close:hover {
    background: #e9eef7;
}

.store-cart-body {
    padding: 0.85rem 1rem;
    flex: 1 1 auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.store-cart-feedback {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.35;
    display: none;
}

.store-cart-feedback.is-error {
    display: block;
    color: #842029;
    background: #f8d7da;
}

.store-cart-feedback.is-success {
    display: block;
    color: #0f5132;
    background: #d1e7dd;
}

.store-cart-items {
    border: 1px solid #ebeff5;
    border-radius: 12px;
    max-height: min(46dvh, 390px);
    overflow: auto;
    background: #fff;
}

.store-cart-empty {
    margin: 0;
    padding: 1rem 0.9rem;
    color: #64748b;
    font-size: 0.92rem;
}

.store-cart-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.6rem;
    padding: 0.75rem;
    border-bottom: 1px solid #edf2f8;
}

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

.store-cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f4f7fb;
    border: 1px solid #e3e8ef;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-cart-item-name {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
}

.store-cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.store-cart-item-name a:hover {
    text-decoration: underline;
}

.store-cart-item-unit {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.store-cart-controls {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.store-cart-qty-btn {
    border: 1px solid #d4ddea;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1;
}

.store-cart-qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.store-cart-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.store-cart-subtotal {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

.store-cart-remove {
    border: 0;
    background: transparent;
    color: #d14343;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
}

.store-cart-send-config {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.store-cart-send-config label {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
}

.store-cart-send-config .form-select,
.store-cart-send-config .form-control {
    min-height: 42px;
    border-radius: 10px;
}

.store-cart-footer {
    border-top: 1px solid #ebeff5;
    padding: 0.85rem 1rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.store-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-cart-total-label {
    font-size: 0.9rem;
    color: #64748b;
}

.store-cart-total-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}

.store-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.store-cart-actions .btn {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 600;
}

.store-cart-send.btn {
    background: #111827;
    border-color: #111827;
}

.store-cart-send.btn:hover {
    background: #020617;
    border-color: #020617;
}

.store-cart-send.btn:disabled {
    opacity: 0.75;
}

body.store-cart-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .store-cart-overlay {
        padding: 0;
    }

    .store-cart-modal {
        width: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        border-radius: 0;
    }

    .store-cart-items {
        max-height: calc(100dvh - 360px);
    }

    .store-cart-item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 0.5rem;
        padding: 0.65rem;
    }

    .store-cart-thumb {
        width: 52px;
        height: 52px;
    }

    .store-cart-actions {
        grid-template-columns: 1fr;
    }
}

