/*
Theme Name: Stones for Health
Description: Nederlandse WooCommerce-winkel voor Stones for Health, met een eigen catalogus, blog en klantenservice.
Author: Stones for Health
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: s4h
*/

:root {
  --s4h-ink: #2d2d2d;
  --s4h-plum: #492c4a;
  --s4h-cream: #faf8f4;
  --s4h-yellow: #fbe022;
  --s4h-border: #e4ded8;
  --s4h-serif: "EB Garamond", Georgia, serif;
  --s4h-sans: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  color: var(--s4h-ink);
  background: #fff;
  font: 1rem/1.5 var(--s4h-sans);
}

*, *::after, *::before { box-sizing: border-box; }
:where(img, video) { max-width: 100%; }
:where(button, input, select, textarea) { font: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #765879;
  outline-offset: 3px;
}

.screen-reader-text:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus, .s4h-skip-link:focus {
  position: fixed;
  z-index: 99999;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.65rem 1rem;
  background: #fff;
  color: var(--s4h-plum);
  border: 1px solid var(--s4h-border);
  border-radius: 6px;
}

.s4h-home-products.s4h-catalog { background: transparent; }
.s4h-home-products.s4h-catalog.woocommerce ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.s4h-native-page {
  max-width: 80rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem);
  min-height: 45vh;
}

.s4h-native-page :is(h1, h2, h3) {
  color: var(--s4h-plum);
  font-family: var(--s4h-serif);
  line-height: 1.16;
  font-weight: 700;
}
.s4h-native-page h1 {
  margin-block: 0 1.5rem;
  font-size: clamp(2.25rem, 4.7vw, 3.75rem);
}
.s4h-native-page h2 {
  margin-block: 1.5rem 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.s4h-native-page h3 { margin-block: 1.25rem 0.6rem; font-size: 1.35rem; }
.s4h-native-page p { margin-block: 0 1em; }
.s4h-native-page article > :where(ol, ul) {
  margin-block: 1em;
  padding-inline-start: 1.5rem;
}
.s4h-native-page article > ul { list-style: disc; }
.s4h-native-page article > ol { list-style: decimal; }
.s4h-native-page article :where(img[height]) { height: auto; }
.s4h-native-page :where(p, li) > a:not([class]) {
  color: var(--s4h-plum);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.s4h-result {
  max-width: 52rem;
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--s4h-border);
}
.s4h-result h2 a { color: inherit; }
.s4h-native-page .navigation.pagination { margin-block: 2rem 0; }
.s4h-native-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.s4h-native-page .nav-links .page-numbers {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--s4h-border);
  border-radius: 0.35rem;
  color: var(--s4h-plum);
}
.s4h-native-page .nav-links .current { background: var(--s4h-plum); color: white; }

/* Keep WooCommerce responsible for checkout layout, validation and payment controls. */
.s4h-native-page :is(.wc-block-cart, .wc-block-checkout, .woocommerce) {
  font-family: var(--s4h-sans);
}
.s4h-native-page .wc-block-components-title {
  font-family: var(--s4h-serif);
  color: var(--s4h-plum);
}
.s4h-native-page :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .woocommerce a.button.alt, .woocommerce button.button.alt) {
  border: 0;
  border-radius: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--s4h-yellow);
  color: #211821;
  font-weight: 700;
  text-decoration: none;
}
.s4h-native-page :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):hover,
.s4h-native-page .woocommerce :is(a, button).button.alt:hover {
  background: #ecd31b;
  color: #211821;
}
.s4h-native-page button:disabled { cursor: not-allowed; }

@media (max-width: 63.99rem) {
  .s4h-home-products.s4h-catalog.woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 47.99rem) {
  .s4h-home-products.s4h-catalog.woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
