/* ── Internal cart widget ─────────────────────────────────────── */

.shop-cart-panel {
    border: 1px solid var(--d10-border);
    border-radius: 8px;
    margin-bottom: 18px;
    background: var(--d10-surface-1);
    overflow: hidden;
}

.shop-cart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 600;
    background: var(--d10-surface-2);
}
.shop-cart-bar:hover { background: var(--d10-surface-3); }

.shop-cart-bar-total {
    margin-left: auto;
    color: var(--d10-accent);
    font-weight: 700;
}
.shop-cart-bar-arrow {
    font-size: 11px;
    color: var(--d10-text-dim);
    margin-left: 4px;
}

.shop-cart-body {
    padding: 10px 14px 14px;
}

.shop-cart-empty {
    color: var(--d10-text-dim);
    font-size: 13px;
    padding: 6px 0 10px;
}

.shop-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--d10-border);
    font-size: 13px;
}
.shop-cart-item:last-of-type { border-bottom: none; }

.shop-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shop-cart-item-name    { font-weight: 600; }
.shop-cart-item-variant { font-size: 11px; color: var(--d10-text-dim); }
.shop-cart-item-price   { font-weight: 700; color: var(--d10-accent); white-space: nowrap; }

.shop-cart-remove {
    border: none;
    background: none;
    color: var(--d10-text-dim);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}
.shop-cart-remove:hover { color: #e55; }

.shop-cart-checkout-area { margin-top: 10px; }

/* ── Cart checkout summary page ──────────────────────────────── */
.shop-cart-checkout {
    max-width: 520px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid var(--d10-border);
    border-radius: 8px;
    background: var(--d10-surface-1);
}
.shop-cart-checkout-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

/* ── Add-to-cart feedback badge ──────────────────────────────── */
.shop-added-msg {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--d10-accent);
    color: #fff;
    font-size: 12px;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}
.shop-added-msg.visible { opacity: 1; }
.shop-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;                    /* spațiu între descriere și preț */
    align-items: baseline;
}

.shop-line > span:last-child {
    white-space: nowrap;          /* prețul nu se sparge niciodată */
    flex-shrink: 0;               /* prețul nu se comprimă */
    text-align: right;
}

.shop-line > span:first-child {
    min-width: 0;                 /* permite textului lung să se wrapeze */
}

/* Checkout button — explicit colors, independent of --d10-accent scope */
.shop-cart-checkout .shop-btn-buy,
.shop-paypal .shop-btn-buy {
    background: #1a73e8 !important;
    color: #fff !important;
    border: none !important;
}
.shop-cart-checkout .shop-btn-buy:hover,
.shop-paypal .shop-btn-buy:hover {
    background: #1765cc !important;
}