/* White-label / perfume-close — matches misk-mat-luxury Customizer */

.mm-perfume-builder {
  scroll-margin-top: 5rem;
  border-block: 1px solid var(--hairline);
  padding: 4rem 0;
  background: var(--surface);
}
@media (min-width: 640px) {
  .mm-perfume-builder { padding: 5rem 0; }
}
@media (min-width: 768px) {
  .mm-perfume-builder { padding: 7rem 0; }
}

.mm-wl-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.mm-wl-heading h2 {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.mm-wl-heading p {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .mm-wl-heading { margin-bottom: 3.5rem; }
  .mm-wl-heading p { font-size: 0.9375rem; }
}

.mm-studio {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mm-studio {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }
}

.mm-studio__panel--controls {
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: var(--surface-2);
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .mm-studio__panel--controls { padding: 1.75rem; }
}

.mm-studio__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}
.mm-studio__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
}
.mm-studio__head p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.mm-cfg-reset {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.mm-cfg-reset:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Mobile sticky live preview strip */
.mm-wl-mobile-preview {
  position: sticky;
  top: 6.5rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: calc(100% + 2.5rem);
  margin: -1.25rem -1.25rem 1.25rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-2) 95%, transparent);
  backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
  color: inherit;
}
@media (min-width: 640px) {
  .mm-wl-mobile-preview {
    top: 7.5rem;
    width: calc(100% + 3.5rem);
    margin: -1.75rem -1.75rem 1.25rem;
    padding: 0.75rem 1.75rem;
  }
}
@media (min-width: 1024px) {
  .mm-wl-mobile-preview { display: none; }
}
.mm-wl-mobile-preview__thumb {
  position: relative;
  width: 70px;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .mm-wl-mobile-preview__thumb { width: 84px; }
}
.mm-wl-mobile-preview__thumb::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--background);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23BF9B30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.mm-wl-mobile-preview__meta { min-width: 0; flex: 1; }
.mm-wl-mobile-preview__brand {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-wl-mobile-preview__line {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-wl-mobile-preview__tap {
  margin: 0.4rem 0 0;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.mm-wl-fields {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
.mm-wl-row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .mm-wl-row { grid-template-columns: 1fr 1fr; }
}
.mm-wl-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.mm-wl-field--wide { width: 100%; }
.mm-wl-legend,
.mm-wl-field > .mm-wl-legend {
  display: block;
  margin-bottom: 0.65rem;
  padding: 0;
  float: none;
  width: auto;
}
.mm-wl-hint {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}
.mm-wl-custom-qty { margin-top: 0.75rem; }
.mm-wl-custom-qty .mm-cfg-input {
  max-width: 20rem;
}

.mm-cfg-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  padding: 0.85rem 0.9rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.mm-cfg-input::placeholder { color: var(--muted-foreground); }
.mm-cfg-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 155, 48, 0.2);
}
@media (min-width: 768px) {
  .mm-cfg-input { font-size: 0.875rem; }
}
textarea.mm-cfg-input {
  resize: vertical;
  min-height: 6rem;
}

.mm-cfg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mm-cfg-pill {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mm-cfg-pill:hover {
  border-color: rgba(191, 155, 48, 0.5);
  color: var(--foreground);
}
.mm-cfg-pill.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--primary-foreground, #0f0f0f);
}
.mm-cfg-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--gold);
}

.mm-cfg-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.mm-cfg-swatch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted-foreground);
}
.mm-cfg-swatch__ring {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.mm-cfg-swatch:hover .mm-cfg-swatch__ring {
  border-color: rgba(191, 155, 48, 0.5);
}
.mm-cfg-swatch.is-active .mm-cfg-swatch__ring {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(191, 155, 48, 0.3);
}
.mm-cfg-swatch__dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.mm-cfg-swatch__label {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.mm-cfg-swatch.is-active .mm-cfg-swatch__label { color: var(--gold); }

/* Preview column */
.mm-studio__preview-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .mm-studio__preview-col {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.mm-studio__panel--preview {
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: var(--background);
  overflow: hidden;
  padding: 0;
}
.mm-studio__preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
}
.mm-studio__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.mm-studio__live i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 155, 48, 0.2);
}

.mm-studio .mm-bottle-stage {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 2.5rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: radial-gradient(120% 80% at 50% 0%, #232323 0%, #0c0c0c 55%, #050505 100%);
  cursor: pointer;
  color: inherit;
  text-align: left;
}
@media (min-width: 640px) {
  .mm-studio .mm-bottle-stage { padding: 3rem 2rem; }
}
@media (min-width: 1024px) {
  .mm-studio .mm-bottle-stage {
    pointer-events: none;
    cursor: default;
  }
}
.mm-bottle-stage__expand {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(10px);
  color: var(--gold);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
}
@media (min-width: 1024px) {
  .mm-bottle-stage__expand,
  .lg-only-hide { display: none !important; }
}

/* CSS bottle preview (React BottlePreview port) */
.mm-bp {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  container-type: inline-size;
}
@media (min-width: 640px) {
  .mm-bp { max-width: 300px; }
}
@media (min-width: 1024px) {
  .mm-bp { max-width: 330px; }
}
.mm-bp--mini { max-width: none; }
.mm-bp::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
  width: 100%;
}
.mm-bp__ambience,
.mm-bp__cap,
.mm-bp__collar,
.mm-bp__body,
.mm-bp__shadow,
.mm-bp__reflection {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition:
    width 0.45s cubic-bezier(0.22, 0.7, 0.2, 1),
    height 0.45s cubic-bezier(0.22, 0.7, 0.2, 1),
    bottom 0.45s cubic-bezier(0.22, 0.7, 0.2, 1),
    border-radius 0.45s cubic-bezier(0.22, 0.7, 0.2, 1),
    background 0.4s ease,
    box-shadow 0.4s ease,
    clip-path 0.45s ease;
}
.mm-bp__ambience {
  inset: 0;
  left: 0;
  transform: none;
  border-radius: 50%;
  filter: blur(28px);
  background: radial-gradient(55% 45% at 50% 42%, rgba(191, 155, 48, 0.28), transparent 70%);
  pointer-events: none;
}
.mm-bp__cap {
  z-index: 20;
  overflow: hidden;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35),
    0 10px 18px -12px rgba(0, 0, 0, 0.6);
}
.mm-bp__cap::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.mm-bp__cap::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.mm-bp__collar {
  z-index: 10;
  border-radius: 2px;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}
.mm-bp__collar::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.mm-bp__body {
  z-index: 10;
  overflow: hidden;
  border: 1px solid transparent;
  box-sizing: border-box;
}
.mm-bp__liquid,
.mm-bp__inner-light,
.mm-bp__shine,
.mm-bp__base-shade {
  position: absolute;
  pointer-events: none;
}
.mm-bp__liquid {
  inset-inline: 0;
  bottom: 0;
  height: 76%;
}
.mm-bp__inner-light {
  inset: 0;
}
.mm-bp__shine--l {
  left: 8%;
  top: 6%;
  height: 86%;
  width: 7%;
  border-radius: 999px;
  opacity: 0.7;
  filter: blur(2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.05));
}
.mm-bp__shine--r {
  right: 6%;
  top: 10%;
  height: 78%;
  width: 4%;
  border-radius: 999px;
  opacity: 0.4;
  filter: blur(2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
}
.mm-bp__base-shade {
  inset-inline: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}
.mm-bp__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 6%;
  text-align: center;
  box-sizing: border-box;
  transition:
    width 0.45s cubic-bezier(0.22, 0.7, 0.2, 1),
    height 0.45s cubic-bezier(0.22, 0.7, 0.2, 1),
    border-radius 0.45s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.mm-bp__brand {
  display: block;
  width: 100%;
  line-height: 1.15;
  font-size: clamp(0.5rem, 5cqw, 1.35rem);
  overflow-wrap: break-word;
}
.mm-bp__rule {
  display: block;
  width: 38%;
  height: 1px;
  margin: 4% 0;
  opacity: 0.5;
}
.mm-bp__scent {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
  font-size: clamp(0.3rem, 2.1cqw, 0.55rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}
.mm-bp__shadow {
  height: 5%;
  border-radius: 50%;
  filter: blur(8px);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}
.mm-bp__reflection {
  height: 9%;
  opacity: 0.25;
  filter: blur(3px);
  transform: translateX(-50%) scaleY(-1);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.mm-studio .mm-bottle-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
}
@media (min-width: 640px) {
  .mm-studio .mm-bottle-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mm-studio .mm-bottle-summary > div {
  background: var(--background);
  padding: 0.875rem 1rem;
  gap: 0.25rem;
}
.mm-studio .mm-bottle-summary dt {
  margin: 0;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.mm-studio .mm-bottle-summary dd {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-studio__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .mm-studio__actions { flex-direction: row; }
}
.mm-studio__actions .btn-gold {
  width: 100%;
  justify-content: center;
}
@media (min-width: 640px) {
  .mm-studio__actions .btn-gold { width: auto; }
}

/* Fullscreen mobile shell */
.mm-wl-fs[hidden] { display: none !important; }
.mm-wl-fs {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--background);
}
@media (min-width: 1024px) {
  .mm-wl-fs { display: none !important; }
}
.mm-wl-fs__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
}
.mm-wl-fs__brand {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-wl-fs__close {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--foreground);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.mm-wl-fs__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.mm-wl-fs__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(90% 70% at 50% 35%, rgba(191, 155, 48, 0.18) 0%, transparent 55%),
    radial-gradient(120% 100% at 50% 100%, #171717 0%, #0a0a0a 55%, #050505 100%);
  cursor: pointer;
}
.mm-wl-fs__bottle {
  width: 100%;
  max-width: 320px;
  cursor: default;
}
.mm-wl-fs__bottle .mm-bp { max-width: none; }
.mm-wl-fs__foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.mm-wl-fs__foot .btn-gold {
  width: 100%;
  justify-content: center;
}

/* Request section polish */
.mm-perfume-request {
  scroll-margin-top: 5rem;
}
.mm-perfume-request__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .mm-perfume-request__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }
}
.mm-perfume-request__form {
  margin-top: 0;
  max-width: none;
}
.mm-perfume-request__fields {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .mm-perfume-request__fields {
    grid-template-columns: 1fr 1fr;
  }
  .mm-field--wide { grid-column: 1 / -1; }
}
.mm-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.mm-field__label-row .eyebrow { margin-bottom: 0; }
.mm-field > .eyebrow { display: block; margin-bottom: 0.4rem; }
.mm-perfume-request__submit {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mm-perfume-request__submit p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.mm-perfume-visual figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-top: 1px solid var(--hairline);
}
