.cart-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--accent, #2a7faa);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px -8px rgba(42, 127, 170, 0.55);
}

.cart-add-btn:hover {
    background: var(--accent-dark, #1e5f80);
    transform: translateY(-1px);
}

.cart-add-btn.is-added {
    background: #1f8a5b;
}

.cart-action-cell {
    text-align: center;
    white-space: nowrap;
}

.cart-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: min(360px, calc(100vw - 40px));
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px -18px rgba(11, 43, 64, 0.45);
    border: 1px solid rgba(11, 43, 64, 0.08);
    overflow: hidden;
    display: none;
}

.cart-widget.is-visible {
    display: block;
}

.cart-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--primary, #0b2b40);
    color: #fff;
}

.cart-widget__title {
    font-weight: 700;
}

.cart-widget__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--accent, #2a7faa);
    font-weight: 700;
}

.cart-widget__body {
    padding: 14px 16px;
}

.cart-widget__items {
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow: auto;
    margin-bottom: 12px;
}

.cart-widget__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-widget__name {
    color: var(--text, #1e2e3a);
    font-weight: 600;
    line-height: 1.3;
}

.cart-widget__meta {
    margin-top: 3px;
    color: var(--text-light, #4a5f6e);
    font-size: 0.9rem;
}

.cart-widget__controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-widget__control,
.cart-widget__remove {
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: var(--primary, #0b2b40);
    cursor: pointer;
    font-weight: 700;
}

.cart-widget__remove {
    color: #a33;
}

.cart-widget__qty {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.cart-widget__total {
    margin-bottom: 12px;
    color: var(--text, #1e2e3a);
    font-weight: 700;
}

.cart-widget__actions {
    display: flex;
    gap: 8px;
}

.cart-widget__link,
.cart-widget__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 16px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.cart-widget__link {
    flex: 1;
    background: var(--accent, #2a7faa);
    color: #fff;
}

.cart-widget__clear {
    background: #eef2f7;
    color: var(--primary, #0b2b40);
}

.cart-form-summary {
    display: none;
    margin: 0 auto 16px;
    max-width: 720px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 16px;
}

.cart-form-summary.is-visible {
    display: block;
}

.cart-form-summary__title {
    margin-bottom: 8px;
    font-weight: 700;
}

.cart-form-summary__list {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.88);
}

.cart-form-summary__note {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

.cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    max-width: min(360px, calc(100vw - 40px));
    padding: 12px 16px;
    border-radius: 14px;
    background: #1f8a5b;
    color: #fff;
    box-shadow: 0 16px 38px -16px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cart-widget {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .cart-add-btn {
        min-width: 98px;
        padding: 9px 12px;
        font-size: 0.85rem;
    }
}
