/* KORA demo store theme. Raveo widgets render in shadow roots and only inherit fonts and colours from here. */
:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --ink: #221c18;
  --muted: #7a6f66;
  --line: #e8e1d8;
  --accent: #b65a3a;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Dawn-style theme variable; Raveo designs with headingFont "theme-heading" read it. */
  --font-heading-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  --wrap: 1360px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading-family); font-weight: 500; line-height: 1.1; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 500 14px/1 var(--font-body); letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn:hover { background: #000; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Demo bar: the only Raveo-branded chrome. */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 8px var(--pad); background: #17082e; color: #efe7ff; font-size: 13px; line-height: 1.4; }
.demo-bar p { margin: 0; display: flex; align-items: center; gap: 6px; }
.demo-bar img { width: 18px; height: 18px; }
.demo-bar strong { color: #fff; font-weight: 600; }
.demo-bar-links { gap: 16px !important; }
.demo-bar a { color: #efe7ff; text-underline-offset: 3px; }
.demo-bar .demo-cta { padding: 4px 12px; border-radius: 999px; background: #c8ff2e; color: #17082e; font-weight: 600; text-decoration: none; }
@media (max-width: 749px) { .demo-bar-x { display: none; } .demo-bar { justify-content: center; } }

/* Header */
.site-h { position: sticky; top: 0; z-index: 20; background: rgb(251 248 243 / 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-h-in { display: flex; align-items: center; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); }
.logo { margin: 0; font-family: var(--font-heading-family); font-size: 28px; font-weight: 600; letter-spacing: 0.32em; text-decoration: none; }
.site-nav { display: flex; gap: 24px; flex: 1; justify-content: center; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-color: currentColor; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; }
.cart-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-count { position: absolute; top: 3px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center; }
@media (max-width: 749px) {
  .site-h-in { flex-wrap: wrap; gap: 0 12px; padding-bottom: 0; }
  .logo { font-size: 24px; }
  .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 18px; overflow-x: auto; padding: 8px 0 10px; font-size: 12px; scrollbar-width: none; }
  .site-nav a { white-space: nowrap; }
}

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sec { margin: clamp(48px, 7vw, 88px) 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-h h1, .sec-h h2 { margin: 0; }
.sec-h a { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; text-underline-offset: 4px; }
.sec-stories { margin-top: 32px; }
.sec-float-note { margin-top: 0; }

/* Demo annotations */
.demo-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; padding: 10px 14px; border: 1px dashed #c9b8ff; border-radius: 10px; background: #f6f2ff; color: #3b2a66; font-size: 13px; line-height: 1.45; }
.demo-note-tag { flex: none; padding: 2px 9px; border-radius: 999px; background: #7031ff; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

/* Hero */
.hero { position: relative; margin: 0 calc(var(--pad) * -1); overflow: hidden; background: #dfe7ee; }
.hero img { width: 100%; height: clamp(420px, 62vw, 720px); object-fit: cover; object-position: 65% 40%; }
.hero-txt { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: min(46%, 560px); padding: 0 var(--pad) 0 max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
.hero-txt h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.98; }
.hero-txt p:not(.eyebrow) { max-width: 380px; margin: 0 0 26px; font-size: 16px; }
@media (max-width: 749px) {
  .hero img { height: 420px; object-position: 72% 50%; }
  .hero-txt { position: static; width: auto; padding: 28px var(--pad) 4px; }
}

/* Product grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 989px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }
.pcard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.pcard-img { position: relative; overflow: hidden; margin-bottom: 8px; background: #f1ece5; }
.pcard-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover img { transform: scale(1.04); }
.pcard-t { font-size: 14px; }
.pcard-p { font-size: 14px; color: var(--muted); }
s { color: var(--muted); font-size: 0.9em; }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; background: var(--paper); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Product page */
.crumbs { margin: 20px 0 0; font-size: 12px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 20px; align-items: start; }
.pdp-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-media img { width: 100%; background: #f1ece5; }
.pdp-pack { grid-column: 1 / -1; aspect-ratio: 1; object-fit: cover; }
.pdp-look { aspect-ratio: 2 / 3; object-fit: cover; }
.pdp-media img:only-child { grid-column: 1 / -1; }
.pdp-info { position: sticky; top: 96px; }
.pdp-info h1 { font-size: clamp(34px, 3.6vw, 48px); }
.pdp-price { margin: 0 0 24px; font-size: 18px; }
.opts { margin: 0 0 20px; padding: 0; border: 0; }
.opts legend { margin-bottom: 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.opt { display: inline-block; margin: 0 6px 6px 0; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-grid; place-items: center; min-width: 52px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; cursor: pointer; }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-x span { color: #b5aca4; text-decoration: line-through; cursor: not-allowed; }
.pdp-buy { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 40px; height: 46px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:disabled { opacity: 0.3; }
.qty input, .qty output { width: 32px; border: 0; background: none; text-align: center; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-s button { width: 32px; height: 34px; font-size: 16px; }
.form-err { min-height: 1.4em; margin: 8px 0 0; color: #b3261e; font-size: 13px; }
.pdp-desc { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp-desc ul { padding-left: 18px; }
@media (max-width: 849px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .pdp-media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .pdp-media img { flex: 0 0 86%; scroll-snap-align: center; aspect-ratio: 1; object-fit: cover; }
}

/* Cart drawer */
cart-drawer[hidden] { display: none; }
.drawer-bg { position: fixed; inset: 0; z-index: 2147483000; background: rgb(0 0 0 / 0.35); opacity: 0; transition: opacity 0.25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147483001; display: flex; flex-direction: column; width: min(420px, 100vw); background: var(--paper); box-shadow: -12px 0 40px rgb(0 0 0 / 0.12); transform: translateX(100%); transition: transform 0.25s ease; outline: none; }
cart-drawer.on .drawer-bg { opacity: 1; }
cart-drawer.on .drawer { transform: none; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { margin: 0; font-size: 28px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-f { padding: 16px 20px 20px; border-top: 1px solid var(--line); text-align: center; }
.drawer-f:empty { display: none; }
.view-cart { display: inline-block; margin-top: 12px; }

/* Cart lines (drawer and page) */
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { background: #f1ece5; }
.cart-line-i { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.cart-line-i > a { text-decoration: none; font-weight: 500; }
.cart-line-i .muted { font-size: 13px; }
.cart-line-p { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 14px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.cart-sum { text-align: left; }
.cart-sum p { display: flex; justify-content: space-between; margin: 0 0 6px; }
.cart-sum p.muted { display: block; font-size: 13px; margin-bottom: 14px; }
.cart-page h1 { margin-bottom: 24px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.cart-grid > .cart-sum { padding: 24px; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 849px) { .cart-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Widgets page */
.intro { max-width: 760px; }
.intro p { font-size: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pills a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; text-decoration: none; }
.pills a:hover { border-color: var(--ink); }
.preset { padding-top: 32px; border-top: 1px solid var(--line); }
.preset-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.preset-h h2 { margin: 0; }
.preset-h p { margin: 0; color: var(--muted); }
.preset raveo-stories { display: block; margin-bottom: 16px; }
#luxe { padding: 32px var(--pad) 40px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); background: #151515; color: #f5f1ea; border-top: 0; }
#luxe .preset-h p { color: #b8afa3; }

/* Demo end pages */
.demo-end { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.demo-end p { font-size: 16px; }
.demo-end-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0; }

/* Footer */
.site-f { margin-top: 96px; background: #efe9e1; border-top: 1px solid var(--line); }
.site-f-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad) 24px; font-size: 14px; }
.site-f-in > div:first-child p:last-child { max-width: 340px; color: var(--muted); }
.site-f h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.site-f-in a { display: block; margin-bottom: 6px; text-decoration: none; }
.site-f-in p a { display: inline; text-decoration: underline; }
.site-f-small { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 32px; color: var(--muted); font-size: 12px; }
@media (max-width: 749px) { .site-f-in { grid-template-columns: 1fr 1fr; } .site-f-in > div:first-child { grid-column: 1 / -1; } }
