/* Shared styles for Veloria's inner pages (product, account, checkout, policies) */
:root {
  color-scheme: light;
  --ivory: #FBF7F1; --sand: #F3EADF; --card: #FFFDF9;
  --ink: #2B211C; --muted: #6F625A;
  --gold: #B8893A; --gold-soft: rgba(184, 137, 58, .45);
  --teal: #0F6E7E; --teal-dark: #0A5562; --rose: #C92467; --error: #B3261E; --ok: #2E7D4F;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.05; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font: 500 .72rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.script { font-family: var(--script); font-weight: 400; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(251, 247, 241, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold-soft); }
.site-head .nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; mix-blend-mode: multiply; }
.brand span { font: 600 1.45rem/1 var(--serif); letter-spacing: .14em; }
.head-links { display: flex; align-items: center; gap: 22px; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
.head-links a { text-decoration: none; }
.head-links a:hover { color: var(--teal); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-link svg { width: 20px; height: 20px; }
.badge { background: var(--teal); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 1.6em; padding: 0 .45em; text-align: center; font-variant-numeric: tabular-nums; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 500 .95rem var(--sans); letter-spacing: .05em; padding: .9em 1.6em; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); cursor: pointer; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.teal { background: var(--teal); border-color: var(--teal); }
.btn.teal:hover { background: var(--teal-dark); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: .82rem; letter-spacing: .05em; font-weight: 500; }
label .opt { color: var(--muted); font-weight: 400; }
input, textarea, select { font: 400 1rem var(--sans); color: var(--ink); background: var(--ivory); border: 1px solid rgba(43, 33, 28, .22); border-radius: 12px; padding: .75em 1em; width: 100%; }
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 110, 126, .15); }
.field.bad input, .field.bad textarea { border-color: var(--error); }
.err { color: var(--error); font-size: .8rem; }
.field:not(.bad) .err { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--card); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 0 rgba(184, 137, 58, .25), 0 20px 40px -32px rgba(43, 33, 28, .5); }
.notice { padding: 12px 14px; border-radius: 12px; font-size: .9rem; background: #FBE9E7; color: var(--error); }
.notice.ok { background: #E6F2EA; color: var(--ok); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--ivory); padding: .8em 1.4em; border-radius: 999px; font-size: .9rem; transition: opacity .35s, transform .35s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-foot { border-top: 1px solid var(--gold-soft); padding-block: 24px; font-size: .84rem; color: var(--muted); margin-top: 40px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--teal); }

.status { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.s-pending { background: #F1ECE4; color: var(--muted); }
.s-paid { background: #FFF1D6; color: #8A5A00; }
.s-packed { background: #E7EEFB; color: #2C4F9E; }
.s-shipped { background: #E2F1F3; color: var(--teal-dark); }
.s-delivered { background: #E6F2EA; color: var(--ok); }
.s-cancelled, .s-refunded { background: #FBE9E7; color: var(--error); }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .head-links .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
