/* "Try the rim on your car" page – TireOne brand: teal / orange, sharp corners */
.try-page { background: var(--bg); }
.back-link { color: #e9f1f0; text-decoration: none; font-weight: 700; margin-inline-start: auto; padding: 8px 14px; box-shadow: inset 0 -2px 0 var(--orange); }
.back-link::before { content: '→ '; }
[dir="ltr"] .back-link::before { content: '← '; }
.try-hero { position: relative; overflow: hidden; background: var(--teal) url('../img/pattern.jpg') center / cover; color: #fff; }
.try-hero::after { content: ''; position: absolute; inset: 0; background: rgba(9, 81, 80, .86); }
.try-hero .wrap { position: relative; z-index: 1; padding: 22px 0 24px; }
.try-hero .stripes { display: block; z-index: 1; inset-inline-end: 8%; width: 80px; }
.try-hero h1 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.try-hero p { margin: 0; color: #d6e6e4; }
.try-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 20px 0 50px; align-items: start; }
.tcard { background: #fff; box-shadow: var(--shadow); padding: 16px; border-top: 4px solid var(--teal); }
.try-side { display: grid; gap: 18px; }
.tcard h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--teal); }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--orange); color: #fff; font-size: 14px; font-weight: 800; transform: skewX(-12deg); }
.stage-wrap { position: relative; background: #e9ece9; min-height: 300px; display: grid; place-items: center; overflow: hidden; }
canvas#stage { display: block; width: 100%; height: auto; touch-action: none; }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); max-width: 420px; }
.empty svg { width: 54px; height: 54px; color: var(--teal); opacity: .5; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.row .btn { padding: 9px 14px; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.status { font-size: 14px; font-weight: 700; color: var(--teal); margin-top: 8px; min-height: 1.4em; }
.search { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); background: #fbfaf7; margin-bottom: 10px; }
.search:focus { outline: 2px solid var(--teal); }
.rims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 470px; overflow-y: auto; padding: 2px; }
.rim { border: 2px solid var(--line); background: #fafaf8; padding: 6px 4px; cursor: pointer; text-align: center; font-size: 12px; font-family: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rim:hover { border-color: var(--teal); }
.rim img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.rim .c { display: block; direction: ltr; font-weight: 800; font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rim small { color: var(--muted); font-size: 10.5px; direction: ltr; white-space: nowrap; }
.rim.on { border-color: var(--orange); background: #fff7ef; }
.rim.orig .c { background: var(--orange); color: #063b3b; padding: 0 4px; }
.rim.add, .rim.more { display: grid; place-items: center; color: var(--teal); font-weight: 700; min-height: 96px; border-style: dashed; }
.count { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
label.slider { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
label.slider input { width: 100%; accent-color: var(--orange); }
.toggle { display: flex; gap: 6px; }
.toggle .btn { flex: 1; padding: 8px; font-size: 14px; }
.toggle .btn.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.note { font-size: 12px; color: var(--muted); margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.rim-now { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; background: #f6f5f1; border-inline-start: 4px solid var(--orange); }
.rim-now img { width: 56px; height: 56px; object-fit: contain; }
.rim-now div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rim-now b { font-size: 16px; }
.rim-now span { font-size: 13px; color: var(--muted); }
.rim-now .orig-tag { color: #063b3b; align-self: flex-start; }
.rim-now .btn { padding: 8px 14px; font-size: 14px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
input[type=file] { display: none; }
.try-foot .copy { border: 0; }
@media (max-width: 900px) { .try-main { grid-template-columns: 1fr; } .rims { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 360px; } }
@media (max-width: 520px) { .rims { grid-template-columns: repeat(3, minmax(0, 1fr)); } .row .btn { flex: 1 1 45%; } }
