/* Cart, add-to-cart buttons and toast. Colors come from each site's
   --shop-* variables (set in its own style.css). */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.cart-link svg { width: 1.25rem; height: 1.25rem; }
.cart-link__count { min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: var(--shop-accent); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.cart-link__count[hidden] { display: none; }

.add-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5em 1em; border-radius: var(--shop-radius, 4px); border: 1px solid var(--shop-accent); background: var(--shop-accent); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.add-btn:hover { filter: brightness(0.92); }
.add-btn.is-sold { background: transparent; color: var(--shop-muted); border-color: var(--shop-rule); cursor: default; filter: none; }
.add-btn--sm { padding: 0.35em 0.8em; font-size: 0.8rem; }

.cart-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); z-index: 200; max-width: min(92vw, 34rem); padding: 0.8rem 1.1rem; border-radius: 10px; background: #222; color: #fff; font-size: 0.92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 0.25s ease; }
.cart-toast.is-shown { transform: translate(-50%, 0); }
.cart-toast a { color: #fff; font-weight: 700; margin-left: 0.4rem; }

.cart { display: block; }
.cart-filled { display: grid; grid-template-columns: 1fr 22rem; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .cart-filled { grid-template-columns: 1fr; } }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--shop-rule); }
.cart-item img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 6px; background: var(--shop-panel); }
.cart-item__info a { font-weight: 600; color: inherit; text-decoration: none; display: block; margin-bottom: 0.3rem; }
.cart-item__price { text-align: right; font-weight: 700; }
.cart-remove { display: block; margin: 0.35rem 0 0 auto; border: 0; background: none; padding: 0; color: var(--shop-muted); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.cart-qty select { font: inherit; padding: 0.2rem 0.3rem; }
.cart-one { font-size: 0.8rem; color: var(--shop-muted); }
.cart-item.is-gone { opacity: 0.6; }
.cart-sold { color: #a33; font-size: 0.85rem; font-weight: 600; }
.cart-panel { background: var(--shop-panel); border: 1px solid var(--shop-rule); border-radius: 10px; padding: 1.25rem; position: sticky; top: 6rem; }
.cart-panel h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.cart-dest { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.45rem; }
.cart-dest label { display: flex; gap: 0.5rem; align-items: center; font-weight: 500; }
.cart-us label, .cart-place label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.6rem 0 0.3rem; }
.cart-us input { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--shop-rule); border-radius: 6px; font: inherit; background: #fff; }
.cart-sum { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 1.1rem 0; padding-top: 1rem; border-top: 1px solid var(--shop-rule); }
.cart-sum dt, .cart-sum dd { margin: 0; }
.cart-sum dd { text-align: right; }
.cart-total { font-weight: 700; font-size: 1.1rem; }
.cart-checkout { width: 100%; justify-content: center; }
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-error { color: #a33; font-weight: 600; font-size: 0.9rem; margin: 0 0 0.6rem; }
.cart-error:empty, .cart-hint:empty { display: none; }
.cart-hint, .cart-note { font-size: 0.82rem; color: var(--shop-muted); margin: 0.6rem 0 0; }
.cart-intl .btn { width: 100%; text-align: center; }
.ty-items { margin: 0.5rem 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
