/* Keep intentional content margins inside the shop rather than collapsing into a strip. */
.ke-storefront-page #main-content { display: flow-root; }
/* Remove WordPress sibling spacing at the shared footer, only on shop pages. */
.ke-storefront-page .wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }

/* Follow the same system preference and palette as the existing website. */
@media (prefers-color-scheme: dark) {
  .ke-storefront-page {
    --ke-beauty-bg: var(--wp--preset--color--canvas);
    --ke-beauty-paper: var(--wp--preset--color--surface);
    --ke-beauty-ink: var(--wp--preset--color--ink);
    --ke-beauty-muted: var(--wp--preset--color--muted);
    --ke-beauty-line: var(--wp--preset--color--line);
    --ke-beauty-gold: var(--wp--preset--color--champagne);
    --ke-beauty-gold-dark: var(--wp--preset--color--champagne);
    --ke-beauty-gold-lite: #44372d;
    --ke-beauty-sand: var(--wp--preset--color--surface);
    --ke-beauty-dark: var(--wp--preset--color--canvas);
  }
  .ke-shop :is(.ke-shop-card,.ke-shop-home-category,.ke-shop-button,.ke-shop-card__more),
  .ke-shop-search input {
    background: var(--ke-beauty-paper); color: var(--ke-beauty-ink); border-color: var(--ke-beauty-line);
  }
  .ke-shop :is(.ke-shop-card,.ke-shop-home-category,.ke-shop-filter-group,.ke-shop-pagination>*,.ke-shop-description--full,.ke-shop-availability),
  .ke-shop-nav-shell { border-color: var(--ke-beauty-line); }
  .ke-shop :is(.ke-shop-price,.ke-shop-detail__content .ke-shop-price,.ke-shop-home-hero h1),
  .ke-shop-home .ke-shop-button { color: var(--ke-beauty-ink); }
  .ke-shop :is(.ke-shop-card__description,.ke-shop-description,.ke-shop-sku,.ke-shop-back,.ke-shop-availability,.ke-shop-active-filters,.ke-shop-breadcrumb,.ke-shop-empty,.ke-shop-home-category__body>span),
  .ke-shop .ke-shop-heading>p:last-child,
  .ke-shop .ke-shop-filter-group a:not([aria-current]),
  .ke-shop-home-hero__copy>p:not(.ke-shop-kicker),.ke-shop-nav a,.ke-shop-search input::placeholder { color: var(--ke-beauty-muted); }
  .ke-shop :is(.ke-shop-kicker,.ke-shop-brand,.ke-shop-detail__favorite,.ke-shop-sort-label),
  .ke-shop-home-hero h1 em { color: var(--ke-beauty-gold); }
  .ke-shop :is(.ke-shop-filter-group a[aria-current],.ke-shop-sort-options a:hover,.ke-shop-sort-options a[aria-current]),
  .ke-shop-brand-choice input:checked+span { background: var(--ke-beauty-gold-lite); color: var(--ke-beauty-gold); border-color: var(--ke-beauty-gold); }
  .ke-shop-brand-choice input:focus-visible+span { outline-color: var(--ke-beauty-gold); }
  .ke-shop-brand-tick { border-color: var(--ke-beauty-gold); }
  .ke-shop-brand-choice input:checked+span .ke-shop-brand-tick:after { background: var(--ke-beauty-gold); }
  .ke-shop-sort-chevron { border-color: var(--ke-beauty-gold); }
  .ke-shop .ke-shop-button:hover { background: var(--ke-beauty-gold-lite); }
  .ke-shop .ke-shop-button.ke-shop-button--dark,.ke-shop-card__link:hover .ke-shop-card__more {
    background: var(--ke-beauty-gold); color: #241c1a; border-color: var(--ke-beauty-gold);
  }
  .ke-shop-pagination .current { background: var(--ke-beauty-gold-lite); border-color: var(--ke-beauty-gold); }
  .ke-shop-price del { color: var(--ke-beauty-muted); }
  .ke-shop :is(.ke-shop-stock,.ke-shop-availability .out-of-stock) { color: #f0aaa1; }
  .ke-shop-availability .in-stock { color: #aed5ab; }
  .ke-shop-home-hero { background: linear-gradient(117deg,#241c1a 3%,#302624 58%,#4b3b2e 100%); }
  .ke-shop-home-hero__art { background: radial-gradient(ellipse at 60% 35%,#74604d 2%,#46372d 62%,#302624 100%); }
  .ke-shop-home-stone { background: linear-gradient(0deg,#3a2d25,#786653); }
  .ke-shop-home-advice { background: var(--ke-beauty-paper); }
  /* Product photos, packaging artwork and tint swatches keep their original colors. */
}
