/* Om Glow — size picker and size & weight chart (product pages only) */

/* ── Picker ─────────────────────────────────────────────────── */
.size-picker { margin: 1.5rem 0 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--tint)); }
.size-head { margin-bottom: 1rem; }
.size-title { font-size: 1.6rem; margin: 0 0 .15rem; }
.size-head p { margin: 0; }

.size-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.size-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .4rem .65rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .2s, background .2s; }
.size-chip:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--brass); box-shadow: 0 8px 18px rgba(184, 134, 47, .18); }
.size-chip:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.size-chip:disabled { opacity: .45; cursor: not-allowed; }

.size-art { height: 46px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-bottom: .25rem; }
.size-art svg { height: calc(46px * var(--scale, 1)); width: auto; fill: url(#none); fill: #e9c57d; stroke: var(--brass-dark); stroke-width: 2; transition: transform .25s; }
.size-chip.is-on .size-art svg { fill: #f2cf8a; filter: drop-shadow(0 0 6px rgba(255, 196, 92, .85)); transform: translateY(-2px) scale(1.06); }

.size-word { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.size-label { font: 700 1.5rem/1.05 var(--sans); letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
/* Serif headings use old-style figures (0 looks like "o"), so all size numbers use lining digits. */
.size-label, .sc-size b, .size-row-label strong { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.size-weight { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; color: var(--brass-dark); }
.size-weight .icon { opacity: .8; }
.size-meta { font-size: .66rem; color: var(--muted); min-height: .9rem; text-align: center; line-height: 1.25; }

.size-tick { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--deep); color: #fff; font-size: .8rem; display: grid; place-items: center; transform: scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.size-chip.is-on { border-color: var(--brass); background: #fff8ea; box-shadow: 0 0 0 3px rgba(184, 134, 47, .22); animation: size-pop .28s ease; }
.size-chip.is-on .size-tick { transform: scale(1); }
.size-chip.is-flash { animation: size-flash .9s ease; }
@keyframes size-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes size-flash { 0%, 100% { box-shadow: 0 0 0 3px rgba(184, 134, 47, .22); } 40% { box-shadow: 0 0 0 8px rgba(255, 196, 92, .55); } }

.size-chip-custom { border-style: dashed; justify-content: center; color: var(--brass-dark); }
.size-plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; border: 1.5px dashed var(--brass); margin-bottom: .35rem; }
.size-custom-text { font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.25; }

.size-custom { display: flex; gap: .5rem; margin-top: .8rem; }
.size-custom[hidden] { display: none; }
.size-custom input { flex: 1; min-width: 0; font: inherit; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.size-custom input:focus { outline: 2px solid var(--brass); border-color: transparent; }

/* Selected sizes with quantity steppers */
.size-selected { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.size-selected:empty { display: none; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; grid-template-areas: "label step remove" "warn warn warn"; align-items: center; gap: .3rem .75rem; padding: .55rem .6rem .55rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.size-row.is-new { animation: size-in .25s ease; }
@keyframes size-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.size-row-label { grid-area: label; min-width: 0; }
.size-row-label strong { font: 700 1rem var(--sans); }
.size-row-label small { color: var(--muted); font-size: .8rem; }
.stepper { grid-area: step; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.stepper button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.15rem; color: var(--brass-dark); cursor: pointer; }
.stepper button:hover { background: var(--tint); }
.stepper input { width: 70px; text-align: center; border: 0; background: none; font: 600 .95rem var(--sans); color: var(--ink); padding: 0; }
.stepper input:focus { outline: none; }
.size-row-warn { grid-area: warn; color: #b45309; font-size: .74rem; }
.size-row-warn[hidden] { display: none; }
.size-row-remove { grid-area: remove; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.size-row-remove:hover { color: #b42318; border-color: #b42318; }

.size-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.size-actions[hidden], .size-added[hidden] { display: none; }
.size-actions .btn { flex: 1 1 200px; }
.size-added { margin: .75rem 0 0; padding: .6rem .9rem; border-radius: 10px; background: #e6f6ea; color: #18602e; font-size: .9rem; }
.size-added a { font-weight: 700; color: inherit; }

/* ── Size & weight chart ────────────────────────────────────── */
.size-chart { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.sc-row { display: grid; grid-template-columns: 90px minmax(160px, 1.6fr) repeat(var(--cols, 1), minmax(80px, 1fr)) 100px; align-items: center; gap: 1rem; padding: .75rem 1.1rem; border-top: 1px solid var(--line); }
.sc-row:first-child { border-top: 0; }
.sc-row:nth-child(even):not(.sc-head) { background: rgba(246, 234, 216, .35); }
.sc-head { background: var(--deep) !important; color: var(--on-deep); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.sc-size b { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .5rem; border-radius: 50%; background: linear-gradient(135deg, #f6d99a, #d6a64a); color: #3d1a0c; font: 700 1.05rem var(--sans); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.sc-weight { display: flex; align-items: center; gap: .75rem; }
.sc-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--tint); position: relative; overflow: hidden; }
.sc-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, #e9c57d, var(--brass)); }
.sc-weight-text { font-weight: 700; color: var(--brass-dark); white-space: nowrap; min-width: 70px; }
.sc-action { text-align: right; }
.sc-pick { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--brass); background: transparent; color: var(--brass-dark); font: 600 .75rem var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.sc-pick:hover { background: var(--brass); color: #fff; }
.sc-row.is-out { opacity: .55; }
@media (max-width: 760px) {
  .sc-head { display: none; }
  .sc-row { grid-template-columns: 56px 1fr auto; gap: .4rem .9rem; }
  .sc-size { grid-row: span 2; }
  .sc-weight { grid-column: 2 / 3; }
  .sc-action { grid-column: 3; grid-row: 1; }
  .sc-opt { grid-column: 2 / -1; font-size: .82rem; color: var(--muted); }
  .sc-opt::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}
