/* =========================================================
   Duestien Klippotek – theme
   Palette taken from the salon: white facade, greige plinth,
   mauve walls, cream & black furniture, rose wallpaper.
   ========================================================= */
:root {
  --ink: #1c1819;
  --ink-2: #3a3235;
  --ivory: #faf7f2;
  --sand: #f1ebe3;
  --greige: #d8cec3;
  --mauve: #6e5860;
  --mauve-dark: #4b3c41;
  --rose: #c9a49c;
  --rose-soft: #efe0dc;
  --muted: #7d7174;
  --line: #e6ddd3;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(28, 24, 25, .18);
  --font-logo: 'Griffy', 'Gigi', cursive;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--ivory);
  --bs-link-color: var(--mauve);
  --bs-link-color-rgb: 110, 88, 96;
  --bs-link-hover-color: var(--mauve-dark);
  --bs-link-hover-color-rgb: 75, 60, 65;
  --bs-border-color: var(--line);
  --bs-primary: var(--mauve);
  --bs-primary-rgb: 110, 88, 96;
  --bs-border-radius: 10px;
}

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { font-weight: 400; background: var(--ivory); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display-font { font-family: var(--font-display); font-weight: 600; letter-spacing: .2px; }
h4, h5, h6 { font-weight: 500; }
::selection { background: var(--rose-soft); }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

.text-soft { color: #b9adaa; }
.text-mauve { color: var(--mauve) !important; }
.bg-sand { background: var(--sand); }
.bg-ink { background: var(--ink); color: var(--ivory); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--mauve); font-weight: 500; }
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; }
.lead-soft { color: var(--muted); font-size: 1.08rem; font-weight: 300; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: .02em; padding: .6rem 1.4rem; }
.btn-sm { padding: .38rem 1rem; }
.btn-lg { padding: .85rem 1.9rem; }
.btn-ink { background: var(--ink); color: var(--ivory); border: 1px solid var(--ink); }
.btn-ink:hover, .btn-ink:focus { background: var(--mauve-dark); border-color: var(--mauve-dark); color: #fff; }
.btn-outline-ink { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: var(--ivory); }
.btn-light-soft { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-light-soft:hover { background: #fff; color: var(--ink); }
.btn-vipps { background: #ff5b24; color: #fff; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .65rem .9rem; background-color: #fff; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--mauve); box-shadow: 0 0 0 .2rem rgba(110,88,96,.15); }
.form-check-input:checked { background-color: var(--mauve); border-color: var(--mauve); }
.form-label { font-weight: 500; font-size: .92rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); line-height: 1; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { font-family: var(--font-logo); font-size: 1.75rem; letter-spacing: .5px; white-space: nowrap; }
.logo-text span { margin-left: .1em; }
.brand-light .logo { color: var(--ivory); --logo-bg: var(--ink); }
@media (max-width: 400px) { .logo-text { font-size: 1.4rem; } .logo-mark { width: 32px; height: 32px; } }

/* ---------- Topbar / nav ---------- */
.topbar { background: var(--sand); color: var(--ink-2); font-size: .84rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.topbar a { color: var(--ink); text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--mauve); }
.topbar i { color: var(--mauve); }
.site-nav { background: rgba(250, 247, 242, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); padding: .7rem 0; }
.site-nav .nav-link { color: var(--ink-2); font-weight: 400; padding: .5rem .9rem !important; position: relative; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--ink); }
.site-nav .nav-link.active::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 1px; background: var(--mauve); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.navbar-toggler { border: none; padding: .35rem; }
.navbar-toggler:focus { box-shadow: none; }
.icon-link-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); font-size: 1.2rem; text-decoration: none; transition: background .2s; }
.icon-link-btn:hover { background: var(--sand); color: var(--ink); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--mauve); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.cart-badge[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(28,24,25,.86) 0%, rgba(28,24,25,.55) 45%, rgba(75,60,65,.25) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-logo { font-family: var(--font-logo); font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 1; margin-bottom: 1rem; font-weight: 400; }
.hero p.lead { font-weight: 300; max-width: 34rem; color: #eee5e2; }
.hero .eyebrow { color: var(--rose); }

/* ---------- Cards ---------- */
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; transition: transform .25s, box-shadow .25s; }
.card-soft:hover { box-shadow: var(--shadow); }
.feature-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-soft); color: var(--mauve-dark); font-size: 1.35rem; }

.service-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row .name { font-weight: 500; }
.service-row .meta { color: var(--muted); font-size: .88rem; }
.service-row .price { font-family: var(--font-display); font-size: 1.3rem; white-space: nowrap; }

.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb { aspect-ratio: 1/1; background: var(--sand); display: block; overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-card .brand-name { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.product-card .title { font-weight: 500; color: var(--ink); text-decoration: none; margin: .2rem 0 .6rem; }
.price-now { font-weight: 600; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: .9rem; margin-left: .4rem; }
.tag-sale { position: absolute; top: .75rem; left: .75rem; background: var(--mauve); color: #fff; font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

.img-frame { border-radius: 18px; overflow: hidden; position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; pointer-events: none; }

.cta-band { background: var(--mauve-dark); color: #fff; border-radius: 22px; padding: 3rem; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.cta-band h2 { font-family: var(--font-display); }

.page-head { background: var(--sand); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .3rem; }

/* ---------- Campaigns ---------- */
.campaign-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--rose-soft); min-height: 260px; display: flex; align-items: stretch; }
.campaign-card .media { flex: 1 1 45%; background-size: cover; background-position: center; min-height: 220px; }
.campaign-card .content { flex: 1 1 55%; padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.campaign-card .content h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.campaign-code { display: inline-flex; align-items: center; gap: .5rem; border: 1.5px dashed var(--mauve); border-radius: 10px; padding: .35rem .8rem; font-weight: 600; letter-spacing: .08em; background: #fff; color: var(--mauve-dark); }
@media (max-width: 767px) { .campaign-card { flex-direction: column; } .campaign-card .content { padding: 1.5rem; } }

/* ---------- Gift cards ---------- */
.giftcard-visual { aspect-ratio: 1.6/1; border-radius: 18px; background: linear-gradient(135deg, var(--mauve-dark), var(--mauve) 55%, var(--rose)); color: #fff; padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.giftcard-visual::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.giftcard-visual .logo { color: #fff; --logo-bg: var(--mauve); }
.giftcard-visual .amount { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.amount-btn { min-width: 92px; }
.code-row { display: flex; gap: .5rem; }
.code-row .form-control { text-transform: uppercase; }
.applied-code { display: flex; justify-content: space-between; align-items: center; background: var(--rose-soft); border-radius: 10px; padding: .5rem .8rem; font-size: .9rem; margin-top: .5rem; }

/* ---------- Newsletter ---------- */
.newsletter-form .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.newsletter-form .form-control::placeholder { color: #b9adaa; }

/* ---------- Booking ---------- */
.step-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.step-pill .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--greige); font-size: .8rem; }
.step-pill.active { color: var(--ink); }
.step-pill.active .n { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-body { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; background: #fff; display: flex; justify-content: space-between; gap: .75rem; align-items: center; transition: border-color .15s, background .15s; }
.choice input:checked + .choice-body { border-color: var(--mauve); background: var(--rose-soft); box-shadow: inset 0 0 0 1px var(--mauve); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--mauve); outline-offset: 2px; }
.choice .check { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--greige); display: grid; place-items: center; flex: none; color: transparent; }
.choice input:checked + .choice-body .check { background: var(--mauve); border-color: var(--mauve); color: #fff; }
.date-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.date-btn { flex: 0 0 auto; width: 68px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .5rem 0; text-align: center; scroll-snap-align: start; }
.date-btn .dow { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.date-btn .d { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.date-btn .m { font-size: .72rem; color: var(--muted); }
.date-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.date-btn.active .dow, .date-btn.active .m { color: #d8cdc9; }
.date-btn:disabled { opacity: .35; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .55rem 0; font-weight: 500; }
.slot-btn:hover { border-color: var(--mauve); }
.slot-btn.active { background: var(--mauve); color: #fff; border-color: var(--mauve); }
.summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: 96px; }
.summary-line { display: flex; justify-content: space-between; font-size: .93rem; padding: .25rem 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .75rem; font-weight: 600; }

/* ---------- Try-on ---------- */
.tryon-stage { position: relative; background: var(--ink); border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; max-height: 78vh; margin-inline: auto; touch-action: none; }
.tryon-stage canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
.tryon-stage video { display: none; }
.tryon-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #d8cdc9; padding: 2rem; }
.tryon-empty i { font-size: 3rem; display: block; margin-bottom: .5rem; color: var(--rose); }
.tryon-status { position: absolute; left: 50%; top: 1rem; transform: translateX(-50%); background: rgba(28,24,25,.72); color: #fff; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.style-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.style-btn { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .4rem; text-align: center; font-size: .78rem; line-height: 1.2; }
.style-btn canvas, .style-btn img { width: 100%; aspect-ratio: 4/5; object-fit: contain; display: block; margin-bottom: .3rem; background: var(--sand); border-radius: 8px; }
.style-btn.active { border-color: var(--mauve); box-shadow: inset 0 0 0 1px var(--mauve); }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.color-swatch.active { box-shadow: 0 0 0 2px var(--mauve); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e1de; padding: 4.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer a { color: #e9e1de; text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.footer-title { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; color: var(--rose); margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; font-weight: 300; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: #a99d9a; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -15px rgba(28,24,25,.35); border-radius: 16px; padding: 1.1rem 1.3rem; max-width: 920px; width: 100%; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-cat { padding: .4rem 0 .2rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.cookie-cat:last-child { border: 0; margin: 0; }

/* ---------- Account / tables ---------- */
.side-nav .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: 2px; color: var(--ink-2); background: transparent; }
.profile-card { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; margin-bottom: .8rem; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--rose-soft); flex: none; }
.avatar-initials { border-radius: 50%; background: var(--mauve); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.side-nav .list-group-item.active { background: var(--ink); color: #fff; }
.side-nav .list-group-item:hover:not(.active) { background: var(--sand); }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .8rem .75rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; border-bottom-color: var(--line); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .num { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.stat-card .lbl { color: var(--muted); font-size: .85rem; }

.auth-wrap { max-width: 460px; margin: 3.5rem auto; }
.alert { border-radius: 12px; }
.qty-input { width: 84px; }

@media (max-width: 991px) {
  .summary-box { position: static; }
  .section { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; letter-spacing: .06em; }
.lang-switch a { color: var(--muted) !important; font-weight: 500; padding: .1rem .3rem; border-radius: 6px; }
.lang-switch a.active { color: #fff !important; background: var(--mauve); }
.lang-switch span { color: var(--greige); }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-nav .nav-link { padding: .5rem .55rem !important; }
  .site-nav .nav-link.active::after { left: .55rem; right: .55rem; }
}
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { padding: .8rem 0; }
}

/* ---------- Contact map (brand colours) ---------- */
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.brand-map { height: 340px; background: var(--sand); }
/* warm the neutral tiles towards the ivory / greige / mauve palette */
.brand-map .leaflet-tile-pane { filter: sepia(.4) saturate(.6) hue-rotate(-18deg) brightness(1.03) contrast(.95); }
.brand-map .leaflet-control-zoom { border: 0; box-shadow: var(--shadow); }
.brand-map .leaflet-control-zoom a { background: #fff; color: var(--ink); border-color: var(--line); }
.brand-map .leaflet-control-zoom a:hover { background: var(--sand); color: var(--mauve-dark); }
.brand-map .leaflet-control-attribution { background: rgba(250,247,242,.85); color: var(--muted); font-size: 10px; }
.brand-map .leaflet-control-attribution a { color: var(--mauve); }
.brand-map .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow); }
.brand-map .leaflet-popup-content { margin: .7rem .9rem; font-family: var(--font-body); }
.brand-map .leaflet-popup-tip { box-shadow: none; }
.brand-popup strong { display: block; font-family: var(--font-logo); font-size: 1.15rem; font-weight: 400; color: var(--ink); }
.brand-popup span { color: var(--muted); font-size: .85rem; }
.brand-pin { background: none; border: 0; }
.brand-pin-body { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--mauve); border: 3px solid #fff; box-shadow: 0 6px 14px -4px rgba(28,24,25,.45); }
.brand-pin-body svg { width: 26px; height: 26px; transform: rotate(45deg); }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.style-btn.is-photo img { background: var(--sand); }
.swatch-original { background: conic-gradient(#2b1d16, #8c5a32, #d4b07a, #7a1f2b, #2b1d16); position: relative; }
.swatch-original::after { content: 'Org'; position: absolute; inset: 0; display: grid; place-items: center; font-size: .6rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
