:root {
  --paper: #fffefa;
  --cream: #f7f1e7;
  --cream-deep: #ede1cd;
  --ink: #30281f;
  --muted: #74695c;
  --terracotta: #94691f;
  --terracotta-dark: #704a10;
  --sage: #c7a45e;
  --sage-dark: #7b5c22;
  --gold: #c7a45e;
  --gold-dark: #7b5c22;
  --line: #e6d8c1;
  --shadow: 0 22px 60px rgba(82, 60, 21, 0.13);
  --display: Georgia, "Times New Roman", serif;
  --script: "Segoe Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  background: linear-gradient(90deg, #8a641f, #b58a3a 48%, #94691f);
  color: #fffdf8;
  font-size: 13px;
  letter-spacing: .04em;
}
.announcement::before, .announcement::after { content: "⌁"; margin: 0 18px; opacity: .85; }
.announcement span { margin: 0 9px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 94px;
  padding: 14px clamp(24px, 5vw, 78px);
  border-bottom: 1px solid rgba(117, 89, 37, .12);
  background: rgba(255, 254, 250, .94);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; white-space: nowrap; width: fit-content; }
.brand span { font-family: var(--display); font-size: clamp(24px, 2vw, 33px); letter-spacing: -.04em; }
.brand em {
  width: clamp(132px, 12vw, 168px);
  margin-left: 7px;
  aspect-ratio: 1177 / 513;
  background: currentColor;
  font-size: 0;
  line-height: 0;
  -webkit-mask: url('/static/images/ylemie-signature.png') center / contain no-repeat;
  mask: url('/static/images/ylemie-signature.png') center / contain no-repeat;
}
.site-header nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.site-header nav a { position: relative; font-size: 15px; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--terracotta); transition: right .25s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.selection-button {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.selection-button b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--terracotta); color: white; font-size: 13px; }

.hero { display: grid; grid-template-columns: minmax(420px, 44%) 1fr; min-height: min(690px, calc(100vh - 132px)); background: var(--cream); }
.hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px clamp(42px, 7vw, 118px);
  text-align: center;
}
.hero-copy::before {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -78px;
  width: 260px;
  height: 360px;
  opacity: .38;
  background:
    radial-gradient(ellipse at 75% 30%, transparent 0 9px, var(--sage) 10px 11px, transparent 12px),
    radial-gradient(ellipse at 66% 43%, transparent 0 16px, var(--sage) 17px 18px, transparent 19px),
    radial-gradient(ellipse at 57% 59%, transparent 0 21px, var(--sage) 22px 23px, transparent 24px),
    linear-gradient(72deg, transparent 49%, var(--sage) 50% 50.6%, transparent 51%);
  transform: rotate(-9deg);
}
.kicker { margin: 0 0 13px; color: var(--terracotta-dark); font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hero h1, .section-heading h2, .fabric-intro h2, .quote h2, .story h2, .customizer h2, .selection-drawer h2, .process h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.hero h1 { max-width: 620px; font-size: clamp(47px, 4.3vw, 72px); }
.leaf-divider { display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; margin: 22px 0 16px; color: var(--sage); }
.leaf-divider i { display: block; width: 48px; height: 1px; background: currentColor; transform: rotate(-8deg); opacity: .8; }
.leaf-divider span { font-size: 25px; transform: rotate(66deg); }
.leaf-divider b { color: var(--terracotta); font-size: 11px; }
.hero-intro { max-width: 560px; margin: 0 0 27px; color: #655c52; font-size: 17px; line-height: 1.65; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 30px;
  border: 0;
  border-radius: 8px;
  background: var(--terracotta);
  box-shadow: 0 10px 22px rgba(148, 105, 31, .22);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translateY(-2px); background: var(--terracotta-dark); box-shadow: 0 14px 26px rgba(112, 74, 16, .3); }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.hero-note span { color: var(--sage); margin-right: 4px; }
.hero-photo { min-height: 500px; overflow: hidden; background: #e5dbc8; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.reassurance { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px clamp(24px, 7vw, 110px); border-bottom: 1px solid var(--line); background: var(--paper); }
.reassurance > div { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 26px; border-right: 1px solid var(--line); }
.reassurance > div:last-child { border-right: 0; }
.reassurance span { font-family: var(--display); color: var(--terracotta); font-size: 30px; font-style: italic; }
.reassurance p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.reassurance b { display: block; color: var(--ink); font-size: 14px; }

.section { padding: 110px clamp(24px, 7vw, 112px); }
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .fabric-intro h2, .quote h2, .story h2 { font-size: clamp(38px, 4vw, 60px); }
.section-heading > p:last-child { max-width: 670px; margin: 2px auto 0; color: var(--muted); }
.section-heading .leaf-divider { margin: 14px 0 10px; }
.section-heading.compact { margin-bottom: 56px; }

.catalogue { background: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; max-width: 1400px; margin: auto; }
.catalog-empty { grid-column: 1 / -1; margin: 0; padding: 38px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fffefa; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image-wrap { position: relative; height: 330px; overflow: hidden; background: var(--cream-deep); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.025); }
.product-badge { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 6px 13px; border-radius: 999px; background: rgba(125, 91, 30, .94); color: white; font-size: 11px; letter-spacing: .03em; }
.product-content { padding: 23px 24px 24px; }
.product-content > p { margin: 0 0 2px; color: var(--terracotta-dark); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.product-content h3 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 400; }
.product-meta { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.product-meta > span { color: var(--muted); font-size: 13px; }
.product-meta button { padding: 6px 0; border: 0; background: transparent; color: var(--terracotta-dark); font-size: 13px; font-weight: 700; cursor: pointer; }
.product-meta button span { margin-left: 4px; }

.fabrics { display: grid; grid-template-columns: minmax(340px, .85fr) 1.4fr; align-items: center; gap: clamp(50px, 8vw, 130px); background: #f4efe6; }
.fabric-intro { max-width: 520px; }
.fabric-intro > p:not(.kicker) { margin: 26px 0; color: #665d50; font-size: 17px; }
.text-link { color: var(--terracotta-dark); font-weight: 700; border-bottom: 1px solid currentColor; }
.text-link span { margin-left: 8px; }
.fabric-board { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 200px); gap: 18px; min-height: 440px; transform: rotate(-1deg); }
.fabric-sample { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 190px; padding: 18px; border: 9px solid #fffefa; box-shadow: 0 14px 32px rgba(84, 64, 30, .15); background-color: var(--cream); }
.fabric-sample::before { content: ""; position: absolute; inset: 0; opacity: .7; }
.fabric-sample > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fabric-sample.has-image::before { display: none; }
.fabric-sample span { position: relative; z-index: 1; padding: 5px 10px; border-radius: 4px; background: rgba(255, 254, 250, .86); font-size: 11px; font-weight: 700; }
.fabric-1 { background: #eadcc7; transform: rotate(-2deg); }
.fabric-1::before { background: radial-gradient(circle, #b78a3e 0 2px, transparent 3px) 0 0 / 26px 26px, radial-gradient(ellipse, #d0b578 0 2px, transparent 3px) 9px 7px / 26px 26px; }
.fabric-2 { background: #d6c49f; transform: rotate(2deg); }
.fabric-2::before { background: repeating-linear-gradient(93deg, transparent 0 7px, rgba(255,255,255,.13) 8px 9px); }
.fabric-3 { background: #f0e7d8; transform: rotate(1deg); }
.fabric-3::before { background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(120,92,65,.05) 6px); }
.fabric-4 { background: #dfcdb0; transform: rotate(-1deg); }
.fabric-4::before { background: radial-gradient(circle, #fffaf1 0 2px, transparent 3px) 0 0 / 22px 22px, radial-gradient(ellipse, #b89755 0 2px, transparent 3px) 8px 6px / 22px 22px; }
.embroidery-sample { position: absolute; z-index: 3; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 210px; height: 140px; padding: 18px; border: 6px solid #fff; background: #f7efe3; box-shadow: 0 17px 40px rgba(52,40,31,.19); transform: translate(-50%, -50%) rotate(3deg); text-align: center; }
.embroidery-sample small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.embroidery-sample strong { margin: 3px 0; font-family: var(--script); color: var(--terracotta-dark); font-size: 31px; font-weight: 400; }
.embroidery-sample span { color: var(--sage-dark); font-size: 10px; }

.process { background: var(--cream); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1300px; margin: auto; }
.process-grid article { position: relative; padding: 5px 32px 10px; text-align: center; border-right: 1px solid #d8c8ac; }
.process-grid article:last-child { border-right: 0; }
.process-grid article > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 20px; border: 1px solid var(--terracotta); border-radius: 50%; font-family: var(--display); color: var(--terracotta-dark); font-size: 22px; font-style: italic; }
.process-grid h3 { margin: 0 0 8px; font-family: var(--display); font-size: 24px; font-weight: 400; }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 120px); align-items: start; background: var(--paper); }
.quote-summary { position: sticky; top: 125px; }
.quote-summary > p:not(.kicker) { max-width: 560px; color: var(--muted); }
.mini-selection { margin-top: 30px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.mini-selection-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mini-selection h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 400; }
.mini-selection-head button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--terracotta-dark); cursor: pointer; font-size: 12px; }
.empty { margin: 0 !important; font-size: 14px; font-style: italic; }
.mini-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 15px 0; border-top: 1px solid var(--line); }
.mini-item > span { color: var(--terracotta-dark); font-size: 13px; }
.mini-item p { margin: 0; line-height: 1.3; }
.mini-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.mini-item strong { font-size: 13px; }
.estimate { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 4px; border-top: 1px solid var(--ink); }
.mini-selection > small { color: var(--muted); font-size: 10px; }
.quote-form { padding: clamp(28px, 4vw, 52px); border-radius: 20px; background: var(--cream); box-shadow: var(--shadow); }
.quote-form label, .modal-label { display: block; margin-bottom: 20px; color: var(--ink); font-size: 13px; font-weight: 700; }
.quote-form label small, .modal-label small { color: var(--muted); font-weight: 400; }
.quote-form input, .quote-form textarea, .modal-label input {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #d9c8aa;
  border-radius: 7px;
  outline: 0;
  background: #fffefa;
  color: var(--ink);
  transition: border .2s, box-shadow .2s;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form textarea:focus, .modal-label input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(148, 105, 31, .14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.narrow { grid-template-columns: .55fr 1.45fr; }
.quote-form .checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; font-weight: 400; }
.quote-form .checkbox input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--terracotta); }
.quote-form .submit { width: 100%; }
.quote-form .submit:disabled { cursor: wait; opacity: .68; transform: none; }
.privacy-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.form-message { padding: 10px 12px; border-radius: 6px; font-size: 12px; }
.form-message.error { background: #f6e7e2; color: #8a4138; }
.form-message.success { background: #eee9db; color: #6c5b2d; }
.website-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.story { display: flex; justify-content: center; background: linear-gradient(rgba(45, 37, 26, .48), rgba(45, 37, 26, .48)), url('/static/images/hero-atelier.webp') center 42% / cover; }
.story-card { max-width: 680px; padding: clamp(38px, 6vw, 72px); border-radius: 8px; background: rgba(255, 254, 250, .94); text-align: center; backdrop-filter: blur(4px); }
.story-card p:not(.kicker) { color: var(--muted); }
.instagram-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--terracotta-dark); font-size: 13px; font-weight: 700; }

footer { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 60px; padding: 70px clamp(24px, 7vw, 112px) 28px; background: #2f291f; color: #f8f1e5; }
footer .brand { margin-bottom: 16px; }
footer .brand span { font-size: 26px; }
footer .brand em { width: 138px; }
footer h3 { margin: 8px 0 15px; color: #d4b36d; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
footer p, footer a { display: block; max-width: 420px; margin: 6px 0; color: #d6c8b2; font-size: 13px; }
footer a:hover { color: white; }
footer .admin-link { margin-top: 14px; color: #b4a58d; font-size: 11px; }
.footer-bottom { grid-column: 1 / -1; max-width: none; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 11px; }

.legal-page { min-height: 100vh; background: var(--cream); }
.legal-header { position: static; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.98); }
.legal-header .brand > img.ylemie-logo { display: block; width: 150px; max-width: 150px; max-height: 66px; height: auto; object-fit: contain; }
.legal-home-link { color: var(--sage-dark); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.legal-hero { padding: 66px clamp(24px, 7vw, 112px) 50px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fffefa 0%, #f5efe3 100%); text-align: center; }
.legal-hero h1 { max-width: 900px; margin: 9px auto 0; font-size: clamp(38px, 5vw, 64px); }
.legal-hero p:last-child { margin: 18px auto 0; color: var(--muted); font-size: 13px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 820px); justify-content: center; align-items: start; gap: 55px; padding: 60px clamp(24px, 7vw, 112px) 90px; }
.legal-nav { position: sticky; top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 35px rgba(76,56,38,.06); }
.legal-nav h2 { margin: 0; padding: 18px 20px 13px; color: var(--gold-dark); font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.35; }
.legal-nav a:hover, .legal-nav a.active { background: var(--cream-deep); color: var(--sage-dark); }
.legal-nav a.active { box-shadow: inset 3px 0 0 var(--gold); font-weight: 700; }
.legal-content { min-width: 0; color: #443b31; }
.legal-content h2 { margin: 38px 0 12px; color: var(--sage-dark); font-size: 30px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 26px 0 9px; color: var(--gold-dark); font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.legal-content p, .legal-content li { color: #5e5347; font-size: 14px; line-height: 1.75; }
.legal-content p { margin: 0 0 12px; }
.legal-content ul, .legal-content ol { margin: 8px 0 18px; padding-left: 22px; }
.legal-content a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-details { display: grid; grid-template-columns: 190px 1fr; margin: 18px 0 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.legal-details dt, .legal-details dd { margin: 0; padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
.legal-details dt { color: var(--sage-dark); font-weight: 700; }
.legal-details dd { border-left: 1px solid var(--line); color: var(--muted); }
.legal-details dt:last-of-type, .legal-details dd:last-of-type { border-bottom: 0; }
.legal-alert { margin: 22px 0; padding: 17px 19px; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; background: #f8f1e2; }
.legal-alert strong { display: block; margin-bottom: 5px; color: var(--gold-dark); font-size: 13px; }
.legal-alert p { margin: 0; }
.legal-box { margin: 20px 0 30px; padding: 22px; border: 1px solid #d6c49e; border-radius: 10px; background: #fffdf8; }
.legal-box p:last-child { margin-bottom: 0; }
.withdrawal-form { margin-top: 24px; padding: 26px; border: 1px dashed #c9b58b; border-radius: 10px; background: var(--paper); }
.withdrawal-line { min-height: 28px; margin: 9px 0 17px; border-bottom: 1px solid #9f9588; }
.print-button { display: inline-flex; margin-top: 15px; padding: 11px 17px; border: 0; border-radius: 6px; background: var(--gold-dark); color: white; cursor: pointer; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.legal-footer { grid-template-columns: 1.3fr 1fr 1fr; }
.legal-footer .brand > img.ylemie-logo { display: block; width: 138px; max-width: 138px; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; background: rgba(45, 32, 25, .62); backdrop-filter: blur(5px); }
.customizer { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; width: min(1100px, 96vw); max-height: 92vh; overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: 0 28px 80px rgba(31, 20, 15, .28); }
.modal-close { position: absolute; z-index: 2; top: 14px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 254, 250, .92); cursor: pointer; font-size: 25px; }
.customizer-image { min-height: 640px; background: var(--cream-deep); }
.customizer-image img { width: 100%; height: 100%; object-fit: cover; }
.customizer-form { overflow-y: auto; padding: 48px; }
.customizer h2 { font-size: 43px; }
.customizer-form > p:not(.kicker) { margin: 8px 0 26px; color: var(--muted); font-size: 14px; }
.customizer fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.customizer legend { margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.fixed-product-note { margin: 24px 0; padding: 18px 20px; border: 1px solid #decda9; border-radius: 9px; background: #faf6ee; }
.fixed-product-note strong { display: block; color: var(--sage-dark); font-size: 13px; }
.fixed-product-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fabric-choices label { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 9px 5px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; text-align: center; }
.fabric-choices label.selected { border-color: var(--terracotta); box-shadow: inset 0 0 0 1px var(--terracotta); }
.fabric-choices input, .thread-choices input { position: absolute; opacity: 0; pointer-events: none; }
.fabric-choices label > span { width: 45px; height: 45px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(40,30,25,.1); }
.fabric-choices label > img { width: 58px; height: 58px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(40,30,25,.1); object-fit: cover; }
.fabric-choices label > span.pattern { background-image: radial-gradient(circle, rgba(255,255,255,.75) 0 2px, transparent 3px); background-size: 12px 12px; }
.fabric-choices b { font-size: 10px; line-height: 1.2; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 8px; background: var(--cream-deep); }
.segmented button { padding: 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px; }
.segmented button.selected { background: var(--paper); box-shadow: 0 3px 10px rgba(73,50,40,.09); color: var(--terracotta-dark); font-weight: 700; }
.segmented button:disabled { cursor: not-allowed; opacity: .45; }
.thread-choices { display: flex; gap: 17px; }
.thread-choices label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.thread-choices label > span { width: 32px; height: 32px; border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.thread-choices label.selected > span { box-shadow: 0 0 0 2px var(--terracotta); }
.thread-choices small { font-size: 8px; }
.choice-empty { grid-column: 1 / -1; margin: 0; padding: 12px; border-radius: 7px; background: var(--cream-deep); color: var(--muted); font-size: 11px; text-align: center; }
.customizer-footer { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 17px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.customizer-footer label { font-size: 10px; font-weight: 700; }
.customizer-footer label input { display: block; width: 68px; margin-top: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.customizer-footer > div small { display: block; color: var(--muted); font-size: 9px; }
.customizer-footer > div strong { font-family: var(--display); font-size: 28px; font-weight: 400; }
.customizer-footer .primary-button { min-height: 48px; padding: 12px 17px; font-size: 12px; }
.customizer-footer .primary-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.drawer-backdrop { place-items: stretch end; padding: 0; }
.selection-drawer { display: flex; flex-direction: column; width: min(480px, 100vw); height: 100%; padding: 36px; background: var(--paper); box-shadow: -20px 0 60px rgba(41,29,22,.2); }
.drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 37px; }
.drawer-head > button { border: 0; background: transparent; cursor: pointer; font-size: 27px; }
.drawer-items { flex: 1; overflow-y: auto; }
.drawer-empty { margin: 70px auto; max-width: 280px; text-align: center; }
.drawer-empty span { color: var(--terracotta); font-size: 42px; }
.drawer-empty h3 { margin: 8px 0; font-family: var(--display); font-size: 26px; font-weight: 400; }
.drawer-empty p { color: var(--muted); font-size: 13px; }
.drawer-item { display: grid; grid-template-columns: 85px 1fr auto; gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.drawer-item img { width: 85px; height: 95px; object-fit: cover; border-radius: 7px; }
.drawer-item p { margin: 0 0 5px; font-family: var(--display); font-size: 18px; line-height: 1.2; }
.drawer-item small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.drawer-item button { display: block; margin-top: 8px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--terracotta-dark); cursor: pointer; font-size: 10px; }
.drawer-item > strong { font-size: 12px; }
.drawer-footer { padding-top: 23px; border-top: 1px solid var(--line); }
.drawer-footer > div { display: flex; justify-content: space-between; margin-bottom: 5px; }
.drawer-footer > div b { font-family: var(--display); font-size: 25px; font-weight: 400; }
.drawer-footer > small { display: block; color: var(--muted); font-size: 9px; }
.drawer-footer .primary-button { width: 100%; margin-top: 18px; }
.drawer-footer .continue { width: 100%; margin-top: 10px; padding: 10px; border: 0; background: transparent; color: var(--terracotta-dark); cursor: pointer; font-size: 12px; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr 1.1fr; }
  .hero-copy { padding: 52px 35px; }
  .hero h1 { font-size: 51px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 0; }
  .process-grid article:nth-child(2) { border-right: 0; }
  .quote { grid-template-columns: 1fr 1.15fr; gap: 45px; }
  .customizer { grid-template-columns: .75fr 1.25fr; }
  .customizer-form { padding: 40px 34px; }
}

@media (max-width: 760px) {
  .announcement { font-size: 10px; }
  .announcement::before, .announcement::after { display: none; }
  .site-header { min-height: 76px; padding: 12px 18px; }
  .brand span { font-size: 21px; }
  .brand em { width: 116px; margin-left: 5px; }
  .selection-button span { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 545px; padding: 60px 25px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero-intro { font-size: 15px; }
  .hero-photo { min-height: 420px; }
  .reassurance { grid-template-columns: 1fr; padding: 15px 24px; }
  .reassurance > div { justify-content: flex-start; padding: 15px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .reassurance > div:last-child { border-bottom: 0; }
  .section { padding: 78px 20px; }
  .section-heading h2, .fabric-intro h2, .quote h2, .story h2 { font-size: 42px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image-wrap { height: 300px; }
  .fabrics { grid-template-columns: 1fr; gap: 48px; }
  .fabric-board { grid-template-rows: repeat(2, 155px); min-height: 350px; }
  .fabric-sample { min-height: 150px; border-width: 6px; padding: 10px; }
  .embroidery-sample { width: 170px; height: 115px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid article, .process-grid article:nth-child(2) { padding: 28px 20px; border-right: 0; border-bottom: 1px solid #d8c8ac; }
  .process-grid article:last-child { border-bottom: 0; }
  .quote { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .quote-form { padding: 27px 20px; }
  .form-row, .form-row.narrow { grid-template-columns: 1fr; gap: 0; }
  footer { grid-template-columns: 1fr; gap: 30px; padding-top: 55px; }
  .footer-bottom { grid-column: 1; text-align: left; }
  .legal-header { display: flex; min-height: 82px; }
  .legal-header nav { display: none; }
  .legal-header .brand > img.ylemie-logo { width: 116px; max-width: 116px; max-height: 52px; }
  .legal-hero { padding-top: 46px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 35px; }
  .legal-nav { position: static; }
  .legal-details { grid-template-columns: 1fr; }
  .legal-details dd { border-left: 0; }
  .legal-details dt:not(:first-child) { border-top: 1px solid var(--line); }
  .legal-content h2 { font-size: 27px; }
  .legal-footer { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; place-items: stretch; }
  .customizer { display: block; width: 100vw; max-height: 100vh; border-radius: 0; overflow-y: auto; }
  .customizer-image { min-height: 280px; height: 36vh; }
  .customizer-form { overflow: visible; padding: 30px 20px 40px; }
  .customizer h2 { font-size: 37px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .customizer-footer { grid-template-columns: 1fr 1fr; }
  .customizer-footer .primary-button { grid-column: 1 / -1; }
  .selection-drawer { padding: 28px 20px; }
}

@media print {
  .site-header, .legal-hero, .legal-nav, footer, .print-button { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  .legal-content > * { display: none; }
  .legal-content .print-target, .legal-content .print-target * { display: block; }
  .withdrawal-form { border: 1px solid #777; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
