/*
  ROYLY & CO. — Componentes customizados sem equivalente nativo no Dawn e
  reconstrução visual da Homepage (reconstrução integrada da Fase 4).
  Usa os tokens de `royly-tokens.css` (Sistema B / Sistema A+) — não
  redefine cor ou tipografia aqui.
*/

/* ---------------------------------------------------------------------
   Hero (templates/index.json → sections/royly-hero-carousel.liquid).
   Fotografia real sempre carregada via fallback (asset_url) — o Dawn
   ainda marca o container com a classe `placeholder` mesmo quando nosso
   `<img>` real está presente (a classe só olha para `block.settings.
   image`, o campo do Admin, não para o fallback). Uma versão anterior
   deste arquivo aplicava um painel + marca d'água de símbolo nessa
   classe `placeholder` — isso ficava visível POR CIMA da fotografia
   real (bug confirmado: pata semi-transparente sobre o Hero). Removido
   por completo: a classe `placeholder` não recebe mais nenhum estilo
   aqui, a fotografia fica limpa.
--------------------------------------------------------------------- */
.royly-hero-carousel .banner {
  border-bottom: none;
}

/* DECISÃO LOCKED (ajuste cirúrgico final): Hero deve dominar a primeira
   tela no desktop (~94-96vh), contando a Header sobreposta (absoluta,
   ver royly-overrides.css) + a Announcement Bar acima. Escopado só a
   esta seção — não altera `.banner--large` nativo do Dawn usado em
   outras páginas. Teto subiu de 80rem para 88rem (1408px) para telas
   grandes chegarem perto de 95vh real sem remover o teto de segurança;
   piso subiu de 46rem para 48rem. */
@media screen and (min-width: 750px) {
  .royly-hero-carousel .banner--large:not(.banner--adapt) {
    min-height: clamp(50rem, 95vh, 88rem);
  }
}

.royly-slide-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media screen and (min-width: 750px) {
  .royly-slide-eyebrow {
    font-size: 1.15rem;
  }
}

.royly-hero-carousel .banner__box {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 34rem;
}

/* ---------------------------------------------------------------------
   Hero — setas/dots integrados sobre a própria imagem (correção: o Dawn
   original tinha DUAS barras de navegação possíveis (topo e rodapé,
   mutuamente exclusivas por padrão) e a edição anterior deste fork
   quebrou essa exclusividade, fazendo as duas renderizarem juntas. Agora
   só uma existe no markup (ver royly-hero-carousel.liquid) e esta seção
   a transforma de "faixa branca abaixo da imagem" em controles
   discretos sobrepostos à foto: setas nas laterais, dots centralizados
   embaixo, sem fundo/borda própria.
--------------------------------------------------------------------- */
/* Correção rodada nº3: distância da borda e tamanho das setas ajustados
   para o alvo pedido (~24-32px da borda; círculo ~44-48px). */
.royly-hero-carousel .slideshow__controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  padding: 0 1.5rem;
  pointer-events: none;
}

@media screen and (min-width: 990px) {
  .royly-hero-carousel .slideshow__controls {
    padding: 0 2rem;
  }
}

.royly-hero-carousel .slideshow__controls .slider-button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  color: rgb(22, 36, 28);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media screen and (min-width: 750px) {
  .royly-hero-carousel .slideshow__controls .slider-button {
    width: 3rem;
    height: 3rem;
  }
}

/* Dots removidos do markup (decisão LOCKED, correção consolidada M7) —
   regras de .slider-counter/.dot que existiam aqui foram removidas
   junto (CSS morto, nada no HTML para elas mirarem). Navegação do Hero
   = só as duas setas (.slider-button acima). */

.royly-hero-carousel [class*='caption'] {
  color: var(--accent);
}

.royly-hero-carousel .banner__heading {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.royly-hero-carousel .banner__text {
  margin-bottom: 1.75rem;
}

/* ---------------------------------------------------------------------
   Explore Our Universes (sections/royly-universe-grid.liquid).

   Correção cirúrgica — Universes viraram cápsulas/pills (ícone + nome),
   sem fotografia. `.royly-universe-grid__heading` mantém a mesma
   família/peso/tracking/escala de `.royly-product-row__heading` (Best
   Sellers/Curated) — MESMO sistema de section heading. (Achado nesta
   limpeza: havia uma 2ª regra `@media (min-width:750px)` duplicada e
   conflitante logo abaixo da correta, sobrescrevendo 2.1rem de volta
   para 1.75rem por ordem de cascata — essa duplicata SUMIU nesta
   reescrita, o que por si só já restaura a padronização pedida em
   rodadas anteriores.)
--------------------------------------------------------------------- */
/* CORREÇÃO CIRÚRGICA — EXPLORE NOSSOS UNIVERSOS: heading padronizado
   para ficar VISUALMENTE IGUAL ao de Best Sellers (`.royly-product-row
   __heading`, autoridade visual) — mesmo font-family (var(--font-body)),
   font-size (1.55rem/2.1rem), font-weight (600), letter-spacing (0.06em)
   e text-transform (uppercase). A rodada anterior tinha aumentado esses
   números (1.8rem/2.6rem) especificamente para esta seção — revertido
   aqui para reutilizar o mesmo sistema de Best Sellers, conforme
   decisão desta rodada. `line-height` não é declarado em nenhum dos
   dois — ambos herdam a mesma regra `h1,h2,h3,h4,h5,.h1... { line-
   height: calc(1 + 0.3/var(--font-heading-scale)) }` de base.css,
   portanto já idêntico sem necessidade de declarar aqui. `margin`
   mantido (0.75rem) — não faz parte da lista de propriedades a igualar
   e preserva o espaçamento atual até o subtítulo (fora de escopo). */
.royly-universe-grid__heading {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

@media screen and (min-width: 750px) {
  .royly-universe-grid__heading {
    font-size: 2.1rem;
  }
}

.royly-universe-grid__subtitle {
  margin: 0 0 2rem;
  opacity: 0.75;
  font-size: 1.15rem;
}

@media screen and (min-width: 750px) {
  .royly-universe-grid__subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
  }
}

/* Cápsulas — desktop: 5 numa linha só, largura equilibrada (flex:1).
   Tablet: quebra em 2-3 por linha. Mobile: 2 colunas (não comprime 5 em
   uma linha só nem vira scroll horizontal — 2 colunas preserva leitura
   e touch target melhor aqui, dado que só há texto curto + ícone). */
.royly-universe-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 600px) {
  .royly-universe-pills {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 750px) {
  .royly-universe-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .royly-universe-pill-item {
    flex: 1 1 0;
    min-width: 10.5rem;
  }
}

.royly-universe-pill-item {
  display: flex;
}

/* Pill: glass/frosted discreto, sem foto, sem seta. Tons derivados da
   paleta ROYLY (Pine/Gold/Taupe) em baixíssima saturação/opacidade —
   variação sutil entre as 5, mesmo sistema visual. `backdrop-filter`
   entra só como reforço (blur mínimo); a cor de fundo já funciona sem
   ele em navegadores sem suporte. */
.royly-universe-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 5rem;
  padding: 0 2rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--color-foreground), 0.14);
  background: rgba(var(--color-foreground), 0.045);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  color: rgb(var(--color-foreground));
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

@media screen and (min-width: 750px) {
  .royly-universe-pill {
    min-height: 6.25rem;
    padding: 0 2.5rem;
  }
}

/* Variações cromáticas muito discretas por universo — mesma receita
   (tom de --accent-* misturado em baixa opacidade sobre o fundo claro
   da seção), não cores novas/saturadas. */
.royly-universe-pill[data-universe='play'] {
  background: rgba(184, 144, 74, 0.09);
}

.royly-universe-pill[data-universe='home'] {
  background: rgba(160, 140, 110, 0.1);
}

.royly-universe-pill[data-universe='walk'] {
  background: rgba(120, 120, 70, 0.08);
}

.royly-universe-pill[data-universe='care'] {
  background: rgba(180, 110, 85, 0.08);
}

.royly-universe-pill[data-universe='daily'] {
  background: rgba(90, 100, 80, 0.08);
}

@media (hover: hover) {
  .royly-universe-pill:hover {
    background: rgba(var(--color-foreground), 0.09);
    border-color: rgba(var(--color-foreground), 0.28);
    transform: translateY(-1px);
  }
}

.royly-universe-pill:focus-visible {
  outline: 2px solid rgb(var(--color-foreground));
  outline-offset: 3px;
}

.royly-universe-pill:active {
  transform: translateY(0);
  background: rgba(var(--color-foreground), 0.12);
}

/* M7 — NO DEAD CLICK: cápsula sem coleção real ainda associada
   (COLLECTION LINKS PENDING — M7 PHASE 5) fica visualmente idêntica,
   mas não interativa — sem o realce de :hover (por isso a maior
   especificidade abaixo, exigindo as duas classes juntas). */
.royly-universe-pill--pending {
  cursor: default;
  opacity: 0.6;
}

@media (hover: hover) {
  .royly-universe-pill.royly-universe-pill--pending:hover {
    transform: none;
  }
}

/* CORREÇÃO CIRÚRGICA — EXPLORE NOSSOS UNIVERSOS: a rodada anterior
   ("ícone 26.4px → 28px") calculou 1.75rem assumindo 1rem=16px. Este
   tema usa `html { font-size: calc(var(--font-body-scale) * 62.5%) }`
   (body_scale:100) — 1rem = 10px real — então 1.75rem eram só 17.5px,
   não 28px como o comentário antigo registrava. Corrigido para o alvo
   real pretendido (2.8rem = 28px) e mantido em todos os breakpoints —
   ícone é caixa de tamanho fixo, sem risco de overflow em mobile. */
.royly-universe-pill__icon {
  flex-shrink: 0;
  display: flex;
  width: 2.8rem;
  height: 2.8rem;
  opacity: 0.85;
}

.royly-universe-pill__icon svg {
  width: 100%;
  height: 100%;
}

.royly-universe-pill__divider {
  flex-shrink: 0;
  width: 1px;
  height: 1.75rem;
  background: rgba(var(--color-foreground), 0.25);
}

/* CORREÇÃO CIRÚRGICA — EXPLORE NOSSOS UNIVERSOS: mesma causa acima —
   "nome +11%" (0.9rem→1rem) era, na prática, 9px→10px reais (visual-
   mente quase imperceptível). Corrigido para um valor real legível,
   maior no desktop (5 cápsulas numa linha, mais espaço) e mais
   conservador no mobile/tablet (grid de 2-3 colunas mais estreito, texto
   com `white-space:nowrap` — evita risco de overflow em telas
   estreitas, conforme pedido "não esmagar texto"). */
.royly-universe-pill__name {
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  white-space: nowrap;
}

@media screen and (min-width: 600px) {
  .royly-universe-pill__name {
    font-size: 1.15rem;
  }
}

@media screen and (min-width: 750px) {
  .royly-universe-pill__name {
    font-size: 1.3rem;
  }
}

/* ---------------------------------------------------------------------
   Trust strip (sections/royly-trust-strip.liquid)
--------------------------------------------------------------------- */
.royly-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: center;
}

/* CORREÇÃO CIRÚRGICA — TRUST STRIP: causa raiz do "conjunto deslocado,
   sem distribuição equilibrada" — `grid-template-columns: repeat(4,
   1fr)` forçava as 4 colunas a ocupar 100% do `page-width`, mesmo o
   conteúdo de cada item (ícone + texto curto) sendo bem mais estreito
   — cada item ficava "colado" à esquerda da sua própria coluna larga,
   lendo como 4 blocos soltos, não como um conjunto único centralizado.
   Trocado para colunas de largura intrínseca (`auto`, do tamanho do
   próprio conteúdo) + `justify-content: center` no grid — isso
   centraliza o CONJUNTO COMPACTO dos 4 itens como uma unidade única
   dentro do `page-width`, sem tocar em `.royly-trust__item` (ícone+
   texto continuam juntos, divisores preservados). Não é `text-align:
   center` — é o container/grid que passa a se comportar como bloco
   compacto centralizado. */
@media screen and (min-width: 750px) {
  .royly-trust__grid {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 2rem;
    text-align: left;
  }
}

.royly-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

@media screen and (min-width: 750px) {
  .royly-trust__item {
    justify-content: flex-start;
    /* Trava a largura do item (colunas `auto` do grid usariam o
       max-content do texto mais longo — "10% off your first order with
       code WELCOME10" — o que estufaria a coluna e quebraria o "bloco
       compacto"). Com max-width, esse texto quebra em 2 linhas em vez
       de quebrar o layout; os outros 3 itens, mais curtos, ficam bem
       abaixo do limite e não são afetados. */
    max-width: 18rem;
  }

  .royly-trust__item:not(:first-child) {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(var(--color-foreground), 0.12);
  }
}

.royly-trust__icon {
  flex-shrink: 0;
  display: inline-flex;
}

.royly-trust__text {
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------
   Product row (sections/royly-product-row.liquid +
   snippets/royly-product-card-demo.liquid) — Best Sellers / Second Row.
--------------------------------------------------------------------- */
.royly-product-row-section {
  position: relative;
}

.royly-product-row__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
}

.royly-product-row__heading {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0;
}

@media screen and (min-width: 750px) {
  .royly-product-row__heading {
    /* Correção consolidada final: tipografia da área de produtos pequena
       demais vs. "pagina oficial.png" — escala aumentada de forma
       controlada (título, nome, preço, estrelas, parcelamento, "View
       all"), sem alterar tamanho/quantidade/layout dos cards. */
    font-size: 2.1rem;
  }
}

.royly-product-row__view-all {
  font-size: 0.95rem;
  white-space: nowrap;
}

/* CORREÇÃO CIRÚRGICA — CURATED FOR BETTER DAYS (causa raiz do
   deslocamento para a direita, achado por inspeção de código, não por
   tentativa/erro): o Dawn nativo trata `.slider-component-desktop` como
   um carrossel "peek" editorial — em ≥990px ele remove o `max-width` de
   `.page-width` (component-slider.css, `.slider-component-desktop.
   page-width { max-width: none }`) e aplica `margin-left: var(--desktop-
   margin-left-first-item)` (>= 5rem, calculado a partir do viewport) no
   primeiro `.slider__slide`, para permitir que o carrossel "vaze" além
   da largura de conteúdo normal. Isso empurra o primeiro produto para a
   direita do título, que continua dentro de `.page-width` normal — e é
   a causa exata do "deslocamento" relatado. Ambas as regras nativas são
   neutralizadas abaixo apenas para este componente: o `<slider-
   component>` volta a respeitar `--page-width` como o título, e o
   primeiro card volta a `margin-left: 0`, alinhado ao mesmo eixo. */
.royly-product-row-slider.slider-component-desktop.page-width {
  max-width: var(--page-width);
}

.royly-product-row-slider .slider--desktop .slider__slide:first-child {
  margin-left: 0;
  scroll-margin-left: 0;
}

/* Curated for better days — comportamento de carrossel totalmente
   autocontido (não depende da cascata grid/slider nativa do Dawn, cuja
   combinação de classes se mostrou pouco confiável em validações reais
   anteriores: card cortado no final, sem espaço de respiro). */
.royly-product-row__grid.slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

/* M7 final (2026-09-30) — Curated carousel: Dawn's `.slider--desktop` /
   `.slider--tablet` also set `scroll-padding-left` (the "peek" offset,
   >= 5rem on desktop). The margin half of that offset was already
   neutralised above, but the scroll-padding was not, so snapping landed
   off-grid and cut the first/last visible cards. Zeroed for this component
   only, so every arrow click / swipe snaps cleanly to a card edge. */
.royly-product-row-section .royly-product-row__grid.slider {
  scroll-padding-left: 0;
  scroll-padding-right: 0;
}

.royly-product-row__grid.slider::after {
  content: '';
  flex: 0 0 1px;
}

/* CORREÇÃO CIRÚRGICA — CURATED (causa raiz do "mais de 5 aparecem /
   produto cortado à direita" persistir mesmo após a correção anterior):
   `sections/royly-product-row.liquid` recarrega `component-slider.css`
   via `<link>` DENTRO do `<body>`, no ponto onde a própria seção
   renderiza — ou seja, essa folha é inserida no DOM DEPOIS de
   `royly-components.css` (carregada no `<head>`). A regra nativa do
   Dawn `.slider--desktop.grid--5-col-desktop .grid__item` tem a MESMA
   especificidade (3 classes) que a correção da rodada anterior
   (`.royly-product-row__grid.slider .grid__item`, também 3 classes) —
   empate de especificidade é decidido por ordem de aparição no
   documento, e a regra nativa, recarregada por último, vencia
   silenciosamente. Corrigido adicionando `.royly-product-row-section`
   (ancestor real, já presente no markup) como qualificador extra em
   TODOS os breakpoints — 4 classes agora, vence de forma garantida
   independente de qualquer recarregamento de stylesheet. */
.royly-product-row-section .royly-product-row__grid.slider .grid__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 62%;
  max-width: 62%;
}

@media screen and (min-width: 480px) {
  .royly-product-row-section .royly-product-row__grid.slider .grid__item {
    width: 42%;
    max-width: 42%;
  }
}

@media screen and (min-width: 750px) {
  .royly-product-row-section .royly-product-row__grid.slider .grid__item {
    width: 28%;
    max-width: 28%;
  }
}

@media screen and (min-width: 990px) {
  /* Fórmula idêntica à nativa `.grid--5-col-desktop .grid__item` do
     Dawn (mesma usada pelo Best Sellers) — os 5 cards + 4 gaps somam
     matematicamente 100% da largura, sem sobra e sem "espiar" um 6º
     card. Mesmo tamanho de card do Best Sellers por construção. */
  .royly-product-row-section .royly-product-row__grid.slider .grid__item {
    width: calc(20% - var(--grid-desktop-horizontal-spacing) * 4 / 5);
    max-width: calc(20% - var(--grid-desktop-horizontal-spacing) * 4 / 5);
  }
}

/* CORREÇÃO CIRÚRGICA — CURATED FOR BETTER DAYS: setas movidas do canto
   superior direito (posição absoluta, rodada anterior — causava a seta
   "lateral, perto do último produto") para uma linha própria, em fluxo
   normal do documento, DEPOIS do `<ul>` no markup (ver .liquid),
   centralizada abaixo da fileira inteira. */
.royly-product-row__nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.8rem;
}

/* CORREÇÃO FUNCIONAL — CURATED: hit-area alvo explícito de 40-44px
   pedido nesta rodada. Este tema usa `html { font-size: calc(var(--
   font-body-scale) * 62.5%) }` (settings_data body_scale:100) — 1rem =
   10px real, não 16px — então 2.75rem eram 27.5px reais, abaixo do
   alvo. Corrigido para `44px` literal (não rem, para não depender da
   escala) — mesmo valor que o próprio Dawn usa nativamente em
   `.slider-button` (component-slider.css), no topo do alvo pedido —
   mantendo forma/borda/cor/estilo idênticos nas duas setas. */
.royly-product-row-slider .slider-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--color-foreground), 0.25);
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
}

.royly-product-row-slider .slider-button:not([disabled]):hover {
  border-color: rgba(var(--color-foreground), 0.6);
}

.royly-product-row-slider .slider-button[disabled] {
  opacity: 0.35;
}

.royly-pcard {
  position: relative;
}

.royly-pcard__media-wrapper {
  position: relative;
}

/* Rodada nº3: coração ainda discreto demais — mais um incremento
   (2.5rem → 2.75rem = 44px; ícone 20px → 22px, ver snippet do card).
   M7: `cursor:default` → `pointer` (o coração virou funcional — ver
   assets/royly-wishlist.js) e adicionado o estado `.is-active`
   (preenchido, cor de destaque da marca — mesma `--accent` já usada em
   Real Stories). O SVG usa `stroke="currentColor"` + `fill="none"`
   inline; `fill: currentColor` em CSS tem precedência sobre o atributo
   de apresentação `fill="none"` (regra do próprio SVG/CSS), por isso
   basta uma classe para preencher o coração sem precisar de um 2º SVG. */
.royly-pcard__wishlist {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(var(--color-background), 0.85);
  color: rgb(var(--color-foreground));
  cursor: pointer;
}

@media (hover: hover) {
  .royly-pcard__wishlist:hover {
    background: rgba(var(--color-background), 1);
  }
}

.royly-pcard__wishlist:focus-visible {
  outline: 2px solid rgb(var(--color-foreground));
  outline-offset: 2px;
}

.royly-pcard__wishlist.is-active {
  color: var(--accent);
}

.royly-pcard__wishlist.is-active svg {
  fill: currentColor;
}

/* M7 — Wishlist no card nativo do Dawn (snippets/card-product.liquid,
   usado em Collections/Search/Related products) — mesmo tratamento
   visual do coração do card demo da Homepage, para consistência entre
   os dois cards. */
.royly-card__wishlist {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(var(--color-background), 0.85);
  color: rgb(var(--color-foreground));
  cursor: pointer;
}

@media (hover: hover) {
  .royly-card__wishlist:hover {
    background: rgba(var(--color-background), 1);
  }
}

.royly-card__wishlist:focus-visible {
  outline: 2px solid rgb(var(--color-foreground));
  outline-offset: 2px;
}

.royly-card__wishlist.is-active {
  color: var(--accent);
}

.royly-card__wishlist.is-active svg {
  fill: currentColor;
}

/* M7 — Wishlist no PDP (sections/main-product.liquid, bloco
   "royly_wishlist") — link de texto discreto abaixo do bloco em que o
   merchant posicionar (nativamente arrastável no Theme Editor,
   tipicamente logo abaixo de Add to Cart). */
.royly-pdp__wishlist {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: rgb(var(--color-foreground));
  font-size: 1.4rem;
  font-family: var(--font-body-family);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.royly-pdp__wishlist svg {
  flex-shrink: 0;
}

.royly-pdp__wishlist.is-active {
  color: var(--accent);
}

.royly-pdp__wishlist.is-active svg {
  fill: currentColor;
}

.royly-pcard__media {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
}

/* Correção final — qualidade das fotos DEMO (Best Sellers/Curated): a
   Operadora forneceu assets em 800x800 reais (ROYLY_produtos_
   separados/) substituindo os recortes antigos de ~161px que exigiam
   `object-fit: contain` como mitigação de borrão (rodada anterior). Com
   a fonte já quadrada e de resolução compatível com o slot do card,
   `cover` (padrão do Dawn) volta a ser suficiente — sem upscale
   perceptível, mesmo tamanho de card. */

/* FUTURE VISUAL OPTION — royly-product-watermark (rodada nº3): camada
   preparada, desativada por padrão (ver snippet). Sem `background-
   image` — nenhum asset de pata/monograma aprovado ainda; só
   posição/tamanho/opacidade discretos definidos, para ativar depois
   sem reescrever o componente. `pointer-events:none` para nunca
   interferir no coração/Add to Bag. */
.royly-pcard__watermark {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.35;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.royly-pcard__info {
  padding-top: 0.85rem;
  position: relative;
}

.royly-pcard__rating {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.royly-pcard__stars {
  color: var(--accent);
  letter-spacing: 0.05em;
}

.royly-pcard__review-count {
  opacity: 0.6;
  margin-left: 0.2rem;
}

.royly-pcard__title {
  display: block;
  text-decoration: none;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.royly-pcard__price-row .price {
  font-size: 1.2rem;
  font-weight: 600;
}

.royly-pcard__installment {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  opacity: 0.65;
  font-family: var(--font-mono);
}

/* Rodada nº3 — principal ajuste: Add to Bag deixou de ser um círculo
   pequeno flutuante no canto (pouco reconhecível como ação de compra) e
   virou um botão pill de fluxo normal, abaixo do parcelamento — ícone +
   texto "Add to bag", verde ROYLY, ~44px de altura. Não sobrepõe
   preço/nome (não é mais `position:absolute`), não cobre a foto. */
.royly-pcard__cart {
  width: 100%;
  height: 2.75rem;
  margin-top: 0.85rem;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* M3 (2026-09-29, Operator decision — option B): active CTA uses the
     approved muted beige (scheme-2 #DDD5C4) with ROYLY green text
     (#16241C); geometry, icon and typography unchanged. */
  background: rgb(221, 213, 196);
  color: rgb(22, 36, 28);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.royly-pcard__cart span {
  line-height: 1;
}

@media (hover: hover) {
  .royly-pcard__cart:not(:disabled):hover {
    background: rgb(207, 198, 179);
  }
}

.royly-pcard__cart:focus-visible {
  outline: 2px solid rgb(22, 36, 28);
  outline-offset: 2px;
}

.royly-pcard__cart:disabled {
  cursor: default;
  opacity: 0.45;
}

.royly-pcard__form {
  display: contents;
}

/* ---------------------------------------------------------------------
   Story video (sections/royly-story-video.liquid)
--------------------------------------------------------------------- */
.royly-story__media {
  position: relative;
  overflow: hidden;
}

/* CORREÇÃO CIRÚRGICA — OUR STORY: faixa mais fina, referência visual
   "site aprovado/pagina oficial.png" (medido por inspeção de pixels: a
   faixa aprovada ali tem proporção ~7.7:1, bem mais fina que a
   implementação anterior, que não recortava a imagem em nada).

   Este bloco (`:not(--video)`) é o estado ATUALMENTE ativo (nenhum
   vídeo real configurado ainda) — usa o poster aprovado
   (royly-story-preview-oficial.jpg) via `object-fit:cover`. IMPORTANTE:
   essa imagem tem o texto "OUR STORY"/heading/"Watch the video →" (y≈
   165-508 de 720px) E o "More moments together.♡" manuscrito (y≈340-
   550) cravados nos próprios pixels — medi essas faixas e limitei o
   recorte para NUNCA cortar esse conteúdo (proibido gerar/editar a
   imagem aprovada). Por isso a proporção aqui é mais conservadora
   (~4.2:1 no desktop) que a da referência (~7.7:1) — chegar a 7.7:1
   cortaria o eyebrow ou o "Watch the video" no topo/base da imagem.
   Mobile/tablet ainda mais conservadores (menos "fino"), conforme
   pedido para não prejudicar legibilidade/composição. */
.royly-story__media:not(.royly-story__media--video) {
  aspect-ratio: 2.8 / 1;
}

@media screen and (min-width: 750px) {
  .royly-story__media:not(.royly-story__media--video) {
    aspect-ratio: 3.4 / 1;
  }
}

@media screen and (min-width: 990px) {
  .royly-story__media:not(.royly-story__media--video) {
    aspect-ratio: 4.2 / 1;
  }
}

/* M7 final (2026-09-30, Operator decision — final video active): replaces the
   former min-height:46vh/24rem/18rem. Desktop (>=990px) keeps the approved
   4.2:1 band (aspect-ratio reserves the space — no CLS). Below 990px the
   approved 2.8/3.4 ratios are too short for the text, which is now real HTML
   instead of pixels (QA: 139px band vs 234px of text at 390px), so the band
   height follows its content there (text + 2.4rem padding), never cropping it. */
.royly-story__media--video {
  display: flex;
  align-items: center;
}

.royly-story__media--video .royly-story__content {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

/* Bloco H final (2026-09-30, Operator decision): the 4.2:1 band cropped the
   video too hard. From 640px up the band now uses the video's own ratio
   (1536 × 672 ≈ 2.286:1) so the full composition is visible, capped at 80vh
   on very large screens (then only a slight cover crop). Below 640px the band
   follows the text height and the frame is anchored on the cat and hands. */
.royly-story__media--video .royly-story__poster,
.royly-story__media--video video {
  object-position: 62% 50%;
}

/* Final close (2026-09-30, Operator decision): the full-ratio band read like a
   second Hero. Now a cinematic strip between the two previous states — 2.8:1
   on tablets, 3.2:1 on desktop (the source video is 2.286:1, so only a
   moderate top/bottom crop), framed slightly low so the hand and the cat's
   face stay in view. No distortion (object-fit: cover), capped at 70vh. */
@media screen and (min-width: 640px) {
  .royly-story__media--video {
    aspect-ratio: 2.8 / 1;
    max-height: 70vh;
  }

  .royly-story__media--video .royly-story__poster,
  .royly-story__media--video video {
    object-position: 50% 58%;
  }
}

@media screen and (min-width: 990px) {
  .royly-story__media--video {
    aspect-ratio: 3.2 / 1;
  }
}

.royly-story__video-wrapper {
  position: absolute;
  inset: 0;
}

/* CORREÇÃO FUNCIONAL — OUR STORY VIDEO: poster (imagem aprovada) e
   `<video>` ocupam a MESMA caixa, empilhados (`position:absolute;
   inset:0`) — o vídeo (depois no DOM, sem z-index próprio) pinta por
   cima do poster assim que existe/reproduz; se `prefers-reduced-motion`
   ocultar só o `<video>` (ver royly-story-video.js), o poster por baixo
   volta a aparecer como fallback estático, em vez de um painel vazio. */
.royly-story__poster,
.royly-story__video-wrapper video,
.royly-story__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sutil escurecimento à esquerda (onde fica o texto editorial) —
   necessário só para o vídeo real, cujo brilho/exposição ainda é
   desconhecido; garante contraste do texto claro (scheme-3) sem alterar
   composição/copy/posição. Não afeta o estado de poster estático atual
   (`.royly-story__media--video` só existe quando há vídeo real). */
.royly-story__media--video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 65%);
  pointer-events: none;
}

/* M7 final (2026-09-30): on narrower screens the HTML text spans most of the
   band, so the scrim is extended for legibility of the supporting line. */
@media screen and (max-width: 989px) {
  .royly-story__media--video::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.32) 60%, rgba(0, 0, 0, 0.18) 100%);
  }
}

.royly-story__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* M7 final (2026-09-30): this text block (dormant until the video went live)
   was authored for a 16px root; the theme uses 1rem = 10px. Values scaled
   x1.6 to their intended size, and the column now starts on the page's left
   axis (like the approved poster) instead of a 320px centred box. */
.royly-story__content {
  position: relative;
  z-index: 2;
  max-width: 51.2rem;
}

.royly-story__media--video .royly-story__content {
  width: 100%;
  max-width: var(--page-width);
}

.royly-story__media--video .royly-story__content > * {
  max-width: 52rem;
}

.royly-story__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.28rem;
  margin: 0 0 0.8rem;
}

.royly-story__heading {
  margin: 0 0 1.2rem;
}

.royly-story__text {
  margin: 0 0 1.2rem;
  opacity: 0.85;
}

/* Elemento manuscrito à direita ("More moments together. ♡") — mesma
   aproximação de fonte usada em `.royly-newsletter__handwritten`
   (`--font-wordmark` em itálico; o projeto não tem fonte script real
   entre as 4 hospedadas). PENDING — HANDWRITTEN LETTERING/FONT, mesma
   ressalva já registrada para a Newsletter. */
.royly-story__handwritten {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 3.2rem;
  transform: translateY(-50%);
  margin: 0;
  max-width: 19.2rem;
  font-family: var(--font-wordmark);
  font-style: italic;
  font-size: 2.88rem;
  line-height: 1.3;
  text-align: right;
  color: rgb(var(--color-foreground));
}

.royly-story__handwritten span {
  display: block;
}

@media screen and (max-width: 749px) {
  .royly-story__handwritten {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   Testimonials (sections/royly-testimonials.liquid)
--------------------------------------------------------------------- */
.royly-testimonials__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media screen and (min-width: 750px) {
  .royly-testimonials__row {
    grid-template-columns: minmax(200px, 24%) 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.royly-testimonials__intro {
  text-align: left;
}

.royly-testimonials__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin: 0 0 0.65rem;
}

/* CORREÇÃO CIRÚRGICA — REAL STORIES: heading vira a âncora editorial
   principal da seção ("aumentar sua presença visual") — de 2.4/3rem
   para 2.8/3.6rem. */
.royly-testimonials__heading {
  margin: 0 0 0.7rem;
  font-size: 2.8rem;
  line-height: 1.1;
}

@media screen and (min-width: 750px) {
  .royly-testimonials__heading {
    font-size: 3.6rem;
  }
}

.royly-testimonials__subheading {
  margin: 0;
  opacity: 0.75;
  font-size: 1.2rem;
}

@media screen and (min-width: 750px) {
  .royly-testimonials__subheading {
    font-size: 1.3rem;
  }
}

.royly-testimonials__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
  text-align: left;
}

@media screen and (min-width: 750px) {
  .royly-testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.royly-testimonials__item {
  margin: 0;
  padding: 0 1.75rem 0 0;
  border-left: 1px solid rgba(var(--color-foreground), 0.12);
  padding-left: 1.75rem;
}

.royly-testimonials__item:first-child {
  border-left: none;
  padding-left: 0;
}

@media screen and (max-width: 749px) {
  .royly-testimonials__item {
    border-left: none;
    padding-left: 0;
  }
}

/* CORREÇÃO CIRÚRGICA — REAL STORIES: escala dos 3 depoimentos +~17%
   (dentro do alvo pedido de +15-20%) — aspas, texto, estrelas, nome e
   localização. Estrutura, aspas abertas, ausência de card/fundo/sombra
   e marcação DEMO/DRAFT (schema/comentário) preservadas. */
.royly-testimonials__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.royly-testimonials__quote {
  margin: 0 0 0.95rem;
  line-height: 1.55;
  font-size: 1.4rem;
}

.royly-testimonials__stars {
  color: #e07a1f;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.royly-testimonials__author {
  font-size: 1.25rem;
  font-weight: 600;
}

.royly-testimonials__location {
  font-weight: 400;
  opacity: 0.65;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------------
   Product Reviews (sections/royly-product-reviews.liquid)
--------------------------------------------------------------------- */
.royly-reviews__heading {
  margin: 0 0 2rem;
}

.royly-reviews__list {
  display: grid;
  gap: 1.5rem;
}

.royly-reviews__item {
  padding: 1.5rem;
  border-top: 1px solid rgba(var(--color-foreground), 0.08);
}

.royly-reviews__rating {
  color: var(--brand-gold, currentColor);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.royly-reviews__text {
  margin: 0 0 0.5rem;
}

.royly-reviews__author {
  font-size: 0.875rem;
  opacity: 0.75;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Join the family (sections/royly-newsletter.liquid)
--------------------------------------------------------------------- */
/* CORREÇÃO CIRÚRGICA — NEWSLETTER: a Operadora pediu explicitamente
   imagem "verticalmente centralizada" e equilíbrio ~55% conteúdo/
   formulário — 45% composição visual, substituindo a decisão de rodada
   anterior (alinhamento pela base). `align-items: end` → `center`;
   colunas ajustadas de ~48/48 (quase 50/50) para ~55/45. */
.royly-newsletter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media screen and (min-width: 750px) {
  .royly-newsletter__grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 1.5rem;
    align-items: center;
  }
}

@media screen and (min-width: 1100px) {
  .royly-newsletter__grid {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    column-gap: 1.5rem;
    align-items: center;
  }
}

/* Ajuste de escala (correção pós-Draft): no gabarito "Join the ROYLY &
   CO. family" é o rótulo pequeno em versalete e "Better days start
   together." é o título grande — o inverso do que o tema h1 padrão
   produzia aqui. Mesma copy, mesmos campos do schema (heading/
   subheading); só a hierarquia visual foi trocada entre as duas classes
   já existentes. */
.royly-newsletter__heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-body-family);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.royly-newsletter__subheading {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading-family);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1.12;
}

@media screen and (min-width: 750px) {
  .royly-newsletter__subheading {
    font-size: 2.8rem;
  }
}

.royly-newsletter__text {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  opacity: 0.8;
}

.royly-newsletter__fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* O rótulo flutuante nativo do Dawn (.field__label) é dimensionado para
   campos de largura total (font-size 1.6rem) — num layout compacto de
   3 colunas, esse tamanho ultrapassa a largura do input (bug
   confirmado em validação real: "Pet's name (optional)" cortando a
   borda). Reduzido só neste contexto. */
.royly-newsletter__fields .field__input {
  padding: 1.35rem 1.4rem;
  font-size: 1.05rem;
}

.royly-newsletter__fields .field__label {
  font-size: 0.95rem;
  left: 1.25rem;
  right: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.royly-newsletter__fields .field__input:focus ~ .field__label,
.royly-newsletter__fields .field__input:not(:placeholder-shown) ~ .field__label {
  font-size: 0.7rem;
  left: 1.1rem;
}

@media screen and (min-width: 480px) {
  .royly-newsletter__fields {
    grid-template-columns: 1fr 1fr;
  }

  .royly-newsletter__fields .field:last-child {
    grid-column: 1 / -1;
  }
}

@media screen and (min-width: 1100px) {
  .royly-newsletter__fields {
    grid-template-columns: 1fr 1fr 1.2fr;
    min-width: 0;
  }

  .royly-newsletter__fields .field:last-child {
    grid-column: auto;
    min-width: 0;
  }

  .royly-newsletter__fields .field {
    min-width: 0;
  }

  .royly-newsletter__fields .field__input {
    min-width: 0;
    font-size: 1rem;
  }

  .royly-newsletter__form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
  }

  .royly-newsletter__fields {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
  }

  .royly-newsletter__submit {
    margin-top: 0;
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* CORREÇÃO CIRÚRGICA — NEWSLETTER: a imagem aprovada já traz a frase
   manuscrita embutida, então este wrap agora tem um único filho (a
   imagem) — `justify-content: center` centraliza a composição inteira
   dentro da coluna de 45%. */
.royly-newsletter__media-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.royly-newsletter__media {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}

.royly-newsletter__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CORREÇÃO CIRÚRGICA — NEWSLETTER: o asset aprovado
   (`royly-newsletter-family.png`, 1774x887) é uma composição única e
   limpa (Corgi + "Small companions. Big joy." + coração) — sem resíduos
   a recortar. `aspect-ratio` fixado na proporção REAL do arquivo
   (1774/887) elimina qualquer letterboxing, e `object-fit: contain`
   garante que a imagem nunca seja cortada mesmo que o container sofra
   pequenas variações de proporção em algum breakpoint — cachorro,
   orelhas, patas, a frase completa e o coração ficam sempre visíveis. */
.royly-newsletter__media--approved {
  position: relative;
  aspect-ratio: 1774 / 887;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.royly-newsletter__media--approved .royly-newsletter__media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ajuste de distribuição (correção pós-Draft): "Small companions. Big
   joy." sai de cima da foto (branco sobre imagem) e passa a ficar ao
   lado dela — usado pelo ramo de foto real do Admin. Fonte manuscrita:
   o projeto não tem nenhuma fonte cursiva/script real entre as 4 fontes
   hospedadas (Fraunces/Archivo/IBM Plex Mono/Source Serif 4); este
   itálico em Source Serif 4 é a mesma aproximação já usada em "Better
   days together." no Hero — não uma fonte nova, mas também não é a
   fonte manuscrita exata da referência. PENDING — HANDWRITTEN
   LETTERING/FONT (ver relatório). */
.royly-newsletter__handwritten {
  flex: 0 0 auto;
  max-width: 8.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-wordmark);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.3;
  color: rgb(var(--color-foreground));
}

@media screen and (max-width: 749px) {
  .royly-newsletter__media-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .royly-newsletter__handwritten {
    max-width: none;
    margin: 0.75rem 0 0;
  }
}

/* ---------------------------------------------------------------------
   Free delivery progress (Cart + Cart Drawer)
--------------------------------------------------------------------- */
.royly-free-delivery {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: rgba(var(--color-foreground), 0.04);
}

.royly-free-delivery__message {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.royly-free-delivery__message--unlocked {
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 600;
}

.royly-free-delivery__track {
  height: 4px;
  border-radius: 2px;
  background: rgba(var(--color-foreground), 0.12);
  overflow: hidden;
}

.royly-free-delivery__fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* ---------------------------------------------------------------------
   Virtual Assistant shell (snippets/royly-assistant.liquid)
--------------------------------------------------------------------- */
/* M7 closing (2026-09-30): this block was authored for a 16px root, but the
   theme uses 1rem = 10px, so the widget rendered at 62.5% (a 32.5px dark
   button that disappeared over the dark footer). All rem values below were
   scaled x1.6 to their intended size, and the toggle gets a subtle cream
   ring so it stays visible on dark sections. Design otherwise unchanged. */
.royly-assistant {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 90;
}

@media screen and (max-width: 749px) {
  .royly-assistant {
    right: 1.6rem;
    bottom: 1.6rem;
  }
}

.royly-assistant__toggle {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  border: none;
  background: rgb(22, 36, 28);
  color: rgb(243, 238, 226);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(243, 238, 226, 0.45), 0 8px 20px -8px rgba(22, 36, 28, 0.5);
  cursor: pointer;
}

.royly-assistant__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1.2rem);
  width: min(340px, calc(100vw - 3.2rem));
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  border-radius: 12px;
  box-shadow: 0 20px 45px -20px rgba(22, 36, 28, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.royly-assistant__panel[hidden] {
  display: none;
}

.royly-assistant__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.36rem 1.6rem;
  background: rgb(22, 36, 28);
  color: rgb(243, 238, 226);
}

.royly-assistant__title {
  font-size: 1.68rem;
}

.royly-assistant__close {
  border: none;
  background: none;
  color: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.royly-assistant__body {
  padding: 1.6rem;
  max-height: 25.6rem;
  overflow-y: auto;
}

.royly-assistant__empty-state {
  margin: 0 0 1.2rem;
  font-size: 1.36rem;
  opacity: 0.85;
}

.royly-assistant__quick-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.64rem;
}

.royly-assistant__quick-action {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1.36rem;
  padding: 0.8rem 1.04rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--color-foreground), 0.15);
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.royly-assistant__quick-action:hover {
  background: rgba(var(--color-foreground), 0.06);
}

.royly-assistant__quick-action[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.royly-assistant__form {
  display: flex;
  gap: 0.8rem;
  padding: 1.2rem;
  border-top: 1px solid rgba(var(--color-foreground), 0.1);
}

.royly-assistant__input {
  flex: 1;
  border: 1px solid rgba(var(--color-foreground), 0.2);
  border-radius: 6px;
  padding: 0.8rem 1.04rem;
  font-size: 1.36rem;
  background: transparent;
  color: inherit;
}

.royly-assistant__send {
  border: none;
  background: rgb(22, 36, 28);
  color: rgb(243, 238, 226);
  border-radius: 6px;
  width: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------
   Popup de aquisição (snippets/royly-acquisition-popup.liquid)
   Sem urgência artificial: sem contagem regressiva, sem tremor/pulso,
   sem reabertura em loop. Um único fade, desativado em
   prefers-reduced-motion.
--------------------------------------------------------------------- */
.royly-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.royly-popup[hidden] {
  display: none;
}

.royly-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 36, 28, 0.55);
}

.royly-popup__panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr;
  background: rgb(var(--color-background));
  animation: royly-popup-fade-in 0.2s ease-out;
}

@media screen and (min-width: 600px) {
  .royly-popup__panel {
    grid-template-columns: 55% 45%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .royly-popup__panel {
    animation: none;
  }
}

@keyframes royly-popup-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Correção final — troca de `background-image` numa `<div>` vazia por
   `<img>` real no DOM (ver snippets/royly-acquisition-popup.liquid para
   a causa raiz completa investigada: `min-height: 100%` numa `<div>`
   sem conteúdo próprio, dentro de uma linha de CSS Grid dimensionada
   por `auto`, é um percentual que a especificação não resolve de forma
   confiável — podia colapsar para altura zero).

   `.royly-popup__media` é o item do grid: herda altura real da linha
   via `align-items: stretch` (comportamento padrão do CSS Grid, não
   percentual — por isso não precisa de `height`/`min-height` aqui).
   Com a altura do item já resolvida, a `<img>` filha usa `height: 100%`
   com segurança (percentual normal contra um pai com altura definida).
   `object-position: left` preserva o wordmark (topo-esquerda) e o texto
   manuscrito (base-esquerda) incorporados na foto, descartando só a
   margem direita ao cortar para preencher o painel. */
.royly-popup__media {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.royly-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.royly-popup__content {
  position: relative;
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (max-width: 599px) {
  .royly-popup__content {
    padding: 2.25rem 1.5rem;
  }
}

/* Correção cirúrgica nº2: botão fechar aumentado para ~44x44px (área
   clicável confortável), era 2.25rem (36px). */
.royly-popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 36, 28, 0.25);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: rgb(22, 36, 28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.royly-popup__eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  font-weight: 600;
}

.royly-popup__heading {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  line-height: 1.12;
  font-weight: 400;
}

@media screen and (min-width: 750px) {
  .royly-popup__heading {
    font-size: 2.65rem;
  }
}

.royly-popup__text {
  margin: 0 0 1.5rem;
  opacity: 0.85;
}

.royly-popup__text strong,
.royly-popup__success strong {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.royly-popup__form .field {
  position: relative;
}

.royly-popup__form .field__input {
  padding-right: 2.75rem;
}

.royly-popup__form .field__icon {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

/* Correção pós-Draft: o Dawn desenha o botão em 3 camadas (o próprio
   elemento + ::before para a sombra + ::after para o anel de borda),
   cada uma com seu próprio border-radius (var(--buttons-radius-outset)/
   var(--buttons-radius), vindos das configs globais de botão do tema).
   Arredondar só o elemento deixava o preenchimento verde em pílula mas
   o anel/sombra das pseudo-camadas com cantos quadrados por cima —
   exatamente o "fundo verde/quadrado" relatado pela Operadora. */
.royly-popup__submit,
.royly-popup__submit::before,
.royly-popup__submit::after {
  border-radius: 999px;
}

.royly-popup__submit {
  margin-top: 1.25rem;
  width: 100%;
}

.royly-popup__consent {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

.royly-popup__error {
  color: rgb(var(--color-error, 199, 26, 26));
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

body.royly-popup-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------------
   Correção cirúrgica pré-push — elementos ausentes vs. "pagina oficial.png"
--------------------------------------------------------------------- */

/* Header — ícone de wishlist (Search / Account / Wishlist / Bag no
   gabarito). Sem app de wishlist instalado: shell decorativo, disabled,
   mesmo padrão do coração nos cards de produto. */
.header__icon--wishlist {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: default;
  font: inherit;
}

/* Popup — coração sob o texto manuscrito ("More moments together." + ♡
   no gabarito aprovado). */
.royly-popup__media-heart {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
  line-height: 1;
}

/* Popup — reassurance com ícones (leaf/truck/shield), reproduzindo a
   composição do gabarito do Popup (linha com divisórias verticais). */
/* Correção cirúrgica nº2: reassurance (labels + ícones) aumentada —
   0.7rem/1.35rem estavam ilegíveis em desktop normal. */
.royly-popup__reassurance {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--color-foreground), 0.1);
  font-size: 0.85rem;
  opacity: 0.85;
}

.royly-popup__reassurance-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 0 0.5rem;
  border-left: 1px solid rgba(var(--color-foreground), 0.12);
}

.royly-popup__reassurance-item:first-child {
  border-left: none;
}

.royly-popup__reassurance-icon {
  display: flex;
  width: 1.75rem;
  height: 1.75rem;
}

.royly-popup__reassurance-icon svg {
  width: 100%;
  height: 100%;
}

/* Footer — coluna de marca primeiro (leftmost), conforme "pagina
   oficial.png"; ordem restaurada via block_order em footer-group.json. */

/* Footer — "Better days together." na área direita, com divisória
   vertical, ao lado das colunas de links (composição do gabarito). O
   grid nativo do Dawn (.footer__content-top) empilha em bloco; o ajuste
   abaixo apenas coloca os dois blocos existentes lado a lado no desktop,
   sem alterar conteúdo/arquitetura. */
@media screen and (min-width: 750px) {
  .footer__content-top {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
  }

  .footer__blocks-wrapper {
    flex: 1 1 auto;
  }
}

.footer__royly-tagline {
  flex: 0 0 auto;
  align-self: center;
  padding-left: 2rem;
  border-left: 1px solid rgba(var(--color-foreground), 0.2);
  font-family: var(--font-heading-family);
  font-size: 1.6rem;
  line-height: 1.22;
}

@media screen and (min-width: 990px) {
  .footer__royly-tagline {
    font-size: 1.9rem;
  }
}

.footer__royly-tagline-text {
  margin: 0;
}

@media screen and (max-width: 749px) {
  .footer__royly-tagline {
    border-left: none;
    padding-left: 0;
    margin-top: 3rem;
    text-align: center;
  }
}

/* M7 — NO DEAD CLICK: itens do footer sem destino real ainda (coleção/
   página/blog/policy pendente no Admin) ficam visualmente NÃO
   clicáveis (sem sublinhado no hover, cursor padrão, opacidade
   reduzida) em vez de um link para "#" indistinguível de um real. O
   `title` (tooltip nativo do navegador) explica o motivo. */
.royly-footer__pending,
.royly-footer__pending-policy {
  color: rgba(var(--color-foreground), 0.4);
  cursor: default;
}

@media screen and (min-width: 750px) {
  .royly-footer__pending:hover,
  .royly-footer__pending-policy:hover {
    color: rgba(var(--color-foreground), 0.4);
    text-decoration: none;
  }
}

/* ---------------------------------------------------------------------
   Wishlist page (sections/royly-wishlist-page.liquid +
   assets/royly-wishlist.js) — M7.
--------------------------------------------------------------------- */
.royly-wishlist-page__heading {
  margin: 0 0 2rem;
}

.royly-wishlist-page__loading,
.royly-wishlist-page__noscript {
  opacity: 0.7;
}

.royly-wishlist-page__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 0;
}

.royly-wishlist-page__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media screen and (min-width: 750px) {
  .royly-wishlist-page__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.royly-wishlist-page__item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.royly-wishlist-page__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: rgba(var(--color-foreground), 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.royly-wishlist-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.royly-wishlist-page__title {
  display: block;
  font-weight: 600;
  text-decoration: none;
  color: rgb(var(--color-foreground));
  margin: 0 0 0.3rem;
}

a.royly-wishlist-page__title:hover {
  text-decoration: underline;
}

.royly-wishlist-page__demo-tag {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.3rem;
}

.royly-wishlist-page__price {
  margin: 0;
  opacity: 0.8;
}

.royly-wishlist-page__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(var(--color-background), 0.85);
  color: rgb(var(--color-foreground));
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (hover: hover) {
  .royly-wishlist-page__remove:hover {
    background: rgba(var(--color-background), 1);
  }
}

.royly-wishlist-page__remove:focus-visible {
  outline: 2px solid rgb(var(--color-foreground));
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Our Story (sections/royly-about-story.liquid)
--------------------------------------------------------------------- */
.royly-story__hero {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3rem;
}

.royly-story__hero-heading {
  font-size: 3rem;
  margin: 0.75rem 0 0;
}

@media screen and (max-width: 749px) {
  .royly-story__hero-heading {
    font-size: 2.2rem;
  }
}

.royly-story__blocks {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 46rem;
  margin: 0 auto;
}

.royly-story__block-heading {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.royly-story__block-body {
  opacity: 0.85;
}

.royly-story__universe-list {
  margin-top: 1.5rem;
}

.royly-story__cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ---------------------------------------------------------------------
   Universes hub (sections/royly-universes-hub.liquid, /pages/universes)
--------------------------------------------------------------------- */
.royly-universes-hub__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.royly-universes-hub__heading {
  font-size: 2.75rem;
  margin: 0.75rem 0 0.75rem;
}

.royly-universes-hub__subheading {
  opacity: 0.85;
  margin: 0;
}

@media screen and (max-width: 749px) {
  .royly-universes-hub__heading {
    font-size: 2rem;
  }
}

.royly-universes-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 750px) {
  .royly-universes-hub__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

.royly-universes-hub__card-item {
  display: block;
}

.royly-universes-hub__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 2.5rem 1rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--color-foreground), 0.12);
  text-decoration: none;
  color: inherit;
  text-align: center;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  a.royly-universes-hub__card:hover {
    border-color: rgba(var(--color-foreground), 0.35);
    transform: translateY(-2px);
  }
}

.royly-universes-hub__card--pending {
  opacity: 0.55;
  cursor: not-allowed;
}

.royly-universes-hub__card-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.royly-universes-hub__card-icon svg {
  width: 100%;
  height: 100%;
}

.royly-universes-hub__card[data-universe='play'] {
  background: rgba(184, 144, 74, 0.09);
}

.royly-universes-hub__card[data-universe='home'] {
  background: rgba(160, 140, 110, 0.1);
}

.royly-universes-hub__card[data-universe='walk'] {
  background: rgba(120, 120, 70, 0.08);
}

.royly-universes-hub__card[data-universe='care'] {
  background: rgba(180, 110, 85, 0.08);
}

.royly-universes-hub__card[data-universe='daily'] {
  background: rgba(90, 100, 80, 0.08);
}

.royly-universes-hub__card-name {
  font-family: var(--font-heading-family);
  font-size: 1.1rem;
}

.royly-universes-hub__card-cta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

/* ---------------------------------------------------------------------
   M3 (2026-09-29, Operator-authorized): CTA bottom alignment inside the
   product cards (Best Sellers / Curated). Every CTA in a row ends at the
   same vertical position regardless of title length or price info.
   Card/row geometry unchanged.
--------------------------------------------------------------------- */
.royly-product-row__grid > .grid__item {
  display: flex;
}

.royly-pcard {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.royly-pcard__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.royly-pcard__cart {
  margin-top: auto;
}

.royly-pcard__price-row {
  margin-bottom: 0.85rem;
}

/* ---------------------------------------------------------------------
   Bloco H final (2026-09-30, Operator-authorized) — Collections premium grid.
   Collections use 3 columns on desktop (templates/collection.json) with more
   generous gaps (Dawn's own spacing variables, so card widths recalculate).
   Card rhythm [image][title][price][CTA]: every product card in a product
   grid (collections, search, "You may also like") is a flex column, the title
   area reserves two lines so prices line up across a row, and the quick-add
   CTA sits on the card's bottom edge. Covers, wishlist, prices and the real
   availability state (incl. "Sold out") are untouched.
--------------------------------------------------------------------- */
@media screen and (min-width: 990px) {
  #product-grid.grid--3-col-desktop {
    --grid-desktop-horizontal-spacing: 3.2rem;
    --grid-desktop-vertical-spacing: 5.6rem;
  }
}

.product-grid > .grid__item > product-component {
  display: block;
  height: 100%;
}

.product-grid .product-card-wrapper,
.product-grid .product-card-wrapper > .card {
  height: 100%;
}

.product-grid .product-card-wrapper > .card {
  display: flex;
  flex-direction: column;
}

.product-grid .product-card-wrapper > .card > .card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.product-grid .product-card-wrapper > .card > .card__content > .card__information .card__heading {
  min-height: 2.6em;
  min-height: 2lh;
  margin-bottom: 0.6rem;
}

.product-grid .product-card-wrapper > .card > .card__content > .quick-add {
  margin-top: auto;
  padding-top: 1.6rem;
}

/* ---------------------------------------------------------------------
   Bloco H final (2026-09-30, Operator-authorized) — mobile header overflow.
   At 390px the icon group (44px hit areas + 14px gaps + the zero-width
   "Follow on Shop" element's gaps) ran ~25px past the viewport. Phones only:
   40px hit areas and 4px gaps. Desktop unchanged; no icon removed.
--------------------------------------------------------------------- */
@media screen and (max-width: 749px) {
  .header__icons {
    gap: 0.4rem;
  }

  .header__icon,
  .header__icon .svg-wrapper {
    width: 4rem;
    height: 4rem;
  }
}

/* Bloco H final (2026-09-30) — PDP delivery note (text block "delivery" in
   templates/product.json): a quiet, secondary line under quantity. */
.product__info-container .product__text.subtitle {
  font-size: 1.4rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0.4rem 0 1.2rem;
}

/* Bloco H final (2026-09-30) — PDP: when the selected variant is unavailable
   (the Add to bag button is disabled and reads "Sold out"), Dawn still showed
   an active "Buy it now" dynamic-checkout button. It is hidden only while the
   add button is disabled, so the page always reflects the real state and the
   button returns as soon as an available variant is selected. */
.product-form__buttons:has(.product-form__submit[disabled]) .shopify-payment-button {
  display: none;
}

/* ---------------------------------------------------------------------
   Final close (2026-09-30, Operator-authorized) — ROYLY Assistant chat.
   Same shell (toggle, panel, header, colours); adds the conversation UI:
   log, bot/user bubbles, quick-reply chips, live product cards, typing dots,
   auto-growing textarea. Discreet size; 1rem = 10px in this theme.
--------------------------------------------------------------------- */
.royly-assistant__panel {
  width: min(360px, calc(100vw - 3.2rem));
  max-height: min(60vh, 56rem);
}

.royly-assistant__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: none;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 1.2rem 1.2rem 0.8rem;
}

.royly-assistant__log {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  min-height: 12rem;
  max-height: min(36vh, 34rem);
  padding-right: 0.2rem;
  scroll-behavior: smooth;
}

.royly-assistant__msg {
  max-width: 88%;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  font-size: 1.36rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.royly-assistant__msg p {
  margin: 0 0 0.6rem;
}

.royly-assistant__msg p:last-child {
  margin-bottom: 0;
}

.royly-assistant__msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.royly-assistant__msg--bot {
  align-self: flex-start;
  background: rgba(var(--color-foreground), 0.06);
  border-bottom-left-radius: 4px;
}

.royly-assistant__msg--user {
  align-self: flex-end;
  background: rgb(22, 36, 28);
  color: rgb(243, 238, 226);
  border-bottom-right-radius: 4px;
  white-space: pre-wrap;
}

.royly-assistant__list {
  margin: 0.6rem 0;
  padding-left: 1.6rem;
}

.royly-assistant__list li {
  margin-bottom: 0.3rem;
}

.royly-assistant__tag {
  font-size: 1.1rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.royly-assistant__results {
  display: grid;
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.royly-assistant__product {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: rgb(var(--color-background));
  border: 1px solid rgba(var(--color-foreground), 0.1);
  text-decoration: none !important;
}

.royly-assistant__product:hover {
  border-color: rgba(var(--color-foreground), 0.3);
}

.royly-assistant__product-img {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.royly-assistant__product-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.royly-assistant__product-title {
  font-size: 1.3rem;
  line-height: 1.35;
}

.royly-assistant__product-price {
  font-size: 1.25rem;
  font-weight: 600;
}

.royly-assistant__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.royly-assistant__chips:empty {
  display: none;
}

.royly-assistant__chip {
  border: 1px solid rgba(var(--color-foreground), 0.2);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 1.25rem;
  cursor: pointer;
}

.royly-assistant__chip:hover,
.royly-assistant__chip:focus-visible {
  border-color: rgb(22, 36, 28);
  background: rgba(var(--color-foreground), 0.05);
}

.royly-assistant__typing {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.2rem;
}

.royly-assistant__typing[hidden] {
  display: none;
}

.royly-assistant__typing span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(var(--color-foreground), 0.45);
  animation: royly-assistant-dot 1.2s infinite ease-in-out;
}

.royly-assistant__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.royly-assistant__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes royly-assistant-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-0.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .royly-assistant__typing span {
    animation: none;
  }
}

.royly-assistant__form {
  align-items: flex-end;
}

textarea.royly-assistant__input {
  resize: none;
  min-height: 3.8rem;
  max-height: 9.6rem;
  line-height: 1.4;
  font-family: inherit;
  cursor: text;
}

.royly-assistant__send {
  cursor: pointer;
  min-height: 3.8rem;
}

.royly-assistant__send:hover {
  background: rgb(40, 58, 47);
}

/* ---------------------------------------------------------------------
   Curated for better days — circular carousel (2026-09-30, founder-
   approved): assets/royly-loop-carousel.js. Card geometry unchanged; only
   the drag state is styled here.
--------------------------------------------------------------------- */
[data-royly-loop].is-dragging .royly-product-row__grid {
  cursor: grabbing;
  user-select: none;
}

[data-royly-loop].is-dragging .royly-product-row__grid a {
  pointer-events: none;
}

/* component-slider.css is re-loaded inside <body> after this file, so the
   selector is qualified enough to win regardless of order. */
@media (prefers-reduced-motion: reduce) {
  .royly-product-row-section [data-royly-loop] .royly-product-row__grid.slider {
    scroll-behavior: auto;
  }
}
