@font-face {
  font-family: "Xanh Mono";
  src: url("/media/fonts/xanh-mono-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Asap";
  src: url("/media/fonts/asap-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

:root {
  --coral: #ed5351;
  --coral-dark: #c83432;
  --ink: #111111;
  --muted: #666666;
  --soft: #f3f3f3;
  --ivory: #f5eee3;
  --warm: #8b6e58;
  --line: #dedede;
  --paper: #ffffff;
  --heading: "Xanh Mono", "Courier New", serif;
  --body: "Asap", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --site-header-height: 0px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

body.home-page,
body.catalogue-page {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

body.is-locked { overflow: hidden; }
.is-in-place-hidden { display: none !important; }

body.home-page img,
body.home-page video,
body.catalogue-page img,
body.catalogue-page video { display: block; max-width: 100%; }

body.home-page button,
body.home-page input,
body.home-page select,
body.home-page textarea,
body.catalogue-page button,
body.catalogue-page input,
body.catalogue-page select,
body.catalogue-page textarea,
.tess-panel button,
.tess-panel input,
.tess-panel select,
.tess-panel textarea,
.gallery-finder button,
.gallery-finder input,
.dress-dialog button { font: inherit; }

body.home-page button,
body.home-page a,
body.catalogue-page button,
body.catalogue-page a,
.tess-panel button,
.dress-dialog button { -webkit-tap-highlight-color: transparent; }

body.home-page a,
body.catalogue-page a { color: inherit; }

body.home-page :focus-visible,
body.catalogue-page :focus-visible,
.tess-panel :focus-visible,
.gallery-finder :focus-visible,
.dress-dialog :focus-visible {
  outline: 3px solid #1a5fb4;
  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;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: #ffffff;
  color: #000000;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

body.home-page svg,
body.catalogue-page svg,
.tess-panel svg,
.dress-dialog svg { fill: currentColor; }

.site-header,
header.elementor-location-header {
  position: sticky !important;
  z-index: 50;
  top: 0;
  background: #ffffff;
}

#main,
#catalogue,
.gallery-finder,
.filter-panel,
.result-context,
[data-catalogue-status] { scroll-margin-top: calc(var(--site-header-height) + 16px); }

.utility-bar {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px 0 10px;
  background: var(--soft);
  font-size: 16px;
  font-weight: 600;
}

.utility-address,
.utility-actions,
.utility-actions a {
  display: flex;
  align-items: center;
}

.utility-address { margin: 0; }

.utility-address svg {
  width: 13px;
  margin-right: 10px;
  color: #dc2828;
}

.utility-actions { gap: 38px; }

.utility-actions a {
  gap: 9px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
}

.utility-actions svg { width: 24px; }

.main-nav-wrap {
  min-height: 119px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: #ffffff;
}

.brand {
  position: relative;
  width: 190px;
  min-width: 190px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 185px;
  height: auto;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  color: #251818;
  line-height: 1;
}

.brand-fallback strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 29px;
  font-style: italic;
  font-weight: 400;
}

.brand-fallback small {
  display: block;
  color: #a7755f;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand.image-missing img { display: none; }
.brand.image-missing .brand-fallback { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-family: var(--heading);
  font-size: 17px;
}

.primary-nav > a,
.nav-dropdown > button {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.primary-nav > a:hover,
.nav-dropdown > button:hover,
.primary-nav > a:focus-visible,
.nav-dropdown > button:focus-visible { color: var(--coral-dark); }

.nav-dropdown { position: relative; }

.nav-dropdown > button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -4px 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-dropdown > button span { display: none; }

.nav-dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% - 2px);
  left: 0;
  width: 220px;
  padding: 8px 0;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-family: var(--body);
  font-size: 14px;
  text-decoration: none;
}

.nav-dropdown-menu a:hover { color: var(--coral-dark); background: #faf6f2; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  width: 22px;
  height: 2px;
  display: block;
  margin: 4px 0;
  background: #222222;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  height: 490px;
  min-height: 490px;
  overflow: hidden;
  color: #ffffff;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video { object-fit: cover; object-position: 50% 49%; background: #725747; }
.hero-shade { background: rgba(33, 17, 10, .38); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 16px 24px 12px;
  text-align: center;
}

.hero h1,
.hero-welcome,
.section-heading h2,
.story-copy h2,
.appointment-band h2,
.catalogue-intro h1,
.catalogue-empty h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.15;
}

.hero h1 { font-size: 31px; }

.title-rule {
  width: 100px;
  height: 1px;
  display: block;
  margin: 19px auto;
  background: currentColor;
}

.hero-welcome {
  margin-top: 1px;
  font-size: 40px;
  line-height: 1.15;
}

.hero-copy {
  margin: 16px 0 48px;
  font-size: 15px;
  letter-spacing: .015em;
}

.coral-button,
.outline-button,
.light-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 29px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.coral-button {
  color: #ffffff;
  background: var(--coral);
  border: 2px solid var(--coral);
}

.coral-button:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.coral-button svg { width: 19px; margin-right: 10px; }

.outline-button {
  color: var(--coral-dark);
  background: #ffffff;
  border: 1px solid var(--coral);
}

.outline-button:hover { color: #ffffff; background: var(--coral-dark); border-color: var(--coral-dark); }

.light-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #ffffff;
}

.light-button:hover { color: #ffffff; background: transparent; }

.bridal-edit {
  margin: 20px;
  overflow: hidden;
}

.bridal-edit a,
.bridal-edit picture,
.bridal-edit img { display: block; width: 100%; }

.home-section { padding: 82px 24px; text-align: center; }

.section-heading { max-width: 760px; margin: 0 auto 42px; }
.section-heading h2,
.story-copy h2,
.appointment-band h2 { font-size: clamp(31px, 4vw, 48px); }
.section-heading p { max-width: 68ch; margin: 12px auto; color: #333333; }

.featured-grid {
  max-width: 1140px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto 38px;
}

.featured-card { position: relative; min-height: 330px; overflow: hidden; background: #ede8e4; }
.featured-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.featured-card:hover img { transform: scale(1.025); }
.featured-card a { position: absolute; inset: 0; }
.featured-card span { position: absolute; right: 0; bottom: 0; left: 0; padding: 26px 10px 10px; color: #ffffff; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }

.story-band {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f6f2ed;
}

.story-copy {
  max-width: 690px;
  align-self: center;
  justify-self: end;
  padding: 70px clamp(34px, 7vw, 105px);
}

.story-copy .title-rule { margin-left: 0; }
.story-copy p { max-width: 60ch; color: #3f3833; }
.story-copy .coral-button { margin-top: 18px; }

.story-image {
  min-height: 570px;
  background: #b9a08f center 20% / cover no-repeat;
}

.fitting { background: #ffffff; }

.appointment-band {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
  padding: 58px 32px;
  color: #ffffff;
  background: #9a755e;
}

.appointment-band div { max-width: 680px; }
.appointment-band p { max-width: 65ch; margin-bottom: 0; }

.brand-names {
  max-width: 1050px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 42px;
  margin: 0 auto;
  color: #2d2622;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 50px;
  padding: 60px max(24px, calc((100vw - 1160px) / 2));
  color: #ffffff;
  background: #171311;
  font-size: 14px;
}

.site-footer h3 { margin: 0 0 14px; font-family: var(--heading); font-size: 20px; font-weight: 400; }
.site-footer a:not(.footer-brand) { display: block; margin: 7px 0; color: #ffffff; text-decoration: none; }
.site-footer a:hover { color: #ff8c89; }
.footer-brand { display: block; margin-bottom: 18px; font-family: Georgia, serif; font-size: 29px; font-style: italic; text-decoration: none; }
.footer-brand small { display: block; color: #cf9f86; font-family: var(--body); font-size: 10px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }

.mobile-actions { display: none; }

/* Search surface shared by captured dress galleries and the catalogue */
.gallery-finder {
  width: calc(100% - 40px);
  max-width: none;
  margin: 16px auto 24px;
  padding: 13px 16px;
  color: #211a17;
  background: #f7f1ec;
  border-block: 1px solid #ded0c7;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.35;
}

.gallery-finder--source {
  width: 90vw;
  margin-inline: calc(50% - 45vw);
}

.gallery-finder--catalogue {
  width: 100%;
  max-width: none;
  margin: 0 auto 24px;
  text-align: left;
}

.gallery-finder button,
.gallery-finder input,
.gallery-finder select,
.gallery-finder label {
  font: inherit;
  line-height: 1.35;
}

.gallery-finder-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.gallery-keyword-search,
.gallery-search-row { min-width: 0; }

.gallery-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.gallery-search-row input {
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  color: #211a17;
  background: #ffffff;
  border: 1px solid #a99c95;
  border-inline-end: 0;
  border-radius: 0;
  font-size: 16px;
}

.gallery-search-row input::placeholder { color: #6f625c; opacity: 1; }

.gallery-search-row button {
  height: 48px;
  padding: 0 19px;
  color: #ffffff;
  background: var(--coral-dark);
  border: 1px solid var(--coral-dark);
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
}

.gallery-search-row button:hover { background: #a42625; border-color: #a42625; }

.gallery-photo-trigger,
.gallery-options-toggle {
  min-width: 150px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  color: #3e312c;
  background: #ffffff;
  border: 1px solid #bcaea6;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.gallery-photo-trigger svg,
.gallery-options-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.gallery-options-toggle {
  min-width: 150px;
  color: #594c46;
  background: transparent;
  border-color: transparent;
  font-weight: 600;
}

.gallery-photo-trigger:hover,
.gallery-photo-trigger:focus-within,
.gallery-options-toggle:hover { color: var(--coral-dark); border-color: #bcaea6; }

.gallery-photo-trigger:focus-within {
  outline: 3px solid #1a5fb4;
  outline-offset: 3px;
}

.gallery-options-toggle svg { transition: transform 180ms var(--ease); }
.gallery-options-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.gallery-search-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: #4f4540;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.gallery-search-status:empty { display: none; }

.gallery-finder-panel {
  margin-top: 13px;
  padding-top: 15px;
  border-top: 1px solid #d8c9c0;
}

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

.gallery-context-copy {
  margin: 0 0 14px;
  color: #5d514b;
  font-size: 13px;
}

.gallery-options-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(24px, 3vw, 38px);
  align-items: start;
}

.gallery-source-options,
.gallery-photo-search { min-width: 0; }

.gallery-photo-search {
  padding-inline-start: clamp(22px, 3vw, 34px);
  border-inline-start: 1px solid #d8c9c0;
}

.gallery-options-label {
  margin: 0 0 8px;
  color: #302724;
  font-size: 13px;
  font-weight: 700;
}

.gallery-style-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; }
.gallery-source-quick { margin-bottom: 16px; }
.gallery-quick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-quick-options button {
  min-height: 42px;
  padding: 8px 15px;
  color: #3e312c;
  background: #ffffff;
  border: 1px solid #bcaea6;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
}
.gallery-quick-options button:hover,
.gallery-quick-options button:focus-visible,
.gallery-quick-options button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}
.gallery-quick-options button:disabled {
  color: #77706b;
  background: #ebe7e4;
  border-color: #d7d1cd;
  cursor: not-allowed;
}
.gallery-style-shortcuts button {
  min-height: 38px;
  padding: 7px 12px;
  color: #4f413a;
  background: transparent;
  border: 1px solid #cdbbb1;
  border-radius: 999px;
  cursor: pointer;
}
.gallery-style-shortcuts button:hover,
.gallery-style-shortcuts button:focus-visible { color: #ffffff; background: #6c332f; border-color: #6c332f; }

.gallery-photo-search h3 {
  margin: 0 0 4px;
  color: #211a17;
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.gallery-photo-help { margin: 0 0 9px; color: #5d514b; font-size: 13px; }
.gallery-upload-preview { max-width: 280px; }
.gallery-photo-search .upload-status { margin: 7px 0; font-size: 13px; }
.gallery-photo-search .upload-action {
  width: auto;
  min-width: min(100%, 250px);
  min-height: 44px;
  margin-top: 0;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--coral-dark);
  border: 1px solid var(--coral-dark);
  font-weight: 700;
  cursor: pointer;
}
.gallery-photo-search .upload-action:hover:not(:disabled) { background: #a42625; border-color: #a42625; }
.gallery-photo-search .upload-action:disabled { color: #6d6662; background: #ddd6d1; border-color: #ddd6d1; cursor: not-allowed; }
.gallery-photo-results { margin-top: 18px; }
.gallery-photo-results .tess-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-photo-results .tess-result { grid-template-columns: 48px minmax(0, 1fr); min-width: 0; }
.gallery-photo-results .tess-result img { width: 48px; height: 62px; }
.gallery-photo-results .tess-result span { min-width: 0; overflow-wrap: anywhere; }
.gallery-photo-results .tess-message { background: #ffffff; border: 1px solid #ddd0c7; }
.gallery-photo-results .visual-catalogue-link { width: fit-content; max-width: 100%; }
.gallery-photo-disclosure { max-width: 90ch; margin: 14px 0 0; color: #655a54; font-size: 12px; }

.gallery-finder--catalogue .gallery-options-grid { grid-template-columns: 1fr; }
.gallery-finder--catalogue .gallery-photo-search { padding-inline-start: 0; border-inline-start: 0; }
.gallery-finder--catalogue .gallery-upload-preview:not([hidden]) {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery-finder--catalogue .gallery-upload-preview img {
  width: 72px;
  height: 88px;
  flex: 0 0 72px;
  object-fit: cover;
}
.gallery-finder--catalogue .gallery-upload-preview .remove-upload {
  position: static;
  min-height: 44px;
}
.gallery-finder--catalogue .gallery-photo-results:empty { display: none; }
.gallery-catalogue-options:empty { display: none; }
.gallery-catalogue-options .filter-panel {
  position: static;
  max-width: none;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) auto auto auto;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.gallery-catalogue-options .filter-panel > [hidden] { display: none; }
.gallery-catalogue-options .style-suggestions { max-width: none; margin: 0 0 18px; }
.upload-progress { width: 100%; height: 7px; display: block; margin: 8px 0 10px; accent-color: var(--coral-dark); }
.upload-progress[hidden] { display: none; }
.sweethearts-integration-mounts { min-height: 0; }

/* Catalogue */
.catalogue-topline {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 9px;
  border-bottom: 1px solid #ededed;
  font-family: var(--heading);
}

.catalogue-topline > a { display: flex; align-items: center; color: var(--coral); text-decoration: none; }
.catalogue-topline svg { width: 12px; margin-right: 14px; }
.catalogue-topline nav { display: flex; gap: 24px; font-family: var(--body); font-size: 13px; }
.catalogue-topline nav a { text-decoration: none; }
.catalogue-topline nav a:hover { color: var(--coral-dark); }

.catalogue-main { padding: 28px clamp(24px, 2vw, 32px) 100px; }
.catalogue-intro { max-width: 940px; margin: 0 auto 46px; text-align: center; }
.catalogue-intro--with-finder { margin-bottom: 18px; }
.catalogue-intro h1 { font-size: 29px; }
.catalogue-intro p { margin: 12px auto; font-size: 13px; }
.catalogue-intro a { color: var(--coral); text-decoration: none; }
.catalogue-intro .catalogue-subtitle { margin-top: 24px; color: #8c8c8c; font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.catalogue-intro .title-rule { width: 98px; margin-top: 17px; margin-bottom: 21px; }

.filter-panel {
  position: sticky;
  z-index: 20;
  top: var(--site-header-height);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(150px, 1fr) auto auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 auto 24px;
  padding: 14px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 7px 24px rgba(56, 34, 22, .1);
}

.filter-panel label { display: flex; flex-direction: column; gap: 5px; color: #4f4f4f; font-size: 12px; }
.filter-panel input,
.filter-panel select {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfbfbf;
  border-radius: 0;
}

.catalogue-quick-filters button,
.shortlist-filter,
.clear-filters {
  height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfbfbf;
  cursor: pointer;
}

.catalogue-quick-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.catalogue-quick-filters button { min-width: 90px; }
.catalogue-quick-filters button[aria-pressed="true"] { color: #ffffff; background: var(--coral-dark); border-color: var(--coral-dark); }
.catalogue-quick-filters button:disabled { color: #77706b; background: #ebe7e4; border-color: #d7d1cd; cursor: not-allowed; }
.shortlist-filter[aria-pressed="true"] { color: #ffffff; background: var(--coral-dark); border-color: var(--coral-dark); }
.shortlist-filter span { min-width: 23px; display: inline-block; margin-left: 4px; padding: 1px 5px; color: inherit; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; }
.clear-filters { color: var(--coral-dark); border-color: var(--coral); }

.style-suggestions {
  max-width: 1132px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -8px auto 24px;
}

.style-suggestions > span { margin-inline-end: 3px; color: #59514c; font-size: 12px; }
.style-suggestions button {
  min-height: 36px;
  padding: 7px 13px;
  color: #4f413a;
  background: #ffffff;
  border: 1px solid #d8c9c1;
  border-radius: 999px;
  cursor: pointer;
}
.style-suggestions button:hover,
.style-suggestions button:focus-visible { color: #ffffff; background: var(--coral-dark); border-color: var(--coral-dark); }

.result-context {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin: 0 auto 24px;
  padding: 22px 0;
  border-block: 1px solid #e5d9d2;
}
.result-context[hidden] { display: none; }
.result-context > div { min-width: 0; }
.result-context h2 { margin: 0 0 7px; font-family: var(--heading); font-size: clamp(22px, 3vw, 31px); font-weight: 400; overflow-wrap: anywhere; }
.result-context p { max-width: 72ch; margin: 0; color: #514944; font-size: 13px; overflow-wrap: anywhere; }
.result-context ul { margin: 10px 0 0; padding-inline-start: 19px; color: #615751; font-size: 12px; }
.result-context-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.result-context-actions button,
.status-retry {
  min-height: 42px;
  padding: 8px 14px;
  color: var(--coral-dark);
  background: #ffffff;
  border: 1px solid var(--coral);
  cursor: pointer;
}
.result-context-actions button:first-child { color: #ffffff; background: var(--coral-dark); border-color: var(--coral-dark); }

.catalogue-status { max-width: none; min-height: 28px; margin: 0 auto; color: #595959; font-size: 13px; }
.catalogue-status a { color: var(--coral-dark); }
.status-retry { min-height: 34px; margin-inline: 8px; padding: 5px 11px; }
nav.seo-pagination[hidden] { display: none !important; }

.dress-grid {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.35vw, 22px);
  margin: 0 auto;
}

.dress-card { position: relative; min-width: 0; }
.dress-card > button:not(.dress-card-shortlist) { position: relative; width: 100%; display: block; padding: 0; background: #efebe8; border: 0; cursor: zoom-in; }
.dress-card-image { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.dress-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--ease); }
.dress-card > button:not(.dress-card-shortlist):hover img { transform: scale(1.025); }
.dress-card-info { min-height: 59px; display: block; padding: 10px 2px 7px; text-align: left; }
.dress-card-name { display: block; overflow: hidden; font-family: var(--heading); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dress-card-meta { display: block; margin-top: 3px; overflow: hidden; color: #6a625e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dress-card-shortlist {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #1f1916;
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  cursor: pointer;
}
.dress-card-shortlist svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dress-card-shortlist[aria-pressed="true"] { color: #ffffff; background: var(--coral-dark); }
.dress-card-shortlist[aria-pressed="true"] svg { fill: currentColor; }
.dress-card-badge {
  position: absolute;
  inset-inline-start: 8px;
  inset-block-end: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  overflow: hidden;
  color: #ffffff;
  background: rgba(37, 28, 24, .88);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dress-card-statuses,
.legacy-dress-statuses {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.dress-status-badge {
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(37, 28, 24, .9);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
}
.dress-status-badge--discounted { background: var(--coral-dark); }
.envira-gallery-link[data-dress-id] { position: relative; }
.legacy-dress-statuses { z-index: 5; }

.catalogue-empty { max-width: 650px; margin: 90px auto; text-align: center; }
.catalogue-empty h2 { font-size: 29px; }
.catalogue-empty p { color: var(--muted); }
.catalogue-empty button { margin-top: 10px; }
.load-more-wrap { max-width: none; margin: 38px auto 0; text-align: center; }
.inspiration-shelf { max-width: none; margin: 70px auto 0; padding-top: 34px; border-top: 1px solid #e5d9d2; }
.inspiration-shelf[hidden] { display: none; }
.inspiration-heading { max-width: 680px; margin-bottom: 25px; }
.inspiration-heading h2 { margin: 0 0 8px; font-family: var(--heading); font-size: 27px; font-weight: 400; }
.inspiration-heading p { margin: 0; color: #5f5752; font-size: 13px; }
.catalogue-no-script { max-width: 650px; margin: 45px auto; text-align: center; }
.catalogue-no-script a { color: var(--coral-dark); }

.elementor-nav-menu--dropdown.is-preview-open,
.sub-menu.is-preview-open {
  display: block !important;
  max-height: 80vh !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.preview-carousel .swiper-wrapper {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  transform: none !important;
}
.preview-carousel .swiper-wrapper::-webkit-scrollbar { display: none; }
.preview-carousel .swiper-slide {
  width: 25% !important;
  min-width: 25% !important;
  flex: 0 0 25% !important;
  scroll-snap-align: start;
}
.preview-carousel .swiper-slide img { width: 100%; height: auto; }
.preview-carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.preview-carousel-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #1e1714;
  background: #ffffff;
  border: 1px solid #bcb4af;
  border-radius: 50%;
  cursor: pointer;
}
.preview-carousel-controls svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Shared dialogs and Tess preview */
.dress-dialog {
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  background: #ffffff;
  border: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  color: var(--ink);
  font-family: var(--body);
}

.dress-dialog::backdrop { background: rgba(19, 12, 8, .76); }
.dress-dialog.is-tess-origin {
  position: fixed;
  z-index: 2147482000;
  top: 20px;
  right: auto;
  bottom: auto;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 0 100vmax rgba(19, 12, 8, .76), 0 24px 70px rgba(0, 0, 0, .34);
}
body.sweethearts-dress-tess-open .tess-launcher,
body.sweethearts-dress-tess-open .tess-panel { z-index: 2147483000; }
body.sweethearts-dress-tess-open .tess-face-dock { z-index: 2147483001; }
.dialog-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid #dadada;
  border-radius: 50%;
  cursor: pointer;
}
.dialog-close::before,
.dialog-close::after { content: ""; position: absolute; top: 19px; left: 11px; width: 19px; height: 2px; background: currentColor; }
.dialog-close::before { transform: rotate(45deg); }
.dialog-close::after { transform: rotate(-45deg); }
.dress-dialog-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); min-height: min(720px, calc(100dvh - 40px)); }
.dress-dialog-media { display: grid; place-items: center; min-height: 520px; overflow: hidden; background: #eee9e5; }
.dress-dialog-media img { width: 100%; height: 100%; max-height: calc(100dvh - 40px); object-fit: contain; }
.dress-dialog-content { overflow-y: auto; padding: 72px 40px 36px; }
.dress-dialog-content h2 { margin: 0; font-family: var(--heading); font-size: 33px; font-weight: 400; line-height: 1.1; }
.dress-dialog-meta { margin: 12px 0 25px; color: #665e59; }
.dress-facts { margin: 0 0 28px; }
.dress-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e7e2df; }
.dress-facts dt { color: #665e59; }
.dress-facts dd { margin: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions button,
.dialog-actions a { min-height: 44px; padding: 9px 16px; border: 1px solid var(--coral); text-decoration: none; cursor: pointer; }
.dialog-actions button { color: #ffffff; background: var(--coral-dark); }
.dialog-actions a { color: var(--coral-dark); background: #ffffff; }
.dialog-actions button,
.dialog-actions a { flex: 0 0 100%; width: 100%; text-align: center; }
.dialog-inferred { margin: -8px 0 24px; padding-top: 14px; color: #5d5651; border-top: 1px solid #e7e2df; font-size: 12px; }

.tess-launcher {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--coral-dark);
  border: 1px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(64, 24, 19, .28);
  font-weight: 700;
  cursor: pointer;
}

.tess-launcher svg { width: 20px; }
.tess-launcher[aria-expanded="true"] { background: #211a17; }

.tess-panel {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 84px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(45, 23, 13, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.985);
  transform-origin: bottom right;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  color: var(--ink);
  font-family: var(--body);
}

.tess-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.tess-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; color: #ffffff; background: #201816; }
.tess-heading { min-width: 0; }
.tess-heading strong { display: block; font-family: var(--heading); font-size: 22px; font-weight: 400; }
.tess-heading span { display: block; color: #f0d9d1; font-size: 11px; }
.tess-close { width: 38px; height: 38px; position: relative; background: transparent; border: 1px solid #8e7d77; border-radius: 50%; cursor: pointer; }
.tess-close::before,
.tess-close::after { content: ""; position: absolute; top: 17px; left: 9px; width: 18px; height: 2px; background: #ffffff; }
.tess-close::before { transform: rotate(45deg); }
.tess-close::after { transform: rotate(-45deg); }
.tess-body { min-height: 0; overflow-y: auto; padding: 17px 18px 22px; }
.tess-intro { margin: 0 0 15px; color: #443b37; font-size: 13px; }
.tess-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border-bottom: 1px solid #d8d1cc; }
.tess-tabs button { padding: 9px; color: #4d443f; background: #ffffff; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tess-tabs button[aria-selected="true"] { color: var(--coral-dark); border-color: var(--coral-dark); }
.tess-view[hidden] { display: none; }
.tess-form { display: flex; gap: 8px; }
.tess-form input { min-width: 0; flex: 1; height: 44px; padding: 0 11px; border: 1px solid #aaa19c; }
.tess-form button,
.upload-action { min-height: 44px; padding: 8px 14px; color: #ffffff; background: var(--coral-dark); border: 1px solid var(--coral-dark); cursor: pointer; }
.tess-examples { margin: 10px 0 0; color: #70655f; font-size: 11px; }
.tess-response { margin-top: 15px; }
.tess-message { padding: 12px; color: #332b27; background: #f5f1ed; font-size: 13px; }
.tess-message a { color: var(--coral-dark); }
.tess-results { display: grid; gap: 8px; margin-top: 10px; }
.tess-result { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; width: 100%; padding: 7px; text-align: left; background: #ffffff; border: 1px solid #d8d1cc; cursor: pointer; }
.tess-result img { width: 52px; height: 64px; object-fit: cover; background: #eee8e4; }
.tess-result strong { display: block; font-family: var(--heading); font-weight: 400; }
.tess-result span { display: block; color: #655b56; font-size: 11px; }
.visual-catalogue-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 9px 14px;
  color: #ffffff;
  background: var(--coral-dark);
  border: 1px solid var(--coral-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.upload-copy { padding: 10px 12px; color: #544944; background: #f6f1ed; font-size: 11px; }
.upload-preview { position: relative; margin-top: 12px; }
.upload-preview img { width: 100%; max-height: 210px; object-fit: contain; background: #efeae6; }
.remove-upload { position: absolute; top: 8px; right: 8px; padding: 7px 10px; color: #ffffff; background: #201816; border: 0; cursor: pointer; }
.remove-upload:disabled { cursor: wait; opacity: .65; }
.upload-status { margin: 10px 0; color: #534a45; font-size: 12px; }
.upload-status:empty { display: none; }
.upload-action { width: 100%; margin-top: 6px; }
.upload-action:disabled { color: #746e6a; background: #ddd8d5; border-color: #ddd8d5; cursor: not-allowed; }
.upload-action[hidden] { display: none !important; }
.tess-disclosure { margin: 16px 0 0; color: #6b615b; font-size: 10px; }
.tess-photo-panel { margin-top: 17px; padding-top: 16px; border-top: 1px solid #e5dcd7; }
.tess-photo-panel[hidden] { display: none; }
.tess-photo-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tess-photo-panel__header h3 { margin: 0; font-family: var(--heading); font-size: 20px; font-weight: 400; line-height: 1.15; }
.tess-photo-panel__header p { margin: 4px 0 0; color: #655b56; font-size: 11px; line-height: 1.4; }
.tess-photo-panel__header button { min-height: 34px; padding: 6px 10px; border: 1px solid #c9bbb4; border-radius: 999px; background: #ffffff; color: #403632; cursor: pointer; font: 700 11px/1 var(--body); }
.tess-photo-drop {
  min-height: 126px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 18px;
  border: 1px dashed #b9a49a;
  border-radius: 14px;
  background: #fbf7f5;
  color: #352c28;
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.tess-photo-drop:hover,
.tess-photo-drop[data-drag-active="true"] { border-color: var(--coral-dark); background: #fff1ed; }
.tess-photo-drop:focus-visible { outline: 3px solid rgba(200, 52, 50, .28); outline-offset: 3px; }
.tess-photo-drop[aria-disabled="true"] { cursor: wait; opacity: .66; }
.tess-photo-drop__title { font-size: 13px; font-weight: 700; }
.tess-photo-drop__help { color: #6b5f59; font-size: 11px; }
.tess-photo-preview:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #ded2cc;
  border-radius: 12px;
  background: #ffffff;
}
.tess-photo-preview img { width: 68px; height: 82px; object-fit: cover; border-radius: 8px; }
.tess-photo-preview .remove-upload { position: static; min-height: 40px; margin-left: auto; border-radius: 999px; }

@media (max-width: 1050px) {
  .primary-nav { font-size: 15px; }
  .primary-nav > a, .nav-dropdown > button { padding: 0 9px; }
  .dress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .featured-card:nth-child(n+5) { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6eb9407 {
    --min-height: 60px;
    --flex-wrap: nowrap;
    min-height: 60px;
    flex-wrap: nowrap;
    align-items: center;
  }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-af8f0ee {
    --width: auto;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e39eb4,
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e39eb4 .elementor-icon-list-item { min-width: 0; }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e39eb4 .elementor-icon-list-text {
    line-height: 1.25;
    white-space: normal;
  }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-b42a1a9 {
    --width: auto;
    --flex-wrap: nowrap;
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e8b6c8,
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-474e32a {
    --width: auto;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
  }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e8b6c8 > .elementor-widget-container,
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-474e32a > .elementor-widget-container { margin: 4px 0; }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e8b6c8 .elementor-button,
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-474e32a .elementor-button {
    min-height: 44px;
    padding: 6px;
    font-size: 16px;
    white-space: nowrap;
  }
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e8b6c8 .elementor-button-content-wrapper,
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-474e32a .elementor-button-content-wrapper,
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-6e8b6c8 .elementor-button-text,
  header.elementor-location-header.elementor-6 .elementor-element.elementor-element-474e32a .elementor-button-text { white-space: nowrap; }
}

@media (max-width: 820px) {
  .gallery-finder { padding: 12px; }
  .gallery-finder--catalogue { width: 100%; }
  .gallery-options-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-photo-search { padding-block-start: 16px; padding-inline-start: 0; border-block-start: 1px solid #d8c9c0; border-inline-start: 0; }
  .gallery-catalogue-options .filter-panel { grid-template-columns: 1fr 1fr; }

  .utility-bar { display: none; }
  .main-nav-wrap { min-height: 100px; justify-content: center; padding: 0 20px; }
  .brand { width: 150px; min-width: 150px; justify-content: center; }
  .brand img { width: 145px; }
  .menu-toggle { position: absolute; right: 17px; display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100dvh - 158px);
    display: block;
    overflow-y: auto;
    padding: 8px 18px 18px;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav > a,
  .nav-dropdown > button { width: 100%; justify-content: space-between; min-height: 45px; padding: 0 8px; border-bottom: 1px solid #eee9e6; }
  .nav-dropdown-menu { position: static; width: 100%; display: none; padding-left: 12px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }

  .hero { height: 506px; min-height: 506px; }
  .hero-video { object-position: 50% center; }
  .hero-content { max-width: 390px; justify-content: flex-start; padding: 83px 20px 30px; }
  .hero h1 { font-size: 28px; }
  .hero .title-rule { width: 27px; margin: 17px auto 19px; }
  .hero-welcome { max-width: 340px; font-size: 27px; line-height: 1.08; }
  .hero-copy { max-width: 350px; margin: 19px 0 47px; font-size: 18px; font-weight: 600; line-height: 1.3; }
  .hero .coral-button { min-width: 264px; }

  .bridal-edit { margin: 20px 0 0; }
  .home-section { padding: 64px 20px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .featured-card { min-height: 390px; }
  .story-band { grid-template-columns: 1fr; }
  .story-copy { justify-self: stretch; padding: 58px 25px; }
  .story-image { min-height: 480px; grid-row: 1; }
  .appointment-band { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-bottom: 100px; }

  .catalogue-topline nav a:not(:last-child) { display: none; }
  .catalogue-main { padding-right: 18px; padding-left: 18px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .result-context { align-items: flex-start; }
  .result-context-actions { max-width: 270px; }
  .dress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .dress-dialog-layout { grid-template-columns: 1fr; }
  .dress-dialog-media { min-height: 48dvh; max-height: 58dvh; }
  .dress-dialog-media img { max-height: 58dvh; }
  .dress-dialog-content { padding: 32px 25px 28px; }
  .preview-carousel .swiper-slide { width: 50% !important; min-width: 50% !important; flex-basis: 50% !important; }
}

@media (max-width: 767px) {
  .elementor-element.elementor-element-cd67fcf.elementor-hidden-mobile { display: block !important; }
  .elementor-element-cd67fcf > .elementor-widget-container > nav.elementor-nav-menu--dropdown {
    position: fixed !important;
    z-index: 1000;
    top: var(--captured-menu-top, 100px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - var(--captured-menu-top, 100px)) !important;
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .gallery-finder-toolbar { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-keyword-search { grid-column: 1 / -1; }
  .gallery-search-row input { width: 100%; }
  .gallery-search-row button { width: auto; padding-inline: 13px; }
  .gallery-photo-trigger,
  .gallery-options-toggle {
    width: 100%;
    min-width: 0;
    padding-inline: 9px;
    white-space: nowrap;
  }
}

@media (max-width: 540px) {
  .gallery-finder { margin-block: 12px 18px; padding: 11px 10px; }
  .gallery-finder--catalogue { width: 100%; }
  .gallery-finder-panel { margin-top: 11px; padding-top: 13px; }
  .gallery-photo-search { padding-block-start: 13px; }
  .gallery-style-shortcuts { flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 3px; }
  .gallery-style-shortcuts button { flex: 0 0 auto; }
  .gallery-photo-search .upload-action { width: 100%; }
  .gallery-photo-results .tess-results { grid-template-columns: 1fr; }
  .gallery-catalogue-options .filter-panel { grid-template-columns: 1fr; }

  body.home-page,
  body.catalogue-page { padding-bottom: 58px; }
  .main-nav-wrap { min-height: 100px; }
  .menu-toggle { width: 40px; height: 40px; right: 10px; padding: 8px; border: 0; }
  .hero { height: 506px; min-height: 506px; }
  .hero-content { padding-top: 84px; }
  .hero h1 { font-size: 27px; }
  .hero-welcome { font-size: 27px; }
  .hero-copy { margin-bottom: 47px; }

  .section-heading h2,
  .story-copy h2,
  .appointment-band h2 { font-size: 32px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { min-height: 280px; }
  .story-image { min-height: 400px; }
  .site-footer { grid-template-columns: 1fr; gap: 32px; }

  .mobile-actions {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    height: 58px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: #ffffff;
    background: #000000;
  }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; }
  .mobile-actions a:first-child { background: #bd1716; }
  .mobile-actions svg { width: 18px; }

  .catalogue-topline { min-height: 48px; }
  .catalogue-topline nav a { font-size: 12px; }
  .catalogue-main { padding-top: 24px; padding-bottom: 80px; }
  .catalogue-main { padding-right: 16px; padding-left: 16px; }
  .catalogue-intro { margin-bottom: 30px; }
  .catalogue-intro h1 { font-size: 27px; }
  .catalogue-intro p { font-size: 12px; }
  .filter-panel { position: static; grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .search-field { grid-column: auto; }
  .filter-panel input,
  .filter-panel select { font-size: 16px; }
  .style-suggestions { gap: 7px; margin-bottom: 21px; overflow: visible; }
  .style-suggestions > span { flex-basis: 100%; }
  .style-suggestions button { min-height: 38px; padding-inline: 12px; }
  .result-context { display: block; padding-block: 20px; }
  .result-context-actions { max-width: none; justify-content: flex-start; margin-top: 17px; }
  .result-context-actions button { flex: 1 1 150px; }
  .dress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dress-card-info { min-height: 54px; padding-top: 8px; }
  .dress-card-name { font-size: 14px; }
  .dress-card-meta { font-size: 10px; }

  .dress-dialog { width: 100vw; max-width: none; max-height: calc(100dvh - 58px); margin: 0; }
  .dress-dialog-layout { min-height: calc(100dvh - 58px); }
  .dress-dialog-content h2 { font-size: 29px; }
  .dress-facts div { grid-template-columns: 92px 1fr; }

  .tess-launcher { right: 12px; bottom: 70px; min-height: 45px; padding: 8px 15px; }
  .tess-panel { right: 7px; bottom: 122px; width: calc(100vw - 14px); max-height: calc(100dvh - 132px); }
  .preview-carousel .swiper-slide { width: 82% !important; min-width: 82% !important; flex-basis: 82% !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-video { display: none; }
}
/* Round 21: shared collection and static catalogue finder. */
.editorial-finder {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  column-gap: 24px;
  width: 100%;
  margin: 16px 0 24px;
  padding: 24px;
  border: 1px solid var(--editorial-line, #deddd7);
  border-radius: 0;
  color: var(--editorial-ink, #191916);
  background: #fff;
  font-family: var(--editorial-sans, Jost, Arial, sans-serif);
  text-align: left;
}
.editorial-finder .editorial-finder__form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  align-items: end;
  align-self: start;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
.editorial-finder__field,
.editorial-finder__select { display: grid; min-width: 0; gap: 7px; margin: 0; }
.editorial-finder .editorial-finder__label,
.editorial-finder .editorial-finder__select > span {
  font-family: var(--editorial-sans, Jost, Arial, sans-serif);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}
.editorial-finder input[type="search"],
.editorial-finder select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--editorial-line, #deddd7) !important;
  border-radius: 0 !important;
  color: var(--editorial-ink, #191916) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: var(--editorial-sans, Jost, Arial, sans-serif);
  font-size: 17px;
  line-height: 1.3;
}
.editorial-finder select { height: 44px; min-height: 44px; font-size: 15px; }
.editorial-finder input::placeholder { color: var(--editorial-muted, #555550) !important; opacity: 1; }
.editorial-finder .editorial-button,
.editorial-finder .editorial-chip {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid var(--editorial-ink, #191916) !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: var(--editorial-ink, #191916) !important;
  box-shadow: none !important;
  font-family: var(--editorial-sans, Jost, Arial, sans-serif);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .045em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.editorial-finder .editorial-button--outline,
.editorial-finder .editorial-chip { color: var(--editorial-ink, #191916) !important; background: #fff !important; }
.editorial-finder .editorial-chip { height: 40px; min-height: 40px; padding: 8px 13px; }
.editorial-finder .editorial-chip[aria-pressed="true"],
.editorial-finder .editorial-chip:is(:hover, :focus, :focus-visible, :active),
.editorial-finder .editorial-button--outline:is(:hover, :focus, :focus-visible, :active) {
  color: #fff !important;
  background: var(--editorial-ink, #191916) !important;
}
.editorial-finder :is(button, input, select):disabled,
.editorial-finder :is(button, input, select):disabled:is(:hover, :focus, :focus-visible, :active) {
  color: var(--editorial-muted, #555550) !important;
  background: var(--editorial-stone, #f4f3ef) !important;
  border-color: var(--editorial-line, #deddd7) !important;
  cursor: not-allowed;
}
.editorial-finder :is(button, input, select, [data-finder-photo-button]):is(:focus, :focus-visible) {
  outline: 2px solid var(--editorial-ink, #191916) !important;
  outline-offset: 3px;
}
.editorial-finder :is(input, select):is(:focus, :focus-visible) { border-color: var(--editorial-ink, #191916) !important; }
.editorial-finder__photo {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 12px 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--editorial-line, #deddd7);
  background: var(--editorial-stone, #f4f3ef);
}
.editorial-finder__photo > svg { width: 28px; height: 28px; }
.editorial-finder .editorial-finder__photo-title,
body.is-editorial .editorial-finder .editorial-finder__photo-title {
  margin: 0 0 5px;
  color: var(--editorial-ink, #191916);
  font-family: var(--editorial-serif, "Bodoni Moda", Georgia, serif) !important;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}
.editorial-finder .editorial-finder__photo-text,
body.is-editorial .editorial-finder .editorial-finder__photo-text { margin: 0; color: var(--editorial-muted, #555550); font-family: var(--editorial-sans, Jost, Arial, sans-serif) !important; font-size: 14px; line-height: 1.45; }
.editorial-finder__photo .editorial-button {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  height: 44px;
  min-height: 44px;
}
.editorial-finder .editorial-finder__row {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin-top: 20px;
}
.editorial-finder__quick { display: flex; flex: 1 1 320px; flex-wrap: wrap; gap: 8px; align-items: center; }
.editorial-finder__select { flex: 0 1 200px; }
.editorial-finder .editorial-text-link {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  min-height: 40px;
  height: auto;
  padding: 0;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  border-radius: 0;
  color: var(--editorial-ink, #191916) !important;
  background: transparent !important;
  box-shadow: none;
  font-family: var(--editorial-sans, Jost, Arial, sans-serif);
  font-size: 14px;
  text-transform: none;
  cursor: pointer;
}
.editorial-finder .editorial-finder__photo-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--editorial-line, #deddd7);
}
.editorial-finder .editorial-finder__preview { display: block; position: relative; width: 64px; height: 64px; min-height: 0; max-width: none; margin: 0; aspect-ratio: 1; overflow: hidden; }
.editorial-finder .editorial-finder__preview img { display: block; width: 64px; height: 64px; object-fit: cover; }
.editorial-finder__photo-details { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.editorial-finder .upload-status { margin: 4px 0 0; font-size: 14px; color: var(--editorial-muted, #555550); }
.editorial-finder__photo-results { grid-column: 1 / -1; }
.editorial-finder__photo-results:empty,
.editorial-finder__status:empty { display: none; }
.editorial-finder__status { grid-column: 1 / -1; margin: 12px 0 0; font-size: 14px; }
.editorial-finder [hidden] { display: none !important; }
@media (max-width: 980px) {
  .editorial-finder { grid-template-columns: minmax(0, 1fr); }
  .editorial-finder .editorial-finder__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-finder__field { grid-column: 1 / -1; }
  .editorial-finder .editorial-finder__form > .editorial-button { width: 100%; }
  .editorial-finder .editorial-finder__form.is-untouched > [type="submit"],
  .editorial-finder .editorial-finder__form:has(> [data-finder-reset][hidden]) > [type="submit"] { grid-column: 1 / -1; }
  .editorial-finder .editorial-finder__form > .editorial-button:last-child { grid-column: 1 / -1; }
  .editorial-finder .editorial-finder__form > .editorial-finder__reset:last-child { grid-column: auto; }
  .editorial-finder__photo { margin-top: 16px; }
  .editorial-finder__photo .editorial-button { grid-column: 1 / -1; width: 100%; }
  .editorial-finder .editorial-finder__row { align-items: stretch; }
  .editorial-finder__quick { flex-basis: 100%; }
  .editorial-finder__select { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 720px) {
  .editorial-finder { padding: 16px; }
  .editorial-finder .editorial-finder__photo-strip { gap: 12px; }
}

/* Round 22: controls sit below the bar, with the photo beside the whole left cell. */
@media (min-width: 981px) {
  .editorial-finder { grid-template-rows: min-content auto; }
  .editorial-finder .editorial-finder__form { grid-column: 1; grid-row: 1; }
  .editorial-finder .editorial-finder__row { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .editorial-finder__quick { grid-column: 1 / -1; }
  .editorial-finder__select { width: 100%; }
  .editorial-finder__photo { grid-column: 2; grid-row: 1 / 3; align-self: stretch; align-content: center; grid-template-rows: auto auto; }
}

/* Round 22 Part 4: two finder rows with an optional photo panel. */
.editorial-finder { display: block; }
.editorial-finder .editorial-finder__bar { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; align-items: end; gap: 12px; margin: 0; }
.editorial-finder .editorial-finder__bar:has([data-finder-category-wrap]:not([hidden])) { grid-template-columns: minmax(0, 1fr) 200px 200px auto; }
.editorial-finder .editorial-finder__bar:has(> [data-finder-reset]:not([hidden])) { grid-template-columns: minmax(0, 1fr) 220px auto auto; }
.editorial-finder .editorial-finder__bar:has([data-finder-category-wrap]:not([hidden])):has(> [data-finder-reset]:not([hidden])) { grid-template-columns: minmax(0, 1fr) 200px 200px auto auto; }
.editorial-finder .editorial-finder__bar input[type="search"], .editorial-finder .editorial-finder__bar select, .editorial-finder .editorial-finder__bar > .editorial-button { height: 52px; min-height: 52px; }
.editorial-finder .editorial-finder__bar > .editorial-button { margin: 0; }
.editorial-finder .editorial-finder__controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin-top: 16px; }
.editorial-finder .editorial-finder__controls select, .editorial-finder .editorial-finder__toggle { box-sizing: border-box; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid var(--editorial-ink, #191916) !important; border-radius: 0; color: var(--editorial-ink, #191916); background: #fff; font-family: var(--editorial-sans, Jost, Arial, sans-serif); font-size: 15px; line-height: 1.3; }
.editorial-finder .editorial-finder__toggle { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.editorial-finder .editorial-finder__toggle[aria-pressed="true"], .editorial-finder .editorial-finder__toggle[aria-expanded="true"], .editorial-finder .editorial-finder__specials:has(input:checked) { color: #fff !important; background: var(--editorial-ink, #191916) !important; }
.editorial-finder .editorial-finder__toggle:focus-visible { outline: 2px solid var(--editorial-ink, #191916); outline-offset: 3px; }
.editorial-finder .editorial-finder__toggle svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; }
.editorial-finder .editorial-finder__photo-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 16px; padding: 20px; background: var(--editorial-stone, #f2f1ec); }
.editorial-finder .editorial-finder__photo-panel .editorial-button { height: 44px; min-height: 44px; margin: 0; }
.editorial-finder .editorial-finder__photo-panel .editorial-finder__photo-strip { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
.editorial-finder [hidden] { display: none !important; }
@media (min-width: 721px) and (max-width: 980px) {
  .editorial-finder .editorial-finder__bar { grid-template-columns: minmax(0, 1fr) 180px auto; }
  .editorial-finder .editorial-finder__bar:has(> [data-finder-reset]:not([hidden])) { grid-template-columns: minmax(0, 1fr) 180px auto auto; }
  .editorial-finder .editorial-finder__bar:has([data-finder-category-wrap]:not([hidden])) { grid-template-columns: minmax(0, 1fr) 160px 160px auto; }
  .editorial-finder .editorial-finder__bar:has([data-finder-category-wrap]:not([hidden])):has(> [data-finder-reset]:not([hidden])) { grid-template-columns: minmax(0, 1fr) 140px 140px auto auto; }
  .editorial-finder .editorial-finder__photo-panel { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 720px) {
  .editorial-finder .editorial-finder__bar, .editorial-finder .editorial-finder__bar:has([data-finder-category-wrap]:not([hidden])), .editorial-finder .editorial-finder__bar:has(> [data-finder-reset]:not([hidden])), .editorial-finder .editorial-finder__bar:has([data-finder-category-wrap]:not([hidden])):has(> [data-finder-reset]:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-finder .editorial-finder__bar > label { grid-column: 1 / -1; }
  .editorial-finder .editorial-finder__bar > .editorial-button { width: 100%; }
  .editorial-finder .editorial-finder__bar:has(> [data-finder-reset][hidden]) > [type="submit"] { grid-column: 1 / -1; }
  .editorial-finder .editorial-finder__controls { grid-template-columns: minmax(0, 1fr); }
  .editorial-finder .editorial-finder__photo-panel { grid-template-columns: minmax(0, 1fr); }
  .editorial-finder .editorial-finder__photo-panel > .editorial-button { width: 100%; }
}

/* Reviewed multi-photo dresses keep their primary image until interaction. */
.dress-card-image, .envira-gallery-link, .dress-photo-frame { position: relative; touch-action: pan-y pinch-zoom; }
.dress-photo-frame { display: block; overflow: hidden; }
/* The fade layer must never take part in the flow; the captured gallery stylesheet positions and sizes
   .envira-gallery-image with its own rules, so these win on specificity and importance. */
.dress-photo-frame > .dress-photo-ghost, .dress-card-image > .dress-photo-ghost, .dress-photo-ghost { position: absolute !important; inset: 0 !important; z-index: 1; display: block !important; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; opacity: 0; transition: opacity .38s ease; pointer-events: none; }
.dress-photo-ghost.is-visible { opacity: 1; }
.dress-photo-ghost.is-instant { transition: none; }
/* Black dots, the current photo's dot white; the ink border keeps the white dot readable on a white gown. */
.dress-photo-dots { position: absolute; z-index: 2; left: 50%; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; transform: translateX(-50%); pointer-events: none; }
.dress-photo-dots > span { width: 8px; height: 8px; border: 1px solid #191916; border-radius: 50%; background: #191916; box-shadow: 0 0 2px rgba(255, 255, 255, .6); }
.dress-photo-dots > span.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .dress-photo-ghost { transition: none; } }
.dress-dialog-media { display: flex; flex-direction: column; min-width: 0; }
.dress-dialog-photo { position: relative; display: grid; place-items: center; width: 100%; min-height: 0; flex: 1; touch-action: pan-y pinch-zoom; }
.dress-dialog-media .dress-dialog-photo > img { display: block; width: 100%; height: min(62dvh, 620px); max-height: 62dvh; object-fit: contain; }
.dress-photo-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; transform: translateY(-50%); border: 1px solid #deddd7; border-radius: 0; background: #fff; color: #191916; cursor: pointer; }
.dress-photo-arrow--previous { left: 10px; }
.dress-photo-arrow--next { right: 10px; }
.dress-photo-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dress-photo-counter { margin: 8px 0; color: #191916; font-size: 13px; text-align: center; }
.dress-photo-thumbnails { display: flex; flex-shrink: 0; gap: 8px; max-width: 100%; padding: 0 14px 14px; overflow-x: auto; }
.dress-photo-thumbnails button { flex: 0 0 54px; width: 54px; height: 70px; padding: 2px; border: 1px solid transparent; border-radius: 0; background: transparent; cursor: pointer; }
.dress-photo-thumbnails button[aria-pressed="true"] { border-color: #191916; }
.dress-dialog-media .dress-photo-thumbnails img { display: block; width: 100%; height: 100%; max-height: 64px; object-fit: cover; }
.dress-photo-thumbnails button:focus-visible, .dress-photo-arrow:focus-visible { outline: 2px solid #191916; outline-offset: 3px; }
.dress-photo-arrow[hidden], .dress-photo-thumbnails[hidden] { display: none; }
@media (max-width: 700px) {
  .dress-dialog-media { min-height: 0; max-height: none; }
  .dress-dialog-media .dress-dialog-photo > img { height: 44dvh; max-height: 44dvh; }
}
