/* Published objects in the existing home and shop collection. */
.live-object-card { min-width: 0; }
.live-object-card .object-media > a { aspect-ratio: 1; }
.live-object-card .object-media img { width: 100%; height: 100%; object-fit: contain; }
.live-object-card .object-title { align-items: flex-start; }
.live-object-card .object-title h3 { line-height: 1.45; overflow-wrap: anywhere; }
.live-object-card .object-brand { margin-top: 7px; font-size: 12px; color: var(--detail-muted, #526486); }
.live-object-card .object-price { font-variant-numeric: tabular-nums; }
.object-image-placeholder { display: grid; place-items: center; aspect-ratio: 1; padding: 24px; text-align: center; font-size: 13px; }
.catalog-load-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 28px; font-size: 13px; line-height: 1.8; }
.catalog-load-status button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--detail-line, #193f8033); border-radius: 999px; }
.catalog-load-status button:hover { background: var(--sky); }
#selection .selection-grid.live-catalog-single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-section .filters { flex-wrap: wrap; gap: 8px 12px; }
.shop-section .filters button { min-height: 44px; font-size: 13px; }
@media (max-width: 600px) {
  .live-object-card .object-title h3 { font-size: 18px; }
  #selection .selection-grid.live-catalog-single { grid-template-columns: minmax(0, 1fr); }
  #selection .live-catalog-single .story-card { min-height: 260px; }
  .catalog-load-status { align-items: flex-start; }
}
.object-media .card-add{position:absolute;bottom:16px;left:auto;right:16px;z-index:3;min-width:44px;height:44px;padding:0 14px;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--cream);color:var(--ink);border:0;border-radius:24px;font-size:14px;opacity:0;transform:translateY(5px);transition:opacity .18s,transform .18s}
.object-media:hover .card-add,.object-media:focus-within .card-add,.object-media.favorite-revealed .card-add{opacity:1;transform:none}
.object-media .card-add:disabled{cursor:default;color:var(--detail-muted,#526486)}
.object-media .save-object{z-index:4}.object-media button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.bag-quantity-label{display:flex;align-items:center;gap:10px;font-size:13px}.bag-quantity-label input{width:64px;min-height:44px;padding:6px;border:1px solid var(--detail-line);border-radius:8px;color:var(--ink);background:transparent;font:inherit}
/* Touch collection covers reveal actions only after a deliberate tap or keyboard focus. */
@media(hover:none){
 .object-card .object-media .save-object,.object-card .object-media .card-add{opacity:0;pointer-events:none;transform:translateY(5px)}
 .object-card .object-media.favorite-revealed .save-object,.object-card .object-media.favorite-revealed .card-add,.object-card .object-media:has(:focus-visible) .save-object,.object-card .object-media:has(:focus-visible) .card-add{opacity:1;pointer-events:auto;transform:none}
}
@media(prefers-reduced-motion:reduce){.object-media .card-add{transition:none}}

.bag-item,#bag-drawer .bag-item{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;align-items:start;padding:22px 0;border-bottom:1px solid var(--detail-line,#153d8324)}
.bag-item-image{display:block}.bag-item img,#bag-drawer .bag-item img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:8px}
.bag-item-body{min-width:0}.bag-item-title{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.bag-item-price{margin-top:6px;font-size:14px;font-variant-numeric:tabular-nums}
.bag-item-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-top:10px}.bag-item-actions .bag-quantity-label{gap:8px;font-size:12px;white-space:nowrap}.bag-item-actions input{width:56px}
.bag-item button.bag-remove{flex:0 0 auto;white-space:nowrap;min-width:44px;min-height:44px;padding:8px 4px;margin:0 0 0 auto;color:var(--detail-muted,#526486);font-size:12px;text-decoration:underline;text-underline-offset:4px}.bag-item button.bag-remove:hover{color:var(--ink)}
@media(max-width:420px){.bag-item,#bag-drawer .bag-item{grid-template-columns:64px minmax(0,1fr);gap:12px}}

.object-media .card-add{gap:0;padding:0 13px;line-height:1}.object-media .card-add svg{width:18px;height:18px;flex:0 0 18px;display:block}.object-media .card-add:hover,.object-media .card-add:focus-visible{gap:8px}
.bag-item,#bag-drawer .bag-item{grid-template-columns:112px minmax(0,1fr);align-items:stretch}
.bag-item-image{position:relative;min-height:128px;border-radius:8px;overflow:hidden;background:#e6e4df}.bag-item img,#bag-drawer .bag-item img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.bag-item-body{display:flex;flex-direction:column;justify-content:space-between;gap:6px;min-height:128px}.bag-item-price,.bag-item-actions{margin-top:0}.bag-item-actions{gap:8px}.bag-item button.bag-remove{min-width:60px;border:1px solid var(--detail-line,#153d8326);border-radius:999px;background:rgba(255,255,255,.35);padding:8px 12px;text-decoration:none;color:var(--ink)}.bag-item button.bag-remove:hover{background:var(--sky)}
@media(max-width:420px){.bag-item,#bag-drawer .bag-item{grid-template-columns:88px minmax(0,1fr);gap:12px}.bag-item-actions .bag-quantity-label{font-size:11px;gap:5px}.bag-item-actions input{width:44px}.bag-item button.bag-remove{min-width:48px;padding:8px}}

.tools #bag-count{position:absolute;top:0;right:-3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:12px;background:var(--ink);color:var(--cream);font:600 10px/1 Arial,sans-serif;border:2px solid var(--cream);pointer-events:none}.tools #bag-count[hidden],.tools #bag-count:empty{display:none}

.bag-item,#bag-drawer .bag-item{grid-template-columns:112px minmax(0,1fr)}.bag-item-image{height:112px;min-height:0;aspect-ratio:1}.bag-item-body{height:112px;min-height:0;gap:4px}.bag-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bag-item-actions{flex-wrap:nowrap}.bag-item-actions .bag-quantity-label{white-space:nowrap}

.bag-item-price{display:flex;align-items:baseline;gap:3px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-variant-numeric:lining-nums tabular-nums;line-height:1.3}.bag-item-price .money-currency{font-size:12px;font-weight:500}.bag-item-price .money-amount{font-size:18px;font-weight:600;letter-spacing:-.3px}.bag-item-unavailable{font-size:11px;font-weight:400;margin-left:5px;color:var(--detail-muted,#526486)}

/* Home selection brand follows the cover's existing reveal state. */
.home #selection .object-media .cover-brand{position:absolute;top:16px;left:16px;z-index:3;display:flex;align-items:center;min-height:44px;max-width:calc(100% - 88px);box-sizing:border-box;margin:0;padding:10px 14px;border-radius:24px;background:var(--cream);color:var(--ink);font-size:12px;line-height:1.5;letter-spacing:.04em;overflow-wrap:anywhere;pointer-events:none;opacity:0;transform:translateY(5px);transition:opacity .18s,transform .18s}
@media(hover:hover){.home #selection .object-media:hover .cover-brand{opacity:1;transform:none}}
.home #selection .object-media:focus-within .cover-brand,.home #selection .object-media.favorite-revealed .cover-brand{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.home #selection .object-media .cover-brand{transition:none}}

/* Home covers keep actions hidden on touch screens until the first deliberate tap. */
.home #selection .object-media .save-object,.home #selection .object-media .card-add{opacity:0;pointer-events:none;transform:translateY(5px)}
.home #selection .object-media.favorite-revealed .save-object,.home #selection .object-media.favorite-revealed .card-add,.home #selection .object-media:has(:focus-visible) .save-object,.home #selection .object-media:has(:focus-visible) .card-add{opacity:1;pointer-events:auto;transform:none}
@media(hover:hover){.home #selection .object-media:hover .save-object,.home #selection .object-media:hover .card-add{opacity:1;pointer-events:auto;transform:none}}
