/* =========================================================
   Prescription sunglasses page (global tokens live in style.css)
   ========================================================= */

.ps-kicker { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Lenses ---------- */
.ps-lens-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); list-style: none; padding: 0; }
.ps-lens { padding: 22px 20px 24px; background: var(--white); border: 1px solid rgba(31, 31, 31, .06); }
.ps-lens h3 { margin-top: 20px; font-family: var(--font-title); font-weight: 300; font-size: 26px; line-height: 1.1; }
.ps-lens p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* each swatch is a lens shape painted to suggest the option */
.ps-lens__swatch { display: flex; gap: 8px; height: 64px; align-items: center; }
.ps-lens__swatch span { flex: 1; height: 100%; border-radius: 46% 46% 50% 50% / 40% 40% 60% 60%; }
.ps-lens__swatch--tint span:nth-child(1) { background: linear-gradient(#4a4d52, #6d7076); }
.ps-lens__swatch--tint span:nth-child(2) { background: linear-gradient(#5b3f2a, #8a6448); }
.ps-lens__swatch--tint span:nth-child(3) { background: linear-gradient(#2f4a36, #6d8a6f 90%); }
.ps-lens__swatch--polar span { position: relative; overflow: hidden; background: linear-gradient(#3c4650, #5d6a74); }
.ps-lens__swatch--polar span::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 7px);
}
.ps-lens__swatch--mirror span { background: linear-gradient(135deg, #1d3c5c 0%, #4f8bc0 38%, #d9ecf8 50%, #4f8bc0 62%, #1d3c5c 100%); background-size: 220% 220%; animation: psShine 5s ease-in-out infinite; }
.ps-lens__swatch--photo span { background: linear-gradient(90deg, rgba(90, 96, 104, .08), #4f555c); animation: psPhoto 4.5s ease-in-out infinite alternate; background-size: 200% 100%; }
.ps-lens__swatch--drive span { background: linear-gradient(#7a5a2e, #c9a058 70%, #e6cf9b); }
@keyframes psShine { 50% { background-position: 100% 100%; } }
@keyframes psPhoto { from { background-position: 0 0; } to { background-position: 100% 0; } }

.ps-studio {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 44px); padding: 26px clamp(22px, 3vw, 36px);
  background: var(--cream-2); border-left: 3px solid var(--teal);
}
.ps-studio__text { margin-top: 8px; max-width: 58ch; font-size: 15px; line-height: 1.6; color: var(--ink); }

/* ---------- UV band ---------- */
.ps-uv { background: var(--teal-deep); color: var(--cream-2); padding-block: clamp(44px, 6vw, 72px); }
.ps-uv__inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.ps-uv__num { flex: 0 0 auto; font-family: var(--font-title); font-weight: 300; font-size: clamp(64px, 8vw, 112px); line-height: 1; color: var(--gold-soft); }
.ps-uv__text { max-width: 40ch; font-family: var(--font-title); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; }

/* ---------- Frames ---------- */
.ps-frame-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); list-style: none; padding: 0; }
.ps-frame a { display: block; }
.ps-frame__img { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.ps-frame__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: transform .8s var(--ease-out); }
.ps-frame--fill .ps-frame__img img { object-fit: cover; padding: 0; }
.ps-frame--rb .ps-frame__img { background: #f2f2f2; }   /* Ray-Ban packshots sit on #f2f2f2 */
.ps-frame a:hover .ps-frame__img img { transform: scale(1.05); }
.ps-frame__brand { margin-top: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.ps-frame__model { margin-top: 4px; font-family: var(--font-title); font-weight: 300; font-size: 21px; line-height: 1.15; color: var(--ink); }
.ps-frame a:hover .ps-frame__model { color: var(--teal); }
.ps-wrap { max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0; padding-top: 26px; border-top: 1px solid var(--gold-soft); text-align: center; }
.ps-wrap p:not(.ps-kicker) { margin-top: 10px; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.ps-wrap a { color: var(--teal); border-bottom: 1px solid currentColor; }

/* ---------- Children ---------- */
.ps-kids__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff6e0; overflow: hidden; }
.ps-kids__copy { padding: clamp(32px, 5vw, 64px); align-self: center; }
.ps-kids__title { margin: 10px 0 16px; font-family: var(--font-title); font-weight: 300; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; }
.ps-kids__copy > p:not(.ps-kicker) { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.ps-kids__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; }
.ps-kids__links a { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); }
.ps-kids__links a:hover { color: var(--teal); border-color: var(--teal); }
.ps-kids__img { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); background: #f2f2f2; }   /* matches the Ray-Ban packshot */
.ps-kids__img img { display: block; width: 100%; max-width: 520px; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ps-lens-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ps-frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-kids__card { grid-template-columns: 1fr; }
  .ps-kids__img { order: -1; }
}
@media (max-width: 700px) {
  .ps-lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-uv__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 420px) {
  .ps-lens-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-lens__swatch span { animation: none !important; }
  .ps-frame__img img { transition: none; }
}
