/* ==========================================================================
   InSono — Globale Basis (Body, Layout-Container, Utilities)
   Ported from assets/custom.css
   ========================================================================== */

body {
    /* custom.css — Inter stack without Inter loaded → system font (as on live) */
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui-family);
    font-style: var(--font-body-style);
    font-weight: var(--font-body-weight);
    /* Dawn theme.liquid: 1.5rem / ≥750px 1.6rem (1rem = 10px at 62.5%) */
    font-size: 1.5rem;
    line-height: 1.5; /* custom.css overrides Dawn's 1.8 */
    letter-spacing: normal; /* custom.css overrides Dawn's 0.06rem */
    -webkit-font-smoothing: antialiased;
}

@media screen and (min-width: 750px) {
    body {
        font-size: 1.6rem; /* 16px */
    }
}

body.template-index {
    overflow-x: clip;
}

/* ---- Layout ------------------------------------------------------------- */

.container {
    width: min(var(--page-width), calc(100% - 32px));
    margin-inline: auto;
}

/*
  Shared content rail — same edges as the sticky header.
  Header uses .page-width.site-header__inner; buybox + below-fold must match.
  Do NOT add extra padding-inline here (that was shifting PDP content inward).
*/
.page-width {
    width: min(var(--page-width), calc(100% - 32px));
    max-width: var(--page-width);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

.section {
    padding-block: 72px;
}

.section--tight {
    padding-block: 48px;
}

.section--flush {
    padding-block: 0;
}

.stack > * + * {
    margin-top: var(--stack-gap, 16px);
}

/* ---- Section headers ---------------------------------------------------- */

.section-head {
    display: grid;
    gap: 10px;
    max-width: 640px;
}

.section-head--center {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

.section-kicker {
    color: var(--header-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-text {
    max-width: 60ch;
    color: var(--muted);
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* ---- Eyebrow / Pill ----------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 253, 249, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--header-accent);
    box-shadow: 0 0 0 5px var(--header-accent-soft);
}

/* ---- Rich text (CMS content) -------------------------------------------- */

.rte > * + * {
    margin-top: 1em;
}

.rte h2,
.rte h3,
.rte h4 {
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.rte p,
.rte li {
    color: var(--muted);
    letter-spacing: -0.01em;
}

.rte ul,
.rte ol {
    padding-left: 1.25em;
}

.rte ul li {
    list-style: disc;
}

.rte ol li {
    list-style: decimal;
}

.rte a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rte strong {
    color: var(--text);
}

/* ---- Karten ------------------------------------------------------------- */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.card__body {
    padding: 24px;
}

/* ---- Trennlinie --------------------------------------------------------- */

.divider {
    height: 1px;
    border: 0;
    background: var(--line);
}

/* ---- Breadcrumb --------------------------------------------------------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.breadcrumb__separator {
    opacity: 0.5;
}

.breadcrumb__item[aria-current="page"] {
    color: var(--text);
}

.breadcrumb a:hover {
    color: var(--header-accent);
}

/* ---- Paginierung -------------------------------------------------------- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination__item {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.pagination__item:hover {
    border-color: var(--header-accent);
    color: var(--header-accent);
}

.pagination__item[aria-current="page"] {
    border-color: transparent;
    background: var(--accent);
    color: var(--white);
}

.pagination__item--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination__gap {
    padding-inline: 4px;
    color: var(--soft);
}

/* ---- Leerzustand -------------------------------------------------------- */

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 72px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.empty-state__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    background: var(--header-accent-soft);
    color: var(--header-accent);
}

.empty-state__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.empty-state__text {
    max-width: 46ch;
    color: var(--muted);
}

/* ---- Price display ------------------------------------------------------ */

.price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.price__from {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.price__current {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.price__compare {
    color: var(--soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: line-through;
}

.price__save {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--success-soft);
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
}

.price--on-sale .price__current {
    color: var(--sale);
}

.price--large .price__current {
    font-size: clamp(28px, 4vw, 36px);
}

/* ---- Badges ------------------------------------------------------------- */

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--header-accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-pill--sale {
    background: var(--danger-soft);
    color: var(--sale);
}

.badge-pill--success {
    background: var(--success-soft);
    color: var(--success);
}

/* ---- Scroll reveal (see js/storefront/reveal via header.js) -------------- */

/* Homepage matches Shopify (static; no fade-in). Other pages may use reveal. */
body:not(.template-index) [data-reveal],
body:not(.template-index) .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

body:not(.template-index) [data-reveal].is-revealed,
body:not(.template-index) .reveal.is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    body:not(.template-index) [data-reveal],
    body:not(.template-index) .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- Hilfsklassen ------------------------------------------------------- */

.hidden {
    display: none !important;
}

.small-hide {
    display: initial;
}

@media screen and (max-width: 749px) {
    .small-hide {
        display: none !important;
    }
}

@media screen and (min-width: 750px) {
    .large-up-hide {
        display: none !important;
    }
}

.text-center {
    text-align: center;
}

.no-scroll {
    overflow: hidden;
}
