/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/

/* ------------------------------------------------------------------ */
/* Calipso global identity                                             */
/* ------------------------------------------------------------------ */

:root {
  --shadow-preset-sm: 0 1px 2px rgba(22, 22, 26, 0.04), 0 8px 28px rgba(22, 22, 26, 0.06);
  --shadow-preset-md: 0 4px 14px rgba(22, 22, 26, 0.07), 0 18px 44px rgba(22, 22, 26, 0.08);
  --shadow-preset-lg: 0 12px 32px rgba(22, 22, 26, 0.09), 0 28px 72px rgba(22, 22, 26, 0.10);
}

body {
  line-height: 1.7;
  letter-spacing: 0.015em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.025em;
}

/* ------------------------------------------------------------------ */
/* Legal pages                                                         */
/* ------------------------------------------------------------------ */

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.85;
  color: rgb(var(--cl-t-primary));
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) p {
  margin: 0 0 1.25rem;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) h2 {
  margin: 2.75rem 0 1rem;
  padding-top: 0.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgb(var(--cl-t-primary));
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) h3 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) ul,
:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) ol {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.4rem;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) ul {
  list-style: disc;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) ol {
  list-style: decimal;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) li {
  margin: 0.5rem 0;
  padding-left: 0.2rem;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) a {
  color: rgb(var(--cl-accent));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) > :first-child {
  margin-top: 0;
}

:is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  :is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) {
    font-size: 0.975rem;
    line-height: 1.8;
  }

  :is(.sa-page-terms-body, .sa-page-privacy-policy-body, .sa-page-refund-policy-body) h2 {
    margin-top: 2.25rem;
  }
}

/* Category descriptions are rich text; keep the listing header readable. */
.sa-page-products .sa-section-subtitle.editor {
  line-height: 1.75;
}

.sa-page-products .sa-section-subtitle.editor p + p {
  margin-top: 1rem;
}