/* Hopscotch home, shopping-first pass: shorter age tiles, category circles, slim campaign banner,
   bigger card text, smaller split tiles, drawn value icons, consistent section rhythm. */

/* Section rhythm + headings */
body[data-hopscotch] .rv-title { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
body[data-hopscotch] .vo-catalog { padding-top: 56px; padding-bottom: 40px; }
body[data-hopscotch] .vo-catalog .vo-h2,
body[data-hopscotch] .vo-catalog [class*="collection-header"] h2,
body[data-hopscotch] .vo-catalog-tabs-heading { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: .02em; line-height: 1.1; text-transform: none; }

/* Shop by age: shorter portrait tiles with an age line */
.rv-segments { padding-top: 8px; }
.rv-segments__media { aspect-ratio: 600 / 760; }
.rv-segments__media img { object-position: center 18%; }
.rv-segments__label { display: flex; flex-direction: column; align-items: center; gap: 4px; bottom: 22px; }
.rv-segments__label small { font-family: var(--rv-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; opacity: .92; }
.rv-segments__item a::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, rgba(0, 0, 0, .32)); pointer-events: none; }
.rv-segments__label { z-index: 1; }

/* Shop by category circles */
.rv-cats { padding: 56px 24px 16px; }
.rv-cats__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 20px; justify-content: center; list-style: none; margin: 22px auto 0; max-width: 1240px; overflow-x: auto; padding: 0 0 8px; scroll-snap-type: x mandatory; }
.rv-cats__item { scroll-snap-align: start; }
.rv-cats__item a { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--rv-ink); text-decoration: none; }
.rv-cats__media { display: block; width: 100%; max-width: 156px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #efefef; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); transition: box-shadow .25s ease, transform .25s ease; }
.rv-cats__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform .5s ease; }
.rv-cats__item a:hover .rv-cats__media { box-shadow: inset 0 0 0 2px var(--rv-red); }
.rv-cats__item a:hover img { transform: scale(1.14); }
.rv-cats__label { font-family: var(--rv-head); font-size: 14px; font-weight: 600; letter-spacing: .02em; text-align: center; }
.rv-cats__item a:hover .rv-cats__label { color: var(--rv-red); }

/* Slim campaign banner with a button */
.rv-banner__button { display: inline-block; margin-top: 18px; background: #fff; color: var(--rv-ink); font-family: var(--rv-head); font-size: 12px; font-weight: 600; letter-spacing: .14em; padding: 14px 30px; text-transform: uppercase; transition: background .2s, color .2s; }
.rv-banner:hover .rv-banner__button { background: var(--rv-ink); color: #fff; }
.rv-banner--bottom .rv-banner__copy { padding-bottom: 5%; }

/* Product cards: readable names and prices */
body[data-hopscotch] :is(.vo-card-title, .vo-product-card-title, [class*="product-name"]) { font-size: 13px; letter-spacing: .01em; line-height: 1.35; text-transform: none; font-weight: 600; }
body[data-hopscotch] .vo-card :is(.vo-price, [class*="price"]) { font-size: 14px; }

/* Split tiles: shorter, crisp label */
.rv-split { margin: 8px 0; }
.rv-split__tile { aspect-ratio: 16 / 10; }
.rv-split__label { font-family: var(--rv-body); font-weight: 800; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .12em; border-bottom-width: 2px; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }

/* Values with drawn icons */
.rv-values__list { gap: 32px; padding: 56px 16px 24px; }
.rv-values__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: color-mix(in srgb, var(--rv-value-color) 9%, #fff); }
.rv-values__icon img { width: 34px; height: 34px; margin: 0; }
.rv-sym { width: 30px; height: 30px; background: var(--rv-value-color); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.rv-sym--play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.5 6 .8-4.4 4.1 1.1 5.9L12 16.4l-5.3 2.9 1.1-5.9-4.4-4.1 6-.8z'/%3E%3C/svg%3E"); }
.rv-sym--leaf { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M5 19C5 10 11 5 20 4c0 9-5 15-14 15zM5 19l8-8'/%3E%3C/svg%3E"); }
.rv-sym--cloud { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M7 18h10a4 4 0 0 0 .6-8A6 6 0 0 0 6 9.5 4.3 4.3 0 0 0 7 18z'/%3E%3C/svg%3E"); }
.rv-sym--heart { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M12 20s-7-4.4-8.6-9A4.6 4.6 0 0 1 12 7a4.6 4.6 0 0 1 8.6 4c-1.6 4.6-8.6 9-8.6 9z'/%3E%3C/svg%3E"); }
.rv-values__title { color: var(--rv-ink); font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; letter-spacing: .04em; }
.rv-values__text { color: #6e6e73; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; }

/* Reels: 5 across */
.rv-reels { padding-top: 56px; }

@media (max-width: 749px) {
    .rv-segments__media { aspect-ratio: 3 / 4; }
    .rv-segments__label { bottom: 14px; font-size: 14px; }
    .rv-segments__label small { font-size: 10px; }
    .rv-cats { padding: 36px 0 8px; }
    .rv-cats .rv-title { padding: 0 16px; }
    .rv-cats__list { grid-auto-columns: 96px; gap: 14px; justify-content: start; padding: 0 16px 8px; margin-top: 16px; }
    .rv-cats__media { max-width: 96px; }
    .rv-cats__label { font-size: 12px; }
    .rv-split { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
    .rv-split__tile { aspect-ratio: 4 / 5; }
    .rv-values__list { grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 40px 12px 16px; }
    .rv-values__icon { width: 52px; height: 52px; }
    .rv-sym { width: 24px; height: 24px; }
    .rv-values__title { font-size: 12px; }
    .rv-values__text { font-size: 11px; }
    body[data-hopscotch] .vo-catalog { padding-top: 36px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .rv-cats__media, .rv-cats__media img { transition: none; } }

/* Ticker: before the script starts (or with reduced motion) keep the messages on one clipped line laid out
   exactly like the moving strip, so a refresh never shows a tall wrapped black block that then jumps. */
body[data-hopscotch] .vo-announcements[data-announcement-mode="scrolling"]:not([data-moving="true"]) { overflow: hidden; }
body[data-hopscotch] .vo-announcements[data-announcement-mode="scrolling"]:not([data-moving="true"]) .vo-announcement-messages { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; }
body[data-hopscotch] .vo-announcements[data-announcement-mode="scrolling"]:not([data-moving="true"]) [data-announcement-slide] { flex: none; white-space: nowrap; padding-inline: calc(var(--vo-announcement-gap, 64px) / 2); }

/* Hopscotch listing: sub-collections in one "Category" dropdown (replaces the wall of outline buttons). */
.hs-catdrop-wrap { display: flex; padding-top: 18px; }
.hs-catdrop { position: relative; z-index: 20; }
.hs-catdrop__summary { display: inline-flex; align-items: center; gap: 10px; min-width: 260px; cursor: pointer; list-style: none; border: 1px solid #d2d2d7; padding: 12px 16px; background: #fff; font-size: 14px; transition: border-color .2s; user-select: none; }
.hs-catdrop__summary::-webkit-details-marker { display: none; }
.hs-catdrop__summary:hover, .hs-catdrop[open] .hs-catdrop__summary { border-color: #1d1d1f; }
.hs-catdrop__label { color: #86868b; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hs-catdrop__value { flex: 1; color: #1d1d1f; font-weight: 600; }
.hs-catdrop__chev { width: 9px; height: 9px; border-right: 1.5px solid #1d1d1f; border-bottom: 1.5px solid #1d1d1f; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.hs-catdrop[open] .hs-catdrop__chev { transform: rotate(-135deg) translateY(-1px); }
.hs-catdrop__menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: min(92vw, 560px); list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid #e8e8ed; box-shadow: 0 18px 40px rgba(0, 0, 0, .1); display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 2px; }
.hs-catdrop__menu a { display: block; padding: 10px 12px; color: #424245; font-size: 14px; text-decoration: none; border-radius: 4px; transition: background .15s, color .15s; }
.hs-catdrop__menu a:hover { background: #f5f5f7; color: var(--rv-red, #a01f23); }
.hs-catdrop__menu a[aria-current="page"] { font-weight: 700; color: #1d1d1f; }
@media (max-width: 749px) {
    .hs-catdrop-wrap { padding-top: 12px; }
    .hs-catdrop, .hs-catdrop__summary { width: 100%; min-width: 0; }
    .hs-catdrop__menu { grid-template-columns: 1fr 1fr; width: 100%; max-width: none; }
    .hs-catdrop__menu a { padding: 11px 10px; font-size: 13px; }
}

/* Product grids/rails: 5 across on big screens, 4 on small laptops, 3 on tablets (phones keep their 2). */
@media (min-width: 768px) and (max-width: 1099px) { body[data-hopscotch] main .vo-catalog { --catalog-columns: 3 !important; } }
@media (min-width: 1100px) and (max-width: 1439px) { body[data-hopscotch] main .vo-catalog { --catalog-columns: 4 !important; } }
/* Grids hold 10 (2 full rows of 5); trim to full rows where fewer columns fit. */
@media (min-width: 1100px) and (max-width: 1439px) { body[data-hopscotch] main .vo-catalog[data-layout="grid"] .vo-catalog-track > li:nth-child(n+9) { display: none; } }
@media (min-width: 768px) and (max-width: 1099px) { body[data-hopscotch] main .vo-catalog[data-layout="grid"] .vo-catalog-track > li:nth-child(n+10) { display: none; } }

/* One gutter for every home product section (grid, tabs, carousel): cards and headings share the same edge. */
body[data-hopscotch] { --hs-gutter: 16px; }
@media (min-width: 768px) { body[data-hopscotch] { --hs-gutter: 24px; } }
@media (min-width: 1200px) { body[data-hopscotch] { --hs-gutter: 32px; } }
body[data-hopscotch] main .vo-catalog .vo-catalog-shell { padding-inline: var(--hs-gutter) !important; }
body[data-hopscotch] main .vo-catalog .vo-catalog-shell :is(.vo-catalog-header, [class*="collection-header"], .vo-catalog-tabs) { padding-inline: 0 !important; }
body[data-hopscotch] .rv-story { padding-inline: var(--hs-gutter); }