/* ============================================================
   PUBLIC CLUBDESK — request-form-inspired shell (vanilla CSS)
   Mobile-first phone shell; desktop mirrors mobile column.
   Listing chrome mirrors PublicRequestForm; guide detail steps keep own UI.
   Docs: docs/PUBLIC_APP_DESIGN.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Brand — violet accent (request form parity) */
  --brand: hsl(262 83% 58%);
  --brand-hover: hsl(263 70% 50%);
  --brand-soft: hsl(262 83% 58% / 0.1);
  --brand-glow: hsl(262 83% 58% / 0.28);
  --brand-muted: hsl(263 70% 96%);

  /* Surfaces — gray-50 page (request-form parity); white cards */
  --bg: #ffffff;
  --bg-page: #f9fafb;
  --card-bg: #ffffff;
  --muted: #f3f4f6;

  /* Text — request-form scale */
  --text: #111827;
  --text-muted: #6b7280;
  --fs-xs: 0.6875rem; /* 11px */
  --fs-sm: 0.8125rem; /* 13px */
  --fs-base: 0.9375rem; /* 15px */
  --fs-lg: 1.0625rem; /* 17px */
  --fs-xl: 1.1875rem; /* 19px */
  --fs-display: 2rem; /* inspo Hem title */

  /* Lines */
  --border: hsl(214 20% 90%);

  /* Radius: request-form (xl / 2xl) */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 16px;
  --r-pill: 9999px;

  /* Fonts — Poppins (public request form) */
  --font-heading: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Poppins', ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --shell-max: 32rem;
  --page-pad: 1rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --section-gap: 1rem;
  --header-h: 3.75rem;
  --header-logo-h: 2.5rem;
  --bottom-bar-h: 64px;
  --bottom-offset: 1.75rem;
  --page-header-pad-y: 1rem;
  --page-header-pad-top: 1.25rem;
  --page-header-title-size: 1.5rem;
  --step-nav-h: 3rem;
  --step-media-h: 19rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  /* Outside the phone shell */
  background: #e5e7eb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: var(--brand);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* --- Utilities --- */

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.font-display {
  font-family: var(--font-display);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.shadow-soft {
  box-shadow:
    0 8px 30px -8px rgba(26, 28, 30, 0.1),
    0 2px 8px -4px rgba(26, 28, 30, 0.06);
}

.shadow-float {
  box-shadow:
    0 18px 50px -12px rgba(26, 28, 30, 0.18),
    0 4px 12px -6px rgba(26, 28, 30, 0.08);
}

.shadow-card {
  box-shadow: 0 6px 24px -10px rgba(26, 28, 30, 0.12);
}

.scroll-snap-x {
  scroll-snap-type: x mandatory;
}

.scroll-snap-start {
  scroll-snap-align: start;
}

.scroll-snap-center {
  scroll-snap-align: center;
}

/* --- Skip link --- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --- App shell (phone frame) --- */

/* Gradient backdrop removed — flat page bg (request-form parity). Keep class for guide.php markup. */
.app-bg {
  display: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell-max);
  height: 100dvh;
  margin-inline: auto;
  background: var(--bg-page);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px -20px rgba(26, 28, 30, 0.18);
  overflow: hidden;
}

/* Atmosphere/grid retired — flat beige shell + white home sheet */
.app-atmosphere,
.app-atmosphere__grid,
.app-atmosphere__blob {
  display: none;
}

/* --- Top bar (frosted glass, full width of shell) --- */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg-page) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  padding: 0 var(--page-pad);
  gap: 0.75rem;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  color: var(--text);
  overflow: visible;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  background: var(--brand-muted);
  color: var(--brand);
  box-shadow: 0 0 0 1px var(--border);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.05rem;
}

.brand__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.brand__subtitle {
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-muted);
}

.brand__logo {
  height: var(--header-logo-h);
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  :root {
    --header-h: 4rem;
    --header-logo-h: 2.5rem;
  }
}

.brand__dot {
  display: none;
}

.hamburger-btn,
.detail-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.hamburger-btn:active,
.detail-back-btn:active {
  transform: scale(0.95);
}
.hamburger-btn svg,
.detail-back-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.detail-back-btn {
  width: auto;
  padding: 0 0.875rem;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Main scroll --- */

.app-main {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--space-lg) var(--page-pad) 8rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-main:has(.home-sheet) {
  padding: 0;
  background: var(--bg-page);
}

/* --- Page chrome: beige header + white sheet (all listing tabs) --- */

#rows-container {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

#rows-container:has(.home-sheet) {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100%;
  width: 100%;
  margin: 0;
}

.home-header,
.guide-header {
  flex-shrink: 0;
  padding: var(--page-header-pad-top) var(--page-pad) var(--page-header-pad-y);
  background: var(--bg-page);
}

.home-header__title,
.guide-header__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--page-header-title-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.home-header__text {
  margin: 0.35rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 36rem;
}

.home-header__text.site-content-html,
.home-header .site-content-html--home {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.home-sheet {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.25rem var(--page-pad)
    calc(var(--bottom-offset) + var(--bottom-bar-h) + 1.5rem + env(safe-area-inset-bottom, 0px));
  min-height: 100%;
  box-shadow: none;
  overflow: hidden;
}

.home-section + .home-section {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}

.home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 0.875rem;
}

.home-section__title {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home-section__more {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.home-section__more:hover {
  color: var(--brand);
}

.home-square-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
}

.home-square-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  box-sizing: border-box;
  overflow: hidden;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.home-square-card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.home-square-card:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.home-square-card__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
}

.home-square-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-square-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--brand-muted);
  color: var(--brand);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.home-square-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 1.75rem 0.5rem 0.5rem;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-section--rows .option-list {
  gap: 0;
}

.home-section--rows .option-card {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}

.home-section--rows .option-card:last-child {
  border-bottom: 0;
}

.home-section--rows .option-card:hover {
  background: transparent;
}

.home-section--rows .option-card:focus-visible {
  box-shadow: none;
  background: color-mix(in srgb, var(--muted) 40%, #fff);
}

.swish-sheet {
  min-height: 40vh;
}

.org-swish {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0 var(--space-xl);
}

.org-swish__qr {
  margin: 0 auto;
}

.org-swish__number {
  font-size: 1.25rem;
}

.org-swish__hint {
  margin: 0;
  max-width: 18rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

.kontakt-sheet {
  min-height: 40vh;
}

.kontakt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kontakt-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.kontakt-card:last-child {
  border-bottom: 0;
}

.kontakt-card__name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}

.kontakt-card__blurb {
  margin: 0.35rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

.kontakt-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.kontakt-card__link {
  font-size: var(--fs-sm);
  color: var(--brand);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.kontakt-card__link:hover {
  text-decoration: underline;
}

/* --- Conversational panel (request-form card) --- */

.conv-panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.listing-stack {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.conv-step-head {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}

.conv-step-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.conv-step-head__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.conv-step-head__subtitle {
  margin: 0.35rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.conv-step-head__subtitle .site-content-html {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  max-width: none;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 0.875rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.option-card:hover {
  background: color-mix(in srgb, var(--muted) 70%, #fff);
}

.option-card:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.option-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--muted);
  color: var(--text);
}

.option-card__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.option-card__icon--guide {
  background: color-mix(in srgb, var(--brand) 14%, #fff);
  color: var(--brand);
}

.option-card__icon--price-list {
  background: color-mix(in srgb, #16a34a 14%, #fff);
  color: #16a34a;
}

.option-card__icon--info {
  background: color-mix(in srgb, #2563eb 14%, #fff);
  color: #2563eb;
}

.option-card__icon--swish {
  background: color-mix(in srgb, #db2777 14%, #fff);
  color: #db2777;
}

.option-card__icon--kontakt {
  background: color-mix(in srgb, #d97706 14%, #fff);
  color: #d97706;
}

.option-card__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.option-card__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.option-card__desc {
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--text-muted);
}

.option-card__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.7;
}

/* --- Info panel --- */

.info-panel {
  padding: 0;
}

.info-panel__eyebrow {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.info-panel__eyebrow:not(:first-child) {
  margin-top: 2.5rem;
}

.info-panel__title {
  margin: 0.375rem 0 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.info-panel__lead {
  margin: 0.5rem 0 1rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
  max-width: 42rem;
}

.info-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  margin-bottom: var(--space-xl);
}

.info-panel__contact {
  margin: 1rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}

.site-content-intro {
  padding: 0;
}

.site-content-title {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.site-content-title + .site-content-html {
  margin-top: var(--space-sm);
}

.site-content-html {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
  max-width: 42rem;
}

.site-content-html--home {
  padding: 0;
}

.site-content-html p {
  margin: 0 0 0.75rem;
}

.site-content-html p:first-child {
  margin-top: 0;
}

.site-content-html p:last-child {
  margin-bottom: 0;
}

.site-content-html ul,
.site-content-html ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.site-content-html a {
  color: var(--brand);
  font-weight: 600;
}

.site-content-html h1,
.site-content-html h2,
.site-content-html h3 {
  margin: 0 0 0.5rem;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (min-width: 768px) {
  .app-main {
    padding-top: var(--space-xl);
    padding-bottom: 8rem;
  }

  .item-row__title,
  .item-grid-section__title,
  .price-list-section__title {
    font-size: var(--fs-xl);
  }
}

/* --- Status --- */

.status {
  margin: 0;
  padding: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.status:empty {
  display: none;
}

/* --- Guide category sections (option-card lists) --- */

.item-row {
  margin-bottom: 0;
}

.item-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0;
}

.item-row__title {
  margin: 0;
}

.item-row__more {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.item-row__scroller {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  overflow: visible;
  padding: 0;
}

.item-row__scroller::after {
  content: none;
}

.item-grid-section {
  margin-bottom: 0;
}

.item-grid-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.item-grid-section__title {
  margin: 0;
}

.item-row__title,
.item-grid-section__title,
.price-list-section__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.item-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Legacy poster card unused on listings (guide detail unchanged) */
.item-card {
  display: none;
}

/* --- Empty / error --- */

.empty-state {
  padding: var(--space-2xl) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.empty-state--inset {
  padding: var(--space-lg) 0;
}

/* --- Bottom bar --- */

.bottom-bar {
  position: absolute;
  bottom: calc(var(--bottom-offset) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 40;
  width: calc(100% - 5rem);
  max-width: 18rem;
  transform: translateX(-50%);
}

.bottom-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0;
  border-radius: var(--r-pill);
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 0;
  box-shadow:
    0 4px 24px rgb(0 0 0 / 0.1),
    0 1px 4px rgb(0 0 0 / 0.06);
}

.bottom-bar__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}
.bottom-bar__tab.is-active {
  color: var(--brand);
}

.bottom-bar__tab[data-tab='guides'].is-active {
  color: var(--brand);
}

.bottom-bar__tab[data-tab='price-lists'].is-active {
  color: #16a34a;
}

.bottom-bar__tab[data-tab='home'].is-active {
  color: #2563eb;
}

.bottom-bar__icon {
  width: 1.25rem;
  height: 1.25rem;
}
.bottom-bar__tab.is-active .bottom-bar__icon {
  fill: currentColor;
  fill-opacity: 0.12;
}

.bottom-bar__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bottom-bar__dot {
  position: absolute;
  bottom: -0.125rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: var(--r-pill);
  background: currentColor;
  opacity: 0;
}
.bottom-bar__tab.is-active .bottom-bar__dot {
  opacity: 1;
}

/* --- Step subheader (mini cart under page header) --- */

.step-subheader {
  position: relative;
  top: auto;
  z-index: 29;
  flex-shrink: 0;
  width: 100%;
  background: var(--bg-page);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}

.step-subheader__inner {
  padding: 0.65rem var(--page-pad) 0.75rem;
}

.step-subheader__guide {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-subheader__step {
  margin: 0.15rem 0 0;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-subheader__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.step-subheader__count {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-subheader__bar {
  flex: 1;
  height: 3px;
  min-width: 0;
  border-radius: var(--r-pill);
  background: var(--border);
  overflow: hidden;
}

.step-subheader__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brand);
  transition: width 0.2s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .step-subheader__fill {
    transition: none;
  }
}

/* --- Step prev / next (circle icon buttons) --- */

.step-nav {
  position: absolute;
  bottom: calc(var(--bottom-offset) + var(--bottom-bar-h) + 0.5rem);
  left: 50%;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: calc(var(--shell-max) - 2rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.step-nav__btn {
  pointer-events: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(26, 28, 30, 0.12);
  transition:
    transform 0.15s var(--ease),
    opacity 0.15s var(--ease),
    background 0.15s var(--ease);
}

.step-nav__btn:active:not(:disabled) {
  transform: scale(0.94);
}

.step-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.step-nav__btn--prev {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step-nav__btn--next {
  background: var(--text);
  color: #fff;
}

.step-nav__btn--done {
  background: var(--brand);
  color: #fff;
}

.step-nav__btn svg {
  display: block;
  flex-shrink: 0;
}

/* --- Detail: standard --- */

.detail-article {
  padding: 0 var(--page-pad) var(--space-2xl);
}

.detail-hero {
  width: calc(100% + (var(--page-pad) * 2));
  margin: 0 calc(var(--page-pad) * -1) var(--page-pad);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  background: linear-gradient(160deg, var(--brand-soft), var(--border));
}

.detail-article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.detail-article p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-xl);
  font-weight: 600;
  text-decoration: none;
}

/* --- Step swipe --- */

.step-swipe {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.app-main:has(.step-swipe) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.guide-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 20;
}

.guide-header__copy {
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 4rem);
}

.guide-header__title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 18rem;
}

.guide-header__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 18rem;
}

.guide-back-btn {
  position: relative;
  top: auto;
  left: auto;
  flex-shrink: 0;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  margin-top: 0;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  text-decoration: none;
  border: 0;
  box-shadow:
    0 4px 24px rgb(0 0 0 / 0.1),
    0 1px 4px rgb(0 0 0 / 0.06);
  transition:
    color 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.guide-back-btn:hover,
.guide-back-btn:focus-visible {
  color: var(--brand);
  outline: none;
}

.guide-back-btn[hidden] {
  display: none !important;
}

.guide-back-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.step-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: var(--bg-page);
}

/* Image starts at top of the app */
.step-slide__media {
  position: relative;
  flex: 0 0 var(--step-media-h);
  height: var(--step-media-h);
  width: 100%;
  overflow: hidden;
  background: var(--border);
}

.step-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Segmented progress inside white sheet */
.step-progress {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  background: transparent;
}

.step-progress__seg {
  flex: 1 1 0;
  height: 3px;
  min-width: 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text) 12%, transparent);
  transition: background 0.2s var(--ease);
}

.step-progress__seg.is-done {
  background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .step-progress__seg {
    transition: none;
  }
}

/* White sheet overlaps image (sits on top) */
.step-slide__sheet {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: -1.5rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--bg);
  padding: 1.15rem var(--page-pad)
    calc(var(--bottom-offset) + var(--bottom-bar-h) + var(--step-nav-h) + var(--space-xl));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.step-slide__handle {
  display: none;
}

.step-slide__fade,
.step-slide__number {
  display: none;
}

.step-slide__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step-slide__desc {
  margin: 0.75rem 0 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-muted);
}

.step-slide__desc p {
  margin: 0 0 0.5rem;
}

.step-slide__desc p:last-child {
  margin-bottom: 0;
}

.step-slide__desc ul,
.step-slide__desc ol {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.25rem;
}

.step-slide__desc li {
  margin: 0.2rem 0;
}

.step-slide__desc li + li {
  margin-top: 0.15rem;
}

/* --- Drawer (hamburger placeholder) --- */

.menu-drawer {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgb(17 24 39 / 0.35);
}
.menu-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(80%, 280px);
  height: 100%;
  background: var(--bg);
  padding: var(--page-pad);
  box-shadow: -8px 0 30px rgba(26, 28, 30, 0.12);
}
.menu-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  border-radius: var(--r-pill);
  background: var(--bg-page);
}
.menu-drawer__list {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
}
.menu-drawer__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

/* --- Home / price-list listings use .option-card (hub tiles retired) --- */

/* --- Price list detail (Hem chrome + option rows) --- */

#price-list-app {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100%;
  width: 100%;
  background: transparent;
}

#price-list-app > .home-sheet {
  flex: 1 0 auto;
  min-height: 100%;
}

.price-list-section {
  margin: 0;
}

.home-sheet > .price-list-section + .price-list-section {
  margin-top: 1.5rem;
}

.price-list-section__title {
  margin: 0;
}

.price-list-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.price-list-row.option-card {
  cursor: default;
  text-decoration: none;
  align-items: center;
}

.price-list-row__desc {
  white-space: pre-line;
}

.price-list-row__price {
  margin: 0;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-list-row__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.price-list-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    background 0.15s var(--ease);
}

.price-list-qty-btn:active {
  transform: scale(0.94);
}

.price-list-qty-btn--plus {
  background: #16a34a;
  color: #fff;
}

.price-list-qty-btn--plus:hover,
.price-list-qty-btn--plus:focus-visible {
  background: #15803d;
  outline: none;
}

.price-list-qty-btn--minus {
  background: #dc2626;
  color: #fff;
  border: 0;
}

.price-list-qty-btn--minus:hover,
.price-list-qty-btn--minus:focus-visible {
  background: #b91c1c;
  outline: none;
}

.step-subheader__total {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-subheader__inner--cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-subheader__cart-text {
  min-width: 0;
  flex: 1;
}

.step-subheader__cart-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.step-subheader .cart-toggle-btn,
.step-subheader .cart-clear-btn {
  pointer-events: auto;
  flex-shrink: 0;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--bg);
  color: var(--text-muted);
  box-shadow:
    0 4px 24px rgb(0 0 0 / 0.1),
    0 1px 4px rgb(0 0 0 / 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    color 0.15s var(--ease),
    background 0.15s var(--ease),
    transform 0.15s var(--ease),
    opacity 0.15s var(--ease);
}

.step-subheader .cart-toggle-btn {
  background: var(--brand);
  color: #fff;
}

.step-subheader .cart-toggle-btn:hover,
.step-subheader .cart-toggle-btn:focus-visible {
  background: var(--brand-hover);
  color: #fff;
  outline: none;
}

.step-subheader .cart-clear-btn:hover,
.step-subheader .cart-clear-btn:focus-visible {
  color: var(--brand);
  outline: none;
}

.step-subheader .cart-toggle-btn:active:not(:disabled),
.step-subheader .cart-clear-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.step-subheader .cart-toggle-btn svg,
.step-subheader .cart-clear-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.step-subheader .cart-toggle-btn.is-disabled,
.step-subheader .cart-toggle-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--brand);
  color: #fff;
  box-shadow:
    0 4px 24px rgb(0 0 0 / 0.1),
    0 1px 4px rgb(0 0 0 / 0.06);
}

.step-subheader .cart-clear-btn[hidden] {
  display: none !important;
}

.cart-pay {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-pay__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cart-pay__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.cart-total {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cart-swish {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0 var(--space-xl);
}

.cart-swish[hidden] {
  display: none !important;
}

.cart-swish__qr {
  display: block;
  width: 256px;
  height: 256px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  background: #fff;
  padding: var(--space-sm);
  box-sizing: border-box;
}

.cart-swish__number {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bottom-bar__label {
  max-width: 4.5rem;
  text-align: center;
  line-height: 1.15;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
