/* ============================================================
   LONALT SHARED DESIGN SYSTEM (shared.css)
   ============================================================ */

:root {
  --ivory: #F6F3EE;
  --white: #FFFFFF;
  --ink: #17181A;
  --ink-70: rgba(20, 20, 22, 0.7);
  --ink-55: rgba(23, 24, 26, 0.55);
  --leather-black: #14100E;
  --leather-blush: #D8B9AE;
  --leather-bone: #EDE7DD;
  --metal: #C7B283;
  --metal-deep: #A98F5C;
  --glass: rgba(23, 24, 26, 0.07);
  --gutter: clamp(20px, 5vw, 72px);
  --vpad: clamp(56px, 8vw, 130px);
  --header-h: 76px;
  --promo-h: 44px;

  --fs-2xs: 10.4px;
  --fs-xs: 12.48px;
  --fs-sm: 14.4px;
  --fs-body: 16px;
  --fs-md: 18.4px;
  --fs-lg: 22.4px;
  --fs-xl: 27.2px;
  --fs-2xl: 32.8px;
  --fs-3xl: 40px;
  --fs-h1: clamp(38.4px, 4.5vw, 57.6px);

  --ease-out: cubic-bezier(.19, 1, .22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 13px; }
@media (min-width: 350px) { html { font-size: 13px; } }
@media (min-width: 420px) { html { font-size: 14px; } }
@media (min-width: 580px) { html { font-size: 15px; } }
@media (min-width: 740px) { html { font-size: 16px; } }
@media (min-width: 950px) { html { font-size: 17px; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--lonalt-font-body);
  font-weight: 450;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--lonalt-font-display);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: var(--lonalt-type-page); line-height: 1.12; }
h2 { font-size: var(--lonalt-type-section); line-height: 1.18; }
h3 { font-size: var(--lonalt-type-small-heading); }
h4 { font-size: var(--fs-sm); font-family: var(--lonalt-font-body); font-weight: 600; }

a { color: inherit; text-decoration: none; }
p { line-height: 1.65; margin: 0; color: var(--ink-70); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--metal); color: var(--ink); }

.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .72;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

section {
  position: relative;
  padding: var(--vpad) var(--gutter);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--metal-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Animations: unified reveal support */
[data-reveal], [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-in, [data-reveal].in-view,
[data-animate].is-in, [data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

.max { max-width: 1280px; margin-inline: auto; }

/* ================= GEMEINSAME SHOP-NAVIGATION ================= */
.wishlist-button { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(23,24,26,.12); border-radius: 50%; background: rgba(246,243,238,.9); color: var(--ink); cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.p-tile:has(.scent-profile) { overflow:visible; }.p-tile:has(.scent-profile) .p-tile-photo { overflow:visible; }.p-tile:has(.scent-profile) .p-tile-photo img { border-radius:18px 18px 0 0; }
.scent-profile { position:absolute; z-index:5; top:0; left:50%; transform:translate(-50%,-50%); width:calc(100% - 54px); min-height:32px; display:flex; align-items:center; justify-content:center; padding:5px 10px; border:1px solid rgba(255,255,255,.95); border-radius:999px; background:rgba(246,243,238,.96); box-shadow:0 4px 12px rgba(20,16,14,.13); color:#17181a; font-size:7.2px; font-weight:500; letter-spacing:.04em; line-height:1; text-align:center; text-transform:uppercase; white-space:nowrap; backdrop-filter:blur(5px); }
.p-tile:has(.scent-profile) .p-tile-body { position:relative; padding-top:20px; }.p-tile:has(.scent-profile) .wishlist-button { top:calc(100% - 52px); right:16px; }.p-tile:has(.scent-profile) .badge { top:calc(100% - 42px); right:auto; left:16px; }
.wishlist-button:hover { transform: scale(1.06); }.wishlist-button svg { width: 18px; fill: transparent; stroke: currentColor; stroke-width: 1.6; }.wishlist-button.is-saved { color: #a73e4c; background: #fff; }.wishlist-button.is-saved svg { fill: currentColor; }
.p-card { position: relative; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink); border-radius: 100px;
  background: var(--ink); color: var(--ivory);
  transition: background .25s ease, color .25s ease, transform .12s ease, border-color .25s ease;
  font-family: var(--lonalt-font-body); font-weight: 600;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(23, 24, 26, .3); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-metal { border-color: var(--metal-deep); background: var(--metal-deep); color: #fff; }
.btn-metal:hover { background: transparent; color: var(--metal-deep); }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: var(--fs-2xs); }

#box-dialog{width:min(92vw,440px);border:0;border-radius:10px;padding:30px;background:var(--ivory);color:var(--ink)}#box-dialog::backdrop{background:rgba(0,0,0,.5)}#box-dialog h2{margin-top:8px}#box-dialog p{margin-top:10px}.dialog-close{float:right;border:0;background:none;font-size:26px;cursor:pointer}.box-options{display:grid;gap:10px;margin-top:22px}.box-options button{padding:15px;text-align:left;background:transparent;border:1px solid var(--ink);cursor:pointer;font:600 14.4px var(--lonalt-font-body)}.box-options button:hover{background:var(--ink);color:var(--ivory)}.box-options small{display:block;margin-top:4px;font-weight:400}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--leather-black);
  color: rgba(246, 243, 238, .85);
  padding: 56px var(--gutter) 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  max-width: 1200px; margin: 0 auto;
}
.footer-brand .logo { color: var(--ivory); }
.footer-brand p {
  font-size: var(--fs-xs); color: rgba(246, 243, 238, .55);
  margin-top: 12px; max-width: 32ch; line-height: 1.6;
}
.footer-col h4 {
  font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase;
  opacity: .5; margin-bottom: 14px; font-weight: 600; color: rgba(246, 243, 238, .7);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: var(--fs-xs); text-decoration: none;
  color: rgba(246, 243, 238, .75); transition: color .2s ease;
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(246, 243, 238, .12);
  font-size: var(--fs-2xs); color: rgba(246, 243, 238, .4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================= TOAST ================= */
#toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 120%);
  background: var(--ink); color: var(--ivory); padding: 13px 20px; border-radius: 4px;
  font-size: var(--fs-xs); letter-spacing: .02em; z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, visibility 0s linear .35s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
#toast.show {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, visibility 0s linear 0s;
}

/* WooCommerce-Lagerstatus auf den redaktionellen Produktflächen. */
.size-card.is-sold-out,
[data-scent-size].is-sold-out {
  background: rgba(23, 24, 26, .035) !important;
  border-color: rgba(23, 24, 26, .16) !important;
  color: rgba(23, 24, 26, .42) !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  position: relative;
}
.size-card.is-sold-out .sz,
[data-scent-size].is-sold-out strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.lonalt-stock-label {
  display: block;
  font: 650 9.28px/1.2 var(--lonalt-font-body);
  letter-spacing: .08em;
  margin-top: 4px;
  text-transform: uppercase;
}
