/* Shop pages: catalog filters, low-stock labels, share button, review form. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.low-stock { color: var(--danger); font-size: 14px; font-weight: 700; margin: 4px 0 0; }

.filters { margin-block: 16px; border: 1px solid var(--line); }
.filters summary { min-height: 44px; display: flex; align-items: center; padding-inline: 16px; cursor: pointer; font-weight: 700; }
.filters summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.filters form { display: grid; gap: 16px; padding: 0 16px 16px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.price-range { display: flex; align-items: center; gap: 10px; }
.price-range input { width: 120px; height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--page); font-size: 16px; }
.price-range input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.filters-none { color: var(--ink-soft); font-size: 14px; margin: 0; }
.active-filters .chip { display: flex; align-items: center; gap: 8px; }

.share { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); cursor: pointer; transition: border-color 200ms; }
.share:hover, .share.is-copied { border-color: var(--ink); }
.share:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.review-write { margin-block: 16px 24px; max-width: 68ch; }
.review-photo-pick { display: grid; gap: 4px; font-size: 14px; }
.review-photo { display: inline-block; margin-top: 10px; }
.review-photo img { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 8px; }
.review-form { display: grid; gap: 12px; }
.review-form textarea { padding: 12px; border: 1px solid var(--line-strong); background: var(--page); font: inherit; font-size: 16px; resize: vertical; }
.review-form textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.rating-input { display: flex; gap: 4px; }
.rating-input label { position: relative; cursor: pointer; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input span[aria-hidden] { display: grid; place-items: center; width: 44px; height: 44px; font-size: 32px; color: var(--line-strong); transition: color 150ms; }
/* The picked star and every star before it light up. */
.rating-input label:has(~ label input:checked) span[aria-hidden],
.rating-input input:checked + span[aria-hidden] { color: var(--gold-text); }
.rating-input input:focus-visible + span[aria-hidden] { outline: 2px solid var(--ink); }
.form-status { min-height: 1.5em; margin: 0; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .share, .rating-input span { transition: none; } }

/* Product page brand link and review date reach the 44px target. */
.product-info a.card-brand { display: inline-flex; align-items: center; min-height: 44px; }
.review header time { color: var(--ink-soft); font-size: 13px; }
.brand-description { max-width: 68ch; color: var(--ink-soft); }

/* Quick add: a round bag on the image's lower corner. The card wrap is a size container,
   so the button can sit at the foot of the 4:5 picture whatever the column width. */
.card-wrap { container-type: inline-size; }
.quick-add { position: absolute; z-index: 2; top: calc(125cqw - 50px); inset-inline-end: 4px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.quick-add svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--glass); box-shadow: var(--shadow-float); transition: background 200ms, color 200ms, transform 150ms var(--ease); }
.quick-add:active svg { transform: scale(0.94); }
@media (hover: hover) { .quick-add:hover svg { background: var(--gold); color: var(--on-gold); } }

.size input:disabled + span { cursor: not-allowed; }
