/* Compact branding and responsive product enquiry. */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand .logo-crop {
  display: block;
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  flex: none;
}
.logo-crop img {
  position: absolute;
  width: 135%;
  height: auto;
  max-width: none;
  left: -18%;
  top: -16%;
  border-radius: 0;
}
.brand .brand-word {
  margin: 0;
  text-align: left;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -1px;
}
.brand .brand-word small {
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: 3px;
}
.dialog-layout > * {
  min-width: 0;
}
form,
form section,
form div {
  min-width: 0;
}
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
}
select {
  text-overflow: ellipsis;
}
.dialog-content p,
.dialog-content small,
.dialog-content label {
  overflow-wrap: anywhere;
}
.vitrase-info {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8f4fa;
  font-size: 13px;
  line-height: 1.8;
}
.product-photo:has(img[src*="chair-generated"]) img {
  object-fit: contain;
  background: #f7f5f3;
}
.dialog-visual:has(img[src*="chair-generated"]) > img {
  object-fit: contain;
  background: #f7f5f3;
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 20px;
  }
  header {
    position: relative;
    top: auto;
    height: 80px;
    gap: 10px;
    padding: 0 5%;
    background: #fff;
  }
  header .brand {
    gap: 9px;
  }
  header .brand .logo-crop {
    width: 45px;
    height: 45px;
  }
  header .brand .brand-word {
    font-size: 22px;
  }
  header .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  header .nav-cta {
    font-size: 11px;
    padding: 12px 15px;
    white-space: nowrap;
  }
  #menu {
    flex: none;
    width: 38px;
    height: 38px;
  }
  nav {
    top: 72px;
  }
  .hero {
    min-height: 0;
    max-height: none;
    height: auto;
  }
  .hero-content {
    padding: 60px 7% 65px;
  }
  .hero h1 {
    font-size: clamp(38px, 10vw, 57px);
  }
  .hero .button {
    max-width: 100%;
    gap: 15px;
  }
  .hero-secondary {
    margin: 14px 0 0 18px;
  }
  .hero-content > p:not(.eyebrow) {
    font-size: 14px;
  }
  .tabs {
    flex-wrap: wrap;
    overflow: visible;
  }
  .tabs button,
  .tabs button[aria-selected="true"] {
    font-size: 12px;
  }
  .product-card p {
    font-size: 12px;
  }
  #product-dialog {
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 22px;
  }
  .dialog-layout {
    display: block;
  }
  .dialog-visual {
    position: relative;
    padding: 12px;
  }
  .dialog-content {
    padding: 16px 18px 30px;
  }
  .dialog-content input:not([type="range"]):not([type="color"]),
  .dialog-content select,
  .dialog-content textarea {
    font-size: 16px;
    width: 100%;
    padding: 13px 12px;
  }
  .dialog-content label {
    font-size: 13px;
  }
  .dialog-content small,
  #curtain-options small {
    font-size: 12px;
  }
  .dialog-content p,
  #curtain-type-note,
  #specs {
    font-size: 13px;
  }
  .dialog-content .send {
    font-size: 14px;
    gap: 10px;
    width: 100%;
  }
  #curtain-options,
  .custom-options {
    padding: 16px;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .wheel-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .wheel-controls {
    width: 100%;
  }
  #color-wheel {
    max-width: 100%;
    height: auto;
  }
  .close {
    position: sticky;
    float: right;
    top: 10px;
    margin: 10px 10px -46px 0;
    z-index: 5;
  }
  .message-preview pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  #fabric-zoom {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
}
@media (max-width: 360px) {
  header .brand-word {
    display: none;
  }
  .hero-secondary {
    display: block;
    width: max-content;
    margin: 16px 0 0;
  }
}

/* A single, centered original logo with its own clear space. */
header {
  height: 96px;
  padding-left: 6%;
  padding-right: 6%;
}
header .brand {
  justify-content: center;
  padding: 6px 0;
  line-height: 1;
}
header .brand .logo-crop {
  width: 72px;
  height: 72px;
  margin: 0;
}
.logo-crop img {
  width: 134%;
  left: -13.7%;
  top: -16.6%;
}
footer .brand .logo-crop {
  width: 64px;
  height: 64px;
}
.vitrase-custom {
  margin: 20px 0;
  padding: 18px;
  background: #f8f4fa;
  border-radius: 18px;
}
.vitrase-custom label {
  display: block;
  margin: 0 0 10px;
}
.vitrase-custom textarea {
  width: 100%;
  resize: vertical;
}
.vitrase-custom small {
  margin-top: 10px;
}
@media (max-width: 700px) {
  header {
    height: 86px;
    padding: 0 6%;
    gap: 14px;
  }
  header .brand .logo-crop {
    width: 64px;
    height: 64px;
  }
  header .nav-cta {
    margin-left: auto;
  }
  header nav {
    top: 80px;
  }
  .vitrase-custom {
    padding: 16px;
  }
}
.color-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.color-sample {
  border: 1px solid #e8e0ed;
  border-radius: 14px;
  background: white;
  padding: 6px;
  color: #4b3e52;
  min-width: 0;
}
.color-sample span {
  display: block;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #eee;
}
.color-sample strong {
  display: block;
  font-size: 11px;
  margin: 7px 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.color-sample[aria-pressed="true"] {
  border-color: #6b487e;
  box-shadow: 0 0 0 2px #b997c8;
}
.custom-color-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.custom-color-row input[type="color"] {
  width: 70px;
  height: 50px;
  padding: 4px;
  flex: none;
}
.custom-color-row output {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.order-preview {
  padding: 18px;
  background: #f7f3fa;
  border-radius: 20px;
  margin-top: 24px;
}
.order-preview h3 {
  font-size: 20px;
}
.order-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e4dce9;
}
.order-preview button {
  margin-top: 14px;
  max-width: 100%;
  white-space: normal;
}
.order-preview .button {
  width: 100%;
  font-size: 13px;
  justify-content: center;
}
.order-preview .text-link {
  display: block;
  background: none;
  border: 0;
  color: #6b487e;
  text-decoration: underline;
}
.order-preview small {
  margin-top: 12px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#curtain-color-value {
  display: block;
  margin: 12px 0;
}

/* Use the newly supplied logo in full; no crop or offset. */
.brand .logo-crop {
  overflow: visible;
  border-radius: 0;
}
.brand .logo-crop img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  transform: none;
}

/* Keep complete Chiara samples legible; original image available in zoom. */
.texture-image.flooring-image {
  aspect-ratio: 1.42;
  height: auto;
  background: #fff;
}
.texture-image.flooring-image img {
  object-fit: contain;
}
.fabric-tile .flooring-image {
  height: auto;
  min-height: 0;
}
.catalogue-custom-note {
  padding: 18px;
  border-radius: 16px;
  background: #f6f2f8;
  font-size: 12px;
  line-height: 1.8;
}
.catalogue-custom-note a {
  color: var(--purple);
  text-decoration: underline;
}
#zoom-content > .sheet-image {
  width: 100%;
  height: auto;
}
#fabric-zoom:has(.sheet-image) {
  width: min(1100px, 94vw);
  max-width: 1100px;
}

#flooring-type-wrap {
  padding: 19px;
  border-radius: 18px;
  background: #f6eff9;
  margin: 24px 0 18px;
}
#flooring-type-wrap p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
#flooring-type {
  background: white;
}
.texture-image.flooring-image {
  aspect-ratio: 3.02;
  height: auto !important;
  position: relative;
  overflow: hidden;
}
#zoom-content > .texture-image.flooring-image {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 3.02;
}
#fabric-zoom:has(.flooring-image) {
  max-width: 1000px;
  width: min(1000px, 94vw);
}
