/* ===== Raimon Group — black & gold base, each sub brand re-colours via CSS variables ===== */
:root { --rb-ink: #0b0b0b; --rb-ink-2: #161616; --rb-line: rgba(255,255,255,.1); }
html { scroll-behavior: smooth; }

/* Brand switcher bar */
.rb-bar { background: var(--rb-ink); border-bottom: 3px solid var(--primary); position: relative; z-index: 60; }
.rb-bar__inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.rb-bar__group { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; text-decoration: none; padding: 6px 0; }
.rb-bar__group img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rb-bar__group.is-active span { color: var(--primary-light); }
.rb-bar__group:hover { color: var(--primary-light); }
.rb-bar__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 6px 0; overflow-x: auto; flex: 1; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rb-bar__list::-webkit-scrollbar { display: none; }
.rb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #e8e8e8; background: rgba(255,255,255,.06); border: 1px solid var(--rb-line); white-space: nowrap; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.rb-pill .rb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.rb-pill:hover, .rb-pill.is-active { background: var(--bc); border-color: var(--bc); color: var(--bt, #fff); transform: translateY(-1px); }
.rb-pill:hover .rb-dot, .rb-pill.is-active .rb-dot { background: var(--bt, #fff); }

/* Home: Shop by brand */
.rb-brands { background: linear-gradient(180deg, var(--rb-ink) 0%, var(--rb-ink-2) 100%); padding: 38px 0 42px; margin: 18px 0; }
.rb-brands__head { text-align: center; margin-bottom: 24px; }
.rb-brands__head h2 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 6px; letter-spacing: .3px; }
.rb-brands__head h2::after { content: ""; display: block; width: 64px; height: 3px; margin: 10px auto 0; border-radius: 3px; background: linear-gradient(90deg, #b8860b, #f1d279, #b8860b); }
.rb-brands__head p { color: #cfcfcf; margin: 0; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.rb-brands__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rb-card { display: flex; flex-direction: column; background: #121212; border: 1px solid var(--rb-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .5s ease; opacity: 0; transform: translateY(14px); }
.rb-card.in { opacity: 1; transform: none; }
.rb-card:hover { transform: translateY(-5px); border-color: var(--bc); box-shadow: 0 14px 34px -12px var(--bc); color: #fff; }
.rb-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.rb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rb-card:hover .rb-card__img img { transform: scale(1.04); }
.rb-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.rb-card__body strong { font-size: 15px; }
.rb-card__body small { color: #b9b9b9; font-size: 12px; }
.rb-card__body em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--bc); margin-top: 4px; }
.rb-card__body em i { font-size: 10px; margin-left: 4px; transition: transform .2s; }
.rb-card:hover em i { transform: translateX(4px); }
@media (min-width: 640px) { .rb-brands__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .rb-brands__grid { grid-template-columns: repeat(6, 1fr); } }

/* Sub brand page hero */
.rb-hero { background: radial-gradient(900px 400px at 85% 0%, rgba(var(--primary-rgb), .35), transparent 60%), linear-gradient(135deg, var(--footer-bg) 0%, #000 100%); color: #fff; padding: 34px 0; }
.rb-hero__grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.rb-hero__logo img { width: 100%; max-width: 280px; height: auto; border-radius: 24px; display: block; margin: 0 auto; box-shadow: 0 20px 50px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12); }
.rb-crumbs { font-size: 12.5px; color: #bdbdbd; margin-bottom: 8px; }
.rb-crumbs a { color: var(--primary-light); text-decoration: none; }
.rb-crumbs span { margin: 0 4px; opacity: .6; }
.rb-hero h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; line-height: 1.15; color: #fff; }
.rb-hero__tag { color: var(--primary-light); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; font-weight: 600; }
.rb-hero__desc { color: #dcdcdc; max-width: 560px; margin: 0 0 18px; line-height: 1.6; }
.rb-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.rb-btn--primary { background: var(--primary); color: var(--bt, #fff); }
.rb-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--primary); color: var(--bt, #fff); }
.rb-btn--ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.rb-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (min-width: 768px) {
    .rb-hero { padding: 48px 0; }
    .rb-hero__grid { grid-template-columns: 300px 1fr; gap: 40px; }
    .rb-hero h1 { font-size: 40px; }
    .rb-hero__logo img { max-width: 300px; }
}

/* Categories chips + products on brand page */
.rb-title { font-size: 20px; font-weight: 700; margin: 0; color: #111; position: relative; padding-left: 12px; }
.rb-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--primary); }
.rb-cats { padding: 26px 0 6px; }
.rb-cats__list { display: flex; gap: 12px; overflow-x: auto; padding: 14px 2px 8px; scrollbar-width: thin; }
.rb-cat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-decoration: none; color: #222; font-size: 12.5px; font-weight: 600; text-align: center; }
.rb-cat img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-muted); transition: border-color .2s, transform .2s; background: #fff; }
.rb-cat:hover img { border-color: var(--primary); transform: translateY(-2px); }
.rb-products { padding: 22px 0 46px; }
.rb-products__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rb-sort { padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 10px; background: #fff; font-size: 13px; }
.rb-sort:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Footer brand block */
.rb-footer-brand { margin-bottom: 14px; }
.rb-footer-brand img { width: 104px; height: 104px; border-radius: 18px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.rb-footer-brand__tag { color: var(--primary-light); font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; margin: 10px 0 0; font-weight: 600; }
.rb-footer-brands-links { list-style: none; padding: 0; margin: 0; }
.rb-footer-brands-links li { margin-bottom: 7px; }
.rb-footer-brands-links a { display: inline-flex; align-items: center; gap: 8px; }
.rb-footer-brands-links .rb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); display: inline-block; }

/* Brand switch fade */
.rb-switching::after { content: ""; position: fixed; inset: 0; background: var(--rb-ink); opacity: 0; animation: rbFade .22s ease forwards; z-index: 9999; pointer-events: none; }
@keyframes rbFade { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .rb-card, .rb-pill, .rb-btn, .rb-card__img img { transition: none; } .rb-card { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Recommendations (customers also bought / picked for you) */
.rb-recs { margin: 26px 0; }
.rb-recs__row { display: flex; gap: 12px; overflow-x: auto; padding: 14px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rb-recs__item { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 768px) { .rb-recs__item { flex-basis: 200px; } }
