/* =========================================================
   Ray-Ban brand page (global tokens live in style.css)
   Ray-Ban red and black, poster-bold type.
   ========================================================= */

:root { --rb-red: #e2001a; --rb-black: #111; --rb-grey: #f2f2f2; }

.rb-kicker { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--rb-red); }
.rb-title { margin: 12px 0 22px; font-family: var(--font-body); font-weight: 700; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.02em; color: var(--rb-black); }

/* ---------- Story ---------- */
.rb-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.rb-story__media { position: relative; background: var(--rb-grey); }
.rb-story__media img { display: block; width: 100%; height: auto; }
.rb-stamp {
  position: absolute; left: -14px; top: 22px; padding: 10px 16px; background: var(--rb-red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; transform: rotate(-4deg);
}

/* ---------- Icons ---------- */
.rb-icons { padding-top: 0; }
.rb-icon-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); list-style: none; padding: 0; }
.rb-icon { border-top: 3px solid var(--rb-black); padding-top: 18px; }
.rb-icon__img { background: var(--rb-grey); overflow: hidden; }
.rb-icon__img img { display: block; width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.rb-icon:hover .rb-icon__img img { transform: scale(1.06) rotate(-2deg); }
.rb-icon__year { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--rb-red); }
.rb-icon__name { margin: 4px 0 8px; font-family: var(--font-body); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.rb-icon__text { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.rb-time { background: var(--rb-red); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.rb-time__list { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; }
.rb-time__list li { padding: 2px clamp(12px, 2vw, 26px); border-left: 1px solid rgba(255, 255, 255, .35); }
.rb-time__list li:first-child { border-left: 0; padding-left: 0; }
.rb-time__list span { display: block; font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -.02em; }
.rb-time__list p { margin-top: 12px; font-size: 13.5px; line-height: 1.55; max-width: 24ch; }

/* ---------- Collection ---------- */
.rb-switch { display: flex; justify-content: center; border: 0; padding: 0; margin: 0 auto clamp(28px, 4vw, 44px); }
.rb-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rb-switch label {
  padding: 12px 24px; border: 2px solid var(--rb-black); cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  transition: background .3s, color .3s;
}
.rb-switch label + input + label { border-left: 0; }
.rb-switch label:hover { color: var(--rb-red); }
.rb-switch input:checked + label { background: var(--rb-black); color: #fff; }
.rb-switch input:focus-visible + label { outline: 2px solid var(--rb-red); outline-offset: 3px; }

.rb-prods { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; padding: 0; }
.rb-coll:has(#rb-type-sun:checked) .rb-prods--sun,
.rb-coll:has(#rb-type-opt:checked) .rb-prods--opt { display: grid; }
.rb-prods li { animation: rbIn .6s var(--ease-out) both; }
.rb-prods li:nth-child(2) { animation-delay: .05s; } .rb-prods li:nth-child(3) { animation-delay: .1s; }
.rb-prods li:nth-child(4) { animation-delay: .15s; } .rb-prods li:nth-child(5) { animation-delay: .2s; }
.rb-prods li:nth-child(6) { animation-delay: .25s; } .rb-prods li:nth-child(7) { animation-delay: .3s; }
.rb-prods li:nth-child(8) { animation-delay: .35s; }
@keyframes rbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rb-prod__img { position: relative; background: var(--rb-grey); overflow: hidden; }
.rb-prod__img img { display: block; width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.rb-prod:hover .rb-prod__img img { transform: scale(1.06); }
.rb-prod__tag { position: absolute; top: 10px; left: 10px; padding: 5px 9px; background: var(--rb-red); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rb-prod__name { margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--rb-black); }
.rb-prod__colour { margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- More Ray-Ban ---------- */
.rb-more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.rb-more__card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--rb-black); color: #fff; overflow: hidden; transition: transform .5s var(--ease-out); }
.rb-more__card:hover { transform: translateY(-4px); }
.rb-more__card--kids { background: var(--rb-red); }
.rb-more__img { background: var(--rb-grey); height: 100%; display: grid; align-items: center; }
.rb-more__img img { display: block; width: 100%; height: auto; }
.rb-more__copy { padding: clamp(20px, 2.6vw, 34px); }
.rb-more__card .rb-kicker { color: rgba(255, 255, 255, .8); }
.rb-more__copy h3 { margin: 8px 0 16px; font-weight: 700; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.2; }
.rb-more__link { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rb-icon-list, .rb-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-time__list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .rb-time__list li:nth-child(4) { border-left: 0; padding-left: 0; }
  .rb-more__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rb-story__grid { grid-template-columns: 1fr; }
  .rb-stamp { left: 0; }
}
@media (max-width: 560px) {
  .rb-time__list { grid-template-columns: 1fr 1fr; }
  .rb-time__list li { border-left: 0; padding-left: 0; }
  .rb-more__card { grid-template-columns: 1fr; }
  .rb-switch label { padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-prods li { animation: none; }
}
