/* Inner pages: category, product and lenses. Tokens, cards and chips live in base.css. */

/* Category header */
.cathead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; padding: clamp(14px, 2.4vw, 32px) var(--gut) 8px; }
.cathead h1 { font-size: var(--t-xl); letter-spacing: -0.015em; }
.cathead__copy p { color: var(--ink-2); max-width: 54ch; margin-block-start: 10px; }
.cathead__copy .gift { color: var(--ink); }
.cathead__media .spin { width: 100%; }
@media (min-width: 900px) {
  .cathead--media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cathead__media { order: 2; margin-block-end: -48px; }
  .cathead__media .spin { max-height: 52svh; }
}

/* Sub-categories and filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  position: sticky; inset-block-start: var(--top-h); z-index: 10; background: var(--paper);
  padding: 8px var(--gut); box-shadow: 0 1px 0 var(--line);
}
.no-motion .filters { display: none; }
.filters__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-block: 2px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.sort select {
  font: 500 15px var(--f-text); color: var(--ink); min-height: 44px; padding-inline: 14px 34px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--field);
  /* Our own arrow, set in from the rounded end (the owner asked for it away from the edge, 4.11.2026). */
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231e2430' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 11px 8px; background-position: right 16px center;
}
html[dir="rtl"] .sort select { background-position: left 16px center; }
@media (max-width: 899px) {
  .filters { flex-wrap: nowrap; gap: 8px; }
  .filters__chips { flex: 1 1 auto; }
  .sort { flex: none; }
  .sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sort select { width: 116px; }
}

/* Tiles and empty states inside the grid */
.gtile { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; background: var(--mist); border-radius: 16px; padding: clamp(18px, 3vw, 40px); }
.gtile[hidden] { display: none; }
.gtile h3 { font-size: var(--t-m); }
.gtile p { color: var(--ink-2); max-width: 36ch; }
.more { display: flex; justify-content: center; padding-block: 8px 56px; }

/* Product page */
.pdp__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); padding: 14px var(--gut) clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) {
  .pdp__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gal { position: sticky; inset-block-start: calc(var(--top-h) + 14px); }
}
.gal__stage { position: relative; aspect-ratio: 1; background: var(--mist); border-radius: var(--r-m); overflow: hidden; display: grid; place-items: center; }
.gal__stage:has(video) { background: var(--paper); }
.gal__stage:has(video)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.gal__item { display: none; width: 100%; height: 100%; }
.gal__item.is-on { display: grid; place-items: center; }
.gal__item img { width: 92%; height: 92%; object-fit: contain; }
.gal.is-full .gal__item img { width: 100%; height: 100%; object-fit: cover; }
.gal__item .spin { width: 100%; height: auto; }
.gal__thumbs { display: flex; gap: 8px; margin-block-start: 10px; overflow-x: auto; scrollbar-width: none; padding-block: 3px; padding-inline: 3px; }
.gal__thumb { position: relative; flex: none; width: 74px; height: 74px; border-radius: 12px; background: var(--mist); overflow: hidden; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb.is-on { box-shadow: 0 0 0 2px var(--accent); }
.gal__thumb b { position: absolute; inset-block-end: 4px; inset-inline: 0; text-align: center; font-size: 14px; font-weight: 600; }

.buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.buy__cat { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.buy h1 { font-size: var(--t-m); line-height: 1.14; letter-spacing: -0.008em; overflow-wrap: anywhere; }
.buy__stock { font-weight: 500; font-size: 15px; color: var(--ink-2); }
.buy__stock.is-in { color: oklch(0.42 0.11 150); }
.buy__short { color: var(--ink-2); display: grid; gap: 8px; margin-block-start: 6px; }
.buy__short strong { color: var(--ink); font-weight: 600; }
.buy__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 6px; }
.buy__rx { display: block; justify-self: start; font-size: 15px; }
.buy__rx::after { margin-inline-start: 8px; }
.buy__pick { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.buy__pick.is-on { color: var(--accent); }
.btn[aria-disabled="true"] { opacity: 0.5; }
.buy__notes { display: grid; gap: 2px; font-size: 15px; color: var(--ink-2); padding-block: 10px; border-block: 1px solid var(--line); margin-block-start: 6px; }

/* Offer menu on a line product: the chosen bar goes white with a blue line, and opens the pairs inside it. */
.pack { display: grid; gap: 16px; min-width: 0; margin: 6px 0 2px; padding: 0; border: 0; }
.pack legend { padding: 0; margin-block-end: 14px; font-weight: 500; }
.pack__item { border-radius: var(--r-m); background: var(--mist); box-shadow: inset 0 0 0 1px var(--mist-2); transition: background-color 160ms var(--ui), box-shadow 160ms var(--ui); }
.pack__item:has(input:checked) { background: var(--paper); box-shadow: inset 0 0 0 2px var(--accent); }
@media (hover: hover) { .pack__item:not(:has(input:checked)):hover { box-shadow: inset 0 0 0 1px var(--ink-2); } }
.pack__bar { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 16px; cursor: pointer; }
.pack__bar:has(.pack__ribbon) { padding-block-start: 20px; }
.pack__bar input { grid-row: 1 / span 2; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.pack__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.pack__name b { font-weight: 600; }
.pack__name em { padding: 1px 9px; border-radius: 999px; background: var(--mist-2); font-size: 14px; font-style: normal; font-weight: 500; }
.pack__pay { grid-column: 3; font: 400 var(--t-s)/1.15 var(--f-display); text-align: end; }
.pack__save { grid-column: 2; color: var(--ink-2); font-size: 14px; }
.pack__bar s { grid-column: 3; justify-self: end; color: var(--ink-2); font-size: 14px; }
.pack__ribbon { position: absolute; inset-block-start: -12px; inset-inline-start: 44px; padding: 3px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.3; }
.pack__ribbon::before, .pack__ribbon::after { content: ""; position: absolute; inset-block-start: 0; width: 7px; height: 7px; background: var(--ink); }
.pack__ribbon::before { left: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.pack__ribbon::after { right: -6px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pack__more { display: grid; gap: 12px; padding: 0 16px 16px; }
.pack__more[hidden] { display: none; }
.pack__list { display: grid; gap: 14px; }
.pack__row { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.pack__row + .pack__row::before { content: "+"; position: absolute; inset-block-start: -11px; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1; }
.pack__row img { width: 48px; height: 48px; border-radius: 10px; background: var(--mist); object-fit: contain; }
.pack__who { display: grid; gap: 2px; min-width: 0; font-weight: 500; }
.pack__who span { color: var(--ink-2); font-size: 14px; font-weight: 400; }
.pack__who select { width: 100%; min-height: 44px; padding-inline: 12px 8px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--field); color: var(--ink); font: 500 15px var(--f-text); }
.pack__cost { min-width: 68px; font-weight: 500; text-align: end; white-space: nowrap; }
.pack__cost s { display: block; color: var(--ink-2); font-size: 14px; font-weight: 400; }
.pack__hint { color: var(--ink-2); font-size: 14px; }

/* Product story: the heading stays beside its text */
.story { padding-inline: var(--gut); }
.story__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: clamp(20px, 3vw, 40px); border-block-start: 1px solid var(--line); }
@media (min-width: 900px) {
  .story__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
  .story__row > h2 { position: sticky; inset-block-start: calc(var(--top-h) + 16px); align-self: start; }
}
.story__row > h2 { font-size: var(--t-m); letter-spacing: -0.008em; }
.related { padding-block: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px); }
.related h2 { padding-inline: var(--gut); font-size: var(--t-m); letter-spacing: -0.008em; margin-block-end: 16px; }

/* Lens page: stage */
.motion .lh { height: 260svh; }
.lh__stage { position: relative; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block-end: 16px; align-content: start; min-height: calc(100svh - var(--top-h) - 36px); }
.motion .lh__stage { position: sticky; inset-block-start: var(--top-h); height: calc(100svh - var(--top-h) - 36px); }
.lh__copy { padding-inline: var(--gut); position: relative; z-index: 2; }
.lh__copy h1 { font-size: var(--t-xl); letter-spacing: -0.015em; }
.lh__copy p { color: var(--ink-2); margin-block-start: 8px; max-width: 54ch; }
.lh__glasses { position: relative; aspect-ratio: 1; width: min(106vw, 70svh); justify-self: center; margin-block: -14% -14%; }
.lh__glasses img, .lh__lens { position: absolute; inset: 0; width: 100%; height: 100%; }
.lh__lens {
  background: var(--tint); opacity: var(--dark, 0.68); transition: background-color 280ms var(--ui);
  -webkit-mask: var(--lens-mask) center / 100% 100% no-repeat; mask: var(--lens-mask) center / 100% 100% no-repeat;
}
.motion .lh__lens { opacity: var(--dark, 0); }
.lh__panel { position: relative; z-index: 2; padding-inline: var(--gut); display: grid; gap: 10px; }
.lh__scale { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
.calm .lh__scale, .no-motion .lh__scale { display: none; }
.lh__scale i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.lh__scale i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: 100% 50%; }
.tints { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block-start: 26px; position: relative; }
.tints legend { position: absolute; inset-block-start: 0; inset-inline-start: 0; padding: 0; font-size: 15px; font-weight: 500; }
.tint { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 10px 14px; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 500; white-space: nowrap; }
.tint i, .chip--tint i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--c1, var(--c)) 12%, var(--c) 78%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.opts .chip--tint { display: inline-flex; align-items: center; gap: 8px; padding-inline-start: 10px; }
.tint.is-on { background: var(--ink); color: #fff; }
@media (hover: hover) { .tint:not(.is-on):hover { background: var(--mist-2); } }
@media (min-width: 900px) {
  .lh__stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr auto; column-gap: 24px; }
  .lh__stage .crumbs { grid-column: 1 / -1; }
  .lh__copy { grid-column: 1; grid-row: 2; align-self: center; }
  .lh__glasses { grid-column: 2; grid-row: 2 / 4; align-self: center; width: min(58vw, 96svh); margin-block: -10%; }
  .lh__panel { grid-column: 1 / -1; grid-row: 3; align-self: end; max-width: 42%; }
  .tints { flex-wrap: wrap; }
}

/* Lens page: configurators */
.rx { padding: clamp(36px, 5.5vw, 80px) clamp(14px, 3.4vw, 56px) clamp(14px, 3.4vw, 56px); }
.rx__head { max-width: 760px; margin-block-end: clamp(20px, 3vw, 40px); }
.rx__head p { color: var(--ink-2); margin-block-start: 12px; }
.rx__grid { display: grid; gap: clamp(12px, 1.4vw, 20px); }
@media (min-width: 900px) { .rx__grid { grid-template-columns: 1fr 1fr; } }
.rxcard { background: var(--paper); border-radius: var(--r-m); padding: clamp(18px, 2.6vw, 36px); display: grid; gap: 16px; align-content: start; }
.rxcard h3 { font-size: var(--t-m); }
.rxcard__price b { font: 400 var(--t-l)/1 var(--f-display); margin-inline-end: 6px; }
.rxcard__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.learn { display: grid; gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4vw, 64px) var(--gut) clamp(40px, 6vw, 88px); }
@media (min-width: 900px) { .learn { grid-template-columns: 7fr 5fr; } }
.learn h2 { font-size: var(--t-m); letter-spacing: -0.008em; margin-block-end: 12px; }
.learn p + h2 { margin-block-start: 28px; }
.learn p { color: var(--ink-2); }
.learn dt { font-weight: 600; margin-block-start: 12px; }
.learn dd { color: var(--ink-2); }

.fit { display: grid; gap: 12px; align-items: center; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 64px); margin-block-end: clamp(14px, 1.4vw, 20px); }
@media (min-width: 900px) { .fit { grid-template-columns: 5fr 7fr; } }
.fit__copy p { color: var(--ink-2); margin-block: 12px 18px; }
.fit__links { display: flex; flex-wrap: wrap; gap: 10px; }
.fit .spin { mix-blend-mode: multiply; }

/* Search words under a category heading, and the category text at the bottom (Hebrew pages only). */
.cathead h1 small { display: block; font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-block-start: 6px; }
.catabout { padding: clamp(24px, 4vw, 56px) var(--gut); max-width: 78ch; }
.catabout h2 { font-size: var(--t-l, 24px); margin-block-end: 12px; }
.catabout p { color: var(--ink-2); margin-block-end: 10px; }

/* Transitions: the same model with the lens clear and dark, under one slider. */
.trs { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2.4vw, 36px); align-items: center; padding: clamp(20px, 3vw, 40px) var(--gut); }
.trs__copy { display: grid; gap: 10px; justify-items: start; }
.trs__copy h2 { font-size: var(--t-m); letter-spacing: -0.008em; }
.trs__copy p { color: var(--ink-2); max-width: 46ch; }
.trs__range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: min(100%, 420px); font-size: 15px; color: var(--ink-2); margin-block-start: 4px; }
.trs__range input { width: 100%; min-height: 44px; accent-color: var(--ink); }
.trs__note { font-size: 14px; }
/* Owner, 22.11.2026: no card behind the glasses, the stage is the page's own ground. */
.trs__stage { position: relative; aspect-ratio: 1000 / 620; background: none; border-radius: var(--r-m); overflow: hidden; }
/* The photos stand on white. The two of them fade inside one layer, and that layer is multiplied onto the stage, so
   the white falls away and the glasses sit on the page's own ground, as in the gallery above. */
.trs__pics { position: absolute; inset: 0; isolation: isolate; mix-blend-mode: multiply; }
.trs__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trs__sun { opacity: var(--sun, 0); }
.trs__tag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; font-size: 12px; color: var(--ink-2); background: rgb(255 255 255 / 0.4); border-radius: 999px; padding: 2px 10px; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 900px) { .trs { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

/* The questions at the foot of a product or category page. */
.pfaq { padding: clamp(20px, 3vw, 40px) var(--gut); max-width: 1000px; }
.pfaq h2 { font-size: var(--t-m); letter-spacing: -0.008em; margin-block-end: 10px; }
