/* Furreal: quiet, editorial, high-end ------------------------------------ */
:root {
  color-scheme: light;
  --ivory: #faf8f4;
  --paper: #ffffff;
  --oat: #efe9df;
  --sand: #e8dfd0;
  --blush: #f0e2da;
  --sage: #e1e6dc;
  --mist: #e2e6ea;
  --ink: #1d1c1a;
  --stone: #7d776d;
  --line: #e4ded3;
  --accent: #5f6f5a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
h1 em { font-style: italic; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }

.kicker, .section-number {
  margin: 0 0 18px; color: var(--stone);
  font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}

/* Shared buttons */
.hero-cta, .primary-button, .publish-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--ivory);
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.hero-cta:hover, .primary-button:hover:not(:disabled), .publish-button:hover { background: transparent; color: var(--ink); }
.text-button {
  margin-top: 12px; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: transparent;
  font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}

/* Announcement + header */
.announcement { padding: 10px var(--gutter); background: var(--ink); color: var(--ivory); text-align: center; }
.announcement p { margin: 0; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }

.site-header {
  position: sticky; z-index: 20; top: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 22px var(--gutter); background: rgba(250, 248, 244, .94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: block; justify-self: center; line-height: 0; }
.brand img { width: 132px; height: auto; filter: brightness(0); opacity: .9; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.nav-utility { justify-content: flex-end; }
.site-header nav a, .view-link {
  padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink);
  font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-decoration: none; text-transform: uppercase;
  transition: border-color .2s ease;
}
.site-header nav a:hover, .view-link:hover, .view-link.active { border-bottom-color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(86vh, 860px);
  background: var(--oat);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px var(--gutter); text-align: center; }
.hero-copy h1 { max-width: 11ch; }
.hero-lede { max-width: 380px; margin: 26px 0 38px; color: #4a4640; font-size: 1rem; line-height: 1.7; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-link { color: var(--ink); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.hero-visual { position: relative; margin: 0; overflow: hidden; background: var(--sand); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Collection */
.collection { padding: clamp(80px, 10vw, 140px) var(--gutter); background: var(--ivory); }
.section-heading { max-width: var(--max); margin: 0 auto 56px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; margin-top: 34px; }
.filter {
  padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--stone);
  font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease;
}
.filter:hover { color: var(--ink); }
.filter.active { border-bottom-color: var(--ink); color: var(--ink); }

.effect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; max-width: var(--max); margin: 0 auto; }
.effect-card[hidden] { display: none; }
.effect-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }

.art {
  position: relative; display: flex; aspect-ratio: 4 / 5; flex-direction: column; justify-content: space-between;
  overflow: hidden; padding: 20px; background: var(--oat); color: var(--ink);
}
.art > span:not(.art-scrim) { position: relative; z-index: 2; font-size: .66rem; font-weight: 500; letter-spacing: .2em; opacity: .7; }
.art > b { position: relative; z-index: 2; font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.3rem); font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; }
.art-media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.effect-trigger:hover .art-media { transform: scale(1.04); }

/* Muted card tones replace the old saturated colour blocks */
.art-cobalt, .art-sky { background: var(--mist); }
.art-coral, .art-rose { background: var(--blush); }
.art-butter, .art-rain { background: var(--sand); }
.art-forest, .art-lilac { background: var(--sage); }
.art-christmas { background: #e6d9d3; }
.art-festival { background: #eadcc9; }
.art-noir { background: #2a2826; color: var(--ivory); }
.art-film { background: #3a3835; color: var(--ivory); }
.art-fairy { background: var(--sand) url("fairy01.png") center 35% / cover no-repeat; color: #fff; }
.art-fairy::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(20, 16, 12, .45)); }

.art-has-media { background: var(--sand); color: #fff; }
.art-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(20, 16, 12, .45)); background-size: cover; background-position: center; }

.art-reveal-on-hover { background: var(--oat); color: var(--ink); }
.art-reveal-on-hover .art-media { z-index: 1; object-fit: contain; }
.art-reveal-on-hover .art-scrim { z-index: 0; opacity: 0; background-color: var(--sage); transition: opacity .4s ease; }
.art-reveal-on-hover > span:not(.art-scrim), .art-reveal-on-hover > b { opacity: 0; transition: opacity .4s ease; }
.effect-trigger:hover .art-reveal-on-hover .art-scrim,
.effect-trigger:hover .art-reveal-on-hover > span:not(.art-scrim),
.effect-trigger:hover .art-reveal-on-hover > b { opacity: 1; }

.card-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 16px; }
.card-meta strong, .card-meta small { display: block; }
.card-meta strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.card-meta small { margin-top: 4px; color: var(--stone); font-size: .74rem; letter-spacing: .04em; }
.card-meta i { color: var(--stone); font-style: normal; transition: transform .3s ease; }
.effect-trigger:hover .card-meta i { transform: translate(2px, -2px); color: var(--ink); }

/* Story */
.story { padding: clamp(90px, 11vw, 150px) var(--gutter); background: var(--paper); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story h2 { max-width: 16ch; margin: 0 auto; font-style: italic; }
.story > p:last-child { max-width: 560px; margin: 30px auto 0; color: #4a4640; font-size: 1rem; line-height: 1.8; }

/* How it works */
.how { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--gutter); text-align: center; }
.how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 64px 0 0; padding: 0; list-style: none; }
.how li { padding-top: 28px; border-top: 1px solid var(--line); }
.how li > span { display: block; margin-bottom: 18px; color: var(--stone); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.how strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.how li p { max-width: 260px; margin: 10px auto 0; color: var(--stone); font-size: .9rem; }

/* Footer */
.site-footer {
  display: grid; grid-template-columns: 1fr auto; gap: 40px 24px; align-items: end;
  padding: 72px var(--gutter) 36px; background: var(--ink); color: var(--ivory);
}
.footer-brand img { width: 120px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { margin: 16px 0 0; color: #b8b2a8; font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links button { padding: 0; border: 0; background: transparent; color: var(--ivory); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-links button:hover { color: #b8b2a8; }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 28px; border-top: 1px solid #3a3835; color: #8a857c; font-size: .7rem; letter-spacing: .1em; }

/* Dialogs */
dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 0; background: var(--ivory); box-shadow: 0 30px 80px rgba(20, 16, 12, .25); }
dialog::backdrop { background: rgba(29, 28, 26, .55); backdrop-filter: blur(3px); }
dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-close { position: absolute; z-index: 3; top: 16px; right: 18px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--ivory); font-size: 1.3rem; line-height: 1; }
.dialog-copy { padding: 60px 52px 48px; }
.dialog-copy > p:not(.section-number) { margin: 20px 0 34px; color: #4a4640; line-height: 1.7; }
#dress-form > label:first-of-type { display: block; margin-bottom: 10px; color: var(--stone); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
#pet-photo, #preview-upload { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop { display: flex; min-height: 120px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border: 1px dashed #c7bfb2; background: var(--paper); text-align: center; cursor: pointer; }
.file-drop strong { font-weight: 500; border-bottom: 1px solid currentColor; }
.file-drop span { max-width: 90%; overflow: hidden; color: var(--stone); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.file-drop img { width: 76px; height: 76px; object-fit: cover; }
.file-drop:has(img:not([hidden])) { padding: 12px; }
.primary-button { width: 100%; margin-top: 18px; }
.primary-button:disabled { opacity: .5; cursor: wait; }
.status { min-height: 1.3em; margin-bottom: 0; color: #8d3b2a; font-size: .82rem; }
.grid-caption-label { display: block; margin: 16px 0 8px; color: var(--stone); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.grid-caption-label input { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; letter-spacing: normal; text-transform: none; }

.result-panel { display: grid; min-height: 600px; place-items: center; align-content: center; gap: 18px; padding: 44px; background: var(--oat); color: var(--ink); }
#empty-state { text-align: center; }
#empty-state span { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-style: italic; }
#empty-state p { color: var(--stone); font-size: .82rem; }
.result-panel img { width: 100%; max-height: 500px; object-fit: contain; }
.questionnaire-result { width: 100%; text-align: center; }
.questionnaire-result strong, .questionnaire-result span { display: block; }
.questionnaire-result strong { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1; }
.questionnaire-result span { margin-top: 8px; color: var(--stone); font-size: .8rem; }
.result-actions { width: 100%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.result-actions button, .download { padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.download { background: transparent; color: var(--ink); }
.preview-upload { color: var(--stone); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; cursor: pointer; }

#questionnaire-dialog { width: min(560px, calc(100% - 32px)); padding: 52px 46px; }
#questionnaire-dialog[open] { display: block; }
.questionnaire-copy > p:not(.section-number) { margin: 6px 0 24px; color: var(--stone); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
#questionnaire-question { margin-bottom: 24px; font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; }
.questionnaire-options { display: grid; gap: 10px; }
.questionnaire-options button { padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); font-size: .92rem; text-align: left; transition: border-color .2s ease; }
.questionnaire-options button:hover { border-color: var(--ink); }

/* Secondary pages */
.page-view { min-height: 100vh; max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 120px; }
.page-heading { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.page-heading > p:last-child { max-width: 480px; margin: 18px 0 0; color: var(--stone); }
.empty-copy { color: var(--stone); font-size: .84rem; }

.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.market-card { min-height: 380px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 0; color: inherit; text-align: left; cursor: pointer; transition: opacity .3s ease; }
.market-card:hover { opacity: .85; }
.market-card > span { font-size: .66rem; letter-spacing: .2em; opacity: .7; }
.market-card > b { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 400; line-height: 1; }
.market-card > small, .published-product small { color: var(--stone); font-size: .74rem; }
.product-peach { background: var(--blush); }
.product-blue { background: var(--mist); }
.product-yellow { background: var(--sand); }
.product-green { background: var(--sage); }
.published-product { background: var(--oat); }
.published-product strong { margin-top: 14px; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.product-stickers { min-height: 285px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; background: var(--paper); }
.product-stickers img { width: 30%; max-height: 100px; object-fit: contain; }
.faithful-preview { position: relative; width: 100%; aspect-ratio: var(--product-ratio); display: block; overflow: hidden; }
.faithful-preview img { position: absolute; max-height: none; object-fit: contain; }

.board-status { min-height: 1.5em; font-size: .84rem; }

.product-detail > .text-button { margin-bottom: 32px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.product-preview { min-height: 600px; padding: 40px; display: grid; place-items: center; background: var(--oat); }
.product-preview .faithful-preview { width: min(100%, 720px); background-color: var(--paper); box-shadow: 0 18px 40px rgba(20, 16, 12, .08); }
.mock-product { width: min(100%, 620px); aspect-ratio: 4 / 3; padding: 32px; display: flex; align-items: end; }
.mock-product b { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 400; line-height: 1; }
.product-copy > p:not(.section-number) { max-width: 480px; color: #4a4640; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.product-actions button:not(.publish-button) { padding: 15px 22px; border: 1px solid var(--ink); background: transparent; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.commerce-note { color: var(--stone); font-size: .76rem; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.cart-items { display: grid; }
.cart-row { display: grid; grid-template-columns: 72px minmax(130px, 1fr) auto 80px auto; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-product-swatch { width: 72px; height: 72px; background: var(--oat); }
.cart-row strong, .cart-row small { display: block; }
.cart-row strong { font-weight: 500; }
.cart-row small { margin-top: 4px; color: var(--stone); }
.quantity-control { display: flex; align-items: center; gap: 10px; }
.quantity-control button { width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; }
.cart-remove { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.order-summary { padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.order-summary h2 { margin-bottom: 24px; font-size: 1.6rem; }
.order-summary > p, #checkout-items p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-summary strong { font-weight: 500; }
.order-summary .publish-button { width: 100%; margin-top: 24px; }
.order-summary small { display: block; margin-top: 14px; color: var(--stone); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.checkout-fields { display: grid; gap: 22px; }
.checkout-fields fieldset { margin: 0; padding: 26px; border: 1px solid var(--line); background: var(--paper); }
.checkout-fields legend { padding: 0 8px; color: var(--stone); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.checkout-fields label { display: grid; gap: 8px; margin-bottom: 16px; font-size: .8rem; }
.checkout-fields input { width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--ivory); }
.checkout-fields input:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.test-payment { padding: 18px; background: var(--oat); }
.test-payment p { margin-bottom: 0; color: var(--stone); font-size: .82rem; }
.order-confirmation { max-width: 680px; padding: 48px; background: var(--paper); border: 1px solid var(--line); }
.order-confirmation h2 { font-size: clamp(2.6rem, 5vw, 4rem); font-style: italic; }

/* Responsive */
@media (max-width: 1100px) {
  .effect-grid, .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; row-gap: 14px; padding-top: 16px; padding-bottom: 14px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .brand img { width: 112px; }
  .nav-utility { grid-column: 2; grid-row: 1; gap: 20px; }
  .nav-primary { grid-column: 1 / -1; grid-row: 2; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .nav-primary > * { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { order: -1; width: 100%; height: min(125vw, 72vh); }
  .hero-copy { padding: 56px var(--gutter) 64px; }
  .effect-grid, .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; }
  .how ol { grid-template-columns: 1fr; gap: 36px; }
  dialog[open] { grid-template-columns: 1fr; }
  .dialog-copy { padding: 60px 26px 32px; }
  .result-panel { min-height: 380px; }
  .product-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .product-preview { min-height: 420px; }
  .page-view { padding-top: 48px; }
}

@media (max-width: 540px) {
  body { font-size: 14px; }
  .announcement p { font-size: .6rem; letter-spacing: .12em; }
  .nav-primary, .nav-utility { gap: 16px; }
  .site-header nav a, .view-link { font-size: .64rem; letter-spacing: .1em; }
  .art { padding: 14px; }
  .card-meta strong { font-size: 1.05rem; }
  .card-meta small { display: none; }
  .filters { gap: 8px 20px; }
  .market-card { min-height: 250px; }
  .cart-row { grid-template-columns: 55px 1fr auto; }
  .cart-product-swatch { width: 55px; height: 55px; }
  .quantity-control { grid-column: 2; }
  .cart-remove { grid-column: 3; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  #questionnaire-dialog { padding: 52px 24px 32px; }
}

/* Outline button (secondary action) */
.outline-button {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: background .25s ease, color .25s ease;
}
.outline-button:hover:not(:disabled) { background: var(--ink); color: var(--ivory); }
.outline-button:disabled, .publish-button:disabled { opacity: .4; cursor: default; }
.result-actions #add-sticker { background: transparent; color: var(--ink); }

/* Effect page: breadcrumb, carousel, summary */
.effect-page { max-width: none; padding: 28px 0 120px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter) 24px; color: var(--stone); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.breadcrumb button { padding: 0; border: 0; background: transparent; color: var(--stone); font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
.breadcrumb button:hover { color: var(--ink); }
.breadcrumb #effect-breadcrumb { color: var(--ink); }

.carousel { position: relative; --slide: min(46vw, 560px); }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: calc((100% - var(--slide)) / 2); scrollbar-width: none; outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 var(--slide); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: var(--oat);
  scroll-snap-align: center; opacity: .45; transform: scale(.94); transition: opacity .45s ease, transform .45s ease; cursor: pointer;
}
.carousel-slide.current { opacity: 1; transform: none; cursor: default; }
.carousel-track.jumping .carousel-slide { transition: none; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-slide-art .art { height: 100%; aspect-ratio: auto; padding: 28px; }
.carousel-slide-art .art > b { font-size: clamp(2.4rem, 4vw, 3.8rem); }
.carousel-arrow {
  position: absolute; z-index: 2; top: 50%; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(250, 248, 244, .92); color: var(--ink); font-size: 1.1rem; transform: translateY(-50%); transition: opacity .2s ease, border-color .2s ease;
}
.carousel-arrow:hover:not(:disabled) { border-color: var(--ink); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: max(8px, calc((100% - var(--slide)) / 2 - 26px)); }
.carousel-next { right: max(8px, calc((100% - var(--slide)) / 2 - 26px)); }
.carousel.single .carousel-arrow { display: none; }
.carousel.single .carousel-slide { opacity: 1; transform: none; }
.carousel-counter { min-height: 1.4em; margin: 22px 0 0; color: var(--stone); font-size: .72rem; letter-spacing: .2em; text-align: center; }

.effect-summary { max-width: 620px; margin: 40px auto 0; padding: 0 var(--gutter); text-align: center; }
.effect-summary h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.effect-subtitle { margin: 12px 0 0; color: var(--stone); }
.effect-description { margin: 22px 0 0; color: #4a4640; line-height: 1.8; }
.effect-summary .hero-cta { margin-top: 34px; min-width: 260px; }
.effect-available { margin: 18px 0 0; color: var(--stone); font-size: .78rem; }

/* Market */
.page-heading-centred { text-align: center; }
.page-heading-centred > p:last-child { margin-inline: auto; }
.shop-by-title, .market-listings-heading h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.shop-by-title { margin-bottom: 28px; text-align: center; }
.product-type-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-type-card { display: grid; gap: 4px; padding: 0 0 6px; border: 0; background: transparent; text-align: center; }
.product-type-art { display: block; aspect-ratio: 1; margin-bottom: 12px; padding: 12%; background: var(--oat); transition: background .3s ease; }
.product-type-card:hover .product-type-art { background: var(--sand); }
.product-type-card strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.product-type-card small { color: var(--stone); font-size: .76rem; }
.mockup { display: block; width: 100%; height: 100%; }

.market-listings { margin-top: clamp(72px, 9vw, 120px); padding-top: 48px; border-top: 1px solid var(--line); }
.market-listings-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; margin-bottom: 36px; }
.market-filters { margin-top: 0; }
.market-filter {
  padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--stone);
  font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.market-filter:hover { color: var(--ink); }
.market-filter.active { border-bottom-color: var(--ink); color: var(--ink); }
.market-card.published-product { min-height: 0; padding: 0; gap: 4px; justify-content: flex-start; background: transparent; }
.market-card-art { display: grid; aspect-ratio: 4 / 5; margin-bottom: 12px; padding: 10%; place-items: center; overflow: hidden; background: var(--oat); }
.market-card-art .product-stickers { min-height: 0; width: 100%; }
.market-empty { padding: 40px 0; text-align: center; }

.product-preview.is-merch .mockup { width: min(100%, 520px); }

/* Product maker */
.make-page > .text-button { margin: 0 0 32px; }
.make-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.make-preview { position: sticky; top: 110px; display: grid; aspect-ratio: 1; padding: 8%; place-items: center; background: var(--oat); }
.make-options h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.make-price { margin: 10px 0 0; font-size: 1.05rem; }
.option-label { margin: 34px 0 12px; color: var(--stone); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.option-label span { color: var(--ink); letter-spacing: .08em; text-transform: none; }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip { padding: 11px 16px; border: 1px solid var(--line); background: var(--paper); font-size: .8rem; transition: border-color .2s ease; }
.option-chip:hover, .option-chip.active { border-color: var(--ink); }
.swatch { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 3px var(--ivory); }
.swatch.active { border-color: var(--ink); }
.design-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.design-thumb { aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--oat); }
.design-thumb.active { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ivory); }
.design-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.make-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }

.cart-product-swatch { display: grid; place-items: center; overflow: hidden; padding: 4px; }
.cart-product-swatch .product-stickers { min-height: 0; width: 100%; }

@media (max-width: 1100px) {
  .product-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .carousel { --slide: 72vw; }
  .carousel-track { gap: 12px; }
  .carousel-arrow { width: 42px; height: 42px; }
  .make-layout { grid-template-columns: 1fr; }
  .make-preview { position: static; }
}

@media (max-width: 540px) {
  .carousel { --slide: 80vw; }
  .product-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .make-actions { grid-template-columns: 1fr; }
}

/* Account: header button + menu */
.account { position: relative; }
.account-button { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu {
  position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; min-width: 220px; padding: 16px 18px;
  border: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 40px -20px rgba(20, 16, 12, .35); text-align: left;
}
.account-menu p { margin: 0 0 12px; overflow: hidden; color: var(--stone); font-size: .78rem; text-overflow: ellipsis; }
.account-menu .text-button { margin: 0; }

/* Sign-in dialog */
.auth-dialog { width: min(440px, calc(100% - 32px)); }
.auth-dialog[open] { display: block; padding: 48px 40px 36px; }
.auth-dialog h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-reason { min-height: 0; margin: 12px 0 0; color: #4a4640; }
.auth-reason:empty { display: none; }
.auth-google { width: 100%; margin-top: 28px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--stone); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; border: 1px solid var(--line); }
.auth-tab { padding: 11px 8px; border: 0; background: transparent; color: var(--stone); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.auth-tab.active { background: var(--ink); color: var(--ivory); }
.auth-form label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--stone); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.auth-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .95rem; letter-spacing: normal; text-transform: none; }
.auth-form input:focus { outline: none; border-color: var(--ink); }
.auth-form .publish-button { width: 100%; margin-top: 4px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.auth-links .text-button { margin: 0; }
.auth-status { min-height: 1.4em; margin: 16px 0 0; color: #4a4640; font-size: .86rem; }

.book-signin { max-width: 1100px; margin: 0 auto; padding: 16px 20px; border: 1px solid var(--line); background: var(--paper); color: #4a4640; text-align: center; }
.book-signin .text-button { margin: 0 0 0 8px; }
