/* Pack art, rings, product cards, rails, category rail and grid, promo and membership cards, swap cards. */
.art { width: 100%; height: auto; display: block; }
.ring { position: relative; width: var(--size); height: var(--size); flex: none; display: inline-block; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-track { fill: none; stroke: #e7eae5; }
.ring-bar { fill: none; stroke-linecap: round; transition: stroke-dashoffset 0.2s; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-num { font-weight: 800; font-size: calc(var(--size) * 0.3); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.ring.has-word .ring-num { font-size: calc(var(--size) * 0.28); }
.ring-word { font-size: calc(var(--size) * 0.082); line-height: 1.15; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tier); margin-top: 3px; max-width: 72%; }
.ring.tier-bad .ring-word { color: var(--bad); }
.ring-on-card { background: var(--card); border-radius: 50%; box-shadow: var(--shadow-rest); }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--tier-tint); color: var(--ink); font-size: 14px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--tier); }
.score.sm { min-width: 36px; height: 26px; font-size: 13px; }
.delta { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--excellent-tint); color: var(--green-900); }
.delta.down { background: var(--bad-tint); color: #8a2e10; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.badge { font-size: 10px; line-height: 14px; font-weight: 800; letter-spacing: 0.04em; background: var(--green-100); color: var(--green-900); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }

/* Two column image forward cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.pcard { background: var(--card); border-radius: var(--r2); box-shadow: var(--shadow-rest); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.pcard-img { position: relative; padding: var(--s2) var(--s4) 0; background: var(--card-2); }
.pcard-img .art { width: 100%; }
.pcard-ring { position: absolute; left: 8px; bottom: 6px; }
.pcard-ring .ring { background: var(--card); border-radius: 50%; box-shadow: var(--shadow-rest); }
.pcard-add { position: absolute; right: 8px; top: 8px; }
.favbtn { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.9); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.favbtn .ic { width: 20px; height: 20px; } .favbtn.on { color: var(--bad); }
.pcard-body { padding: var(--s2) var(--s3) var(--s3); }
.pcard-brand { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.pcard-name { font-size: 15px; line-height: 19px; font-weight: 700; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 14px; }
.aisle-chip { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--ink-2); background: #eef1ec; padding: 3px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.addbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow-raised); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast); }
.addbtn:active { transform: scale(0.92); }
.addbtn.big { width: auto; height: var(--tap); border-radius: 14px; padding: 0 18px; gap: 6px; font: inherit; font-weight: 700; background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(22,122,69,0.25); }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: var(--primary); color: #fff; box-shadow: var(--shadow-raised); animation: pop var(--t-sheet) var(--ease-spring); }
.stepper .step { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.stepper .step .ic { width: 20px; height: 20px; }
.stepper b { min-width: 16px; text-align: center; font-size: 15px; }
.stepper.big { height: var(--tap); border-radius: 14px; } .stepper.big .step { width: 44px; height: 44px; } .stepper.big b { min-width: 28px; font-size: 17px; }
.stepper.light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); } .stepper.light .step { color: var(--ink); }

/* Rails */
.rail { margin-top: var(--s6); }
.rail-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s2); }
.rail-hd h2 { font-size: 19px; line-height: 24px; letter-spacing: -0.01em; }
.rail-hd a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.rail-track { display: flex; gap: var(--s3); overflow-x: auto; padding: 4px var(--s4) 12px; margin: 0 calc(var(--s4) * -1); scroll-snap-type: x mandatory; scroll-padding-left: var(--s4); scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rcard { flex: none; width: 150px; scroll-snap-align: start; color: var(--ink); background: var(--card); border-radius: var(--r2); box-shadow: var(--shadow-rest); overflow: hidden; }
.rcard-img { position: relative; padding: 6px 14px 0; background: var(--card-2); }
.rcard-ring { position: absolute; right: 8px; bottom: 6px; } .rcard-ring .ring { background: var(--card); border-radius: 50%; box-shadow: var(--shadow-rest); }
.rcard-name { font-size: 14px; line-height: 18px; font-weight: 700; padding: 8px 12px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.rcard-meta { font-size: 13px; padding: 2px 12px 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rcard-meta b { color: var(--ink); }

/* Circular category rail and category grid */
.cat-rail { display: flex; gap: var(--s3); overflow-x: auto; padding: var(--s2) var(--s4) var(--s2); margin: 0 calc(var(--s4) * -1); scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-circle { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-align: center; }
.cat-disc { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: var(--shadow-rest); background: var(--card); }
.cat-circle small { font-size: 12px; line-height: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 74px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s2); }
.cat-tile { display: flex; align-items: center; gap: var(--s3); background: var(--card); border-radius: var(--r2); padding: 12px; color: var(--ink); min-height: 84px; box-shadow: var(--shadow-rest); }
.cat-tile .cat-disc { width: 52px; height: 52px; font-size: 26px; flex: none; }
.cat-tile b { display: block; font-size: 15px; line-height: 19px; } .cat-tile small { font-size: 12px; }

/* Search pill, trust line, hero promo, membership card */
.search { margin: var(--s2) 0 var(--s1); position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 48px; border: 0; border-radius: var(--r-pill); padding: 12px 16px 12px 46px; font: inherit; font-size: 16px; background: var(--card); box-shadow: var(--shadow-rest); color: var(--ink); }
.search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.trust { font-size: 13px; line-height: 18px; color: var(--ink-3); margin: var(--s2) 0 var(--s1); }
.promo { display: flex; align-items: center; gap: var(--s3); border-radius: var(--r2); padding: 16px; margin: var(--s3) 0 var(--s2); color: #fff; background: linear-gradient(135deg, var(--green-900), var(--green-600)); box-shadow: var(--shadow-raised); cursor: pointer; position: relative; overflow: hidden; }
.promo.citrus { background: linear-gradient(135deg, #b96a00, var(--citrus)); }
.promo::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.promo-icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; flex: none; }
.promo-text { flex: 1; min-width: 0; } .promo-text b { display: block; font-size: 17px; line-height: 22px; } .promo-text span { display: block; font-size: 13px; line-height: 18px; opacity: 0.85; }
.promo .ic.arrow { opacity: 0.8; }
.member { border-radius: var(--r2); padding: 18px; color: #fff; background: linear-gradient(135deg, #0f2f1e 0%, var(--green-900) 50%, var(--green-600) 100%); box-shadow: var(--shadow-raised); position: relative; overflow: hidden; margin: var(--s2) 0 var(--s4); }
.member::before { content: ''; position: absolute; left: -30px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.01em; }
.member-plan { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255,255,255,0.16); padding: 5px 10px; border-radius: 999px; }
.member-name { font-size: 22px; line-height: 28px; font-weight: 800; margin-top: 18px; letter-spacing: -0.01em; }
.member-sub { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.member-cta { margin-top: 14px; display: flex; gap: 8px; }
.member-cta .btn { margin: 0; width: auto; min-height: 40px; padding: 6px 14px; font-size: 14px; background: #fff; color: var(--green-900); border-color: #fff; box-shadow: none; }
.member-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }

/* Swap cards: before and after with a delta pill */
.swapcard { flex: none; width: 250px; scroll-snap-align: start; background: var(--card); border-radius: var(--r2); box-shadow: var(--shadow-rest); padding: 12px; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.swap-pair { display: flex; align-items: center; gap: 6px; }
.swap-side { flex: 1; min-width: 0; text-align: center; } .swap-side .art { width: 84px; margin: 0 auto; }
.swap-side small { font-size: 12px; line-height: 15px; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swap-side.bad .art { filter: grayscale(0.5); opacity: 0.75; }
.swap-side.bad small { color: var(--ink-3); text-decoration: line-through; }
.swap-arrow { color: var(--primary); flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.swap-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; }
.swap-foot .btn { width: auto; margin: 0; min-height: 36px; padding: 4px 12px; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
