:root {
  /* Align with main marketing site (platform app): Geist body + Poppins headings + woven purple accents */
  --font-body: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent-brand: #6432a8;
  --text-lead: #6b7280;

  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --ink: #121212;
  --muted: #6f6a64;
  --line: #e8e0d6;
  --accent: #2d2d2d;
  --accent-soft: #6c5ce7;
  --shadow: 0 18px 42px rgba(18, 18, 18, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1320px;
}

/* Custom front-page only (Zigcy header/footer stay as-is) */
body.home #content .site-main {
  max-width: var(--container);
  width: min(calc(100% - 40px), var(--container));
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-main,
.site-main--default {
  padding: 36px 0 96px;
}

.site-main > * + *,
.site-main--default > * + * {
  margin-top: 34px;
}

/* WooCommerce: sidebar widgets (Appearance → Widgets → Shop sidebar) */
.woocommerce-page .widget-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.button--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.84rem;
}

.button--disabled,
.button[disabled],
button[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Section titles: match marketing homepage (text-3xl / sm:text-4xl, semibold, tight) */
.section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #111827;
}

/* Hero slide headline: still prominent, same font family as main site hero */
.hero-slide__title {
  margin: 0;
  max-width: 9ch;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.page-title,
.entry-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow),
.section-heading__link,
.shop-hero__copy,
.content-card p,
.service-card p,
.testimonial-card p,
.product-summary__description,
.site-footer__newsletter-copy {
  margin: 0;
  color: var(--muted);
}

/* Eyebrow inside section heading must stay purple (see .section-heading p rule above). */
.section-heading .eyebrow {
  color: var(--accent-brand);
}

.hero-slider__grid,
.collection-grid,
.service-grid,
.testimonial-grid,
.instagram-strip,
.product-info-grid,
.site-footer__grid,
.promo-banner-row {
  display: grid;
  gap: 24px;
}

.hero-slider__grid {
  display: flex;
  gap: 0;
  transition: transform 360ms ease;
  will-change: transform;
}

.hero-slider {
  position: relative;
}

.hero-slider__viewport {
  overflow: hidden;
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slider__dot,
.hero-slider__arrow {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 50%;
}

.hero-slider__dot.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.hero-slider__arrow {
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
}

.hero-slider__arrow:hover {
  transform: translateY(-1px);
}

.hero-slide,
.shop-hero,
.content-card,
.shop-sidebar__card,
.service-card,
.testimonial-card,
.product-info-card,
.collection-card,
.promo-banner,
.product-summary,
.product-gallery__main,
.product-gallery__thumb,
.product-card,
.site-footer__grid > * {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-slide,
.shop-hero {
  position: relative;
  min-height: 460px;
  padding: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-slide::before,
.shop-hero::before,
.promo-banner::before,
.collection-card__visual::before,
.instagram-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(18, 18, 18, 0.26)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 28%);
}

.hero-slide > *,
.shop-hero > *,
.promo-banner > *,
.collection-card__visual > *,
.instagram-tile > * {
  position: relative;
  z-index: 1;
}

.hero-slide__copy {
  max-width: 28ch;
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.hero-slide__deck {
  margin-top: auto;
}

.hero-slide__book-stack {
  position: absolute;
  inset: 24px 24px auto auto;
  width: 140px;
  height: 180px;
  pointer-events: none;
  opacity: 0.92;
}

.hero-slide__book-stack span {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(18, 18, 18, 0.18);
}

.hero-slide__book-stack span:nth-child(1) {
  inset: 8px 0 0 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-slide__book-stack span:nth-child(2) {
  inset: 44px 36px 18px 0;
  background: rgba(18, 18, 18, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-slide__book-stack span:nth-child(3) {
  inset: 74px 8px 0 54px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Customizer: optional photo replaces book-stack (see home_slide_*_image) */
.hero-slide__visual {
  position: absolute;
  inset: 24px 24px auto auto;
  width: min(42%, 320px);
  aspect-ratio: 2 / 3;
  pointer-events: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(18, 18, 18, 0.28);
}

.hero-slide__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Collection cards: tone overlay must not hide uploaded photos */
.collection-card__visual--image::before {
  background-color: transparent;
}

.hero-slide .eyebrow,
.hero-slide__title,
.promo-banner,
.product-card__visual,
.product-gallery__main,
.product-gallery__thumb,
.shop-hero .page-title,
.shop-hero .eyebrow {
  color: #fff;
}

/*
 * Zigcy base: `a { color: royalblue }` — promo banners and product titles are <a>,
 * so link blue wins without explicit overrides. Fix contrast + hierarchy here.
 */
body.home #content .site-main a.promo-banner,
body.home #content .site-main a.promo-banner:visited {
  text-decoration: none;
}

/* Dark / cool banner tones: keep light text (good contrast vs royalblue on plum) */
body.home #content .site-main a.promo-banner.tone-plum,
body.home #content .site-main a.promo-banner.tone-plum:visited,
body.home #content .site-main a.promo-banner.tone-plum:hover,
body.home #content .site-main a.promo-banner.tone-plum:focus,
body.home #content .site-main a.promo-banner.tone-night,
body.home #content .site-main a.promo-banner.tone-night:visited,
body.home #content .site-main a.promo-banner.tone-night:hover,
body.home #content .site-main a.promo-banner.tone-night:focus,
body.home #content .site-main a.promo-banner.tone-violet,
body.home #content .site-main a.promo-banner.tone-violet:visited,
body.home #content .site-main a.promo-banner.tone-violet:hover,
body.home #content .site-main a.promo-banner.tone-violet:focus,
body.home #content .site-main a.promo-banner.tone-emerald,
body.home #content .site-main a.promo-banner.tone-emerald:visited,
body.home #content .site-main a.promo-banner.tone-emerald:hover,
body.home #content .site-main a.promo-banner.tone-emerald:focus,
body.home #content .site-main a.promo-banner.tone-rose,
body.home #content .site-main a.promo-banner.tone-rose:visited,
body.home #content .site-main a.promo-banner.tone-rose:hover,
body.home #content .site-main a.promo-banner.tone-rose:focus,
body.home #content .site-main a.promo-banner.tone-peach,
body.home #content .site-main a.promo-banner.tone-peach:visited,
body.home #content .site-main a.promo-banner.tone-peach:hover,
body.home #content .site-main a.promo-banner.tone-peach:focus,
body.home #content .site-main a.promo-banner.tone-olive,
body.home #content .site-main a.promo-banner.tone-olive:visited,
body.home #content .site-main a.promo-banner.tone-olive:hover,
body.home #content .site-main a.promo-banner.tone-olive:focus {
  color: #faf8f5;
}

body.home #content .site-main a.promo-banner.tone-plum .eyebrow,
body.home #content .site-main a.promo-banner.tone-night .eyebrow,
body.home #content .site-main a.promo-banner.tone-violet .eyebrow,
body.home #content .site-main a.promo-banner.tone-emerald .eyebrow,
body.home #content .site-main a.promo-banner.tone-rose .eyebrow,
body.home #content .site-main a.promo-banner.tone-peach .eyebrow,
body.home #content .site-main a.promo-banner.tone-olive .eyebrow {
  color: rgba(250, 248, 245, 0.78);
}

/* Warm / lighter banner tones: dark type reads better than white or blue */
body.home #content .site-main a.promo-banner.tone-sand,
body.home #content .site-main a.promo-banner.tone-sand:visited,
body.home #content .site-main a.promo-banner.tone-sand:hover,
body.home #content .site-main a.promo-banner.tone-sand:focus,
body.home #content .site-main a.promo-banner.tone-amber,
body.home #content .site-main a.promo-banner.tone-amber:visited,
body.home #content .site-main a.promo-banner.tone-amber:hover,
body.home #content .site-main a.promo-banner.tone-amber:focus,
body.home #content .site-main a.promo-banner.tone-stone,
body.home #content .site-main a.promo-banner.tone-stone:visited,
body.home #content .site-main a.promo-banner.tone-stone:hover,
body.home #content .site-main a.promo-banner.tone-stone:focus,
body.home #content .site-main a.promo-banner.tone-khaki,
body.home #content .site-main a.promo-banner.tone-khaki:visited,
body.home #content .site-main a.promo-banner.tone-khaki:hover,
body.home #content .site-main a.promo-banner.tone-khaki:focus {
  color: #1a1612;
}

body.home #content .site-main a.promo-banner.tone-sand .eyebrow,
body.home #content .site-main a.promo-banner.tone-amber .eyebrow,
body.home #content .site-main a.promo-banner.tone-stone .eyebrow,
body.home #content .site-main a.promo-banner.tone-khaki .eyebrow {
  color: rgba(26, 22, 18, 0.62);
}

/* Photo backgrounds: light text even on sand/stone tones */
body.home #content .site-main a.promo-banner.promo-banner--image,
body.home #content .site-main a.promo-banner.promo-banner--image:visited,
body.home #content .site-main a.promo-banner.promo-banner--image:hover,
body.home #content .site-main a.promo-banner.promo-banner--image:focus {
  color: #faf8f5;
}

body.home #content .site-main a.promo-banner.promo-banner--image .eyebrow,
body.home #content .site-main a.promo-banner.promo-banner--image > span:last-child {
  color: rgba(250, 248, 245, 0.82);
}

/* Product cards: title link matches body copy (not royalblue) */
body.home #content .site-main .product-card__title a,
body.home #content .site-main .product-card__title a:visited {
  color: var(--ink);
  text-decoration: none;
}

body.home #content .site-main .product-card__title a:hover,
body.home #content .site-main .product-card__title a:focus {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Card image area is also an anchor; keep intended light copy on tone blocks */
body.home #content .site-main a.product-card__media,
body.home #content .site-main a.product-card__media:visited,
body.home #content .site-main a.product-card__media:hover,
body.home #content .site-main a.product-card__media:focus {
  color: #fff;
  text-decoration: none;
}

.hero-slide {
  min-width: 100%;
}

.homepage-section {
  padding-top: 12px;
}

.home-lead {
  max-width: 620px;
  color: var(--text-lead);
  line-height: 1.625;
  font-size: 1rem;
}

.section-heading p.home-lead {
  color: var(--text-lead);
}

.homepage-section--tight {
  padding-top: 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-list__item,
.pill-list span,
.keyword-list a,
.pagination-preview span,
.pagination-preview a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}

.tab-list__item.is-active,
.pagination-preview .is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  gap: 24px;
}

.product-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.product-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-card__media {
  position: relative;
  min-height: 320px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface-soft);
}

.product-card__actions,
.product-card__quick,
.product-card__sizes,
.product-card__cta-row,
.product-card__meta-row,
.product-card__pricing,
.product-card__inventory,
.product-card__swatches,
.site-footer__bottom-row,
.site-footer__payments,
.shop-toolbar,
.shop-toolbar__controls,
.product-summary__purchase,
.product-gallery__thumbs,
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product-card__actions {
  justify-content: space-between;
  gap: 8px 16px;
}

.product-card__actions a,
.product-card__quick a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.product-card__badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card__badge--sale {
  background: #121212;
  color: #fff;
}

.product-card__visual {
  display: grid;
  place-items: end start;
  min-height: 180px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.product-card__visual span {
  max-width: 10ch;
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.product-card__meta-row {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-card__sizes span,
.product-summary .pill-list span,
.quantity-preview button,
.quantity-preview input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.product-card__cta-row {
  justify-content: space-between;
}

.product-card__inventory {
  color: var(--muted);
  font-size: 0.8rem;
}

.product-card__style {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card__swatch-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__actions,
.product-card__quick,
.product-card__sizes,
.product-card__meta-row,
.product-card__style,
.product-card__swatch-label,
.product-card__swatches,
.product-summary__meta-block {
  display: none;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.24rem;
  line-height: 1.1;
  font-weight: 600;
}

.product-card__image-wrap {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 50%;
}

.swatch--white { background: #f5f5f5; }
.swatch--purple { background: #8d65f5; }
.swatch--red { background: #e45f5f; }
.swatch--green { background: #6d9b67; }
.swatch--yellow { background: #e6c151; }
.swatch--pink { background: #ef93c0; }
.swatch--stone { background: #c0b7aa; }
.swatch--black { background: #121212; }
.swatch--cream { background: #f4ebdb; }
.swatch--khaki { background: #a9a178; }
.swatch--navy { background: #2a3e5f; }
.swatch--emerald { background: #0f7a66; }
.swatch--gold { background: #d7b04c; }
.swatch--violet { background: #6f6496; }
.swatch--night { background: #2a2f3d; }

.product-card__pricing strong,
.product-summary__pricing strong {
  font-size: 1.18rem;
}

.product-card__pricing del,
.product-summary__pricing del {
  color: var(--muted);
}

.product-card__pricing span {
  color: #c45535;
  font-weight: 600;
}

.product-card__body > .button {
  width: 100%;
  justify-content: center;
}

/*
 * Product card CTA is an <a class="button">. Browsers and the parent theme style
 * a:visited / a:hover link colors, which overrides .button { color: #fff } and
 * yields blue/purple text on the black pill.
 */
body.home #content .site-main .product-card__body > a.button.button--small,
body.home #content .site-main .product-card__body > a.button.button--small:visited {
  color: #fff;
  text-decoration: none;
}

body.home #content .site-main .product-card__body > a.button.button--small:hover,
body.home #content .site-main .product-card__body > a.button.button--small:focus {
  color: #fff;
  text-decoration: none;
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.collection-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.collection-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  text-align: center;
}

.collection-card__visual,
.instagram-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: calc(var(--radius) - 10px);
  overflow: hidden;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.collection-card__visual {
  min-height: 210px;
  align-items: end;
  padding-bottom: 22px;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.collection-card__visual strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  text-transform: none;
  font-weight: 600;
}

/* Customizer: optional photo (see home_collection_*_image) */
.collection-card__visual--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.collection-card__visual--image .collection-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.collection-card__visual--image::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0.25), rgba(8, 8, 12, 0.58)),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.14), transparent 45%);
}

.collection-card__visual--image > strong {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.collection-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Collection cards are <a>; Zigcy `a { color: royalblue }` made labels bright blue */
body.home #content .site-main a.collection-card,
body.home #content .site-main a.collection-card:visited {
  text-decoration: none;
  color: inherit;
}

body.home #content .site-main a.collection-card .collection-card__name {
  color: #111827;
}

body.home #content .site-main a.collection-card:hover .collection-card__name,
body.home #content .site-main a.collection-card:focus-visible .collection-card__name {
  color: var(--accent-brand);
}

.promo-banner-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-banner {
  position: relative;
  min-height: 240px;
  padding: 30px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 10px;
}

.promo-banner strong {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.promo-banner--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.promo-banner--image::before {
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0.2), rgba(8, 8, 12, 0.55)),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 40%);
}

.promo-banner--image strong {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.testimonial-card,
.product-info-card {
  padding: 28px;
}

.service-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1dcc1, #dbb48e);
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: #3a2a14;
  font-weight: 700;
  font-size: 0.82rem;
}

.service-card h3,
.testimonial-card h3,
.product-info-card h2,
.shop-sidebar__card h2,
.site-footer__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 600;
  color: #111827;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card__meta {
  display: grid;
  gap: 2px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.instagram-strip {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.instagram-tile {
  min-height: 180px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-hero {
  min-height: 320px;
}

.breadcrumb-list {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.shop-layout,
.product-preview__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

.shop-sidebar {
  display: grid;
  gap: 20px;
}

.shop-sidebar__card {
  padding: 24px;
}

.filter-list {
  display: grid;
  gap: 12px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-content {
  display: grid;
  gap: 24px;
}

.shop-toolbar {
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.pagination-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 8px;
}

.product-gallery {
  display: grid;
  gap: 18px;
}

.product-gallery__main {
  position: relative;
  min-height: 680px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--surface-soft);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-gallery__thumb {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  background: var(--surface-soft);
}

.product-summary {
  padding: 34px;
}

.product-summary__rating,
.product-summary__details p {
  margin: 0;
  color: var(--muted);
}

.product-summary__pricing,
.product-summary__meta-block,
.product-summary__purchase,
.product-summary__details {
  margin-top: 20px;
}

.product-summary__pricing {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-gallery__image,
.product-gallery__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__image {
  min-height: 680px;
}

.product-gallery__thumb-image {
  min-height: 120px;
}

.product-summary__purchase form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.product-summary__purchase form.cart .quantity {
  margin: 0;
}

.product-summary__purchase form.cart .qty {
  width: 74px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.product-summary__purchase form.cart button.single_add_to_cart_button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font-weight: 600;
}

.product-summary__details {
  display: grid;
  gap: 8px;
}

.product-summary__meta-block h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quantity-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-preview input {
  width: 54px;
  text-align: center;
}

.stock-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  padding: 36px;
}

.entry-meta {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tone-peach,
.tone-peach::before {
  background-color: #cc8a63;
}

.tone-sand,
.tone-sand::before {
  background-color: #b39b84;
}

.tone-plum,
.tone-plum::before {
  background-color: #6b5377;
}

.tone-rose,
.tone-rose::before {
  background-color: #bf7870;
}

.tone-amber,
.tone-amber::before {
  background-color: #c0874e;
}

.tone-olive,
.tone-olive::before {
  background-color: #71886b;
}

.tone-violet,
.tone-violet::before {
  background-color: #6f6496;
}

.tone-stone,
.tone-stone::before {
  background-color: #9f9387;
}

.tone-night,
.tone-night::before {
  background-color: #2a2f3d;
}

.tone-khaki,
.tone-khaki::before {
  background-color: #8a8062;
}

.tone-emerald,
.tone-emerald::before {
  background-color: #2d7868;
}

@media (max-width: 1200px) {
  .product-grid--four,
  .product-grid--five,
  .product-grid--six,
  .service-grid,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .instagram-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar__inner,
  .site-header__inner,
  .section-heading,
  .shop-layout,
  .product-preview__layout,
  .product-info-grid,
  .promo-banner-row,
  .testimonial-grid,
  .product-grid--three {
    grid-template-columns: 1fr;
  }

  .topbar__inner,
  .site-header__inner {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 14px 0;
  }

  .site-utility,
  .menu,
  .footer-menu,
  .site-footer__payments,
  .site-footer__bottom-row {
    justify-content: center;
  }

  .site-nav .menu > li > .sub-menu {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    padding: 16px;
  }

  .shop-layout,
  .product-preview__layout {
    display: grid;
  }

  .product-grid--three,
  .product-grid--four,
  .product-grid--five,
  .product-grid--six,
  .service-grid,
  .site-footer__grid,
  .testimonial-grid,
  .promo-banner-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-main,
  .site-main--default {
    width: min(calc(100% - 24px), var(--container));
    padding: 24px 0 72px;
  }

  .topbar__inner,
  .site-header__inner,
  .site-footer__inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-slide,
  .shop-hero,
  .product-summary,
  .service-card,
  .testimonial-card,
  .shop-sidebar__card,
  .product-info-card,
  .content-card,
  .site-footer__grid > * {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-slider__grid,
  .collection-grid,
  .instagram-strip,
  .product-grid--four,
  .product-grid--five,
  .product-grid--six,
  .product-gallery__thumbs {
    grid-template-columns: 1fr;
  }

  .hero-slide,
  .shop-hero {
    min-height: 360px;
    padding: 22px;
  }

  .hero-slide__book-stack {
    width: 110px;
    height: 148px;
  }

  .hero-slide__visual {
    width: min(200px, 46vw);
    inset: 18px 18px auto auto;
  }

  .product-card__cta-row,
  .shop-toolbar,
  .site-footer__payments,
  .site-footer__bottom-row,
  .product-summary__purchase {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-gallery__main {
    min-height: 420px;
  }
}

/*
 * Homepage “What’s new” + “On sale / best sellers”: compact catalog rows.
 * Avoid minmax(..., 1fr) here — it stretches columns on wide screens and makes covers feel huge.
 */
body.home #content .site-main .preview-products .product-grid--three,
body.home #content .site-main .preview-products .product-grid--four,
body.home #content .site-main .preview-products .product-grid--five,
body.home #content .site-main .preview-products .product-grid--six {
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
  justify-content: center;
  gap: 16px 18px;
}

body.home #content .site-main .preview-products .product-card {
  max-width: 220px;
  width: 100%;
  margin-inline: auto;
}

/*
 * Cover art: full width + 2:3 frame (standard book), cover + absolute fill.
 * Inline width/height attrs are stripped in brownfox-helpers.php so this wins over global `img { height:auto }`.
 */
body.home #content .site-main .preview-products .product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  min-height: 0 !important;
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

body.home #content .site-main .preview-products .product-card__image-wrap {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}

body.home #content .site-main .preview-products .product-card__media img.product-card__image,
body.home #content .site-main .preview-products .product-card__image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: none !important;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  border-radius: 0 !important;
}

body.home #content .site-main .preview-products .product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
}

body.home #content .site-main .preview-products .product-card__visual {
  min-height: 88px;
  font-size: 0.95rem;
}

body.home #content .site-main .preview-products .product-card__title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

body.home #content .site-main .preview-products .product-card__body {
  padding: 10px 12px 12px;
  gap: 6px;
}

body.home #content .site-main .preview-products .product-card__pricing strong {
  font-size: 0.95rem;
}

@media (max-width: 1200px) {
  body.home #content .site-main .preview-products .product-grid--three,
  body.home #content .site-main .preview-products .product-grid--four,
  body.home #content .site-main .preview-products .product-grid--five,
  body.home #content .site-main .preview-products .product-grid--six {
    grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
  }

  body.home #content .site-main .preview-products .product-card {
    max-width: 200px;
  }
}

@media (max-width: 980px) {
  body.home #content .site-main .preview-products .product-grid--three,
  body.home #content .site-main .preview-products .product-grid--four,
  body.home #content .site-main .preview-products .product-grid--five,
  body.home #content .site-main .preview-products .product-grid--six {
    grid-template-columns: repeat(auto-fit, minmax(140px, 190px));
  }

  body.home #content .site-main .preview-products .product-card {
    max-width: 190px;
  }
}

@media (max-width: 760px) {
  body.home #content .site-main .preview-products .product-grid--three,
  body.home #content .site-main .preview-products .product-grid--four,
  body.home #content .site-main .preview-products .product-grid--five,
  body.home #content .site-main .preview-products .product-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  body.home #content .site-main .preview-products .product-card {
    max-width: none;
  }
}
