* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rb-red: #e21a22;
  --rb-black: #111111;
  --rb-gray: #f4f4f4;
  --rb-text: #161616;
  --rb-white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--rb-text);
  background: var(--rb-white);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* HEADER */
.site-header {
  width: 100%;
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  height: 100%;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  align-items: center;
}

.logo img {
  width: auto;
  height: 46px;
  margin-left: 28px;
}

.global-nav {
  display: flex;
  justify-content: center;
  gap: 46px;
  font-size: 15px;
  letter-spacing: .08em;
}

.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid var(--rb-red);
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  display: none;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  white-space: nowrap;
}

.dropdown-menu a:hover { background: #f5f5f5; }
.dropdown:hover .dropdown-menu { display: block; }

.language-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.language-switch a {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #fff;
}

.language-switch a.active {
  background: var(--rb-black);
  color: #fff;
  border-color: var(--rb-black);
}

/* COMMON */
.rb-section { padding: 100px 0; }
.rb-soft { background: var(--rb-gray); }

.rb-narrow {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.rb-kicker {
  color: var(--rb-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 14px;
}

.rb-kicker-light { color: #fff; opacity: .82; }

.rb-intro h2,
.rb-section-head h2,
.store-cta-copy h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  font-weight: 800;
}

.rb-intro p:last-child,
.rb-section-head p:last-child {
  font-size: 16px;
  color: #555;
}

.rb-section-head {
  width: min(850px, calc(100% - 48px));
  margin: 0 auto 48px;
  text-align: center;
}

.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  transition: transform .25s ease, opacity .25s ease, background .25s ease, border-color .25s ease;
}

.rb-btn:hover { transform: translateY(-3px); }
.rb-btn-red { background: var(--rb-red); color: #fff; }
.rb-btn-outline { border: 1px solid #fff; color: #fff; background: rgba(0,0,0,.08); }
.rb-btn-white { background: #fff; color: #111; }
.rb-btn-white-line { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }

/* HERO */
.rb-hero {
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
}

.rb-hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.rb-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.28) 48%, rgba(0,0,0,.06) 100%),
    linear-gradient(0deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 50%);
}

.rb-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 88px;
  color: #fff;
}

.rb-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  margin-bottom: 18px;
}

.rb-hero h1 {
  font-size: clamp(68px, 10vw, 138px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 900;
  margin-bottom: 24px;
}

.rb-hero-lead {
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 34px;
}

.rb-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* JENNIE */
.jennie-feature {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 700px;
  background: #111;
}

.jennie-image { min-height: 700px; }
.jennie-image img { height: 100%; object-fit: cover; }

.jennie-copy {
  padding: 90px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.jennie-copy h2 {
  font-size: clamp(54px, 6vw, 90px);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.05em;
  margin-bottom: 28px;
}

.jennie-copy h2 span { font-size: .47em; letter-spacing: .08em; }

.jennie-catch {
  color: var(--rb-red);
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 18px;
}

.jennie-copy > p:not(.rb-kicker):not(.jennie-catch) {
  max-width: 560px;
  color: #d8d8d8;
  margin-bottom: 34px;
}

.jennie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* MODEL CARDS */
.model-grid {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.model-card {
  background: #fff;
  border: 1px solid #ececec;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,.08);
}

.model-card.featured { border-color: #e6dcdc; }

.model-photo {
  position: relative;
  background: #ffffff;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #efefef;
}

.model-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.model-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: var(--rb-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.model-badge.dark { background: #111; }

.model-info { padding: 22px 20px 24px; }

.model-type {
  color: var(--rb-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 7px;
}

.model-info h3 {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 7px;
}

.model-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #5c5c5c;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.model-colors-count {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.model-note {
  color: #666;
  font-size: 11px;
  line-height: 1.7;
}

/* ICONS */
.icons-section {
  background: #111;
  color: #fff;
}

.icons-grid {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.icon-card {
  background: #fff;
  border: 1px solid #ececec;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.icon-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #efefef;
}

.icon-card-copy {
  position: static;
  padding: 16px 14px 18px;
  color: #111;
  text-align: center;
}

.icon-card-copy p {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: 7px;
  color: var(--rb-red);
}

.icon-card-copy h3 {
  font-size: clamp(17px, 1.65vw, 24px);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0;
}

/* PLACEHOLDER */
.placeholder-panel {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  background: #fff;
  padding: 46px 30px;
  border: 1px solid #ddd;
  text-align: center;
}

.placeholder-panel h3 {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.placeholder-panel p { color: #555; }

/* STORE CTA */
.store-cta {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.store-cta > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.store-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.28) 58%, rgba(0,0,0,.1));
}

.store-cta-copy {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  color: #fff;
}

.store-cta-copy > p:not(.rb-kicker) {
  margin-bottom: 32px;
  color: #eee;
}

.rb-note {
  padding: 22px 24px;
  background: #efefef;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* FOOTER */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 26px 0 18px;
}

.footer-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr 240px;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  width: auto;
  height: 46px;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 13px;
}

.footer nav a { color: rgba(255,255,255,.9); }

.footer-japan-link {
  border: 1px solid #555;
  padding: 12px;
  text-align: center;
  font-size: 13px;
}

.copyright {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: #aaa;
}

/* TABLET */
@media (max-width: 1100px) {
  .site-header { height: auto; }
  .header-inner {
    width: calc(100% - 32px);
    min-height: 72px;
    grid-template-columns: 190px 1fr;
  }
  .logo img { margin-left: 0; height: 40px; }
  .global-nav { display: none; }
  .language-switch { justify-content: flex-end; }
  .jennie-feature { grid-template-columns: 1fr 1fr; }
  .jennie-copy { padding: 60px 42px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
}

/* MOBILE */
@media (max-width: 767px) {
  .header-inner {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
    justify-items: center;
  }

  .language-switch {
    justify-content: center;
    flex-wrap: wrap;
  }

  .language-switch a {
    font-size: 11px;
    padding: 4px 8px;
  }

  .rb-section { padding: 68px 0; }
  .rb-hero { min-height: 620px; }

  .rb-hero-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.18));
  }

  .rb-hero-copy {
    width: calc(100% - 36px);
    padding-bottom: 54px;
  }

  .rb-hero h1 { font-size: 66px; }

  .rb-hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .rb-btn {
    width: 100%;
    max-width: 300px;
  }

  .jennie-feature { grid-template-columns: 1fr; }
  .jennie-image { min-height: 480px; }
  .jennie-copy { padding: 54px 26px 62px; }
  .jennie-buttons { flex-direction: column; }

  .model-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .model-info h3 { font-size: 26px; }
  .model-photo img { padding: 12px; }

  .icons-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .icon-card { aspect-ratio: 4 / 3; }
  .store-cta { min-height: 560px; }
  .store-cta-copy { width: calc(100% - 36px); }

  .footer nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .placeholder-panel h3 { font-size: 26px; }
}


.customer-message .optical-cta {
  margin-top: 24px;
}

.customer-message p {
  margin-bottom: 0;
}


/* ===== COLOR VARIATION GALLERY ===== */

.model-card.is-clickable {
  cursor: pointer;
}

.model-card.is-clickable:focus-visible {
  outline: 3px solid var(--rb-red);
  outline-offset: 3px;
}

.view-colors {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.model-card.is-clickable:hover .view-colors {
  color: var(--rb-red);
}

body.modal-open {
  overflow: hidden;
}

.color-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.color-modal.is-open {
  display: flex;
}

.color-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}

.color-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: #fff;
  padding: 34px;
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
}

.color-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.color-modal-head {
  padding-right: 50px;
  margin-bottom: 24px;
}

.color-modal-head h2 {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.color-modal-caption {
  margin-top: 12px;
  color: #666;
  font-size: 13px;
}

.color-main-view {
  width: 100%;
  min-height: 360px;
  height: 46vh;
  max-height: 520px;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.color-main-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.color-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.color-thumb {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.color-thumb:hover,
.color-thumb.active {
  border-color: var(--rb-red);
}

.color-thumb:hover {
  transform: translateY(-2px);
}

.color-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.color-thumb span {
  display: block;
  margin-top: 6px;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

@media (max-width: 900px) {
  .color-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-modal-dialog {
    padding: 28px 22px;
  }
}

@media (max-width: 600px) {
  .color-modal {
    padding: 12px;
  }

  .color-modal-dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 14px;
  }

  .color-modal-head h2 {
    font-size: 32px;
  }

  .color-main-view {
    min-height: 250px;
    height: 38vh;
  }

  .color-main-view img {
    padding: 12px;
  }

  .color-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ICONS RESPONSIVE */
@media (max-width: 1100px) {
  .icons-grid {
    width: calc(100% - 32px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .icon-card img {
    padding: 10px;
  }

  .icon-card-copy {
    padding: 12px 8px 14px;
  }

  .icon-card-copy h3 {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .icons-grid {
    width: calc(100% - 24px);
    grid-template-columns: repeat(5, minmax(135px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .icon-card {
    scroll-snap-align: start;
  }

  .icon-card img {
    aspect-ratio: 4 / 3;
    padding: 10px;
  }

  .icon-card-copy h3 {
    font-size: 14px;
  }
}


.icons-section .rb-section-head h2 {
  color: #fff;
}

.icons-section .rb-section-head p:last-child {
  color: #d0d0d0;
}

.icons-section .rb-kicker {
  color: var(--rb-red);
}

.icons-section .icon-card {
  background: #fff;
}

.icons-section .icon-card-copy {
  background: #fff;
  color: #111;
}


/* All product cards show the same VIEW COLORS label */
.model-card:not(.is-clickable) .view-colors {
  color: #777;
}

.model-card:not(.is-clickable) .view-colors::after {
  content: "";
}


/* ===== RAY-BAN ICON STORY ===== */

.icon-card[data-icon] {
  cursor: pointer;
}

.icon-card[data-icon]:focus-visible {
  outline: 3px solid var(--rb-red);
  outline-offset: 3px;
}

.discover-story {
  display: block;
  margin-top: 10px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.icon-card:hover .discover-story {
  color: var(--rb-red);
}

.icon-story-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.icon-story-modal.is-open {
  display: flex;
}

.icon-story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.76);
}

.icon-story-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
}

.icon-story-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.icon-story-layout {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 590px;
}

.icon-story-visual {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-story-visual img {
  width: 100%;
  height: 100%;
  max-height: 590px;
  object-fit: contain;
  padding: 42px;
  background: #fff;
}

.icon-story-copy {
  padding: 62px 54px;
  background: #111;
  color: #fff;
}

.icon-story-copy .rb-kicker {
  margin-bottom: 10px;
}

.icon-story-year {
  color: #aaa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 8px;
}

.icon-story-copy > h2 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.045em;
  margin-bottom: 42px;
  font-weight: 900;
}

.icon-story-block + .icon-story-block {
  margin-top: 28px;
}

.icon-story-block h3 {
  color: var(--rb-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 9px;
}

.icon-story-block p {
  color: #e1e1e1;
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 800px) {
  .icon-story-modal {
    padding: 12px;
  }

  .icon-story-dialog {
    max-height: calc(100vh - 24px);
  }

  .icon-story-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .icon-story-visual {
    min-height: 280px;
  }

  .icon-story-visual img {
    height: 300px;
    padding: 24px;
  }

  .icon-story-copy {
    padding: 38px 24px 42px;
  }

  .icon-story-copy > h2 {
    margin-bottom: 30px;
  }
}


/* ===== JAPANESE TEXT WRAPPING ===== */
.rb-narrow p,
.rb-section-head p,
.jennie-copy p,
.store-cta-copy p,
.rb-note p,
.product-info-guide-card p,
.color-modal-caption,
.icon-story-block p {
  line-break: strict;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* ===== PRODUCT INFORMATION GUIDE ===== */
.product-info-guide {
  background: #fff;
}

.product-info-guide-grid {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-info-guide-card {
  border: 1px solid #e7e7e7;
  background: #fafafa;
  padding: 34px 28px 32px;
}

.guide-number {
  display: block;
  color: var(--rb-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 10px;
}

.product-info-guide-card h3 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 15px;
  font-weight: 900;
}

.product-info-guide-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}

.product-info-guide-action {
  width: min(1200px, calc(100% - 48px));
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rb-btn-dark {
  background: #111;
  color: #fff;
}

@media (max-width: 767px) {
  .product-info-guide-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .product-info-guide-card {
    padding: 28px 22px;
  }

  .product-info-guide-action {
    width: calc(100% - 28px);
    flex-direction: column;
    align-items: center;
  }
}
