:root {
  --bg: #f4ede3;
  --bg-soft: #fbf6ef;
  --surface: rgba(251, 246, 239, 0.9);
  --surface-strong: #fffbf6;
  --ink: #221b1a;
  --muted: #6b5851;
  --line: rgba(72, 57, 44, 0.14);
  --accent: #6c7a43;
  --accent-deep: #49522d;
  --highlight: #c98e69;
  --paper-shadow: inset 0 0 0 1px rgba(72, 57, 44, 0.06);
  --shadow: 0 24px 60px rgba(78, 43, 35, 0.12);
  --display-font: "Cormorant Garamond", serif;
  --hand-font: "Caveat", cursive;
  --display-letter-spacing: 0.02em;
  --display-word-spacing: 0;
  --header-offset: 92px;
  --page-width: 1080px;
  --page-gutters: 2rem;
}

@font-face {
  font-family: "By Andrea Hand v10";
  src:
    url("assets/fonts/ByAndreaHand-Regular.woff2?v=10") format("woff2"),
    url("assets/fonts/ByAndreaHand-Regular.ttf?v=10") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

a[href],
button,
summary,
select,
input[type="radio"],
input[type="checkbox"],
input[type="button"],
input[type="submit"],
[role="button"],
[role="link"],
.header-icon-button,
.button,
.page-link-card,
.fabric-card,
.size-card,
.option-pill,
.switch-pill,
.shop-saya-card[data-product-page] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
[aria-disabled="true"],
.option-pill:has(input:disabled),
.size-card:has(input:disabled),
.fabric-card:has(input:disabled) {
  cursor: not-allowed;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(219, 201, 174, 0.42), transparent 24%),
    radial-gradient(circle at right top, rgba(108, 122, 67, 0.12), transparent 24%),
    linear-gradient(180deg, #f2eadf 0%, #f8f2ea 46%, #f1e8dd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(rgba(95, 76, 55, 0.08) 0.8px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.55) 0.8px, transparent 0.8px);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  mix-blend-mode: multiply;
}

.site-header,
.hero {
  width: min(var(--page-width), calc(100% - var(--page-gutters)));
  margin: 0 auto;
}

.statement,
.section {
  width: min(var(--page-width), calc(100% - var(--page-gutters)));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem 0.8rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: rgba(251, 246, 239, 0.72);
  box-shadow: var(--paper-shadow);
  backdrop-filter: blur(12px);
}

.site-header-shop {
  display: grid;
  grid-template-columns: 56px 1fr 112px;
  align-items: center;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-kicker,
.eyebrow,
.section-tag,
.card-label,
.featured-type {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.brand-logo-link {
  display: inline-flex;
  margin-top: -0.15rem;
}

.header-logo-link {
  justify-self: center;
  margin-top: 0;
}

.header-logo-link .brand-logo-frame {
  width: 250px;
  height: 50px;
}

.header-logo-link .brand-logo-image {
  object-position: center;
  transform: scale(1.78);
  transform-origin: center;
}

.brand-logo-frame {
  display: block;
  width: 290px;
  height: 56px;
  overflow: hidden;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.86);
  transform-origin: left center;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.header-icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(34, 27, 26, 0.12);
  background: rgba(255, 251, 246, 0.88);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.25rem;
}

.header-icon-button:hover {
  background: rgba(255, 247, 239, 0.96);
}

#open-favorites-panel > span[aria-hidden="true"] {
  font-size: 1.8rem;
  line-height: 1;
}

.header-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-menu,
.icon-menu::before,
.icon-menu::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.icon-menu {
  position: relative;
}

.icon-menu::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.icon-menu::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.button-outline,
.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.1rem 0 0.5rem;
  max-width: 820px;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: min(100%, 720px);
  padding: 0.7rem 1.4rem 0.6rem;
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-family: var(--hand-font);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  text-transform: none;
}

.hero-logo-wrap {
  width: min(100%, 760px);
  height: clamp(108px, 13vw, 150px);
  overflow: hidden;
}

.hero-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.72);
  transform-origin: center;
}

.hero-kicker {
  margin: 0;
  margin-top: -0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 1rem;
  color: var(--ink);
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 420px);
}

.hero-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(72, 57, 44, 0.24);
}

.hero-divider-heart {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}

.hero-text,
.section-heading p,
.service-list p,
.timeline p,
.contact-section p,
.product-body p,
.statement p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
  justify-content: center;
}

.product-card,
.service-list article,
.timeline article,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  box-shadow: var(--paper-shadow), 0 18px 36px rgba(78, 43, 35, 0.08);
}

.featured-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.featured-item:last-child {
  border-bottom: 0;
}

.statement {
  padding: 1rem 0 0;
  text-align: center;
}

.statement p {
  max-width: 48rem;
  font-size: 1.2rem;
  margin-left: auto;
  margin-right: auto;
}

.statement-note,
.quote-line {
  max-width: 42rem;
  color: var(--accent-deep);
  font-family: var(--hand-font);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  text-transform: none;
}

.statement-note {
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

.quote-line {
  margin: 1.5rem 0 0;
}

.statement-image-wrap {
  width: min(100%, 860px);
  margin: 2.2rem auto 0;
}

.statement-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(34, 27, 26, 0.08);
  box-shadow: var(--paper-shadow), 0 24px 42px rgba(78, 43, 35, 0.12);
}

.section {
  padding: 5rem 0 1rem;
}

.section-tight {
  padding-top: 1.5rem;
}

.page-intro-shop {
  padding-top: 2rem;
  padding-bottom: 0.35rem;
}

.page-intro-shop .section-heading {
  margin-bottom: 0;
}

.page-intro {
  padding-bottom: 0.5rem;
}

.custom-saya-intro {
  width: min(var(--page-width), calc(100% - var(--page-gutters)));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.4rem 0.75rem;
}

.custom-saya-intro-copy {
  max-width: 44rem;
}

.custom-saya-eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--accent-deep);
  font: 600 0.72rem/1.5 "Manrope", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.custom-saya-intro h1 {
  margin: 0 0 1rem;
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  word-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.custom-saya-intro p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: normal;
}

.custom-saya-intro .custom-saya-lead {
  max-width: 39rem;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.custom-saya-intro .custom-saya-description {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.custom-saya-intro .custom-saya-help {
  margin-top: 1.15rem;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(108, 122, 67, 0.35);
  color: var(--muted);
  font-size: 0.82rem;
}

.page-panel {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.page-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-links-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 34rem;
  margin: 0 auto;
}

.page-link-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.8rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(34, 27, 26, 0.08);
  box-shadow: var(--paper-shadow), 0 18px 36px rgba(78, 43, 35, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.page-link-card-sayas {
  align-content: start;
  gap: 0.65rem;
}

.page-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 79, 61, 0.18);
  box-shadow: var(--paper-shadow), 0 24px 42px rgba(78, 43, 35, 0.12);
}

.page-link-card h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  word-spacing: 0;
  text-transform: uppercase;
}

.page-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading a {
  color: #5f7d3a;
}

.info-box {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.45rem;
  max-width: 34rem;
  padding: 1.35rem 1.4rem;
  border: 1.5px solid rgba(34, 27, 26, 0.28);
  background: rgba(255, 252, 246, 1);
}

.info-box p {
  margin: 0;
}

.info-box p + p {
  margin-top: 0.45rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

#sayas > .section-heading,
#encargos > .section-heading,
.statement > .section-heading {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

#sayas > .section-heading p,
#encargos > .section-heading p,
#encargos > .section-heading .quote-line,
.statement > .section-heading p {
  margin-left: auto;
  margin-right: auto;
}

#encargos {
  display: block;
}

.section h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.product-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  overflow: hidden;
  border-color: rgba(72, 57, 44, 0.12);
}

.product-visual {
  min-height: 270px;
  background-size: cover;
  background-position: center;
}

.product-visual-one {
  background:
    linear-gradient(135deg, rgba(167, 79, 61, 0.08), rgba(34, 27, 26, 0.4)),
    url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=900&q=80");
}

.product-visual-two {
  background:
    linear-gradient(135deg, rgba(216, 185, 143, 0.18), rgba(34, 27, 26, 0.38)),
    url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=900&q=80");
}

.product-visual-three {
  background:
    linear-gradient(135deg, rgba(125, 55, 40, 0.08), rgba(34, 27, 26, 0.38)),
    url("https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=900&q=80");
}

.product-body,
.service-list article,
.timeline article,
.contact-card {
  padding: 1.55rem;
}

.product-body span {
  color: var(--accent-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.split-section {
  display: block;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline article span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: rgba(167, 79, 61, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 5rem;
  justify-items: center;
  text-align: center;
}

.contact-section > div:first-child p {
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  display: grid;
  gap: 1rem;
  width: 100%;
  justify-items: center;
  text-align: center;
  position: relative;
  padding: 2rem 1.8rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(248, 238, 229, 0.92)),
    rgba(255, 250, 245, 0.92);
  border: 1px solid rgba(167, 79, 61, 0.1);
  box-shadow:
    0 24px 54px rgba(78, 43, 35, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.configurator-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.4rem;
  width: min(100%, 1080px);
  margin: 0 auto;
  background: rgba(251, 246, 239, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  box-shadow: var(--paper-shadow), 0 18px 36px rgba(78, 43, 35, 0.08);
}

.configurator-block {
  padding: 1.6rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(34, 27, 26, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.configurator-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.configurator-copy h3,
.size-card h4 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  word-spacing: 0;
  text-transform: uppercase;
}

.configurator-copy {
  margin-bottom: 1.15rem;
  max-width: 38rem;
}

.configurator-finish-copy {
  max-width: none;
  container-type: inline-size;
}

.configurator-finish-copy h3 {
  white-space: nowrap;
  font-size: min(2rem, 4.5cqw);
}

.configurator-step,
.mini-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

.fabric-grid,
.size-grid,
.measure-grid {
  display: grid;
  gap: 1rem;
}

.fabric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}

.fabric-card,
.size-card {
  position: relative;
  display: block;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(34, 27, 26, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(78, 43, 35, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.fabric-card:hover,
.size-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(78, 43, 35, 0.1);
  border-color: rgba(167, 79, 61, 0.2);
}

.fabric-card input,
.size-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fabric-card::after,
.size-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(34, 27, 26, 0.16);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 253, 249, 0.85);
}

.fabric-card:has(input:checked),
.size-card:has(input:checked) {
  border-color: rgba(167, 79, 61, 0.34);
  box-shadow: 0 24px 46px rgba(78, 43, 35, 0.16);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255, 253, 249, 1), rgba(249, 238, 228, 0.96));
}

.fabric-card:has(input:checked)::after,
.size-card:has(input:checked)::after {
  background: var(--accent);
  border-color: var(--accent);
}

.fabric-card:has(input:checked) strong,
.size-card:has(input:checked) h4 {
  color: var(--accent-deep);
}

.fabric-card strong,
.fabric-card > span,
.size-card h4,
.size-card p {
  display: block;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Clear step hierarchy, retaining the open, unboxed layout. */
.configurator-card > .configurator-block + .configurator-block {
  margin-top: 0.4rem;
  padding-top: 1.8rem;
  border-top-color: rgba(108, 122, 67, 0.24);
}

.configurator-step.step-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

.step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.mini-label.substep-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.substep-number {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(108, 122, 67, 0.12);
  color: var(--ink);
  letter-spacing: 0;
  font-size: 0.9rem;
}

.option-stack.finish-substep {
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
}

.fabric-card strong,
.size-card h4 {
  padding-top: 1rem;
  font-size: 1.08rem;
}

.fabric-card strong {
  padding-bottom: 0.35rem;
  font-size: 1.08rem;
  line-height: 1.35;
  word-break: break-word;
}

.fabric-card > span,
.size-card p {
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.fabric-card > span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fabric-image,
.size-image {
  min-height: 210px;
  background-size: cover;
  background-position: center;
}

.fabric-gallery-card { min-width: 0; cursor: pointer; }
.fabric-gallery-card::after { pointer-events: none; }
.fabric-gallery-card:hover { transform: none; }
.fabric-gallery { position: relative; background: #efe5d7; }
.fabric-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.fabric-gallery-track::-webkit-scrollbar { display: none; }
.fabric-gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.fabric-gallery-slide img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.fabric-gallery-controls { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.fabric-gallery-controls button { pointer-events: auto; border: 1px solid #e1d4c5; width: 36px; height: 36px; border-radius: 50%; background: #fffaf5; color: #332a24; font: 26px/1 serif; cursor: pointer; }
.fabric-gallery-controls button:disabled { opacity: .35; cursor: default; }
.fabric-gallery-counter { background: #fffaf5; border-radius: 20px; padding: 5px 10px; color: #332a24; font-size: 12px; }
.fabric-choice { display: block; cursor: pointer; padding-bottom: 14px; }
.fabric-choice > span { display: block; margin: 0 16px; font-size: 12px; color: var(--muted); }
.fabric-choice .fabric-choice-action { margin-top: 12px; padding: 9px; border: 1px solid #d8c8b7; border-radius: 5px; text-align: center; color: var(--ink); }
.fabric-choice:has(input:checked) .fabric-choice-action { background: var(--accent); color: white; }
.fabric-choice:has(input:checked) .fabric-choice-action::after { content: ' ✓'; }
.fabric-choice:has(input:focus-visible), .fabric-gallery-track:focus-visible, .fabric-gallery-controls button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.fabric-image-one {
  background-image: url("assets/fabrics/Tela_VerdeLima.jpeg");
}

.fabric-image-two {
  background-image: url("assets/fabrics/Tela_FlorRosa.jpeg");
}

.fabric-image-three {
  background-image: url("assets/fabrics/Tela_FlorMorada.jpeg");
}

.fabric-image-four {
  background-image: url("assets/fabrics/Tela_FlorFlamenca.jpeg");
}

.fabric-image-five {
  background-image: url("assets/fabrics/Tela_FlorAzulYemaya.jpeg");
}

.size-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 100%;
}

.fabric-grid,
.size-grid {
  justify-content: center;
}

@media (min-width: 961px) {
  .fabric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .size-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 960px) {
  .fabric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .fabric-grid {
    grid-template-columns: 1fr;
  }
}

.fabric-card[hidden] { display: none !important; }
.fabric-expand-controls { display: grid; justify-items: center; gap: 10px; margin: 24px 0; }
.fabric-expand-controls p { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

.size-image { min-height: 0; aspect-ratio: 4 / 3; background-size: contain; background-repeat: no-repeat; background-color: #e8dfd2; }
.size-image-one {
  background-image: url("assets/saya-types/maniqui-180.png");
}

.size-image-two {
  background-image: url("assets/saya-types/maniqui-270-gris.png");
}

.size-image-three {
  background-image: url("assets/saya-types/maniqui-360.png");
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.waistband-options {
  align-items: flex-start;
}

.option-pill.waistband-photo-option {
  display: grid;
  grid-template-columns: auto 1fr;
  width: min(100%, 360px);
  min-width: 0;
}

.waistband-option-photo {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 4px;
}

.option-pill input {
  accent-color: var(--accent);
}

.option-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 122, 67, 0.32);
  background: rgba(108, 122, 67, 0.06);
}

.option-pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.flight-control,
.option-stack {
  margin-top: 1.2rem;
}

.flight-control[hidden] {
  display: none;
}

@media (min-width: 961px) {
  #flight-control:not([hidden]) {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 1.5rem;
    row-gap: 0.75rem;
    align-items: start;
  }

  #flight-control:not([hidden]) > .straps-overview {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    gap: 1rem;
  }

  #flight-control > .flight-editor {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #flight-control .flight-guide-photo {
    flex: 0 0 360px;
    width: 360px;
    height: 180px;
  }
}

.flight-editor #flight-note {
  text-align: left;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  line-height: 1.65;
}

.flight-editor #flight-input-wrap {
  max-width: none;
  width: 100%;
}

.flight-editor .flight-input {
  width: 100%;
  max-width: none;
}

#straps-control {
  margin-top: 1.2rem;
}

#straps-control > .straps-overview {
  gap: 1rem;
  margin: 0 0 1rem;
}

#straps-control .flight-header {
  flex-shrink: 0;
  min-height: 180px;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  text-align: center;
}

#straps-control .flight-header > div {
  white-space: nowrap;
}

#straps-control .mini-label {
  font-size: 0.85rem;
  letter-spacing: 0.09em;
}

#straps-control .straps-guide-photo {
  width: 135px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  object-fit: cover;
}

#straps-editor .flight-note {
  width: 100%;
  text-align: left;
  line-height: 1.65;
}

#straps-editor .flight-input-wrap,
#straps-editor .flight-input {
  width: 100%;
  max-width: none;
}

@media (min-width: 961px) {
  #straps-control {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  #straps-control > .straps-overview {
    grid-column: 1;
    margin: 0;
  }

  #straps-editor:not([hidden]) {
    grid-column: 2;
    min-width: 0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  #straps-control > .straps-overview {
    flex-wrap: wrap;
  }
}

.flight-settings {
  min-width: 0;
}

.flight-guide {
  margin: 0;
  width: 100%;
  max-width: 210px;
}

.flight-guide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.flight-guide figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 600px) {
  .flight-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .flight-guide {
    justify-self: center;
    max-width: 190px;
  }
}

.flight-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.straps-overview {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  margin: 0.5rem 0 0.8rem;
}

.straps-overview .flight-header {
  min-width: 0;
  margin-bottom: 0;
}

.straps-guide-photo {
  display: block;
  flex: 0 0 auto;
  width: 90px;
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
}

.straps-guide-photo.flight-guide-photo {
  flex: 0 1 320px;
  width: 320px;
  min-width: 0;
  height: auto;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#flight-control > .straps-overview {
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: 1.25rem;
  margin-bottom: 1.4rem;
}

#flight-control .flight-header {
  flex-shrink: 0;
  min-height: 180px;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  text-align: center;
}

#flight-control .flight-header > div {
  white-space: nowrap;
}

#flight-control .flight-header .mini-label {
  font-size: 0.85rem;
  letter-spacing: 0.09em;
}

@media (max-width: 600px) {
  #flight-control > .straps-overview {
    flex-wrap: wrap;
    gap: 1rem;
  }

  #flight-control .flight-guide-photo {
    flex: 0 1 320px;
    width: min(100%, 320px);
  }
}

@media (max-width: 380px) {
  .straps-guide-photo {
    width: 72px;
    height: 96px;
  }

  .straps-guide-photo.flight-guide-photo {
    flex-basis: 150px;
    width: 150px;
    height: auto;
  }
}

.button-small {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.flight-note {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: rgba(167, 79, 61, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
}

.flight-warning {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  background: rgba(167, 79, 61, 0.1);
  color: var(--accent-deep);
  font-size: 0.88rem;
  line-height: 1.45;
}

.flight-input-wrap[hidden] {
  display: none;
}

.flight-input-wrap {
  display: grid;
  gap: 0.45rem;
  max-width: 180px;
}

.flight-input-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.flight-input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.96);
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.flight-input:focus {
  outline: 0;
  border-color: rgba(167, 79, 61, 0.34);
  box-shadow: 0 0 0 4px rgba(167, 79, 61, 0.08);
}

.measure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.4rem;
}

.measure-grid label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.measure-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.field-help {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.measure-notes {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.measure-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.measure-grid input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.92);
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.measure-grid input:focus {
  outline: 0;
  border-color: rgba(167, 79, 61, 0.34);
  box-shadow: 0 0 0 4px rgba(167, 79, 61, 0.08);
}

.note-field label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.note-field-spaced {
  margin-top: 1.4rem;
}

.note-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 130px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.92);
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.note-field textarea:focus {
  outline: 0;
  border-color: rgba(167, 79, 61, 0.34);
  box-shadow: 0 0 0 4px rgba(167, 79, 61, 0.08);
}

.configurator-finish {
  display: grid;
  gap: 1.2rem;
}

.order-note-mini {
  margin: -0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.after-order-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  background: rgba(255, 253, 249, 0.78);
}

.after-order-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.green-check {
  color: #5f7d3a;
  font-weight: 700;
}

.weight-mark {
  color: #5f7d3a;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}

.summary-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.92);
}

.summary-hero {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(34, 27, 26, 0.06);
}

.summary-fabric-preview {
  min-height: 110px;
  border-radius: 6px;
}

.summary-hero-copy strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--display-font);
  font-size: 1.8rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  word-spacing: 0;
  text-transform: uppercase;
}

.summary-hero-copy p {
  margin: 0;
  color: var(--muted);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(34, 27, 26, 0.06);
}

.summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

#summary-note {
  white-space: pre-wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(34, 27, 26, 0.38);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  justify-items: start;
  background: rgba(34, 27, 26, 0.28);
  backdrop-filter: blur(6px);
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.side-panel {
  width: min(100%, 380px);
  min-height: 100vh;
  padding: 1.3rem;
  background: #fffaf5;
  box-shadow: 24px 0 48px rgba(34, 27, 26, 0.12);
  display: grid;
  align-content: start;
  gap: 1rem;
}

.side-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(34, 27, 26, 0.12);
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
}

.side-panel-nav {
  display: grid;
  gap: 0.8rem;
}

.side-panel-nav a,
.side-panel-link {
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 251, 246, 0.88);
  border: 1px solid rgba(34, 27, 26, 0.08);
  min-height: 46px;
  padding: 0.8rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font: inherit;
}

.panel-item-list {
  display: grid;
  gap: 0.9rem;
}

.panel-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  background: rgba(255, 251, 246, 0.9);
}

.panel-item-image {
  width: 78px;
  height: 78px;
  object-fit: cover;
}

.panel-item-copy {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.panel-item-copy strong {
  font-family: var(--display-font);
  font-size: 1.25rem;
  line-height: 1;
}

.panel-item-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-item-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.panel-mini-button {
  min-height: 36px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
}

.panel-mini-button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 27, 26, 0.12);
}

.panel-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel-total {
  margin-top: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(34, 27, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.order-modal {
  position: relative;
  width: min(100%, 560px);
  padding: 1.5rem;
  border-radius: 8px;
  background: #fffaf5;
  box-shadow: 0 30px 60px rgba(34, 27, 26, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: rgba(34, 27, 26, 0.06);
  color: var(--ink);
  font-size: 1.4rem;
}

.modal-copy {
  color: var(--muted);
  line-height: 1.7;
}

.modal-switch {
  display: flex;
  gap: 0.8rem;
  margin: 1.25rem 0;
}

.switch-pill {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.switch-pill:hover {
  border-color: rgba(108, 122, 67, 0.32);
  background: rgba(108, 122, 67, 0.06);
}

.switch-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-form {
  display: grid;
  gap: 0.9rem;
}

.modal-form[hidden] {
  display: none;
}

.modal-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.modal-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.96);
  font: inherit;
  color: var(--ink);
}

.contact-card-compact {
  align-content: center;
  min-height: 220px;
}

.contact-section .contact-card-compact {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  overflow: visible;
}

.sayas-market {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding-top: 0.35rem;
  padding-bottom: 5rem;
}

.sayas-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-offset) + 1.8rem);
}

.sayas-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem;
  background: rgba(255, 251, 246, 0.88);
  border: 1px solid rgba(34, 27, 26, 0.08);
  box-shadow: var(--paper-shadow), 0 18px 36px rgba(78, 43, 35, 0.08);
}

.sayas-panel h3 {
  margin: 0.45rem 0 1rem;
  font-family: var(--display-font);
  font-size: 1.5rem;
}

.sayas-panel p {
  margin: 0;
}

.sayas-panel-note {
  gap: 0.8rem;
}

.sayas-panel-note a {
  color: #5f7d3a;
}

.sayas-panel .section-tag,
.sayas-panel-note .section-tag {
  margin: 0;
}

.sayas-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.sayas-filter-button {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(72, 57, 44, 0.12);
  background: rgba(255, 251, 246, 0.7);
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 500;
}

.sayas-filter-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.shop-saya-card.is-hidden {
  display: none;
}

.sayas-catalogue {
  display: grid;
  gap: 1rem;
}

@media (min-width: 641px) {
  .sayas-market {
    row-gap: 1rem;
  }

  .sayas-market > .sayas-sidebar {
    grid-column: 1;
    grid-row: 2;
  }

  .sayas-market > .sayas-catalogue {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-rows: subgrid;
  }
}

.sayas-selection-note {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(34, 27, 26, 0.08);
  background: rgba(255, 251, 246, 0.88);
}

.sayas-selection-note p {
  margin: 0;
  color: var(--muted);
}

.sayas-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.35rem 0 0.2rem;
}

.sayas-toolbar p {
  margin: 0;
  color: var(--muted);
}

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

.shop-saya-card {
  display: grid;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(34, 27, 26, 0.08);
  box-shadow: var(--paper-shadow), 0 18px 36px rgba(78, 43, 35, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shop-saya-card[data-product-page]:hover,
.shop-saya-card[data-product-page]:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--paper-shadow), 0 24px 44px rgba(78, 43, 35, 0.14);
  outline: none;
}

.shop-saya-media {
  aspect-ratio: 1 / 1;
  background: #efe5d7;
  position: relative;
}

.shop-saya-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-saya-body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1rem 1.15rem;
}

.shop-saya-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.28rem;
  line-height: 1;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.shop-saya-price {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.shop-saya-detail-link {
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-saya-card p {
  margin: 0;
  color: var(--muted);
}

.save-favorite-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 27, 26, 0.12);
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  flex: 0 0 auto;
}

.save-favorite-button.is-active {
  color: #8f5b55;
  border-color: rgba(143, 91, 85, 0.28);
  background: rgba(143, 91, 85, 0.06);
}

.shop-saya-floating-actions {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.cart-icon-button,
.save-favorite-button {
  width: 50px;
  height: 50px;
  background: rgba(255, 251, 246, 0.95);
  border: 1px solid rgba(34, 27, 26, 0.1);
  box-shadow: 0 10px 24px rgba(34, 27, 26, 0.08);
}

.cart-icon-button {
  position: relative;
  color: transparent;
  font-size: 0;
}

.cart-icon-button::before {
  content: "🛒";
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cart-icon-button.is-added {
  color: var(--accent-deep);
  border-color: rgba(108, 122, 67, 0.24);
  background: rgba(244, 248, 237, 0.96);
}

.shop-saya-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-saya-meta li::before {
  content: "•";
  margin-right: 0.45rem;
  color: var(--accent);
}

.shop-saya-card-cta {
  align-items: center;
}

.shop-saya-card-cta .shop-saya-body {
  align-content: center;
  min-height: 100%;
}

.product-detail-page {
  width: min(var(--page-width), calc(100% - var(--page-gutters)));
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.product-breadcrumb {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-breadcrumb a,
.text-link {
  color: var(--accent);
  font-weight: 700;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.product-detail-media {
  position: relative;
  overflow: hidden;
  background: #efe5d7;
  box-shadow: var(--paper-shadow), 0 22px 55px rgba(78, 43, 35, 0.12);
}

.product-detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-main-photo { position: relative; }
.product-availability.is-reserved { background: rgba(238, 223, 202, .96); color: #65482e; }
.add-cart-button:disabled { cursor: not-allowed; opacity: .65; }

.product-availability {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 250, 245, 0.94);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-copy {
  padding-top: 0;
}

.product-inline-details {
  margin-top: 1rem;
}

.product-inline-details h2,
.product-care-details summary {
  margin: 0;
  color: var(--ink);
  font: 600 1rem/1.5 "Manrope", sans-serif;
}

.product-inline-details p {
  margin: 0.5rem 0 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-inline-details .text-link {
  font-size: 0.85rem;
}

.product-care-details {
  margin-top: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-care-details summary {
  cursor: pointer;
}

.product-detail-copy h1,
.product-not-found h1 {
  margin: 0.6rem 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.92;
}

.product-detail-price {
  display: block;
  margin: 1rem 0;
  font-size: 1.55rem;
}

.product-detail-lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.product-actions .button {
  min-width: 190px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(34, 27, 26, 0.12);
  border-left: 1px solid rgba(34, 27, 26, 0.12);
}

.product-facts article {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-right: 1px solid rgba(34, 27, 26, 0.12);
  border-bottom: 1px solid rgba(34, 27, 26, 0.12);
}

.product-facts span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-detail-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
}

.product-detail-sections article {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 251, 246, 0.86);
  border: 1px solid rgba(34, 27, 26, 0.08);
}

.product-detail-sections h2 {
  margin: 0.55rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.product-detail-sections p,
.product-feature-list {
  color: var(--muted);
  line-height: 1.7;
}

.product-feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.15rem;
}

.product-not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: start;
  padding: 2rem;
}

.product-not-found[hidden] {
  display: none;
}

@media (max-width: 800px) {
  .product-detail-layout,
  .product-detail-sections {
    grid-template-columns: 1fr;
  }

  .product-detail-page {
    padding-top: 1.25rem;
  }

  .product-detail-copy {
    padding-top: 0;
  }
}

.contact-card-compact p {
  margin: 0;
  max-width: 36rem;
}

.contact-card-label {
  color: var(--accent-deep);
}

.contact-card-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--hand-font);
  font-weight: 600;
  font-size: clamp(2.3rem, 4vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  text-transform: none;
}

.contact-card-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 34rem;
}

.contact-card-cta {
  margin-top: 0.4rem;
  min-width: 220px;
}

.contact-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
  font: inherit;
  color: var(--ink);
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-header-shop {
    grid-template-columns: 48px 1fr 104px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .product-grid,
  .timeline,
  .service-list,
  .measure-grid,
  .page-links-grid {
    grid-template-columns: 1fr;
  }

  .sayas-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutters: 1.2rem;
  }

  .site-header,
  .hero,
  .statement,
  .section {
    width: min(var(--page-width), calc(100% - var(--page-gutters)));
  }

  .hero {
    padding-top: 1.5rem;
    max-width: none;
  }

  .hero-copy {
    padding: 1.4rem 0.4rem 0.6rem;
  }

  .brand-logo-frame {
    width: 230px;
    height: 46px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-kicker {
    letter-spacing: 0.18em;
    font-size: 0.88rem;
  }

  .hero-logo-wrap {
    width: min(100%, 500px);
    height: 96px;
  }

  #sayas > .section-heading,
  #encargos > .section-heading,
  .statement > .section-heading {
    text-align: center;
    margin-bottom: 2rem;
  }

  .fabric-grid,
  .size-grid {
    grid-template-columns: 1fr;
  }

  .sayas-market {
    grid-template-columns: 1fr;
  }

  .sayas-sidebar {
    position: static;
  }

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

  .hero-divider {
    width: min(100%, 320px);
  }
}
