/*
 * Soul Stories — small additions to the original stylesheet (styles.css is the
 * untouched original build). Only covers pages the original site didn't have
 * (bag, checkout, accounts, order tracking) and a few helpers.
 */
[hidden] { display: none !important; }

/* Layout helpers missing from the original build */
.h-fit { height: fit-content; }
.inline { display: inline; }
.mt-16 { margin-top: calc(var(--spacing, .25rem) * 16); }
.space-y-5 > :not(:last-child) { margin-bottom: 1.25rem; }
.space-y-10 > :not(:last-child) { margin-bottom: 2.5rem; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.underline { text-decoration-line: underline; text-underline-offset: 3px; }
.bg-destructive\/5 { background: color-mix(in oklab, var(--destructive) 5%, transparent); }
.border-destructive\/40 { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); }
@media (width >= 64rem) {
  .lg\:grid-cols-\[1fr_380px\] { grid-template-columns: 1fr 380px; }
  .lg\:grid-cols-\[1fr_400px\] { grid-template-columns: 1fr 400px; }
  .lg\:grid-cols-\[1\.4fr_1fr\] { grid-template-columns: 1.4fr 1fr; }
  .lg\:grid-cols-\[1fr_2fr\] { grid-template-columns: 1fr 2fr; }
}

/* Flash messages */
.flash-msg { border-color: var(--border); background: var(--card); }
.flash-success { border-color: color-mix(in oklab, var(--gold) 50%, transparent); background: color-mix(in oklab, var(--gold) 10%, transparent); }
.flash-error { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); background: color-mix(in oklab, var(--destructive) 6%, transparent); color: var(--destructive); }
.flash-info { border-color: var(--border); background: var(--secondary); }

/* Toast (in the forest/gold palette) */
.ss-toast { position: fixed; left: 50%; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 12px); max-width: calc(100% - 2rem);
  background: var(--forest-deep); color: var(--cream); border: 1px solid color-mix(in oklab, var(--gold) 50%, transparent); padding: .75rem 1.1rem; font-size: .85rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 24px 60px -28px rgba(20, 40, 30, .45); }
.ss-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ss-toast.is-error { border-color: var(--destructive); }
@media (width >= 64rem) { .ss-toast { bottom: 2rem; } }

/* Form states */
.field.is-invalid, .is-invalid { border-color: var(--destructive) !important; }
.pay-opt { transition: border-color .2s; }

/* Rich text written in the admin (descriptions, policies, articles) */
.product-prose > * + * { margin-top: .9em; }
.product-prose h2 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; margin-top: 1.4em; color: var(--foreground); }
.product-prose h3 { font-family: var(--font-display); font-size: 1.3rem; margin-top: 1.2em; color: var(--foreground); }
.product-prose ul { list-style: disc; padding-left: 1.2rem; }
.product-prose ol { list-style: decimal; padding-left: 1.2rem; }
.product-prose li + li { margin-top: .35em; }
.product-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.product-prose strong { color: var(--foreground); font-weight: 500; }
.product-prose blockquote { border-left: 2px solid var(--gold); padding-left: 1.25rem; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--forest-deep); }
.product-prose img { border-radius: var(--radius); }
.product-prose table { width: 100%; border-collapse: collapse; }
.product-prose th, .product-prose td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }

/* WhatsApp button */
.wa-float { position: fixed; right: 1rem; bottom: calc(4.75rem + env(safe-area-inset-bottom)); z-index: 35; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 9999px; background: #25d366; color: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
@media (width >= 64rem) { .wa-float { bottom: 1.5rem; } }
