/* Grade de coleção RP (sections/rp-collection-grid.liquid). */
rp-collection-grid.rp-cg {
  --cg-bg: #fff;
  --cg-ink: #171717;
  --cg-muted: #6f6266;
  --cg-line: #f0e3e5;
  --cg-accent: #2b1720;
  --cg-accent-ink: #fff;
  --cg-card: transparent;
  --cg-media: #f2f2f4;
  --cg-kicker: #6f6266;
  --cg-radius: 8px;
  --cg-media-radius: 8px;
  --cg-chip-radius: 6px;
  --cg-ratio: 4 / 5;
  display: block;
  padding: 40px 0 64px;
  background: var(--cg-bg);
  color: var(--cg-ink);
  scroll-margin-top: 80px;
}

rp-collection-grid.rp-cg--holiday { --cg-ratio: 1 / 1; --cg-bg: #fbf7f1; --cg-line: #e8dcc6; --cg-card: #fffdf9; --cg-kicker: #a9843f; --cg-radius: 8px; --cg-media-radius: 0px; }
rp-collection-grid.rp-cg--fragrance { --cg-line: #f3dfe3; --cg-accent: #c4566a; --cg-kicker: #c4566a; }
rp-collection-grid.rp-cg--makeup { --cg-line: #e4e4e4; --cg-accent: #121212; --cg-kicker: #8a8a8a; --cg-radius: 0; --cg-media-radius: 2px; --cg-chip-radius: 2px; --cg-muted: #6b6b6b; }

.rp-cg__inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.rp-cg__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rp-cg__heading {
  margin: 0 0 18px;
  text-align: center;
  font-family: "RP Awesome Serif Trial", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--cg-accent);
}
.rp-cg__heading em, .rp-cg__heading i { font-style: italic; font-weight: 400; }
.rp-cg--holiday .rp-cg__heading em { background: linear-gradient(100deg, #b5914f 0%, #d9b56e 45%, #a9843f 75%, #c9a45c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding: 0 .04em; }
.rp-cg--fragrance .rp-cg__heading span {
  background: linear-gradient(100deg, #c4566a, #e48a95 55%, #f2a7aa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.rp-cg--makeup .rp-cg__heading { text-align: left; text-transform: none; }

.rp-cg__filters { display: grid; gap: 10px; margin-bottom: 16px; }
.rp-cg__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.rp-cg__chips::-webkit-scrollbar { display: none; }

.rp-cg .rp-cg__chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-chip-radius);
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  color: var(--cg-ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.rp-cg .rp-cg__chip[hidden] { display: none; }
rp-collection-grid .rp-cg__chips[hidden] { display: none !important; }
.rp-cg .rp-cg__chip.is-active { border-color: var(--cg-accent); background: var(--cg-accent); color: var(--cg-accent-ink); }
.rp-cg__n { opacity: .62; font-size: 11px; }
.rp-cg--holiday .rp-cg__chip { border-color: transparent; background: linear-gradient(#fbf7f1, #fbf7f1) padding-box, linear-gradient(120deg, #e9d3a1, #c9a45c 45%, #f3e2b8 70%, #b5914f) border-box; }
.rp-cg--holiday .rp-cg__chip.is-active { border-color: transparent; background: linear-gradient(#2b1720, #2b1720) padding-box, linear-gradient(120deg, #e9d3a1, #c9a45c 45%, #f3e2b8 70%, #b5914f) border-box; color: #fff; }
.rp-cg--holiday .rp-cg__chips--price .rp-cg__chip.is-active { background: linear-gradient(100deg, #f6e3b4 0%, #c9a45c 45%, #f6e3b4 70%, #b5914f 100%) border-box; color: #2b1720; }
.rp-cg--makeup .rp-cg__chip { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 500; }

.rp-cg__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--cg-line); }
.rp-cg__count { margin: 0; font-size: 12px; color: var(--cg-muted); }
.rp-cg__selects { display: flex; gap: 14px; }
.rp-cg__select select {
  min-height: 34px;
  padding: 0 20px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: var(--cg-ink);
  cursor: pointer;
}

.rp-cg__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }

.rp-cg__card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--cg-radius); background: var(--cg-card); }
.rp-cg--holiday .rp-cg__card { padding: 0 0 14px; overflow: hidden; border: 1px solid transparent; background: linear-gradient(#fffdf9, #fffdf9) padding-box, linear-gradient(120deg, #e9d3a1, #c9a45c 45%, #f3e2b8 70%, #b5914f) border-box; box-shadow: 0 10px 26px rgba(169, 132, 63, .07); }

.rp-cg__media {
  position: relative;
  display: block;
  aspect-ratio: var(--cg-ratio);
  border-radius: var(--cg-media-radius);
  background: var(--cg-media);
  overflow: hidden;
}
.rp-cg__media img, .rp-cg__placeholder { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
@media (hover: hover) and (pointer: fine) {
  .rp-cg__card:hover .rp-cg__media img { transform: scale(1.04); }
}

.rp-cg .rp-cg__add {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--cg-accent);
  box-shadow: 0 6px 16px rgba(43, 23, 32, .14);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.rp-cg--holiday .rp-cg__add { top: 10px; right: 10px; background: #2b1720; color: #f6e3b4; }
.rp-cg--holiday .rp-cg__add svg path { stroke: url(#rp-cg-gold); }
.rp-cg--fragrance .rp-cg__add { top: 10px; right: 10px; background: #fff; color: #c4566a; }
.rp-cg--makeup .rp-cg__add { top: 8px; right: 8px; border-radius: 2px; background: #121212; color: #fff; box-shadow: none; }
.rp-cg__add svg { width: 18px; height: 18px; }
.rp-cg__add .rp-cg__check { display: none; }
.rp-cg__add.is-added svg { display: none; }
.rp-cg__add.is-added .rp-cg__check { display: block; }
.rp-cg__add.is-loading { opacity: .6; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .rp-cg .rp-cg__add:hover { transform: scale(1.08); } }

.rp-cg__info { display: grid; gap: 4px; padding: 10px 2px 0; }
.rp-cg--fragrance .rp-cg__info { justify-items: center; text-align: center; padding-top: 12px; }
.rp-cg--holiday .rp-cg__info { padding: 12px 12px 0; }
.rp-cg--holiday .rp-cg__kicker { background: linear-gradient(100deg, #b5914f 0%, #d9b56e 45%, #a9843f 75%, #c9a45c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; justify-self: start; }
.rp-cg__kicker { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cg-kicker); }
.rp-cg__name { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.rp-cg__name a { color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-cg--holiday .rp-cg__name, .rp-cg--fragrance .rp-cg__name { font-family: "RP Awesome Serif Trial", Georgia, serif; font-size: 16px; font-weight: 500; line-height: 1.2; }
.rp-cg--makeup .rp-cg__name { font-weight: 600; font-size: 13px; }
.rp-cg__price { margin: 0; font-size: 13px; font-weight: 500; color: var(--cg-ink); }
.rp-cg__meta { margin: 0; font-size: 11.5px; color: var(--cg-muted); }
.rp-cg__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .25); }

.rp-cg__editorial { grid-column: 1 / -1; }
.rp-cg__editorial--spotlight, .rp-cg__editorial--look {
  display: grid;
  overflow: hidden;
  border-radius: var(--cg-radius);
  background: #fff;
}
.rp-cg--holiday .rp-cg__editorial--spotlight { background: #2b1720; color: #fbf7f1; }
.rp-cg--makeup .rp-cg__editorial--look { background: #121212; color: #fff; }
.rp-cg--fragrance .rp-cg__editorial--spotlight { background: #fbf2f3; color: #2b1720; }
.rp-cg--fragrance .rp-cg__ed-eyebrow { color: #c4566a; }
.rp-cg--fragrance .rp-cg__ed-heading em { background: linear-gradient(100deg, #c4566a 0%, #e48a95 55%, #f2a7aa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding: 0 .05em; }
rp-collection-grid.rp-cg--fragrance .rp-cg__ed-link { color: #c4566a; }
.rp-cg__ed-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.rp-cg__ed-media img { width: 100%; height: 100%; object-fit: cover; }
.rp-cg__ed-copy { display: grid; align-content: center; gap: 12px; padding: 28px 22px 32px; }
.rp-cg__ed-eyebrow { margin: 0; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: #e5c78d; }
.rp-cg--makeup .rp-cg__ed-eyebrow { color: #f2a7aa; }
.rp-cg__ed-heading { margin: 0; font-family: "RP Awesome Serif Trial", Georgia, serif; font-size: clamp(30px, 8vw, 46px); font-weight: 500; line-height: 1.05; }
.rp-cg__ed-heading em { font-style: italic; font-weight: 400; color: #e5c78d; }
.rp-cg--makeup .rp-cg__ed-heading em { color: #f2a7aa; }
rp-collection-grid .rp-cg__ed-heading { color: inherit; }
rp-collection-grid.rp-cg--makeup .rp-cg__editorial--look .rp-cg__ed-heading { color: #fff; }
.rp-cg__ed-text { margin: 0; font-size: 14px; line-height: 1.6; opacity: .88; }
.rp-cg .rp-cg__ed-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 13px;
  color: inherit;
  text-decoration: none;
}
.rp-cg--holiday .rp-cg__ed-eyebrow,
.rp-cg--holiday .rp-cg__ed-heading em { background: linear-gradient(100deg, #f6e3b4 0%, #c9a45c 45%, #f6e3b4 70%, #b5914f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; justify-self: start; }
.rp-cg--holiday .rp-cg__ed-heading em { padding: 0 .05em; }
.rp-cg--holiday .rp-cg__trust svg * { stroke: url(#rp-cg-gold); }
.rp-cg__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
rp-collection-grid .rp-cg__sentinel { display: block !important; width: 100%; height: 1px; }
.rp-cg--makeup .rp-cg__ed-link { border-radius: 2px; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }

.rp-cg__look { display: grid; gap: 10px; margin: 6px 0 4px; padding: 0; list-style: none; }
.rp-cg__look-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.rp-cg__look-img { width: 64px; height: 64px; overflow: hidden; background: #f4f4f4; }
.rp-cg__look-img img { width: 100%; height: 100%; object-fit: cover; }
.rp-cg__look-name { font-size: 13px; line-height: 1.35; }
.rp-cg__look-price { font-size: 12.5px; opacity: .8; white-space: nowrap; }

.rp-cg__editorial--quote { padding: 40px 12px; text-align: center; }
.rp-cg__quote { margin: 0 auto; max-width: 760px; }
.rp-cg__quote blockquote {
  margin: 0;
  font-family: "RP Awesome Serif Trial", Georgia, serif;
  font-size: clamp(26px, 6.6vw, 42px);
  font-style: italic;
  line-height: 1.15;
  background: linear-gradient(100deg, #c4566a, #e48a95 55%, #f2a7aa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.rp-cg__quote figcaption { margin-top: 14px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #c4566a; }

.rp-cg__empty { padding: 40px 0; text-align: center; font-size: 14px; color: var(--cg-muted); }
.rp-cg__empty[hidden] { display: none; }
.rp-cg .rp-cg__reset, .rp-cg .rp-cg__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid var(--cg-accent);
  border-radius: var(--cg-chip-radius);
  background: var(--cg-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--cg-accent-ink);
  cursor: pointer;
}
.rp-cg .rp-cg__reset { background: transparent; color: var(--cg-accent); }
.rp-cg--makeup .rp-cg__more { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.rp-cg__more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.rp-cg__more[hidden] { display: none; }

.rp-cg__trust { display: grid; gap: 12px; margin: 48px 0 0; padding: 22px 0 0; border-top: 1px solid var(--cg-line); list-style: none; }
.rp-cg__trust li { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--cg-ink); }
.rp-cg__trust svg { width: 20px; height: 20px; flex: none; color: var(--cg-kicker); }

@media screen and (min-width: 750px) {
  rp-collection-grid.rp-cg { padding: 56px 0 88px; }
  .rp-cg__inner { padding: 0 32px; }
  .rp-cg__chips { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .rp-cg--makeup .rp-cg__chips { justify-content: flex-start; }
  .rp-cg__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; }
  .rp-cg__editorial--spotlight, .rp-cg__editorial--look { grid-template-columns: 1fr 1fr; }
  .rp-cg__ed-media { aspect-ratio: auto; min-height: 460px; }
  .rp-cg__ed-copy { padding: 48px; }
  .rp-cg__trust { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (min-width: 1100px) {
  .rp-cg__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
  .rp-cg--makeup .rp-cg__grid { gap: 36px 14px; }
}

/* WordPress: produto sem foto (no lugar do placeholder_svg_tag da Shopify). */
.rp-cg__placeholder { display: block; }
/* Mesmo word-break dos títulos do tema base da loja publicada (h1-h6 { word-break: break-word }). */
rp-collection-grid.rp-cg :is(h1, h2, h3, h4, h5, h6) { word-break: break-word; }
