:root {
  --ink: #3f2d25;
  --ink-deep: #271b17;
  --text: #5c4439;
  --muted: #8a7368;
  --paper: #fffaf6;
  --cream: #f7ece4;
  --soft: #fbf4ee;
  --blush: #efd2c1;
  --rose: #d5a98f;
  --copper: #b98568;
  --gold: #b99261;
  --sage: #7e896f;
  --line: #e8d8cd;
  --shadow: 0 18px 48px rgba(63, 45, 37, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(185, 133, 104, 0.35);
  outline-offset: 3px;
}

.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-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 216, 205, 0.9);
  background: rgba(255, 250, 246, 0.94);
  backdrop-filter: blur(18px);
}

.service-bar {
  position: relative;
  min-height: 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(185, 133, 104, 0.18);
  background:
    linear-gradient(90deg, rgba(185, 133, 104, 0.9), rgba(239, 210, 193, 0.98) 46%, rgba(213, 169, 143, 0.95)),
    var(--blush);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: serviceMarquee 26s linear infinite;
}

.service-bar:hover .service-track {
  animation-play-state: paused;
}

.service-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
  min-width: 100vw;
}

.service-track span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 28px;
  padding: 9px 30px;
  text-align: center;
  white-space: nowrap;
}

.service-track span::after {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.72);
  box-shadow: 0 0 0 1px rgba(63, 45, 37, 0.08);
  content: "";
}

@keyframes serviceMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-track {
    animation: none;
    transform: none;
  }
}

.navbar {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 18px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  color: var(--copper);
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 94px;
  height: 74px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 13px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--copper);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.social-nav span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-nav a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 246, 0.82);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.social-nav a:hover,
.social-nav a:focus-visible {
  border-color: var(--copper);
  background: #fff6ef;
  transform: translateY(-1px);
}

.social-nav img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.size-guide {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.cart-button,
.menu-toggle,
.favorite-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 250, 246, 0.82);
  color: var(--ink);
}

.cart-button {
  grid-auto-flow: column;
  gap: 8px;
  min-width: 56px;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 800;
}

.cart-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 5px 5px;
}

.cart-icon::before {
  position: absolute;
  top: -8px;
  left: 3px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.96) 0%, rgba(255, 250, 246, 0.9) 31%, rgba(255, 250, 246, 0.48) 57%, rgba(255, 250, 246, 0.08) 82%),
    linear-gradient(0deg, rgba(255, 250, 246, 0.26), rgba(255, 250, 246, 0));
}

.hero-inner {
  display: grid;
  align-items: center;
  max-width: 1260px;
  min-height: 670px;
  margin: 0 auto;
  padding: 72px 28px 92px;
}

.hero-content {
  width: min(540px, 100%);
  text-align: center;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 62px;
  font-weight: 500;
  line-height: 1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  margin-bottom: 14px;
  color: var(--copper);
  font-family: "Parisienne", cursive;
  font-size: 44px;
  font-weight: 400;
}

.flourish {
  display: inline-block;
  width: 180px;
  height: 20px;
  margin-bottom: 18px;
  background:
    linear-gradient(var(--copper), var(--copper)) left 9px / 72px 1px no-repeat,
    linear-gradient(var(--copper), var(--copper)) right 9px / 72px 1px no-repeat;
}

.flourish::before {
  display: block;
  color: var(--copper);
  content: "✦";
  font-size: 16px;
  line-height: 20px;
}

.hero-copy {
  max-width: 360px;
  margin: 0 auto 30px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-pills span {
  border: 1px solid rgba(185, 133, 104, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 250, 246, 0.68);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 5px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-button {
  border: 1px solid var(--copper);
  background: var(--copper);
  color: #fffaf6;
  box-shadow: 0 12px 28px rgba(185, 133, 104, 0.24);
}

.secondary-button,
.outline-button {
  border: 1px solid var(--copper);
  background: rgba(255, 250, 246, 0.72);
  color: var(--copper);
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover,
.outline-button:hover {
  background: var(--copper);
  color: #fffaf6;
}

.promise-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px max(28px, calc((100vw - 1260px) / 2 + 28px));
  background: linear-gradient(90deg, #fffaf6, #f6e7dc 50%, #fffaf6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise-bar article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
}

.promise-bar h2 {
  margin-bottom: 3px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.promise-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.promise-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  color: var(--copper);
}

.promise-icon::before,
.promise-icon::after {
  position: absolute;
  content: "";
}

.promise-icon.handmade::before {
  inset: 12px 7px 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  transform: rotate(-12deg);
}

.promise-icon.handmade::after {
  top: 2px;
  left: 14px;
  content: "♡";
  font-size: 24px;
}

.promise-icon.leaf::before {
  inset: 7px 13px 8px 11px;
  border: 2px solid currentColor;
  border-radius: 28px 2px 28px 2px;
  transform: rotate(22deg);
}

.promise-icon.leaf::after {
  right: 12px;
  bottom: 7px;
  width: 2px;
  height: 26px;
  background: currentColor;
  transform: rotate(40deg);
}

.promise-icon.truck::before {
  left: 4px;
  top: 13px;
  width: 24px;
  height: 15px;
  border: 2px solid currentColor;
}

.promise-icon.truck::after {
  right: 4px;
  top: 17px;
  width: 12px;
  height: 11px;
  border: 2px solid currentColor;
  border-left: 0;
  box-shadow: -20px 12px 0 -6px currentColor, 0 12px 0 -6px currentColor;
}

.promise-icon.lock::before {
  left: 10px;
  bottom: 6px;
  width: 24px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.promise-icon.lock::after {
  left: 15px;
  top: 4px;
  width: 14px;
  height: 15px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

section:not(.hero):not(.promise-bar):not(.social-strip):not(.shop-section):not(.admin-section):not(.client-section):not(.confirmation-band):not(.formation-book-section) {
  padding: 78px 28px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p {
  margin-bottom: 8px;
  color: var(--copper);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 42px;
}

.entry-section,
.featured-shop,
.collections,
.products {
  background: var(--paper);
}

.featured-shop {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(247, 236, 228, 0.82)),
    var(--cream);
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 30px;
  align-items: stretch;
  max-width: 1260px;
  margin: 0 auto;
}

.featured-copy {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 14px 32px rgba(63, 45, 37, 0.08);
}

.featured-copy h2 {
  margin-bottom: 14px;
  font-size: 40px;
}

.featured-copy p {
  color: var(--muted);
}

.feature-points {
  display: grid;
  gap: 10px;
  margin: 8px 0 24px;
}

.feature-points span {
  border-left: 2px solid var(--copper);
  padding-left: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.featured-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  box-shadow: 0 14px 32px rgba(63, 45, 37, 0.08);
}

.featured-product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  background: var(--cream);
}

.featured-product-card > div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.featured-product-card h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.featured-product-card p {
  min-height: 68px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.featured-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.featured-product-meta strong {
  color: var(--ink);
}

.featured-product-meta small {
  color: var(--muted);
  font-weight: 800;
}

.atelier-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 42px;
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
}

.atelier-band img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 0.68;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.atelier-band h2 {
  margin-bottom: 16px;
  font-size: 46px;
}

.atelier-band p:not(.section-label) {
  color: var(--muted);
}

.atelier-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.atelier-metrics span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fffdf9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.atelier-metrics strong {
  color: var(--copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.collection-grid,
.product-grid,
.steps-grid,
.custom-layout,
.entry-grid {
  display: grid;
  max-width: 1160px;
  margin: 0 auto;
  gap: 30px;
}

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

.entry-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 28px rgba(63, 45, 37, 0.08);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.entry-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.entry-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
}

.entry-card span {
  margin: 20px 20px 7px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.entry-card h3 {
  margin: 0 20px 8px;
  font-size: 25px;
}

.entry-card p {
  margin: 0 20px 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.collection-card,
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 28px rgba(63, 45, 37, 0.08);
}

.collection-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.collection-content {
  padding: 24px 22px 28px;
  text-align: center;
}

.collection-content h3 {
  margin-bottom: 6px;
  font-size: 29px;
}

.collection-content p {
  min-height: 50px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.custom-order {
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.94), rgba(247, 236, 228, 0.86)),
    var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.custom-heading h2 {
  color: var(--copper);
  font-family: "Parisienne", cursive;
  font-size: 54px;
  font-weight: 400;
}

.custom-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: start;
}

.custom-form,
.custom-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 246, 0.82);
  box-shadow: var(--shadow);
}

.custom-form {
  display: grid;
  gap: 26px;
  padding: 30px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend,
.custom-form > label,
.form-grid label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

legend {
  margin-bottom: 12px;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.request-choice,
.shape-choice,
.length-grid label {
  position: relative;
  display: block;
}

.request-choice input,
.shape-choice input,
.length-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.request-choice span,
.shape-card,
.length-grid span {
  display: grid;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf9;
  color: var(--text);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.request-choice span {
  align-content: center;
  gap: 3px;
  padding: 14px;
}

.request-choice small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.request-choice input:checked + span,
.shape-choice input:checked + .shape-card,
.length-grid input:checked + span {
  border-color: var(--copper);
  background: #fff6ef;
  box-shadow: 0 0 0 2px rgba(185, 133, 104, 0.12);
}

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

.full-field {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf9;
  color: var(--ink);
}

input,
select {
  height: 46px;
  padding: 0 13px;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--copper) 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--copper) 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    #fffdf9;
}

textarea {
  min-height: 116px;
  resize: vertical;
  padding: 13px;
}

.image-upload {
  display: grid;
  gap: 10px;
}

.image-upload input[type="file"] {
  width: 100%;
  min-height: 54px;
  border: 1px dashed rgba(185, 133, 104, 0.42);
  border-radius: 6px;
  padding: 14px;
  background: #fff7f0;
  color: var(--ink);
  cursor: pointer;
}

.image-upload span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.image-upload small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.upload-preview {
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--cream);
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.shape-card {
  place-items: center;
  gap: 8px;
  padding: 14px 8px;
  text-align: center;
}

.nail-shape {
  display: block;
  width: 34px;
  height: 48px;
  border: 2px solid var(--copper);
  background: linear-gradient(180deg, #fff9f4, #f1d3c3);
}

.nail-shape.almond {
  border-radius: 50% 50% 44% 44%;
}

.nail-shape.round {
  height: 42px;
  border-radius: 50% 50% 42% 42%;
}

.nail-shape.square {
  height: 42px;
  border-radius: 8px;
}

.nail-shape.stiletto {
  border-radius: 50% 50% 6px 6px;
  clip-path: polygon(50% 0, 88% 24%, 84% 100%, 16% 100%, 12% 24%);
}

.length-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.length-grid span {
  place-items: center;
  min-height: 44px;
  padding: 0 8px;
  text-align: center;
}

.submit-button {
  justify-self: start;
}

.custom-preview {
  overflow: hidden;
}

.custom-preview img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.preview-content {
  padding: 26px;
}

.preview-label {
  margin-bottom: 8px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-content h3 {
  margin-bottom: 16px;
  font-size: 32px;
}

.preview-content dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}

.preview-content dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-content dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.preview-content p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
  text-align: center;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
}

.product-card h3 {
  margin-bottom: 4px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.product-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.product-card .outline-button {
  min-height: 39px;
  padding: 0 16px;
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 250, 246, 0.92);
  color: var(--copper);
  font-size: 20px;
  line-height: 1;
}

.steps {
  background: linear-gradient(90deg, #fffaf6, #f8eade 50%, #fffaf6);
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

.steps-grid article {
  min-height: 190px;
  padding: 16px 18px 0;
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
}

.steps-grid h3 {
  margin-bottom: 8px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.steps-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.social-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  background: var(--cream);
}

.social-copy {
  display: grid;
  align-content: center;
  min-height: 165px;
  padding: 28px max(28px, calc((100vw - 1260px) / 2 + 28px)) 28px 28px;
}

.social-copy p {
  margin-bottom: 4px;
  color: var(--copper);
  font-family: "Parisienne", cursive;
  font-size: 32px;
}

.social-copy strong {
  margin-bottom: 18px;
  color: var(--ink);
}

.social-copy .outline-button {
  justify-self: start;
  min-height: 39px;
}

.social-strip img {
  width: 100%;
  height: 100%;
  min-height: 165px;
  object-fit: cover;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 38px;
  padding: 52px max(28px, calc((100vw - 1260px) / 2 + 28px));
  border-top: 1px solid var(--line);
  background: #fff8f2;
}

.footer h2 {
  margin-bottom: 14px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer p,
.footer a:not(.brand) {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand .brand-logo {
  width: 128px;
  height: auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 40px));
  border-radius: 6px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.primary-button:disabled,
.secondary-button:disabled,
.outline-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.section-label,
.product-badge {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.commerce-page,
.admin-page,
.client-page,
.formation-page {
  background: linear-gradient(180deg, #fffaf6, #fbf2ec 44%, #fffaf6);
}

.shop-section,
.admin-section,
.client-section {
  padding: 72px 28px;
}

.compact-section {
  padding-top: 24px;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  max-width: 1260px;
  margin: 0 auto 34px;
}

.shop-toolbar h1 {
  margin-bottom: 14px;
  font-size: 58px;
}

.shop-toolbar p:not(.section-label) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.shop-controls {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(180px, 220px);
  gap: 12px;
  justify-items: stretch;
}

.search-control,
.sort-control {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-control input,
.sort-control select {
  margin-top: 8px;
}

.filter-group {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 14px;
  background: rgba(255, 250, 246, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--paper);
}

.shop-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1260px;
  margin: -12px auto 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: rgba(255, 253, 249, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shop-status span {
  color: var(--ink);
}

.shop-layout,
.admin-layout,
.client-layout {
  display: grid;
  max-width: 1260px;
  margin: 0 auto;
  gap: 30px;
  align-items: start;
}

.shop-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.shop-card,
.cart-panel,
.admin-form,
.admin-panel,
.admin-login-card,
.auth-card,
.client-account-panel,
.invoice-list-panel,
.invoice-detail-panel,
.confirmation-band > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 246, 0.88);
  box-shadow: 0 14px 32px rgba(63, 45, 37, 0.08);
}

.shop-card {
  overflow: hidden;
}

.shop-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  background: var(--cream);
}

.shop-card-content {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.shop-card h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.shop-card p {
  min-height: 50px;
  margin-bottom: 0;
  color: var(--muted);
}

.shop-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.shop-card-meta small {
  color: var(--muted);
  font-weight: 700;
}

.shop-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-card-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff7f0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-panel {
  position: sticky;
  top: 136px;
  padding: 24px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading.centered {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.cart-lines,
.admin-list,
.admin-orders,
.invoice-list {
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.cart-line img {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-line h3,
.admin-product-row h3,
.admin-order-row h3,
.admin-customer-row h3,
.admin-request-row h3 {
  margin-bottom: 4px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.cart-line p,
.admin-product-row p,
.admin-order-row p,
.admin-customer-row p,
.admin-request-row p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quantity-controls button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf9;
  color: var(--ink);
  font-weight: 800;
}

.quantity-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.remove-button {
  padding: 0 9px;
  color: var(--copper) !important;
  font-size: 12px;
}

.cart-totals,
.invoice-totals {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.cart-totals div,
.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.cart-totals dt,
.invoice-totals dt {
  color: var(--muted);
  font-weight: 700;
}

.cart-totals dd,
.invoice-totals dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 18px;
}

.checkout-form,
.admin-form,
.admin-login-card,
.auth-card,
.invoice-search {
  display: grid;
  gap: 14px;
}

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

.checkout-form label,
.admin-form label,
.admin-login-card label,
.auth-card label,
.invoice-search label,
.admin-order-row label,
.admin-request-row label,
.admin-stock-row label,
.request-admin-fields label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.confirmation-band {
  padding: 0 28px 72px;
}

.confirmation-band > div {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.confirmation-band h2 {
  font-size: 38px;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 253, 249, 0.72);
  text-align: center;
}

.empty-state.compact {
  min-height: 130px;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 6px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.empty-state p {
  margin-bottom: 12px;
  color: var(--muted);
}

.admin-note {
  display: grid;
  gap: 4px;
  max-width: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fffdf9;
}

.admin-note strong {
  color: var(--ink);
}

.admin-note span {
  color: var(--muted);
  font-size: 13px;
}

.admin-note .outline-button {
  margin-top: 8px;
}

.admin-login-card {
  max-width: 520px;
  margin: 0 auto 34px;
  padding: 28px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 1260px;
  margin: 0 auto 30px;
}

body.admin-locked [data-admin-private],
body.admin-locked [data-admin-workspace],
[data-admin-private][hidden],
body.client-locked [data-client-private],
[data-admin-workspace][hidden],
[data-client-private][hidden] {
  display: none !important;
}

body.admin-locked .top-strip,
body.admin-locked .service-bar,
body.admin-locked .nav-links,
body.admin-locked .nav-actions,
body.admin-locked .menu-toggle,
body.admin-locked .footer,
body.admin-locked .chatbot-widget,
body.client-locked .top-strip,
body.client-locked .service-bar,
body.client-locked .nav-links,
body.client-locked .nav-actions,
body.client-locked .menu-toggle,
body.client-locked .footer,
body.client-locked .chatbot-widget {
  display: none !important;
}

body.admin-locked .nav-shell,
body.client-locked .nav-shell {
  justify-content: center;
  min-height: 92px;
}

body.admin-locked .brand-logo,
body.client-locked .brand-logo {
  margin: 0 auto;
}

.admin-overview article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(63, 45, 37, 0.07);
}

.admin-overview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-overview strong {
  color: var(--copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.admin-overview small {
  color: var(--muted);
  font-weight: 700;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1260px;
  margin: 0 auto 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: rgba(255, 250, 246, 0.8);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-tab.is-active,
.admin-tab:hover {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--paper);
}

.admin-tab span {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(63, 45, 37, 0.1);
  text-align: center;
}

.admin-tab.is-active span {
  background: rgba(255, 250, 246, 0.22);
}

.admin-tab-panel {
  max-width: 1260px;
  margin: 0 auto;
}

.admin-tab-panel[hidden] {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.admin-alert-list,
.stock-list {
  display: grid;
  gap: 14px;
}

.admin-alert-row,
.admin-stock-row {
  display: grid;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fffdf9;
}

.admin-alert-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-alert-row.is-warning,
.admin-stock-row.is-warning {
  border-color: rgba(185, 133, 104, 0.42);
  background: #fff7f0;
}

.admin-alert-row.is-danger,
.admin-stock-row.is-danger {
  border-color: rgba(162, 67, 67, 0.38);
  background: #fff3f1;
}

.admin-alert-row h3,
.admin-stock-row h3 {
  margin-bottom: 4px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.admin-alert-row p,
.admin-stock-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf2e8;
  color: #596848;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-status.is-warning {
  background: #f6dfcf;
  color: #8c5c42;
}

.stock-status.is-danger {
  background: #f4d7d2;
  color: #9b3e35;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f5eee8;
  color: #7a6254;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-status.is-paid {
  background: #edf2e8;
  color: #596848;
}

.payment-status.is-pending {
  background: #fff1df;
  color: #91613c;
}

.payment-status.is-waiting {
  background: #f5eee8;
  color: #7a6254;
}

.payment-status.is-failed {
  background: #f4d7d2;
  color: #9b3e35;
}

.invoice-list-item .payment-status,
.invoice-totals .payment-status,
.admin-order-row .payment-status {
  margin-top: 3px;
}

.admin-stock-row {
  grid-template-columns: 86px minmax(0, 1fr) minmax(250px, 320px) auto;
}

.admin-stock-row img {
  width: 86px;
  height: 86px;
  border-radius: 6px;
  object-fit: cover;
}

.stock-edit {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 150px);
  gap: 12px;
}

.stock-stepper {
  display: grid;
  grid-template-columns: 36px minmax(70px, 1fr) 36px;
  gap: 6px;
  margin-top: 8px;
}

.stock-stepper button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.request-detail {
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.request-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.request-detail p {
  margin-bottom: 0;
}

.request-photo {
  display: grid;
  gap: 8px;
  max-width: 280px;
  margin: 14px 0 0;
}

.request-photo img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--cream);
}

.request-photo figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.request-admin-fields {
  display: grid;
  gap: 12px;
}

.admin-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.admin-form,
.admin-panel,
.admin-login-card,
.auth-card,
.client-account-panel,
.invoice-list-panel,
.invoice-detail-panel {
  padding: 24px;
}

.admin-actions,
.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-product-row,
.admin-order-row,
.admin-customer-row,
.admin-request-row {
  display: grid;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fffdf9;
}

.admin-product-row {
  grid-template-columns: 96px minmax(0, 1fr) auto;
}

.admin-product-row img {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-order-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 220px) minmax(140px, 170px) auto;
}

.admin-customer-row {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto;
}

.admin-request-row {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) auto;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.email-status-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: rgba(255, 250, 246, 0.78);
}

.email-status-card p,
.email-status-card small {
  margin: 0;
  color: var(--muted);
}

.email-template-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.email-template-list article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fffdf9;
}

.email-template-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.email-template-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.visual-actions {
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.site-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.site-image-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fffdf9;
}

.site-image-card > img {
  width: 100%;
  aspect-ratio: 1 / 0.64;
  border-radius: 6px;
  object-fit: cover;
  background: var(--cream);
}

.site-image-card h3 {
  margin-bottom: 5px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.site-image-card p,
.site-image-card small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-upload {
  gap: 8px;
}

.compact-upload input[type="file"] {
  min-height: 48px;
}

.notify-toggle {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  text-transform: none !important;
}

.notify-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--copper);
}

.admin-customer-row small,
.admin-request-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.danger-button {
  border-color: #c87979;
  color: #a24343;
}

.reset-button {
  margin-top: 18px;
}

.client-layout {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 30px;
  align-items: start;
  max-width: 1260px;
  margin: 0 auto 30px;
}

.auth-layout[hidden],
.client-account-panel[hidden] {
  display: none;
}

.client-session-card {
  display: grid;
  gap: 4px;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fffdf9;
}

.client-session-card span,
.account-status {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-session-card strong {
  color: var(--ink);
}

.client-session-card small {
  color: var(--muted);
}

.client-account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1260px;
  margin: 0 auto 30px;
}

.account-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: center;
  width: 100%;
}

.account-summary h2 {
  margin: 4px 0 8px;
  font-size: 34px;
}

.account-summary p {
  margin-bottom: 4px;
  color: var(--muted);
}

.account-stats,
.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.account-stats div,
.mini-stats div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 253, 249, 0.72);
}

.account-stats dt,
.mini-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-stats dd,
.mini-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.invoice-search {
  grid-template-columns: minmax(240px, 320px) auto;
  align-items: end;
}

.invoice-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: #fffdf9;
  color: var(--text);
  text-align: left;
}

.invoice-list-item.is-selected,
.invoice-list-item:hover {
  border-color: var(--copper);
  box-shadow: 0 0 0 2px rgba(185, 133, 104, 0.12);
}

.invoice-list-item span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-list-item strong {
  color: var(--ink);
}

.invoice-list-item small {
  color: var(--muted);
}

.invoice-paper {
  background: #fffdf9;
}

.invoice-top,
.invoice-parties,
.invoice-line {
  display: grid;
  gap: 18px;
}

.invoice-top {
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.invoice-top img {
  width: 100px;
}

.invoice-top h2 {
  margin-bottom: 4px;
  font-size: 34px;
}

.invoice-parties {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.invoice-parties h3 {
  margin-bottom: 8px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-parties p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.invoice-lines {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.invoice-line {
  grid-template-columns: minmax(0, 1fr) 70px 110px;
  padding: 14px;
  background: #fffdf9;
}

.invoice-line + .invoice-line {
  border-top: 1px solid var(--line);
}

.invoice-line.heading {
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-line small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.invoice-totals {
  margin-left: auto;
  max-width: 320px;
}

.invoice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.invoice-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.how-hero,
.compose-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 430px;
  padding: 80px 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.96), rgba(255, 250, 246, 0.68)),
    var(--site-bg, url("assets/gb-hero.jpg")) center / cover;
}

.compose-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.96), rgba(255, 250, 246, 0.58)),
    var(--site-bg, url("assets/atelier-mesure.jpg")) center / cover;
}

.collections-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.96), rgba(255, 250, 246, 0.6)),
    var(--site-bg, url("assets/collection-iconique.png")) center / cover;
}

.custom-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.96), rgba(255, 250, 246, 0.6)),
    var(--site-bg, url("assets/atelier-mesure.jpg")) center / cover;
}

.how-hero-content,
.compose-hero > div {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.how-hero h1,
.compose-hero h1 {
  margin-bottom: 18px;
  font-size: 58px;
}

.how-hero p:not(.section-label),
.compose-hero p:not(.section-label) {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.choice-section,
.comparison-section,
.measure-section,
.faq-mini,
.compose-workbench {
  padding: 72px 28px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1260px;
  margin: 0 auto;
}

.choice-card {
  display: grid;
  align-content: start;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 250, 246, 0.88);
  box-shadow: 0 14px 32px rgba(63, 45, 37, 0.08);
}

.choice-card > span {
  color: var(--copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
}

.choice-card h3 {
  margin: 14px 0 10px;
  font-size: 29px;
}

.choice-card p,
.choice-card li {
  color: var(--muted);
  font-size: 14px;
}

.choice-card ol {
  display: grid;
  gap: 8px;
  margin: 8px 0 22px;
  padding-left: 18px;
}

.choice-card .outline-button {
  align-self: end;
  margin-top: auto;
}

.comparison-section {
  background: var(--cream);
}

.comparison-table {
  display: grid;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  box-shadow: 0 14px 32px rgba(63, 45, 37, 0.08);
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
}

.comparison-table > div + div {
  border-top: 1px solid var(--line);
}

.comparison-table span,
.comparison-table strong {
  padding: 16px;
  border-left: 1px solid var(--line);
}

.comparison-table span:first-child,
.comparison-table strong:first-child {
  border-left: 0;
}

.comparison-table strong {
  background: #fff5ef;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.comparison-table span {
  color: var(--muted);
  font-size: 14px;
}

.measure-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.measure-section h2 {
  font-size: 46px;
}

.measure-section p:not(.section-label) {
  color: var(--muted);
}

.measure-steps {
  display: grid;
  gap: 14px;
}

.measure-steps article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fffdf9;
}

.measure-steps strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
}

.measure-steps span {
  color: var(--text);
  font-weight: 700;
}

.compose-page {
  background: linear-gradient(180deg, #fffaf6, #fbf2ec 48%, #fffaf6);
}

.compose-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  gap: 30px;
  align-items: start;
  max-width: 1260px;
  margin: 0 auto;
}

.design-gallery,
.set-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 250, 246, 0.88);
  box-shadow: 0 14px 32px rgba(63, 45, 37, 0.08);
}

.set-board {
  position: sticky;
  top: 136px;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.design-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 10px;
  background: #fffdf9;
  color: var(--text);
  text-align: center;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.design-card:hover {
  border-color: var(--copper);
  box-shadow: 0 10px 22px rgba(63, 45, 37, 0.08);
  transform: translateY(-2px);
}

.design-preview,
.nail-slot > span {
  position: relative;
  display: block;
  width: 40px;
  height: 62px;
  border: 1px solid rgba(63, 45, 37, 0.16);
  border-radius: 50% 50% 42% 42%;
  background:
    linear-gradient(135deg, transparent 46%, var(--design-accent) 47% 53%, transparent 54%),
    var(--design-color);
  box-shadow: inset 7px 0 15px rgba(255, 255, 255, 0.34);
}

.design-card strong {
  color: var(--ink);
  font-size: 13px;
}

.design-card small {
  color: var(--muted);
  font-weight: 700;
}

.nail-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.nail-slot {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 112px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 6px;
  background: rgba(255, 253, 249, 0.74);
  color: var(--muted);
}

.nail-slot.is-filled {
  border-style: solid;
  border-color: var(--copper);
}

.nail-slot:not(.is-filled) > span {
  background: transparent;
  border-style: dashed;
}

.nail-slot small {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.compose-options {
  display: grid;
  gap: 20px;
}

.compose-options .length-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compose-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--ink);
}

.compose-summary span {
  color: var(--muted);
  font-weight: 700;
}

.compose-summary strong {
  font-size: 24px;
}

.formation-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.96), rgba(255, 250, 246, 0.64)),
    var(--site-bg, url("assets/atelier-mesure.jpg")) center / cover;
}

.formation-book-section {
  scroll-margin-top: 240px;
  padding: 72px 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(126, 137, 111, 0.14), transparent 34%),
    linear-gradient(180deg, #fffaf6, #f6e7dc 52%, #fffaf6);
}

.formation-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1260px;
  margin: 0 auto;
}

.formation-shell > * {
  min-width: 0;
}

.ebook-index {
  position: sticky;
  top: 136px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 14px 32px rgba(63, 45, 37, 0.08);
}

.ebook-index h2 {
  margin-bottom: 18px;
  font-size: 34px;
}

.ebook-chapters {
  display: grid;
  gap: 8px;
}

.ebook-chapters button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ebook-chapters button:hover,
.ebook-chapters button.is-active {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--paper);
  transform: translateX(3px);
}

.ebook-score {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.ebook-score span {
  color: var(--copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.ebook-score strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.ebook-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadbd1;
}

.ebook-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--copper));
  transition: width 260ms ease;
}

.ebook-reader {
  min-width: 0;
}

.ebook-toolbar,
.ebook-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ebook-toolbar {
  margin-bottom: 16px;
}

.ebook-toolbar span {
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.ebook-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.ebook-icon-button:hover {
  border-color: var(--copper);
  background: #fff6ef;
  transform: translateY(-1px);
}

.ebook-icon-button:disabled,
.ebook-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.ebook-book {
  position: relative;
  perspective: 1900px;
}

.ebook-spread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 660px;
  border-radius: var(--radius);
  filter: drop-shadow(0 24px 40px rgba(63, 45, 37, 0.16));
  transform-style: preserve-3d;
}

.ebook-spread::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: calc(50% - 1px);
  z-index: 3;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(63, 45, 37, 0.2), transparent);
  content: "";
  pointer-events: none;
}

.ebook-page,
.ebook-page-turn {
  min-height: 660px;
  border: 1px solid #ead8cc;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(0deg, rgba(185, 133, 104, 0.035), rgba(185, 133, 104, 0.035) 1px, transparent 1px, transparent 34px),
    #fffaf5;
  color: var(--text);
}

.ebook-page {
  position: relative;
  overflow: hidden;
  padding: 38px 34px;
}

.ebook-page::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, transparent 50%, rgba(185, 133, 104, 0.14) 51%);
  content: "";
}

.ebook-left {
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: inset -24px 0 32px rgba(63, 45, 37, 0.06);
}

.ebook-right {
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: inset 24px 0 32px rgba(63, 45, 37, 0.06);
}

.ebook-page-turn {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: calc(50% + 1px);
  overflow: hidden;
  padding: 38px 34px;
  backface-visibility: hidden;
  box-shadow: 0 20px 46px rgba(63, 45, 37, 0.18);
  transform-style: preserve-3d;
}

.ebook-page-turn[hidden] {
  display: none;
}

.ebook-page-turn.is-forward {
  right: 0;
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  transform-origin: left center;
  animation: ebookTurnForward 680ms cubic-bezier(0.45, 0.02, 0.18, 1) forwards;
}

.ebook-page-turn.is-back {
  left: 0;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  transform-origin: right center;
  animation: ebookTurnBack 680ms cubic-bezier(0.45, 0.02, 0.18, 1) forwards;
}

@keyframes ebookTurnForward {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-178deg);
  }
}

@keyframes ebookTurnBack {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(178deg);
  }
}

.ebook-page h2,
.ebook-page-turn h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 42px;
}

.ebook-page h3,
.ebook-page-turn h3 {
  font-size: 28px;
}

.page-number {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(185, 133, 104, 0.34);
  border-radius: 50%;
  color: var(--copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.page-lead {
  color: var(--ink);
  font-size: 17px;
}

.page-note {
  border-left: 2px solid var(--copper);
  margin-top: 20px;
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.ebook-cover-page {
  display: grid;
  place-items: center;
  min-height: 580px;
  text-align: center;
}

.ebook-cover-page img {
  width: min(220px, 62%);
  margin-bottom: 24px;
}

.ebook-cover-page span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ebook-cover-page h2 {
  color: var(--copper);
  font-family: "Parisienne", cursive;
  font-size: 62px;
  font-weight: 400;
}

.ebook-cover-page p {
  max-width: 360px;
  color: var(--muted);
}

.ebook-cover-page small {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ebook-cover-page.closing h2 {
  max-width: 420px;
}

.lesson-strip,
.ebook-order-flow {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

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

.lesson-strip span,
.ebook-order-flow span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ebook-list,
.ebook-steps,
.quiz-list,
.mini-checklist,
.ebook-dl {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.ebook-list {
  padding-left: 18px;
}

.ebook-list li {
  color: var(--muted);
  font-weight: 700;
}

.accent-list li::marker {
  color: var(--copper);
}

.ebook-steps {
  padding-left: 0;
  list-style: none;
}

.ebook-steps li,
.ebook-dl div,
.mini-checklist label {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 253, 249, 0.74);
}

.ebook-steps strong,
.ebook-dl dt {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ebook-steps span,
.ebook-dl dd {
  color: var(--muted);
  font-size: 14px;
}

.ebook-dl dd {
  margin: 0;
}

.nail-ruler {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fffdf9;
}

.nail-ruler .nail-shape {
  width: 48px;
  height: 74px;
}

.nail-ruler strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nail-ruler p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.swatch-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.swatch-row span {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(63, 45, 37, 0.12);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 9px 8px 16px rgba(255, 255, 255, 0.34);
}

.ebook-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ebook-photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--cream);
}

.ebook-photo-grid.tall img {
  aspect-ratio: 1 / 1.08;
}

.mini-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.mini-checklist input {
  width: 18px;
  height: 18px;
  margin-top: 0;
  accent-color: var(--copper);
}

.quiz-list button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fffdf9;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.quiz-list button:hover,
.quiz-list button.is-correct {
  border-color: var(--sage);
  background: #edf2e8;
}

.quiz-list button.is-wrong {
  border-color: #c87979;
  background: #fff3f1;
}

.ebook-actions {
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .ebook-page-turn {
    animation: none !important;
  }
}

.chatbot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  padding: 0;
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(185, 133, 104, 0.5);
  border-radius: 8px;
  padding: 7px 11px 7px 7px;
  background: #fffdf9;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.chatbot-toggle span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--copper);
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.chatbot-toggle strong {
  font-size: 12px;
  text-transform: uppercase;
}

.chatbot-widget.is-proactive .chatbot-toggle {
  animation: chatbotGlow 1400ms ease-in-out 2;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  box-shadow: 0 24px 60px rgba(63, 45, 37, 0.18);
}

.formation-body .chatbot-panel {
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}

.formation-body .chatbot-suggestions {
  display: none;
}

.formation-body .chatbot-panel header button,
.formation-body .chat-links a,
.formation-body .chat-links button,
.formation-body .chatbot-form,
.formation-body .chatbot-form * {
  pointer-events: auto;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.chatbot-panel header span {
  display: block;
  color: var(--copper);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chatbot-panel header strong {
  color: var(--ink);
}

.chatbot-panel header button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  max-width: 88%;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 13px;
}

.chat-message p {
  margin-bottom: 0;
}

.chat-message.bot {
  justify-self: start;
  background: var(--soft);
  color: var(--text);
}

.chat-message.user {
  justify-self: end;
  background: var(--copper);
  color: var(--paper);
}

.chat-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chat-links a,
.chat-links button {
  border: 1px solid var(--copper);
  border-radius: 5px;
  padding: 6px 9px;
  background: #fffdf9;
  color: var(--copper);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-links button {
  cursor: pointer;
}

.chat-message.typing {
  display: inline-flex;
  gap: 5px;
  width: max-content;
}

.chat-message.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.35;
  animation: chatPulse 900ms infinite ease-in-out;
}

.chat-message.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-message.typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes chatPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes chatbotGlow {
  0%,
  100% {
    box-shadow: var(--shadow);
  }

  50% {
    box-shadow: 0 18px 46px rgba(185, 133, 104, 0.32);
    transform: translateY(-2px);
  }
}

.chatbot-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
}

.chatbot-suggestions button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  background: #fffdf9;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 16px 16px;
}

.chatbot-form input {
  height: 42px;
  margin-top: 0;
}

.chatbot-form button {
  min-height: 42px;
  border: 1px solid var(--copper);
  border-radius: 5px;
  padding: 0 12px;
  background: var(--copper);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-appbar,
.mobile-install-prompt {
  display: none;
}

.mobile-tab-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.mobile-tab-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 1040px) {
  .service-bar {
    min-height: 32px;
    font-size: 10px;
  }

  .service-track {
    animation-duration: 20s;
  }

  .service-track span {
    gap: 20px;
    padding: 8px 20px;
  }

  .navbar {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 4px;
    order: -1;
  }

  .nav-links {
    position: fixed;
    top: 113px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px;
  }

  .nav-links a::after {
    display: none;
  }

  .size-guide {
    display: none;
  }

  .social-nav {
    display: none;
  }

  .hero-wash {
    background:
      linear-gradient(90deg, rgba(255, 250, 246, 0.98), rgba(255, 250, 246, 0.72) 58%, rgba(255, 250, 246, 0.2)),
      linear-gradient(0deg, rgba(255, 250, 246, 0.34), rgba(255, 250, 246, 0));
  }

  .promise-bar,
  .product-grid,
  .steps-grid,
  .entry-grid,
  .footer,
  .site-image-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-layout,
  .collection-grid,
  .featured-layout,
  .atelier-band,
  .shop-layout,
  .admin-layout,
  .settings-layout,
  .auth-layout,
  .client-layout,
  .account-summary,
  .compose-workbench,
  .measure-section,
  .formation-shell {
    grid-template-columns: 1fr;
  }

  .ebook-index {
    position: static;
  }

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

  .ebook-spread,
  .ebook-page,
  .ebook-page-turn {
    min-height: 620px;
  }

  .shop-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .filter-group {
    justify-content: flex-start;
  }

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

  .cart-panel {
    position: static;
  }

  .choice-grid,
  .featured-products,
  .admin-overview,
  .design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .set-board {
    position: static;
  }

  .collection-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .collection-card img {
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto;
  }

  .collection-content {
    display: grid;
    align-content: center;
  }

  .social-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 96px;
  }

  body {
    font-size: 15px;
    overscroll-behavior-y: contain;
  }

  body.has-mobile-appbar {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  input,
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
  }

  textarea {
    min-height: 132px;
  }

  button,
  a,
  .primary-button,
  .secondary-button,
  .outline-button {
    -webkit-tap-highlight-color: rgba(185, 133, 104, 0.18);
  }

  .mobile-appbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 92;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid rgba(232, 216, 205, 0.92);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: rgba(255, 250, 246, 0.94);
    box-shadow: 0 -16px 36px rgba(63, 45, 37, 0.12);
    backdrop-filter: blur(18px);
  }

  .mobile-tab {
    position: relative;
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 56px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
  }

  .mobile-tab.is-active {
    background: #fff5ef;
    color: var(--copper);
  }

  .mobile-tab-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 23px);
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border: 2px solid var(--paper);
    border-radius: 999px;
    background: var(--copper);
    color: var(--paper);
    font-size: 10px;
    line-height: 1;
  }

  .mobile-tab-badge[hidden] {
    display: none;
  }

  .mobile-install-prompt {
    position: fixed;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 88;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(185, 133, 104, 0.32);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 16px 40px rgba(63, 45, 37, 0.16);
    backdrop-filter: blur(16px);
  }

  .mobile-install-prompt[hidden] {
    display: none;
  }

  .mobile-install-prompt strong,
  .mobile-install-prompt span {
    display: block;
  }

  .mobile-install-prompt strong {
    color: var(--ink);
    font-size: 13px;
  }

  .mobile-install-prompt span {
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-install-prompt button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 11px;
    background: #fffdf9;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-install-prompt [data-install-app] {
    border-color: var(--copper);
    background: var(--copper);
    color: var(--paper);
  }

  .navbar {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0;
    padding: 10px 16px;
  }

  .brand-logo {
    width: 70px;
    height: 56px;
  }

  .brand {
    justify-self: center;
  }

  .menu-toggle {
    grid-column: 1;
    justify-self: start;
    width: 42px;
    height: 42px;
  }

  .navbar > .brand {
    grid-column: 2;
    grid-row: 1;
  }

  .navbar .nav-actions {
    display: none;
  }

  .service-bar {
    min-height: 26px;
    font-size: 9px;
  }

  .service-track {
    animation-duration: 16s;
  }

  .service-track span {
    gap: 14px;
    padding: 6px 18px;
  }

  .nav-links {
    top: 82px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    min-height: calc(100svh - 82px);
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-wash {
    background:
      linear-gradient(0deg, rgba(255, 250, 246, 0.94), rgba(255, 250, 246, 0.7) 54%, rgba(255, 250, 246, 0.28)),
      linear-gradient(90deg, rgba(255, 250, 246, 0.95), rgba(255, 250, 246, 0.52));
  }

  .hero-inner {
    align-items: end;
    min-height: calc(100svh - 82px);
    padding: 30px 18px 174px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-kicker {
    font-size: 42px;
  }

  h1 {
    font-size: 34px;
  }

  .flourish {
    margin-left: 0;
  }

  .hero-copy {
    margin-left: 0;
    font-size: 19px;
  }

  .hero-actions {
    display: grid;
    justify-content: stretch;
    gap: 10px;
  }

  .primary-button,
  .secondary-button,
  .outline-button {
    width: 100%;
    max-width: none;
    min-height: 50px;
  }

  .promise-bar {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  section:not(.hero):not(.promise-bar):not(.social-strip):not(.shop-section):not(.admin-section):not(.client-section):not(.confirmation-band):not(.formation-book-section) {
    padding: 58px 18px;
  }

  .shop-section,
  .admin-section,
  .client-section,
  .choice-section,
  .comparison-section,
  .measure-section,
  .faq-mini,
  .compose-workbench {
    padding: 54px 18px;
  }

  .formation-book-section {
    padding: 54px 18px;
  }

  .confirmation-band {
    padding: 0 18px 54px;
  }

  .shop-toolbar h1 {
    font-size: 40px;
  }

  .how-hero,
  .compose-hero {
    min-height: 380px;
    padding: 58px 18px;
  }

  .how-hero-content,
  .compose-hero > div {
    text-align: left;
  }

  .how-hero h1,
  .compose-hero h1 {
    font-size: 40px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .custom-heading h2 {
    font-size: 45px;
  }

  .collection-card {
    display: block;
  }

  .collection-card img {
    min-height: auto;
    aspect-ratio: 1 / 0.82;
  }

  .collection-content {
    text-align: left;
  }

  .custom-form {
    padding: 22px;
  }

  .shop-card,
  .entry-card,
  .collection-card,
  .admin-form,
  .admin-panel,
  .admin-login-card,
  .auth-card,
  .client-account-panel,
  .invoice-list-panel,
  .invoice-detail-panel,
  .cart-panel {
    box-shadow: 0 10px 24px rgba(63, 45, 37, 0.08);
  }

  .shop-controls,
  .checkout-form,
  .auth-card,
  .admin-form,
  .custom-form,
  .compose-options {
    gap: 16px;
  }

  .filter-group,
  .admin-tabs,
  .ebook-chapters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar,
  .admin-tabs::-webkit-scrollbar,
  .ebook-chapters::-webkit-scrollbar {
    display: none;
  }

  .filter-button,
  .admin-tab,
  .ebook-chapters button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .shop-status {
    display: grid;
  }

  .request-grid,
  .form-grid,
  .shape-grid,
  .length-grid,
  .product-grid,
  .entry-grid,
  .shop-grid,
  .site-image-grid,
  .checkout-form,
  .auth-layout,
  .account-summary,
  .account-stats,
  .mini-stats,
  .shop-controls,
  .featured-products,
  .atelier-metrics,
  .admin-overview,
  .invoice-search,
  .invoice-parties,
  .choice-grid,
  .dashboard-grid,
  .settings-layout,
  .stock-edit,
  .comparison-table > div,
  .steps-grid,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .ebook-toolbar {
    justify-content: space-between;
  }

  .ebook-toolbar span {
    min-width: 0;
  }

  .ebook-spread {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .ebook-spread::before,
  .ebook-right {
    display: none;
  }

  .ebook-left {
    border-right: 1px solid #ead8cc;
    border-radius: var(--radius);
  }

  .ebook-page,
  .ebook-page-turn {
    min-height: 620px;
    padding: 28px 22px;
  }

  .ebook-page h2,
  .ebook-page-turn h2 {
    font-size: 34px;
  }

  .ebook-page-turn {
    left: 0;
    width: 100%;
    border-radius: var(--radius);
  }

  .ebook-page-turn.is-forward {
    right: auto;
    left: 0;
    border-left: 1px solid #ead8cc;
    transform-origin: left center;
  }

  .ebook-page-turn.is-back {
    left: 0;
    border-right: 1px solid #ead8cc;
    transform-origin: right center;
  }

  .ebook-cover-page {
    min-height: 540px;
  }

  .ebook-cover-page h2 {
    font-size: 48px;
  }

  .lesson-strip,
  .ebook-photo-grid,
  .nail-ruler {
    grid-template-columns: 1fr;
  }

  .ebook-actions {
    display: grid;
    justify-items: stretch;
  }

  .admin-product-row,
  .admin-alert-row,
  .admin-stock-row,
  .admin-order-row,
  .admin-customer-row,
  .admin-request-row,
  .cart-line,
  .invoice-top,
  .invoice-line {
    grid-template-columns: 1fr;
  }

  .cart-line img,
  .admin-product-row img,
  .admin-stock-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.62;
  }

  .invoice-footer,
  .client-account-panel,
  .shop-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-totals {
    max-width: none;
  }

  .comparison-table span,
  .comparison-table strong {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .comparison-table strong:first-child,
  .comparison-table span:first-child {
    border-top: 0;
  }

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

  .full-field {
    grid-column: auto;
  }

  .submit-button,
  .featured-copy .primary-button,
  .featured-product-card .outline-button,
  .social-copy .outline-button {
    justify-self: stretch;
  }

  .social-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-copy {
    padding: 28px 18px;
  }

  .footer {
    padding: 42px 18px calc(116px + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    max-width: none;
    text-align: center;
  }

  .chatbot-widget {
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0 !important;
    max-width: calc(100vw - 24px);
  }

  .chatbot-toggle {
    width: 54px;
    height: 54px;
    min-height: 54px;
    justify-content: center;
    border-radius: 999px;
    padding: 6px;
  }

  .chatbot-toggle strong {
    display: none;
  }

  .chatbot-toggle span {
    width: 40px;
    height: 40px;
    border-radius: 999px;
  }

  .chatbot-panel {
    position: fixed;
    right: 10px;
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
    max-height: calc(100svh - 178px);
  }

  .chatbot-form {
    grid-template-columns: 1fr;
  }

  .chatbot-messages {
    max-height: min(300px, calc(100svh - 360px));
  }
}

@media print {
  .site-header,
  .footer,
  .invoice-list-panel,
  .invoice-search,
  .shop-toolbar,
  .toast,
  .chatbot-widget,
  .print-button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .client-section,
  section:not(.hero):not(.promise-bar):not(.social-strip):not(.shop-section):not(.admin-section):not(.client-section):not(.confirmation-band):not(.formation-book-section) {
    padding: 0;
  }

  .client-layout,
  .invoice-detail-panel {
    display: block;
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .invoice-paper {
    padding: 24px;
  }
}
