:root {
  --header-height: 88px;
  --app-header-height: var(--header-height);
  --app-header-offset-top: max(12px, calc(env(safe-area-inset-top) + 8px));
  --app-header-reserved-space: calc(var(--app-header-offset-top) + var(--app-header-height) + 16px);
  --app-header-hidden-offset: calc(-100% - var(--app-header-offset-top) - 18px);
  --app-drawer-top-space: calc(var(--app-header-offset-top) + 64px);
  --shell-inline-size: min(1200px, calc(100vw - 24px));
  --drawer-width: min(80vw, 360px);
  --drawer-transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
  --overlay-bg: rgba(11, 20, 33, 0.44);
}

html {
  scroll-padding-top: calc(var(--app-header-reserved-space) + 8px);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

body.is-scroll-locked {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  width: var(--shell-inline-size);
  margin: 0 auto 40px;
  padding-top: var(--app-header-reserved-space);
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  z-index: auto;
}

.topbar.app-header,
.site-shell main {
  grid-column: 1;
  grid-row: auto;
}

.site-shell main {
  position: relative;
  z-index: 2;
}

.topbar.app-header {
  position: fixed;
  top: var(--app-header-offset-top);
  left: 50%;
  width: var(--shell-inline-size);
  z-index: 90;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 0;
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(247, 250, 249, 0.82)),
    linear-gradient(135deg, rgba(89, 174, 165, 0.06), rgba(210, 165, 58, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 42px rgba(23, 50, 91, 0.12);
  transform: translate3d(-50%, 0, 0);
  transform-origin: top center;
  will-change: transform, opacity;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
  backface-visibility: hidden;
}

.app-header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-header-start {
  display: contents;
}

.app-header-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  width: auto;
  max-width: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(23, 50, 91, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  justify-self: center;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.app-header-brand:hover,
.app-header-brand:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(23, 50, 91, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 12px 22px rgba(23, 50, 91, 0.08);
}

.app-header-brand__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
}

.app-header-brand .app-header-logo {
  display: none;
}

.app-header-logo {
  display: block;
  width: clamp(98px, 28vw, 136px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(23, 50, 91, 0.08));
  flex: 0 1 auto;
}

.app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  justify-self: end;
  margin-left: 0;
}

.app-header-shortcut {
  display: none;
}

.app-header-action,
.app-header-shortcut {
  min-height: 44px;
}

.app-header-note {
  display: none;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 72ch;
}

.app-nav-trigger {
  position: relative;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  flex: 0 0 auto;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app-nav-trigger__icon {
  font-size: 1.24rem;
  line-height: 1;
}

.app-header-cart {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 999px;
}

.app-header-cart__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.app-header-cart__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.header-hidden:not(.nav-open) .topbar.app-header {
  transform: translate3d(-50%, var(--app-header-hidden-offset), 0);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

body.nav-open .topbar.app-header {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

body.nav-open .app-header-row,
body.nav-open .app-header-start {
  pointer-events: none;
}

body.nav-open .app-header-brand,
body.nav-open .app-header-actions,
body.nav-open .app-header-note {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.nav-open .app-nav-trigger {
  pointer-events: auto;
}

.navbar.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-width);
  max-width: 420px;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-100%);
  transition:
    transform var(--drawer-transition),
    visibility 0s linear var(--drawer-transition);
  visibility: hidden;
  pointer-events: none;
  z-index: 80;
  overflow: visible;
}

body.nav-open .navbar.app-drawer,
.navbar.app-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform var(--drawer-transition),
    visibility 0s linear 0s;
}

.app-drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: calc(var(--app-header-offset-top) + 72px) 16px max(18px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(247, 251, 250, 0.92)),
    linear-gradient(135deg, rgba(89, 174, 165, 0.08), rgba(210, 165, 58, 0.07));
  box-shadow: 18px 0 46px rgba(10, 23, 38, 0.18);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.navbar-mobile-head.app-drawer__head {
  position: fixed;
  top: calc(var(--app-header-offset-top) + 8px);
  left: 16px;
  width: calc(min(var(--drawer-width), 100vw) - 32px);
  z-index: 82;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding-left: 72px;
  padding-right: 4px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(247, 251, 250, 0.92));
  border-radius: 999px;
}

.app-drawer__head > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.app-drawer__close {
  min-height: 44px;
  align-self: center;
}

.app-drawer__brand {
  display: flex;
}

.app-drawer__brand .brand-logo-frame {
  width: 100%;
  justify-content: flex-start;
  padding: 14px;
  border-radius: 20px;
}

.app-drawer__brand .brand-logo {
  max-width: 170px;
}

.app-drawer__nav {
  display: grid;
  gap: 10px;
}

.app-drawer__nav a {
  display: block;
}

.app-drawer__section-label {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-drawer__footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.app-drawer__language {
  display: grid;
  gap: 8px;
}

.app-drawer__language-label {
  margin: 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.language-toggle--drawer {
  width: max-content;
}

.app-drawer__footer .cart-button {
  width: 100%;
  margin-top: 0;
}

.page-overlay.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.page-overlay.app-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-overlay.app-overlay.is-dimmed {
  background: var(--overlay-bg);
}

.cart-drawer {
  z-index: 100;
  width: min(420px, 100vw);
  padding: 20px 18px max(18px, env(safe-area-inset-bottom));
}

.product-lightbox {
  z-index: 110;
}

main {
  min-width: 0;
}

main > * {
  min-width: 0;
}

.home-page main,
.about-page main,
.atelier-page main,
.collection-page main,
.bomboniere-page main,
.product-page main,
.checkout-page-body main {
  display: grid;
  gap: 18px;
}

.hero,
.about-shell,
.collection-landing-hero,
.collection-story-block,
.collection-bottom-cta,
.bomboniere-section,
.atelier-section,
.bomboniere-landing-hero,
.bomboniere-request-block,
.bomboniere-bottom-cta,
.checkout-shell,
.product-detail-shell,
.product-detail-specs,
.product-detail-trust,
.site-footer,
.section-heading,
.bomboniere-commercial-grid,
.bomboniere-packages,
.bomboniere-project-examples,
.bomboniere-guides,
.trust-band,
.site-footer-grid,
.about-team-grid,
.collection-guides-grid,
.signature-grid,
.experience-grid,
.bomboniere-grid,
.form-grid {
  grid-template-columns: 1fr;
}

.hero,
.about-section,
.collection-section,
.collection-story-block,
.collection-bottom-cta,
.bomboniere-section,
.atelier-section,
.story-section,
.cta-section,
.checkout-page,
.bomboniere-request-block,
.bomboniere-bottom-cta,
.site-footer {
  padding: 22px 18px;
  border-radius: 26px;
}

.hero {
  gap: 18px;
  padding: 24px 18px 20px;
}

.section-heading {
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}

.hero h1,
.collection-landing-copy h1,
.product-detail-copy h1,
.bomboniere-landing-copy h1,
.bomboniere-request-copy h2,
.bomboniere-bottom-cta h2,
.collection-bottom-cta h2,
.bomboniere-story-copy h2,
.section-heading h2,
.checkout-page .section-heading h1,
.atelier-copy h2,
.story-panel h2,
.cta-section h2,
.booking-heading h3 {
  font-size: clamp(2.35rem, 9vw, 3.8rem);
  line-height: 0.95;
}

.hero-text,
.section-heading p,
.signature-card p,
.atelier-copy p,
.atelier-steps p,
.story-panel p,
.story-points p,
.experience-grid p,
.cta-section p,
.cart-item p,
.form-note,
.booking-output p {
  font-size: 0.98rem;
}

.hero-actions,
.collection-section-actions,
.product-meta-actions,
.product-similar-actions,
.booking-actions,
.collection-bottom-actions,
.site-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.hero-actions > *,
.collection-section-actions > *,
.product-meta-actions > *,
.product-similar-actions > *,
.booking-actions > *,
.collection-bottom-actions > *,
.bomboniere-bottom-cta > *,
.site-footer-actions > * {
  width: 100%;
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.hero-metrics article {
  min-width: 0;
}

.hero-stage,
.hero-stage-paths,
.collection-landing-visual,
.product-detail-visual,
.bomboniere-landing-visual {
  max-width: none;
  min-height: 320px;
}

.home-path-tile {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
}

.home-path-image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.home-path-copy strong {
  font-size: clamp(1.8rem, 6vw, 2.2rem);
}

.collection-preview-carousel {
  width: 100%;
  padding: 16px;
  border-radius: 24px;
}

.collection-preview-arrow {
  display: inline-flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.collection-search-bar,
.collection-filter-panel,
.collection-subcategory-bar,
.product-pagination {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.collection-search-field input,
.collection-filter-field select,
.collection-price-filter select,
.collection-filter-reset {
  width: 100%;
  min-height: 54px;
}

.checkout-shell {
  gap: 18px;
}

.checkout-summary-card {
  position: static;
}

.product-page main {
  padding-bottom: 132px;
}

.product-detail-visual {
  min-height: 380px;
}

.product-sticky-bar {
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
}

.bomboniere-bottom-cta .primary-button {
  width: 100%;
}

.contact-pills,
.lab-contact-pills {
  gap: 10px;
  flex-wrap: wrap;
}

.app-demo-shell {
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(210, 165, 58, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(89, 174, 165, 0.12), transparent 26%),
    linear-gradient(180deg, #fbf8f2 0%, #eef2f2 52%, #f6f1e8 100%);
}

.app-demo-main {
  width: min(980px, 100%);
  margin: 20px auto 0;
  display: grid;
  gap: 18px;
}

.app-demo-section {
  padding: 22px 18px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 24px 52px rgba(23, 50, 91, 0.08);
}

.app-demo-section h1,
.app-demo-section h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.app-demo-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 720px) {
  :root {
    --header-height: 112px;
    --app-drawer-top-space: calc(var(--app-header-offset-top) + 72px);
  }

  .app-header-note {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  :root {
    --shell-inline-size: min(1340px, calc(100vw - 40px));
    --drawer-width: min(420px, 34vw);
    --app-drawer-top-space: calc(var(--app-header-offset-top) + 64px);
  }

  .site-shell {
    gap: 20px;
  }

  .app-header-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .app-header-start {
    display: flex;
    justify-self: start;
    min-width: 0;
    align-items: center;
    gap: 10px;
  }

  .topbar.app-header {
    gap: 0;
    width: min(1020px, calc(100vw - 56px));
    padding: 12px 18px;
  }

  .app-header-actions {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: flex-end;
    gap: 10px;
  }

  .app-header-shortcut {
    display: inline-flex;
    min-height: 40px;
    padding: 10px 18px;
    font-size: 0.94rem;
  }

  .app-header-brand {
    max-width: none;
    width: auto;
    min-height: 40px;
    padding: 0 16px;
  }

  .app-header-note {
    display: none;
  }

  .app-header-brand__hint {
    min-height: 100%;
    padding: 0;
    font-size: 0.9rem;
  }

  .app-nav-trigger,
  .app-header-action {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .app-nav-trigger__icon {
    font-size: 1.1rem;
  }

  .hero,
  .collection-landing-hero,
  .product-detail-shell,
  .bomboniere-landing-hero,
  .bomboniere-request-block,
  .checkout-shell,
  .about-shell,
  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .bomboniere-section,
  .atelier-section {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
  }

  .collection-story-block,
  .collection-bottom-cta,
  .bomboniere-bottom-cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .trust-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-grid,
  .about-team-grid,
  .signature-grid,
  .experience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bomboniere-grid,
  .collection-guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-search-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .collection-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .hero-actions,
  .collection-section-actions,
  .product-meta-actions,
  .product-similar-actions,
  .booking-actions,
  .collection-bottom-actions,
  .site-footer-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-actions > *,
  .collection-section-actions > *,
  .product-meta-actions > *,
  .product-similar-actions > *,
  .booking-actions > *,
  .collection-bottom-actions > *,
  .site-footer-actions > * {
    width: auto;
  }

  .product-page main {
    padding-bottom: 32px;
  }
}
