/* =========================================================
   Ray-Ban Kids brand page (global tokens live in style.css)
   Bright and rounded: sunny yellow, coral, sky blue.
   ========================================================= */

:root { --rk-sun: #ffcf3f; --rk-coral: #ff6b5b; --rk-sky: #4cc3d9; --rk-violet: #9b7be0; --rk-ink: #1d2a3a; --rk-grey: #f2f2f2; }

.rk-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rk-coral); }
.rk-title { margin: 12px 0 22px; font-family: var(--font-body); font-weight: 700; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.02em; color: var(--rk-ink); }
.rk-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 20px; border-radius: 999px; background: var(--rk-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .3s, transform .3s; }
.rk-link:hover { background: var(--rk-coral); transform: translateY(-2px); }

/* ---------- Intro ---------- */
.rk-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.rk-intro__copy .prose { margin-bottom: 20px; }
.rk-bubbles { position: relative; height: clamp(340px, 34vw, 480px); list-style: none; padding: 0; }
.rk-bubble { position: absolute; border-radius: 50%; overflow: hidden; display: grid; place-items: center; box-shadow: 0 20px 40px -24px rgba(29, 42, 58, .45); }
.rk-bubble img { display: block; width: 92%; height: auto; filter: brightness(1.07); mix-blend-mode: multiply; }
.rk-bubble--1 { width: 62%; aspect-ratio: 1; left: 0; top: 4%; background: var(--rk-sun); }
.rk-bubble--2 { width: 42%; aspect-ratio: 1; right: 2%; top: 0; background: #ffd9e4; }
.rk-bubble--3 { width: 46%; aspect-ratio: 1; right: 8%; bottom: 0; background: #cdeff6; }
@media (prefers-reduced-motion: no-preference) {
  .rk-bubble { animation: rkFloat 6s ease-in-out infinite; }
  .rk-bubble--2 { animation-delay: -2s; } .rk-bubble--3 { animation-delay: -4s; }
}
@keyframes rkFloat { 50% { transform: translateY(-10px); } }

/* ---------- Shapes strip ---------- */
.rk-shapes { background: var(--rk-ink); color: #fff; padding-block: clamp(30px, 4vw, 48px); }
.rk-shapes__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; }
.rk-shapes__list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.rk-shapes__dot { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--c); }
.rk-shapes__list strong { font-size: 15px; }
.rk-shapes__list li > span:last-child { font-size: 12.5px; opacity: .75; }

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

.rk-prods { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; padding: 0; }
.rk-coll:has(#rk-type-sun:checked) .rk-prods--sun,
.rk-coll:has(#rk-type-opt:checked) .rk-prods--opt { display: grid; }
.rk-prods li { animation: rkIn .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.rk-prods li:nth-child(2) { animation-delay: .05s; } .rk-prods li:nth-child(3) { animation-delay: .1s; }
.rk-prods li:nth-child(4) { animation-delay: .15s; } .rk-prods li:nth-child(5) { animation-delay: .2s; }
.rk-prods li:nth-child(6) { animation-delay: .25s; } .rk-prods li:nth-child(7) { animation-delay: .3s; }
.rk-prods li:nth-child(8) { animation-delay: .35s; }
@keyframes rkIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.rk-prod__img { position: relative; border-radius: 22px; background: var(--rk-grey); overflow: hidden; }
.rk-prod__img img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.rk-prod:hover .rk-prod__img img { transform: scale(1.08) rotate(-3deg); }
.rk-prod__tag { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: var(--rk-coral); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rk-prod__name { margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--rk-ink); }
.rk-prod__colour { margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Fitting steps ---------- */
.rk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); list-style: none; padding: 0; }
.rk-steps li { padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: var(--white); }
.rk-steps li > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rk-sun); font-weight: 700; font-size: 18px; color: var(--rk-ink); }
.rk-steps li:nth-child(2) > span { background: #ffd9e4; } .rk-steps li:nth-child(3) > span { background: #cdeff6; }
.rk-steps h3 { margin: 16px 0 8px; font-weight: 700; font-size: 19px; color: var(--rk-ink); }
.rk-steps p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.rk-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rk-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-shapes__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .rk-intro__grid { grid-template-columns: 1fr; }
  .rk-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rk-bubbles { height: 300px; }
  .rk-shapes__list { grid-template-columns: 1fr; }
  .rk-prods { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-prods li { animation: none; }
}
