/* Glo Little Luxury — /categories/ v2 (duplicate), from the Framer /categories
 * design. Loaded with ?design=v2 on the categories page, after glo-v2-base.css.
 * Scoped to body.glo-categories-v2 and .glo-cats-v2. Written up in
 * STYLE-GUIDE.md.
 *
 *   Desktop (4 columns)            Tablet (2)        Phone (2)
 *   [ Hair Care  2x2 ][Baby][Face] [ Hair Care ]     [ Hair Care ]
 *   [                ][ 1x2][Body] [Baby][Face ]     [ Baby Care ]
 *   [Lotn][Crm ][Serm][Food ]      [    ][Body ]     [Face][Body ]
 *   [Choc][Thai][ Browse all  ]    [Lotn][Crm  ] ... [ Browse all ]
 *
 * "Browse all" spans whatever the last row leaves open (is-span-lg-N,
 * is-span-md-N, set in the template), so no row ends on an empty cell.
 */

.glo-cats-v2 { background: var(--glo-bg); }

/* ---------- Title band ---------- */
.glo-cats-v2__head { background: var(--glo-cream); padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.glo-cats-v2__head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.glo-categories-v2 .glo-cats-v2__head h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 12px; }
.glo-categories-v2 .glo-cats-v2__head p { font-size: 16px; line-height: 1.6; color: var(--glo-ink-soft); max-width: 46ch; margin: 0; }

.glo-cats-v2__stats { display: flex; gap: 0; margin: 0; background: var(--glo-surface); border-radius: var(--glo-radius-md); padding: 14px 8px; }
.glo-cats-v2__stats > div { display: flex; flex-direction: column-reverse; padding: 0 20px; min-width: 104px; }
.glo-cats-v2__stats > div + div { border-left: 1px solid var(--glo-border); }
.glo-cats-v2__stats dd { margin: 0; font-family: var(--glo-font-display); font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--glo-ink); }
.glo-cats-v2__stats dt { font-size: 13px; color: var(--glo-ink-soft); }

/* ---------- Tile grid ---------- */
.glo-cats-v2__grid-wrap { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 7vw, 96px); }
.glo-cats-v2__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  grid-auto-flow: dense;
  gap: 16px;
}

.glo-cats-v2__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
  padding: 22px;
  border-radius: var(--glo-radius-lg);
  overflow: hidden;
  color: var(--glo-ink);
  transition: background-color .16s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1);
}
.glo-categories-v2 a.glo-cats-v2__tile { color: var(--glo-ink); }
.glo-cats-v2__tile:active { transform: scale(.99); }
.glo-cats-v2__tile-body { display: flex; flex-direction: column; gap: 6px; height: 100%; }

.glo-cats-v2__name { font-family: var(--glo-font-display); font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.glo-cats-v2__desc { font-size: 14px; line-height: 1.5; color: var(--glo-ink-soft); }
.glo-cats-v2__count { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 500; color: var(--glo-ink-soft); font-variant-numeric: tabular-nums; }

/* Tints: one ground per tile, all from the palette, all with Ink text. */
.glo-cats-v2__tile--teal  { background: var(--glo-teal-50); }
.glo-cats-v2__tile--linen { background: var(--glo-linen); }
.glo-cats-v2__tile--cream { background: var(--glo-cream); }
.glo-cats-v2__tile--rouge { background: var(--glo-rouge-50); }
.glo-cats-v2__tile--milk  { background: var(--glo-surface); box-shadow: inset 0 0 0 1px var(--glo-border); }
.glo-cats-v2__tile--teal:hover  { background: var(--glo-teal-100); }
.glo-cats-v2__tile--linen:hover,
.glo-cats-v2__tile--cream:hover,
.glo-cats-v2__tile--milk:hover  { background: #E6DFCF; }
.glo-cats-v2__tile--rouge:hover { background: #FAD9DF; }
/* Guide 1.2 families (2 Oct): blush, pale lilac and pale mist, charcoal text
   on each well above 4.5:1. Rouge pink stays for the Save badge only. Hover
   mixes in a little of the family's mid tone. */
.glo-cats-v2__tile--blush { background: var(--glo-blush); }
.glo-cats-v2__tile--lilac { background: var(--glo-lilac); }
.glo-cats-v2__tile--mist  { background: var(--glo-teal-100); }
.glo-cats-v2__tile--blush:hover { background: color-mix(in srgb, var(--glo-blush) 82%, var(--glo-rose)); }
.glo-cats-v2__tile--lilac:hover { background: color-mix(in srgb, var(--glo-lilac) 78%, var(--glo-lavender)); }
.glo-cats-v2__tile--mist:hover  { background: var(--glo-teal-200); }

/* Hair Care: the big dark tile. */
.glo-cats-v2__tile--hair { grid-column: span 2; grid-row: span 2; background: var(--glo-teal-deep); padding: clamp(24px, 3vw, 36px); }
.glo-categories-v2 a.glo-cats-v2__tile--hair { color: #fff; }
.glo-cats-v2__tile--hair:hover { background: #164452; } /* deep teal, one step lighter */
.glo-cats-v2__tile--hair .glo-cats-v2__tile-body { justify-content: flex-end; }
.glo-cats-v2__tile--hair .glo-cats-v2__name { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; color: #fff; }
.glo-cats-v2__tile--hair .glo-cats-v2__desc { color: var(--glo-teal-100); font-size: 15px; max-width: 40ch; }
.glo-cats-v2__tile--hair .glo-cats-v2__count { color: #fff; font-weight: 600; padding-top: 10px; margin-top: 8px; }
.glo-cats-v2__status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--glo-radius-pill);
  background: var(--glo-coral);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

/* Baby Care: photo tile. Text sits on a band at the bottom, never on the photo. */
.glo-cats-v2__tile--photo { grid-row: span 2; padding: 0; background: var(--glo-linen); gap: 0; }
.glo-cats-v2__photo { width: 100%; flex: 1 1 auto; min-height: 0; height: 100%; object-fit: cover; display: block; }
.glo-cats-v2__tile--photo .glo-cats-v2__tile-body { flex: 0 0 auto; height: auto; padding: 16px 20px 18px; background: var(--glo-surface); }
.glo-cats-v2__tile--photo .glo-cats-v2__count { margin-top: 0; padding-top: 0; }
.glo-cats-v2__tile--photo:hover .glo-cats-v2__tile-body { background: var(--glo-cream); }

/* Browse all */
.glo-cats-v2__tile--all { background: var(--glo-surface); box-shadow: inset 0 0 0 1.5px var(--glo-teal-bright); justify-content: center; }
.glo-cats-v2__tile--all .glo-cats-v2__tile-body { justify-content: center; }
.glo-cats-v2__tile--all .glo-cats-v2__name { color: var(--glo-teal-ink); }
.glo-cats-v2__tile--all:hover { background: var(--glo-teal-50); }
.glo-cats-v2__tile--all.is-span-lg-1 { grid-column: span 1; }
.glo-cats-v2__tile--all.is-span-lg-2 { grid-column: span 2; }
.glo-cats-v2__tile--all.is-span-lg-3 { grid-column: span 3; }
.glo-cats-v2__tile--all.is-span-lg-4 { grid-column: span 4; }

/* ---------- Brands ---------- */
.glo-cats-v2__brands { background: var(--glo-cream); padding: clamp(40px, 6vw, 80px) 0; }
.glo-categories-v2 .glo-cats-v2__brands h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 10px; }
.glo-categories-v2 .glo-cats-v2__brands p { font-size: 15px; line-height: 1.6; color: var(--glo-ink-soft); max-width: 56ch; margin: 0 0 24px; }
.glo-cats-v2__brand-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.glo-categories-v2 .glo-cats-v2__brand-list li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--glo-radius-pill);
  background: var(--glo-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--glo-ink);
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .glo-cats-v2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glo-cats-v2__tile--hair { grid-column: span 2; grid-row: span 1; min-height: 260px; }
  .glo-cats-v2__tile--all.is-span-md-1 { grid-column: span 1; }
  .glo-cats-v2__tile--all.is-span-md-2 { grid-column: span 2; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  .glo-cats-v2__head-inner { align-items: stretch; }
  .glo-cats-v2__stats { width: 100%; }
  .glo-cats-v2__stats > div { flex: 1 1 0; min-width: 0; }
  .glo-cats-v2__grid { gap: 10px; grid-auto-rows: minmax(132px, auto); }
  .glo-cats-v2__tile { padding: 16px; min-height: 132px; }
  .glo-cats-v2__name { font-size: 19px; }
  .glo-cats-v2__desc { font-size: 13px; }
  .glo-cats-v2__tile--hair { min-height: 240px; }
  .glo-cats-v2__tile--photo { grid-column: span 2; grid-row: span 1; min-height: 0; }
  .glo-cats-v2__tile--photo .glo-cats-v2__photo { height: 220px; flex: 0 0 auto; }
  .glo-cats-v2__tile--all { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .glo-cats-v2__tile { transition: none; }
  .glo-cats-v2__tile:active { transform: none; }
}
