/**
 * Category hub grids + trust bars — card visuals live in craft-category-card.css.
 */

/* ── Section header (homepage only) ── */
body.page-home .section-head--collections {
  align-items: start;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: 0;
  border-bottom: none;
  gap: 1.25rem 2rem;
}

body.page-home .featured-eyebrow--collections {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 43, 72, 0.42);
}

body.page-home .featured-collections-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--home-ink, #1a2b48);
}

body.page-home .featured-collections-title__accent {
  font-weight: 700;
  color: var(--cg-teal-deep, #1e8e84);
}

body.page-home .featured-collections-title__sparkle {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.72em;
  color: var(--cg-teal, #26a69a);
  vertical-align: super;
  line-height: 0;
}

body.page-home .featured-collections-sub {
  margin-top: 0.65rem;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(26, 43, 72, 0.58);
}

body.page-home .featured-collections-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 1.15rem 0.62rem 0.72rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(38, 166, 154, 0.28);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  color: var(--home-ink, #1a2b48);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

body.page-home .featured-collections-pill:hover,
body.page-home .featured-collections-pill:focus-visible {
  border-color: rgba(38, 166, 154, 0.55);
  box-shadow: 0 12px 32px rgba(38, 166, 154, 0.14);
  transform: translateY(-1px);
}

body.page-home .featured-collections-pill__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(216, 243, 239, 0.65);
  color: var(--cg-teal-deep, #1e8e84);
  flex-shrink: 0;
}

body.page-home .featured-collections-pill__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

body.page-home .featured-collections-pill__arrow {
  color: var(--cg-teal, #26a69a);
  font-size: 1.05em;
  line-height: 1;
}

@media (min-width: 720px) {
  body.page-home .featured-collections-pill {
    justify-self: end;
    align-self: start;
    margin-top: 0.35rem;
    white-space: nowrap;
  }
}

/* ── Category grid (sitewide) ── */
.featured-collections-grid,
.cg-category-grid,
.rm-cat-hub .featured-collections-grid,
.rm-cat-hub .cg-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 3vw, 1.35rem);
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

@media (min-width: 400px) {
  .featured-collections-grid,
  .cg-category-grid,
  .rm-cat-hub .featured-collections-grid,
  .rm-cat-hub .cg-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 540px) {
  .featured-collections-grid,
  .cg-category-grid,
  .rm-cat-hub .featured-collections-grid,
  .rm-cat-hub .cg-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .featured-collections-grid,
  .cg-category-grid,
  .rm-cat-hub .featured-collections-grid,
  .rm-cat-hub .cg-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .featured-collections-grid,
  .cg-category-grid,
  .rm-cat-hub .featured-collections-grid,
  .rm-cat-hub .cg-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* ── Trust bar (homepage only) ── */
body.page-home .featured-collections-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  body.page-home .featured-collections-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
}

@media (min-width: 900px) {
  body.page-home .featured-collections-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  body.page-home .featured-collections-trust {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

body.page-home .featured-collections-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

body.page-home .featured-collections-trust__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: rgba(216, 243, 239, 0.55);
  color: var(--cg-teal-deep, #1e8e84);
}

body.page-home .featured-collections-trust__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

body.page-home .featured-collections-trust__icon--love {
  color: #e07a8a;
  background: rgba(255, 228, 233, 0.7);
}

body.page-home .featured-collections-trust__icon--ship {
  color: #3b82c4;
  background: rgba(219, 234, 254, 0.75);
}

body.page-home .featured-collections-trust__icon--customers {
  color: #c9a227;
  background: rgba(255, 243, 205, 0.75);
}

body.page-home .featured-collections-trust__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

body.page-home .featured-collections-trust__copy strong {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--home-ink, #1a2b48);
}

body.page-home .featured-collections-trust__copy span {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(26, 43, 72, 0.52);
  overflow-wrap: anywhere;
}

/* ── Mobile / touch refinements ── */
body.page-home .band-shop--home {
  overflow-x: clip;
}

body.page-home .band-shop-inner--home {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.rm-cat-hub,
#rgGrid.featured-collections-grid {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 719px) {
  body.page-home .section-head--collections {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  body.page-home .featured-collections-title {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    max-width: 100%;
  }

  body.page-home .featured-collections-sub {
    font-size: 0.88rem;
    max-width: 100%;
  }

  body.page-home .featured-collections-pill {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding: 0.72rem 1rem;
    gap: 0.55rem;
  }

  body.page-home .featured-collections-pill__text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    line-height: 1.35;
  }

  body.page-home .featured-collections-trust {
    padding: 1rem 0.85rem;
    border-radius: 14px;
  }

  body.page-home .featured-collections-trust__item {
    gap: 0.55rem;
    padding: 0.15rem 0;
  }

  body.page-home .featured-collections-trust__copy strong {
    font-size: 0.74rem;
  }

  body.page-home .featured-collections-trust__copy span {
    font-size: 0.66rem;
  }
}

@media (max-width: 399px) {
  .featured-collections-grid,
  .cg-category-grid {
    gap: 0.9rem;
  }
}

@media (pointer: coarse) {
  body.page-home .featured-collections-pill:active {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .featured-collections-pill {
    transition: none;
  }
}

/* ── Sitewide category section shell (cg-category-section markup) ── */
:root {
  --cg-ink: #0d1b2a;
  --cg-teal: #0f5a48;
  --cg-teal-bright: #1b7a74;
}

body.page-home #shop {
  scroll-margin-top: 5.75rem;
}

@media (max-width: 640px) {
  body.page-home #shop {
    scroll-margin-top: 4.75rem;
  }
}

.band-shop-inner--home,
.rm-cat-hub {
  position: relative;
  isolation: isolate;
}

.band-shop-inner--home::before,
.rm-cat-hub::before {
  content: "";
  position: absolute;
  inset: -0.5rem -0.25rem;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 34% at 98% 6%, rgba(232, 160, 176, 0.22), transparent 62%),
    radial-gradient(ellipse 48% 38% at 2% 94%, rgba(212, 180, 120, 0.18), transparent 58%),
    radial-gradient(ellipse 36% 28% at 10% 14%, rgba(204, 236, 228, 0.12), transparent 55%);
}

.band-shop-inner--home > *,
.rm-cat-hub > * {
  position: relative;
  z-index: 1;
}

.cg-category-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: 0;
  border-bottom: none;
  gap: 1.25rem 2rem;
}

@media (min-width: 720px) {
  .cg-category-section__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.cg-category-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cg-teal-bright);
}

.cg-category-section__eyebrow-star {
  font-size: 0.85em;
  line-height: 1;
  color: var(--cg-teal-bright);
}

.cg-category-section__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cg-ink);
}

.cg-category-section__title-accent {
  font-weight: 700;
  color: var(--cg-teal);
}

.cg-category-section__sparkle {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.72em;
  color: var(--cg-teal-bright);
  vertical-align: super;
  line-height: 0;
}

.cg-category-section__sub {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(13, 27, 42, 0.56);
}

.cg-category-section__ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 90, 72, 0.42);
  background: rgba(255, 255, 255, 0.35);
  color: var(--cg-teal);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  max-width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.cg-category-section__ghost-btn:hover,
.cg-category-section__ghost-btn:focus-visible {
  border-color: rgba(15, 90, 72, 0.78);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(15, 90, 72, 0.12);
  transform: translateY(-1px);
}

@media (min-width: 720px) {
  .cg-category-section__ghost-btn {
    justify-self: end;
    align-self: start;
    margin-top: 0.35rem;
  }
}

.rm-cat-hub__head.cg-category-section__head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.rm-cat-hub__head .cg-category-section__title {
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
}

.cg-category-section__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.15rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .cg-category-section__trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cg-category-section__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }

  .cg-category-section__trust-item:not(:last-child) {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    padding-right: 0.85rem;
    margin-right: 0.15rem;
  }
}

.cg-category-section__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.cg-category-section__trust-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--cg-teal-bright);
}

.cg-category-section__trust-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.cg-category-section__trust-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.cg-category-section__trust-copy strong {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cg-ink);
}

.cg-category-section__trust-copy span {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(13, 27, 42, 0.52);
  overflow-wrap: anywhere;
}

@media (max-width: 719px) {
  .cg-category-section__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .cg-category-section__title {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    max-width: 100%;
  }

  .cg-category-section__sub {
    font-size: 0.88rem;
    max-width: 100%;
  }

  .cg-category-section__ghost-btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0.72rem 1rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .cg-category-section__trust {
    padding: 1rem 0.85rem;
    border-radius: 14px;
  }

  .cg-category-section__trust-item {
    gap: 0.55rem;
    padding: 0.15rem 0;
  }

  .cg-category-section__trust-copy strong {
    font-size: 0.74rem;
  }

  .cg-category-section__trust-copy span {
    font-size: 0.66rem;
  }
}

@media (pointer: coarse) {
  .cg-category-section__ghost-btn:active {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-category-section__ghost-btn {
    transition: none;
  }
}
