/* Rayons: the bright mini-market.
   Squared shapes, a promotion board beside the photograph, compact tiles,
   three colour panels, a contact sheet and a details ribbon. No drawn
   ornaments: every shape is real content. */

body.shop-rayons {
  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ground: #ffffff;
  --surface: #f2f4f8;
  --surface: color-mix(in srgb, var(--primary) 6%, #f4f5f8);
  --surface-2: #e4e9f1;
  --surface-2: color-mix(in srgb, var(--primary) 14%, #f4f5f8);
  --ink: #101828;
  --ink-soft: #4a5565;
  --line: #e1e5eb;
  --radius: 12px;
  --radius-btn: 10px;
  --header-h: 70px;
}

.shop-rayons h1, .shop-rayons h2, .shop-rayons h3 { font-weight: 800; letter-spacing: -.02em; }
/* One shape language: squared corners everywhere, including the shared parts. */
.shop-rayons .chip, .shop-rayons .option, .shop-rayons .qty, .shop-rayons .qty button,
.shop-rayons .badge, .shop-rayons .add-button, .shop-rayons .policy-nav a { border-radius: 8px; }
.shop-rayons .eyebrow { color: var(--primary-text); letter-spacing: .1em; }

.shop-rayons .r-utility { background: var(--ink); color: #ffffff; font-size: .82rem; }
.shop-rayons .r-utility .wrap { padding-block: 7px; }
.shop-rayons .r-header .brand-word strong { font-weight: 800; letter-spacing: -.02em; }
.shop-rayons .basket-link { border-radius: 10px; background: var(--primary); color: var(--on-primary); }
.shop-rayons .basket-count { border-radius: 6px; }
.shop-rayons .menu-button { border-radius: 10px; }

.shop-rayons .r-link {
  display: inline-flex; align-items: center; gap: 8px; padding-block: 6px;
  color: var(--primary-text); font-weight: 700; text-decoration: none;
}
.shop-rayons .r-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px 40px; margin-bottom: clamp(22px, 3.5vw, 38px);
}
.shop-rayons .r-head h2 { margin-bottom: .2em; }
.shop-rayons .r-head .lead { margin: 0; }
.shop-rayons .r-btn-dark { background: var(--ink); border-color: var(--ink); color: #ffffff; }

/* Hero: a promotion board beside the photograph */
.shop-rayons .r-hero { position: relative; display: grid; grid-template-columns: 1fr; background: var(--primary); color: var(--on-primary); overflow: hidden; }
.shop-rayons .r-hero__board { position: relative; z-index: 2; display: flex; align-items: center; padding: clamp(32px, 7vw, 84px) var(--gutter); background: var(--primary); }
.shop-rayons .r-hero__copy { max-width: 600px; }
.shop-rayons .r-hero__label {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 6px;
  background: var(--secondary); color: var(--on-secondary); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.shop-rayons .r-hero h1 { color: inherit; font-size: clamp(2.4rem, 1.6rem + 3.3vw, 4.4rem); }
.shop-rayons .r-hero__lead { max-width: 52ch; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); opacity: .92; }
.shop-rayons .r-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.shop-rayons .r-btn-invert { background: var(--on-primary); border-color: var(--on-primary); color: var(--primary); }
.shop-rayons .r-btn-outline { border-color: currentColor; color: inherit; }
.shop-rayons .r-hero__photo { position: relative; min-height: 64vw; }
.shop-rayons .r-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .shop-rayons .r-hero { grid-template-columns: 1.05fr .95fr; min-height: 580px; }
  .shop-rayons .r-hero__board { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
  .shop-rayons .r-hero__photo { min-height: 0; }
  .shop-rayons .r-hero--solo { grid-template-columns: 1fr; }
}

/* Story: a wide strip, then two columns */
.shop-rayons .r-story__strip img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); }
.shop-rayons .r-story__cols { display: grid; gap: 12px 56px; grid-template-columns: 1fr; margin-top: clamp(22px, 4vw, 40px); }
@media (min-width: 900px) { .shop-rayons .r-story__cols { grid-template-columns: .9fr 1.1fr; } }
.shop-rayons .r-story__cols h2 { max-width: 14ch; }
.shop-rayons .r-story__text { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 640px) { .shop-rayons .r-story__strip img { aspect-ratio: 4 / 3; } }

/* Popular: compact tiles */
.shop-rayons .r-popular { background: var(--surface); }
.shop-rayons .r-tiles, .shop-rayons .product-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .shop-rayons .r-tiles, .shop-rayons .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .shop-rayons .r-tiles, .shop-rayons .product-grid { grid-template-columns: repeat(3, 1fr); } }
.shop-rayons .r-tiles > .empty-state { grid-column: 1 / -1; background: #ffffff; }
.shop-rayons .r-tile {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff;
}
.shop-rayons .r-tile[hidden] { display: none; }
.shop-rayons .r-tile .product-art { width: 104px; height: 104px; aspect-ratio: auto; border-radius: 8px; }
.shop-rayons .r-tile .product-media { min-height: 0; }
.shop-rayons .r-tile .product-media span { font-size: 2.4rem; }
.shop-rayons .r-tile .product-info { gap: 1px; padding: 0; }
.shop-rayons .r-tile .product-price { margin-top: 2px; color: var(--primary-text); font-size: 1.06rem; }
.shop-rayons .r-tile .product-price.is-muted { color: var(--ink-soft); font-size: .86rem; }
.shop-rayons .r-tile .r-tile__add { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 10px; }
.shop-rayons .r-tile .r-tile__add .add-plus { font-size: 1.5rem; }

/* Craft */
.shop-rayons .r-craft__grid { display: grid; gap: clamp(26px, 4vw, 60px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .shop-rayons .r-craft__grid { grid-template-columns: 1.15fr .85fr; } }
.shop-rayons .r-proofs { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .shop-rayons .r-proofs { grid-template-columns: 1fr 1fr; } }
.shop-rayons .r-proofs li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.shop-rayons .r-proofs h3 { margin-bottom: .35em; font-size: 1.14rem; }
.shop-rayons .r-proofs p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.shop-rayons .r-craft__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .shop-rayons .r-craft__photo img { aspect-ratio: 3 / 2; } }

/* How to order: three colour panels */
.shop-rayons .r-panels { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .shop-rayons .r-panels { grid-template-columns: repeat(3, 1fr); } }
.shop-rayons .r-panels li {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
  background: var(--primary); color: var(--on-primary);
}
.shop-rayons .r-panels li:nth-child(2) { background: var(--ink); color: #ffffff; }
.shop-rayons .r-panels li:nth-child(3) { background: var(--secondary); color: var(--on-secondary); }
.shop-rayons .r-panels__n {
  display: block; margin-bottom: auto; padding-bottom: 20px;
  font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1;
}
.shop-rayons .r-panels h3 { margin-bottom: .3em; color: inherit; font-size: 1.4rem; }
.shop-rayons .r-panels p { margin: 0; opacity: .9; }

/* Room: a contact sheet */
.shop-rayons .r-room { background: var(--ground); }
.shop-rayons .r-sheet { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .shop-rayons .r-sheet { grid-template-columns: repeat(4, 1fr); } }
.shop-rayons .r-sheet__item { position: relative; overflow: hidden; border-radius: var(--radius); }
.shop-rayons .r-sheet__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.shop-rayons .r-sheet__item figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px; width: fit-content; max-width: calc(100% - 16px);
  padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: #101828;
  font-size: .8rem; font-weight: 700; line-height: 1.3;
}

/* Visit: the details on one ribbon */
.shop-rayons .r-visit { background: var(--surface); }
.shop-rayons .r-ribbon { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); }
@media (min-width: 760px) { .shop-rayons .r-ribbon { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.shop-rayons .r-ribbon__cell { display: grid; align-content: start; gap: 4px; padding: 20px 22px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.shop-rayons .r-ribbon__cell:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .shop-rayons .r-ribbon__cell { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .2); }
  .shop-rayons .r-ribbon__cell:last-child { border-right: 0; }
}
.shop-rayons .r-ribbon__cell strong { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; opacity: .82; }
.shop-rayons .r-ribbon__cell a, .shop-rayons .r-ribbon__cell span { color: inherit; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

/* Quote: a card */
.shop-rayons .r-quote__card {
  max-width: 780px; margin: 0 auto; padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line); border-radius: 14px; background: #ffffff;
}
.shop-rayons .r-quote blockquote { margin: 0; }
.shop-rayons .r-quote blockquote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); font-weight: 700; line-height: 1.2; }
.shop-rayons .r-quote figcaption { margin-top: 22px; font-weight: 700; }

/* Closing: split call */
.shop-rayons .r-closing { padding-top: 0; }
.shop-rayons .r-closing__inner {
  display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center;
  padding: clamp(24px, 4vw, 52px); border-radius: 14px; background: var(--surface);
}
@media (min-width: 900px) { .shop-rayons .r-closing__inner { grid-template-columns: 1.5fr auto; } }
.shop-rayons .r-closing h2 { margin-bottom: .25em; }
.shop-rayons .r-closing .lead { margin: 0; }
.shop-rayons .r-closing__btn { min-height: 60px; padding-inline: 2.2em; font-size: 1.1rem; }

/* Footer: light */
.shop-rayons .r-footer { background: #f3f4f7; color: var(--ink); border-top: 1px solid var(--line); }
.shop-rayons .r-footer h2 { font-weight: 800; }
.shop-rayons .r-footer h3 { color: var(--ink-soft); opacity: 1; }
.shop-rayons .r-footer p { color: var(--ink-soft); opacity: 1; }
.shop-rayons .r-footer .footer-bottom { border-top-color: var(--line); color: var(--ink-soft); opacity: 1; }

/* Rayons catalogue sort panel, aligned with Comptoir's polished native picker. */
.shop-rayons .sort {
  min-width: 220px;
  min-height: 48px;
  padding-inline: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px -24px rgba(16, 24, 40, .75);
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.shop-rayons .sort:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 14px 32px -22px rgba(16, 24, 40, .65);
}
.shop-rayons .sort:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
@supports (appearance: base-select) {
  .shop-rayons .sort,
  .shop-rayons .sort::picker(select) {
    appearance: base-select;
  }
  .shop-rayons .sort::picker-icon {
    color: var(--primary);
    transition: rotate .18s ease;
  }
  .shop-rayons .sort:open::picker-icon { rotate: 180deg; }
  .shop-rayons .sort::picker(select) {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 22px 48px -24px rgba(16, 24, 40, .5);
  }
  .shop-rayons .sort option {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
  }
  .shop-rayons .sort option:hover,
  .shop-rayons .sort option:focus {
    background: var(--surface-2);
  }
  .shop-rayons .sort option:checked {
    background: color-mix(in srgb, var(--primary) 12%, #ffffff);
    color: var(--primary);
    font-weight: 800;
  }
  .shop-rayons .sort option::checkmark {
    order: 1;
    margin-left: auto;
    color: var(--primary);
  }
}

/* Rayons mobile navigation, active state and touch-target corrections. */
.shop-rayons .chip,
.shop-rayons .add-button,
.shop-rayons .qty button {
  min-width: 44px;
  min-height: 44px;
}
/* Draw the quick-add plus from two centred bars instead of relying on a font's
   asymmetric plus-sign metrics. The original text remains the accessible name. */
.shop-rayons .add-button {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  text-shadow: none !important;
  font-size: 0;
  line-height: 0;
}
.shop-rayons .add-button::before,
.shop-rayons .add-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.shop-rayons .add-button::before { width: 14px; height: 2px; }
.shop-rayons .add-button::after { width: 2px; height: 14px; }
.shop-rayons .qty .cart-remove,
body.shop-rayons #sbo .qty .sbo-linkbtn {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: max-content;
  min-width: 44px;
  min-height: 44px;
  margin-left: 10px;
  padding: 6px 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.shop-rayons .basket-link[aria-current="page"] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
}
.shop-rayons .mobile-menu a[aria-current="page"] {
  padding-inline: 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary-text);
  box-shadow: inset 4px 0 0 var(--primary);
  font-weight: 800;
}
.shop-rayons .bottom-nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--primary-text);
  box-shadow: inset 4px 0 0 var(--primary);
}
.shop-rayons .menu-button span {
  transform-origin: center;
  transition: transform .2s ease, opacity .15s ease;
}
.shop-rayons .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.shop-rayons .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.shop-rayons .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .shop-rayons .r-utility {
    position: sticky;
    top: 0;
    z-index: 42;
  }
  .shop-rayons .r-header {
    top: 36px;
  }
  .shop-rayons .mobile-menu {
    top: var(--rayons-menu-top, calc(var(--header-h) + 36px));
    max-height: calc(100dvh - var(--rayons-menu-top, calc(var(--header-h) + 36px)) - 58px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 360px) {
  .shop-rayons .panel { padding-inline: 12px; }
  .shop-rayons .cart-line {
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .shop-rayons .cart-line img,
  .shop-rayons .cart-line .product-media {
    width: 60px;
    height: 60px;
  }
  .shop-rayons .cart-line > div { min-width: 0; }
  .shop-rayons .cart-line > strong {
    grid-column: 2;
    justify-self: start;
  }
  .shop-rayons .qty {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 2px;
    border: 0;
    border-radius: 0;
  }
  .shop-rayons .qty button:not(.sbo-linkbtn):not(.cart-remove) {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .shop-rayons .qty span { min-width: 20px; }
  .shop-rayons .qty .cart-remove,
  body.shop-rayons #sbo .qty .sbo-linkbtn {
    flex: 0 0 auto;
    width: max-content;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    padding: 6px 12px;
    line-height: 1.2;
  }
}

/* APPROVED_CART_ITEM_CARDS_AND_MOBILE_TOTAL_V1 */
.shop-rayons .cart-list {
  gap: 14px;
}
.shop-rayons .cart-list > .cart-line {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
  border-radius: max(14px, var(--radius));
  background: var(--ground);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 8%, transparent);
}
@media (max-width: 899px) {
  .shop-rayons .cart-layout .cart-line > strong {
    grid-column: 2;
    justify-self: start;
  }
}
@media (min-width: 361px) and (max-width: 899px) {
  .shop-rayons .cart-list > .cart-line {
    padding-inline: 10px;
  }
}

/* CHECKOUT_LINE_TOTAL_RIGHT_REFERENCE_V1 */
@media (max-width: 899px) {
  body.shop-rayons #sbo .cart-line > strong {
    justify-self: end;
  }
}

/* CHECKOUT_LINE_TOTAL_LEFT_MOBILE_V1 */
@media (max-width: 899px) {
  body.shop-rayons #sbo .cart-line > strong {
    grid-column: 2;
    justify-self: start;
  }
}
