:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --cream: #f5eee5;
  --blush: #f1e1dc;
  --rose: #c48b82;
  --rose-dark: #a46c63;
  --sage: #a7b8a0;
  --sage-soft: #e7ede3;
  --ink: #2e2a27;
  --ink-soft: #4a4440;
  --muted: #7a716a;
  --line: #ebe3da;
  --danger: #b4483c;
  --success: #5a7a52;

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Great Vibes', cursive;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(46, 42, 39, 0.05), 0 2px 8px rgba(46, 42, 39, 0.04);
  --shadow: 0 10px 30px -12px rgba(46, 42, 39, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(46, 42, 39, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header {
  view-transition-name: site-header;
}

body {
  font-variant-numeric: lining-nums;
}

* {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
label,
summary,
input,
select,
textarea,
[role='button'] {
  touch-action: manipulation;
}

button,
.btn,
.tabbar a,
summary {
  -webkit-user-select: none;
  user-select: none;
}

img,
svg {
  -webkit-user-drag: none;
}

::selection {
  background: #f1d6cf;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 1em;
}

em.accent,
.accent {
  font-style: italic;
  color: var(--rose-dark);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--cream {
  background: var(--cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head--center .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  border-color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--blush);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 18px 32px;
  font-size: 1rem;
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), color 0.3s;
}

.link-arrow:hover {
  gap: 12px;
  color: var(--rose-dark);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* Announcement & header */
.announce {
  background: var(--ink);
  color: #f3ebe4;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 9px 16px;
}

.announce span + span::before {
  content: '·';
  margin: 0 12px;
  opacity: 0.6;
}

#site-header {
  display: contents;
}

#site-header:empty {
  display: block;
  height: 118px;
  background: linear-gradient(var(--ink) 0 40px, transparent 40px);
}

@media (max-width: 900px) {
  #site-header:empty {
    height: 100px;
  }
}

@media (max-width: 600px) {
  #site-header:empty {
    height: 90px;
    background: linear-gradient(var(--ink) 0 34px, transparent 34px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 244, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(46, 42, 39, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
  color: var(--rose-dark);
}

.logo-mark svg {
  width: 26px;
  height: 26px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rose-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--cream);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

.cart-count.has-items {
  transform: scale(1);
}

.cart-count.bump {
  animation: bump 0.45s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-trust svg {
  width: 20px;
  height: 20px;
  color: var(--rose-dark);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.08;
}

.hero-arch {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: radial-gradient(circle at 50% 35%, #fff 0%, var(--blush) 70%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-arch .art {
  width: 86%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.float-card strong {
  display: block;
  font-weight: 600;
}

.float-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.float-card .fc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
  color: var(--success);
  flex: none;
}

.float-card .fc-icon svg {
  width: 20px;
  height: 20px;
}

.float-card--a {
  left: -28px;
  bottom: 16%;
}

.float-card--b {
  right: -18px;
  top: 12%;
}

.stars,
.float-card .stars {
  display: inline-flex;
  gap: 2px;
  color: #c9a24f;
  vertical-align: -2px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke-width: 0;
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee-track span::after {
  content: '✦';
  font-style: normal;
  font-size: 0.8rem;
  color: var(--rose);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cat-card .cat-media {
  aspect-ratio: 4 / 3.4;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cat-card .cat-media .art {
  width: 78%;
  transition: transform 0.7s var(--ease);
}

.cat-card:hover .cat-media .art {
  transform: scale(1.06) rotate(-2deg);
}

.cat-body {
  padding: 26px 28px 30px;
}

.cat-body h3 {
  margin-bottom: 6px;
}

.cat-body p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.product-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card .pc-media {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: box-shadow 0.4s var(--ease);
}

.product-card .pc-media .art {
  width: 82%;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .pc-media {
  box-shadow: var(--shadow);
}

.product-card:hover .pc-media .art {
  transform: scale(1.05);
}

.pc-cta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.product-card:hover .pc-cta,
.product-card:focus-within .pc-cta {
  opacity: 1;
  transform: none;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-cat {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.pc-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.pc-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pc-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pc-price {
  font-weight: 500;
}

.pc-price small {
  color: var(--muted);
  font-weight: 400;
}

.swatches-mini {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.swatches-mini i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Photo embroidery feature */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 40px;
  box-shadow: var(--shadow);
}

.feature-visual .art {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: grid;
  gap: 18px;
}

.feature-list li {
  display: flex;
  gap: 16px;
}

.feature-list .fl-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--rose-dark);
}

.feature-list .fl-icon svg {
  width: 20px;
  height: 20px;
}

.feature-list strong {
  display: block;
  font-weight: 500;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.demo-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.review blockquote {
  margin: 14px 0 24px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
}

.review footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.review .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blush);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--rose-dark);
}

.review footer span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.rating-summary {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 44px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sage-soft), var(--cream));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about-visual .art {
  width: 62%;
}

.about-visual .art + .art {
  position: absolute;
  width: 40%;
  right: 6%;
  bottom: 4%;
  transform: rotate(8deg);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.about-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.about-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.signature {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--rose-dark);
  margin-top: 8px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .plus {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), background 0.3s;
}

.faq summary .plus svg {
  width: 16px;
  height: 16px;
}

.faq details[open] summary .plus {
  transform: rotate(180deg);
  background: var(--blush);
}

.faq details p {
  color: var(--muted);
  padding-bottom: 24px;
  margin: 0;
  max-width: 680px;
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #f6efe8;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(246, 239, 232, 0.75);
}

.cta-band .accent {
  color: #e9b8ae;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list li > span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s;
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: #e9b8ae;
  flex: none;
}

.contact-list small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 239, 232, 0.55);
}

/* Footer */
.site-footer {
  background: var(--cream);
  padding: 72px 0 32px;
  margin-top: 0;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.footer-grid a:hover {
  color: var(--rose-dark);
}

.footer-about p {
  color: var(--muted);
  max-width: 320px;
  margin-top: 18px;
}

.newsletter {
  display: flex;
  margin-top: 18px;
  max-width: 340px;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  border: 1px solid var(--line);
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 16px;
  outline: none;
}

.newsletter button {
  padding: 10px 18px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
  transition: background 0.25s, color 0.25s;
}

.socials a:hover {
  background: var(--ink);
  color: #fff;
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--muted);
}

.payments {
  display: flex;
  gap: 8px;
}

.payments span {
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Page header (shop) */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-hero .breadcrumbs {
  justify-content: center;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span[aria-hidden] {
  opacity: 0.5;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin-bottom: 36px;
  border-block: 1px solid var(--line);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  transition: all 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232e2a27' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border-radius: 999px;
  padding: 9px 38px 9px 16px;
  color: var(--ink);
}

.results-count {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: 32px 0 80px;
}

.product-gallery {
  position: sticky;
  top: 104px;
}

.preview-stage {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 0.5s var(--ease);
}

.preview-stage .art {
  width: 84%;
}

.preview-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.preview-tag svg {
  width: 15px;
  height: 15px;
}

.gallery-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.gallery-perks div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}

.gallery-perks svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--rose-dark);
}

.product-info h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  width: fit-content;
}

.product-meta svg {
  width: 16px;
  height: 16px;
}

a.product-meta:hover,
.rating-summary a:hover {
  color: var(--ink);
}

.rating-summary a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.product-price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.product-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.config-step {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.config-step__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.config-step__num {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transform: translateY(5px);
}

.config-step__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
}

.config-step__value {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s var(--ease);
}

.swatch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 0.25s;
}

.swatch:hover {
  transform: scale(1.06);
}

.swatch.is-active::after {
  border-color: var(--ink);
}

.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
}

.option-card__body {
  display: block;
  height: 100%;
  padding: 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.option-card__body strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 4px;
}

.option-card__body strong em {
  font-style: normal;
  color: var(--rose-dark);
  font-size: 0.9rem;
}

.option-card__body span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

.option-card input:checked + .option-card__body {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.option-card input:focus-visible + .option-card__body {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.option-card .tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--rose-dark);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Upload */
.dropzone {
  position: relative;
  border: 1.5px dashed #cfc3b6;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 24px;
  text-align: center;
  transition: border-color 0.25s, background 0.25s;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--rose-dark);
  background: #fffaf8;
}

.dropzone.has-error {
  border-color: var(--danger);
  background: #fdf5f4;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-dark);
  display: grid;
  place-items: center;
}

.dropzone__icon svg {
  width: 24px;
  height: 24px;
}

.dropzone strong {
  display: block;
  font-weight: 500;
}

.dropzone span {
  font-size: 0.86rem;
  color: var(--muted);
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.upload-preview__thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream);
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.upload-preview__info {
  flex: 1;
  min-width: 0;
}

.upload-preview__info strong {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview__info span {
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-preview__actions {
  display: flex;
  gap: 6px;
}

.btn-text {
  border: 0;
  background: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text:hover {
  background: var(--cream);
  color: var(--ink);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.5;
  background: var(--sage-soft);
  color: #43553d;
}

.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.notice--warn {
  background: #fbf1e3;
  color: #7a5a24;
}

.photo-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.photo-tips li {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  display: flex;
  gap: 8px;
}

.photo-tips svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--success);
  margin-top: 1px;
}

/* Forms */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

.field label small {
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(196, 139, 130, 0.15);
}

.input.has-error,
.input:user-invalid {
  border-color: var(--danger);
}

textarea.input {
  resize: vertical;
  min-height: 96px;
}

.field-error {
  color: var(--danger);
  font-size: 0.84rem;
  margin-top: 8px;
}

.field > .field-error {
  margin: 6px 0 0;
  font-size: 0.78rem;
  animation: rise 0.35s var(--ease-out, ease) both;
}

.check.has-error > span {
  color: var(--danger);
}

.check.has-error input {
  outline: 1.5px solid var(--danger);
  outline-offset: 2px;
}

.add-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.qty button {
  width: 44px;
  height: 52px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
}

.qty button svg {
  width: 16px;
  height: 16px;
}

.qty output {
  min-width: 26px;
  text-align: center;
  font-weight: 500;
}

.qty--sm button {
  width: 32px;
  height: 34px;
}

.add-row .btn {
  flex: 1;
}

.assurance {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.assurance div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.assurance svg {
  width: 20px;
  height: 20px;
  color: var(--rose-dark);
  flex: none;
}

.accordion {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.accordion details[open] summary svg {
  transform: rotate(180deg);
}

.accordion .acc-body {
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.accordion ul {
  margin: 0;
  padding-left: 18px;
}

/* Cart drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(46, 42, 39, 0.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  box-shadow: var(--shadow-lg);
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .drawer {
  transform: none;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h3 {
  margin: 0;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.drawer__foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.free-ship {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.free-ship__bar {
  height: 4px;
  border-radius: 4px;
  background: var(--cream);
  margin-top: 8px;
  overflow: hidden;
}

.free-ship__bar i {
  display: block;
  height: 100%;
  background: var(--rose);
  border-radius: 4px;
  transition: width 0.5s var(--ease);
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.drawer-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-thumb {
  width: 84px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.cart-thumb .art {
  width: 90%;
}

.cart-thumb img.photo-thumb {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.cart-line__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-line__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

.cart-line__opts {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.cart-line__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-line__price {
  font-weight: 500;
  white-space: nowrap;
}

.remove-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

.remove-btn:hover {
  color: var(--danger);
}

.empty-state {
  text-align: center;
  padding: 60px 10px;
}

.empty-state .es-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
  color: var(--rose-dark);
}

.empty-state .es-icon svg {
  width: 30px;
  height: 30px;
}

.empty-state p {
  color: var(--muted);
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: 24px 0 96px;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  margin-bottom: 24px;
}

.checkout-card h2 {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.checkout-card h2 .config-step__num {
  transform: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ink);
  flex: none;
}

.check a {
  text-decoration: underline;
}

.summary {
  position: sticky;
  top: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
}

.summary h2 {
  font-size: 1.7rem;
}

.summary .cart-line {
  grid-template-columns: 72px 1fr;
}

.summary .cart-thumb {
  width: 72px;
  height: 80px;
}

.summary-rows {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.summary-rows div {
  display: flex;
  justify-content: space-between;
}

.summary-rows .total {
  font-size: 1.25rem;
  font-weight: 500;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.process-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.process-note strong {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.process-note ol {
  margin: 0;
  padding-left: 18px;
}

.form-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fdf0ee;
  color: var(--danger);
  font-size: 0.92rem;
}

.confirmation {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 0 120px;
}

.confirmation .es-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--success);
  display: grid;
  place-items: center;
}

.confirmation .es-icon svg {
  width: 38px;
  height: 38px;
}

.order-code {
  display: inline-block;
  font-family: ui-monospace, 'Cascadia Mono', monospace;
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px dashed var(--rose);
  padding: 10px 18px;
  border-radius: 12px;
  margin: 8px 0 28px;
  font-size: 1.05rem;
}

.timeline {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.timeline li {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

.timeline li b {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-dark);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.timeline li span {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline li strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

/* Toast */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.4s var(--ease);
}

.toast.is-leaving {
  animation: toast-out 0.3s var(--ease) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cream), #fff, var(--cream));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* Skeleton placeholders shown until the catalog arrives */
.sk {
  position: relative;
  overflow: hidden;
  background: #f0e9e1;
  border-radius: 8px;
}

.sk::after,
[data-hero-art]:empty::after,
[data-demo-art]:empty::after,
[data-about-art]:empty::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: sk-sweep 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

[data-demo-art]:empty {
  aspect-ratio: 1;
  overflow: hidden;
}

@keyframes sk-sweep {
  to {
    transform: translateX(100%);
  }
}

.sk-line {
  height: 12px;
  border-radius: 6px;
}

.sk-title {
  height: 30px;
  border-radius: 8px;
}

.sk-pill {
  border-radius: 999px;
}

.sk-circle {
  border-radius: 50%;
  flex: none;
}

.sk-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.sk-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sk-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
}

.sk-card .pc-media {
  margin-bottom: 4px;
}

.sk-card .sk-line:nth-child(2) {
  width: 72%;
  height: 16px;
}

.sk-card .sk-line:nth-child(3) {
  width: 38%;
}

.cat-card.sk-cat {
  pointer-events: none;
}

.sk-cat .cat-media {
  border-radius: 0;
}

.sk-cat .cat-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 10px;
  align-content: center;
}

.sk-chip {
  width: 96px;
  height: 38px;
  flex: none;
}

.sk-chip:first-child {
  width: 58px;
}

.sk-wrap {
  animation: sk-in 0.3s ease both;
}

@keyframes sk-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .sk-wrap .summary > :not(:first-child) {
    display: none;
  }

  .sk-wrap .summary {
    padding: 18px 20px !important;
  }
}

[data-product-root] > .product-layout:not(.sk-wrap),
[data-checkout-root] > :not(.sk-wrap) {
  animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .sk::after,
  [data-hero-art]:empty::after,
  [data-demo-art]:empty::after,
  [data-about-art]:empty::after {
    animation: none;
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Refinements & micro-interactions ---------- */
.reveal {
  transition-delay: calc(var(--i, 0) * 90ms);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.is-done {
  background: var(--success);
}

.header-cta {
  margin-right: 6px;
}

.site-header.is-scrolled .header-inner {
  height: 66px;
}

.header-inner {
  transition: height 0.35s var(--ease);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
}

.toast svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  flex: none;
}

.toast--success svg {
  color: #b7d4ae;
}

.toast--info svg {
  color: #f2c9bf;
}

.input--lg {
  font-size: 1.05rem;
  padding: 15px 18px;
}

.shake {
  animation: shake 0.45s var(--ease);
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Hero try panel */
.hero-arch {
  transition: background 0.6s var(--ease);
}

.hero-try {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  width: min(360px, 92%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
  z-index: 2;
}

.hero-try label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-dark);
  font-weight: 500;
}

.hero-try .input {
  padding: 11px 14px;
}

.hero-try__swatches {
  display: flex;
  gap: 8px;
}

.hero-try__swatches button,
.swatches-mini button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.25s var(--ease);
}

.swatches-mini button {
  width: 16px;
  height: 16px;
}

.hero-try__swatches button::after,
.swatches-mini button::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 0.25s;
}

.hero-try__swatches button:hover,
.swatches-mini button:hover {
  transform: scale(1.12);
}

.hero-try__swatches button.is-active::after,
.swatches-mini button.is-active::after {
  border-color: var(--ink);
}

.swatches-mini {
  gap: 7px;
}

.float-card--a {
  bottom: auto;
  top: 52%;
}

.pc-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.pc-cta svg {
  width: 16px;
  height: 16px;
}

/* Product page */
.preview-art {
  width: 84%;
  display: grid;
  place-items: center;
}

.preview-art .art {
  width: 100%;
}

.photo-later {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--blush));
  border: 1px solid #efd9d3;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.photo-later.is-hidden {
  display: none;
}

.photo-later__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--rose-dark);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.photo-later__icon svg {
  width: 22px;
  height: 22px;
}

.photo-later strong {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.photo-later p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.mini-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ms;
}

.mini-steps li {
  counter-increment: ms;
  font-size: 0.78rem;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-steps li::before {
  content: counter(ms);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
}

.buy-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}

.buy-bar.is-visible {
  transform: none;
}

.buy-bar__info {
  line-height: 1.25;
  min-width: 0;
}

.buy-bar__info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buy-bar__info span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Cart chip */
.photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  background: var(--blush);
  color: var(--rose-dark);
}

.photo-chip svg {
  width: 14px;
  height: 14px;
}

.photo-chip.is-ready {
  background: var(--sage-soft);
  color: var(--success);
}

/* Checkout */
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-bottom: 28px;
}

.checkout-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0;
}

.stepper {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper li + li::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--line);
  transition: background 0.4s;
}

.stepper li.is-done + li::before,
.stepper li.is-current::before {
  background: var(--ink);
}

.stepper button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}

.stepper button:not(:disabled):hover {
  background: var(--cream);
}

.stepper button:disabled {
  cursor: default;
}

.stepper b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.35s var(--ease);
}

.stepper .is-current button {
  color: var(--ink);
  font-weight: 500;
}

.stepper .is-current b {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(46, 42, 39, 0.08);
}

.stepper .is-done button {
  color: var(--ink);
}

.stepper .is-done b {
  background: var(--sage-soft);
  border-color: var(--sage);
  color: var(--success);
}

.step-panel {
  animation: panel-in 0.5s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.panel-lead {
  color: var(--muted);
  margin: -10px 0 26px;
  max-width: 620px;
}

.panel-sub {
  font-size: 1.4rem;
  margin: 32px 0 16px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-actions--start {
  justify-content: flex-start;
  border-top: 0;
  padding-top: 0;
  margin-top: 18px;
}

.option-card__body strong svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  color: var(--rose-dark);
}

.option-card__body strong > :first-child {
  flex: none;
}

.delivery-options .option-card__body strong {
  justify-content: flex-start;
}

.delivery-options .option-card__body strong em {
  margin-left: auto;
}

.photo-items {
  display: grid;
  gap: 18px;
}

.photo-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.photo-item.is-ready {
  border-color: #cfdccb;
}

.photo-item.needs-attention {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(196, 139, 130, 0.15);
}

.photo-item__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.photo-item__thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}

.photo-item__thumb .art {
  width: 90%;
}

.photo-item__info {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.photo-item__info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.photo-item__info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.photo-item__body {
  padding: 18px;
}

.photo-item__foot {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.photo-item__foot .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.photo-item__foot svg,
.btn-text svg {
  width: 16px;
  height: 16px;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  background: var(--blush);
  color: var(--rose-dark);
}

.status-pill svg {
  width: 14px;
  height: 14px;
}

.status-pill--ready {
  background: var(--sage-soft);
  color: var(--success);
}

.status-pill--loading {
  background: var(--cream);
  color: var(--muted);
}

.dropzone {
  display: block;
  padding: 40px 24px;
}

.dropzone u {
  text-underline-offset: 3px;
}

.photo-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: var(--muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--rose-dark);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Photo editor */
.editor {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.editor__viewport {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: repeating-conic-gradient(#f3eee8 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: inset 0 0 0 1px var(--line);
}

.editor__viewport.is-dragging {
  cursor: grabbing;
}

.editor__viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.editor__mask {
  pointer-events: none;
}

.editor__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(46, 42, 39, 0.75);
  color: #fff;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s;
}

.editor__hint svg {
  width: 15px;
  height: 15px;
}

.editor__hint.is-hidden {
  opacity: 0;
}

.editor__controls {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.range {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.range input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: none;
}

.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
}

.range input::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.range input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}

.editor__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.editor__row .seg button {
  padding: 7px 11px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--cream);
}

.seg button {
  border: 0;
  background: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.seg button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.seg--sm button {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.editor__tools {
  display: flex;
  gap: 6px;
}

.tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.3s var(--ease);
}

.tool-btn:hover {
  background: var(--cream);
}

.tool-btn:active {
  transform: rotate(-30deg);
}

.tool-btn svg {
  width: 18px;
  height: 18px;
}

.editor__preview {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.editor__bow {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}

.editor__bow .art {
  width: 92%;
}

.editor__preview > div[data-quality] {
  width: 100%;
}

.editor__preview .notice {
  margin-top: 0;
}

.editor__file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 100%;
}

.editor__file svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.editor__file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Review */
.order-review {
  display: grid;
  gap: 12px;
}

.review-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.review-block h4 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.review-block p {
  margin: 0;
  font-size: 0.95rem;
}

.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.review-photos figure {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.review-photos img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  background: var(--cream);
  margin-bottom: 6px;
  border-radius: 50%;
}

.review-photos .shape-heart img {
  border-radius: 0;
  clip-path: path('M46 84 C24 70 4 54 4 32 C4 16 16 6 29 6 C37 6 43 11 46 18 C49 11 55 6 63 6 C76 6 88 16 88 32 C88 54 68 70 46 84 Z');
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

.submit-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.summary {
  padding: 0;
  overflow: hidden;
}

.summary__toggle {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 28px) clamp(24px, 3vw, 34px) 8px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  pointer-events: none;
}

.summary__toggle::-webkit-details-marker {
  display: none;
}

.summary__toggle span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.summary__toggle svg {
  width: 22px;
  height: 22px;
}

.summary__toggle strong {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  display: none;
}

.summary [data-summary-body] {
  padding: 0 clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px);
}

.process-note strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-note strong svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

/* Send overlay & confirmation */
.send-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(251, 248, 244, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.send-overlay.is-visible {
  opacity: 1;
}

.send-card {
  width: min(420px, 100%);
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}

.send-art {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-dark);
  display: grid;
  place-items: center;
}

.send-art svg {
  width: 28px;
  height: 28px;
  animation: stitch 1.4s ease-in-out infinite;
}

@keyframes stitch {
  50% {
    transform: translate(4px, -4px) rotate(-8deg);
  }
}

.send-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.progress {
  height: 6px;
  border-radius: 6px;
  background: var(--cream);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--rose), var(--rose-dark));
  transition: width 0.4s var(--ease);
}

.check-anim {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--sage-soft);
  overflow: visible;
}

.check-anim circle {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.8s var(--ease) forwards;
}

.check-anim path {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.5s 0.6s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

button.order-code {
  cursor: copy;
  color: var(--ink);
  transition: background 0.2s;
}

button.order-code:hover {
  background: var(--blush);
}

@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }

  .editor {
    grid-template-columns: 1fr;
  }

  .editor__preview {
    grid-template-columns: 160px 1fr;
    align-items: center;
    justify-items: stretch;
  }

  .editor__preview .seg {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .editor__bow {
    grid-row: span 2;
  }
}

@media (max-width: 900px) {
  .buy-bar {
    display: flex;
  }

  body:has(.buy-bar.is-visible) .toast-wrap {
    bottom: 96px;
  }

  .summary {
    order: -1;
  }

  .summary__toggle {
    pointer-events: auto;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 16px 20px;
  }

  .summary__toggle strong {
    display: block;
  }

  .summary[open] .summary__toggle {
    padding-bottom: 8px;
  }

  .summary [data-summary-body] {
    padding: 0 20px 20px;
  }

  .stepper span {
    display: none;
  }

  .stepper .is-current span {
    display: inline;
  }

  .hero-visual {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .stepper li + li::before {
    width: 14px;
  }

  .photo-item__head {
    flex-wrap: wrap;
  }

  .photo-item__info span {
    display: none;
  }

  .range {
    grid-template-columns: 78px 1fr;
  }

  .editor__preview {
    grid-template-columns: 120px 1fr;
  }

  .step-actions .btn {
    flex: 1;
  }

  .review-block {
    flex-direction: column;
  }

  .float-card--a {
    display: none;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1280px) {
  .main-nav {
    gap: 20px;
  }

  .main-nav a:first-child,
  .main-nav a:last-child {
    display: none;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .logo {
    position: static;
    transform: none;
  }

  .header-inner {
    height: 60px;
    justify-content: center;
  }

  body:not(.has-tabbar) .header-inner {
    justify-content: space-between;
  }

  body:not(.has-tabbar) .site-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-grid,
  .feature,
  .about,
  .product-layout,
  .checkout-layout,
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-layout > *,
  .checkout-layout > *,
  .checkout-card,
  .summary,
  .field,
  .field-grid {
    min-width: 0;
  }

  .hero-visual {
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
  }

  .float-card--a {
    left: 0;
  }

  .float-card--b {
    right: 0;
  }

  .cat-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-gallery,
  .summary {
    position: static;
  }

  .about-visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .announce span + span {
    display: none;
  }

  .logo-text small {
    display: none;
  }

  .product-grid,
  .product-grid--3 {
    gap: 24px 14px;
  }

  .pc-title {
    font-size: 1.2rem;
  }

  .badge {
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .pc-desc,
  .swatches-mini {
    display: none;
  }

  .pc-cta {
    display: none;
  }

  .steps,
  .option-cards,
  .delivery-options,
  .field-grid,
  .photo-tips {
    grid-template-columns: 1fr;
  }

  .field-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-perks {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-stats strong {
    font-size: 1.9rem;
  }

  .float-card {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .float-card .fc-icon {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Smartphone ---------- */
.tabbar {
  display: none;
}

@media (hover: none) {
  .cat-card:hover,
  .product-card:hover .pc-media,
  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .cat-card:hover .cat-media .art,
  .product-card:hover .pc-media .art {
    transform: none;
  }

  .btn:active,
  .icon-btn:active,
  .tool-btn:active,
  .seg button:active,
  .swatch:active {
    transform: scale(0.96);
  }

  .cat-card:active,
  .product-card:active .pc-media,
  .step:active,
  .option-card:active {
    transform: scale(0.98);
  }

  .cat-card,
  .product-card .pc-media,
  .step,
  .option-card,
  .btn,
  .icon-btn {
    transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  }

  .btn--primary::after {
    display: none;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 80px;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.2s;
  }

  .btn,
  .icon-btn,
  .chip,
  .swatch,
  .tool-btn {
    transition: transform 0.16s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  }

  .btn {
    min-height: 48px;
  }

  .newsletter .btn {
    min-height: 0;
    padding: 10px 16px;
  }

  .btn--lg {
    min-height: 52px;
  }

  .input,
  .select,
  select,
  textarea,
  input[type='email'],
  input[type='text'],
  input[type='tel'],
  input[type='date'],
  input[type='time'] {
    font-size: 16px;
  }

  .site-header,
  .float-card,
  .buy-bar,
  .hero-try {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header {
    background: var(--bg);
  }

  .drawer,
  .main-nav,
  .drawer__body {
    overscroll-behavior: contain;
  }

  .reveal {
    transform: translateY(14px);
    transition-duration: 0.55s;
    transition-delay: calc(var(--i, 0) * 50ms);
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 0 calc(2px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    transition: transform 0.32s var(--ease);
  }

  body.drawer-open .tabbar {
    transform: translateY(110%);
    pointer-events: none;
  }

  .shop-toolbar {
    position: sticky;
    top: 60px;
    z-index: 40;
    background: rgba(251, 248, 244, 0.96);
  }

  .tabbar a,
  .tabbar button {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 54px;
    padding: 7px 2px 5px;
    border: 0;
    background: none;
    border-radius: 0;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: #8a8178;
    transition: color 0.2s, transform 0.16s var(--ease);
  }

  .tabbar a span,
  .tabbar button span {
    max-width: 100%;
    white-space: nowrap;
  }

  .tabbar a:active,
  .tabbar button:active {
    transform: scale(0.94);
    background: transparent;
  }

  .tabbar svg {
    width: 22px;
    height: 22px;
  }

  .tabbar .is-active {
    color: var(--ink);
  }

  .tabbar .is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transform: translateX(-50%);
  }

  .tabbar .is-active svg {
    color: var(--ink);
  }

  .tabbar .cart-count {
    position: absolute;
    top: 4px;
    left: calc(50% + 4px);
    right: auto;
    width: auto;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    transform: scale(0);
    transition: transform 0.3s var(--ease);
  }

  .tabbar .cart-count.has-items {
    transform: scale(1);
  }

  body.has-tabbar {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  body.has-tabbar .toast-wrap {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  body.has-tabbar:has(.buy-bar.is-visible) .toast-wrap {
    bottom: calc(146px + env(safe-area-inset-bottom));
  }

  body.has-tabbar .header-actions .cart-btn {
    display: none;
  }

  body.has-tabbar .buy-bar {
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom));
    max-width: none;
    border-radius: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
    padding: 8px 12px;
  }

  .site-footer .logo {
    position: static;
    transform: none;
  }

  .hero-grid > *,
  .feature > *,
  .about > *,
  .cta-band > * {
    min-width: 0;
  }

  .buy-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head p,
  .cat-body p,
  .feature-list li span,
  .demo-hint,
  .step p,
  .about-more,
  .cta-band p,
  .footer-about p,
  .footer-grid > div:last-child,
  .payments,
  .hero-actions .btn--ghost,
  .rating-summary {
    display: none;
  }

  h2 {
    font-size: clamp(1.75rem, 7.4vw, 2.1rem);
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .announce {
    font-size: 0.74rem;
    padding: 7px 12px;
  }

  .header-inner,
  .site-header.is-scrolled .header-inner {
    height: 56px;
  }

  .logo {
    gap: 8px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.12rem;
  }

  /* Hero */
  .hero {
    padding: 22px 0 40px;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.6rem);
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    margin-bottom: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .hero-trust li {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.78rem;
  }

  .hero-visual {
    aspect-ratio: 1 / 0.92;
    max-width: 360px;
    margin-bottom: 64px;
  }

  .float-card--b {
    top: 6%;
    right: -4px;
  }

  .hero-try {
    bottom: -54px;
    padding: 12px 14px 14px;
  }

  .hero-try label {
    display: none;
  }

  .marquee {
    padding-block: 12px;
  }

  /* Sections sit fully inside the screen */
  .cat-grid,
  .reviews,
  .steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .cat-card,
  .reviews > .review,
  .steps > .step {
    width: auto;
    min-width: 0;
  }

  .cat-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: stretch;
  }

  .cat-card .cat-media {
    aspect-ratio: 1;
    height: 100%;
  }

  .cat-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    min-width: 0;
  }

  .cat-body h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .cat-body .link-arrow {
    font-size: 0.82rem;
    margin-top: auto;
  }

  .reviews > .review {
    padding: 20px 18px;
  }

  .review blockquote {
    font-size: 1.08rem;
    margin: 10px 0 16px;
  }

  .steps > .step {
    padding: 16px 14px;
  }

  .step-num {
    font-size: 2rem;
    margin-bottom: 6px;
  }

  .step h3 {
    font-size: 1.15rem;
    margin: 0;
  }

  /* Feature & about */
  .feature,
  .about {
    gap: 22px;
  }

  .feature-visual {
    max-width: 280px;
    width: 100%;
    margin-inline: auto;
  }

  .feature .hero-lead,
  .about .hero-lead {
    margin-bottom: 4px;
  }

  .feature-list {
    margin: 18px 0 22px;
    gap: 10px;
  }

  .feature-list li {
    align-items: center;
    gap: 12px;
  }

  .feature-list .fl-icon {
    width: 36px;
    height: 36px;
  }

  .demo-upload .btn {
    width: 100%;
    justify-content: center;
  }

  .about-visual {
    aspect-ratio: 4 / 3;
  }

  .signature {
    display: none;
  }

  .about-stats {
    margin-top: 20px;
    padding-top: 18px;
    gap: 10px;
  }

  .about-stats strong {
    font-size: 1.6rem;
  }

  .about-stats span {
    font-size: 0.75rem;
  }

  /* FAQ & contact */
  .faq summary {
    padding: 16px 0;
    font-size: 1.12rem;
    gap: 14px;
  }

  .cta-band {
    padding: 28px 22px;
    gap: 20px;
  }

  .cta-band h2 {
    margin-bottom: 16px;
  }

  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-list {
    gap: 8px;
  }

  /* Footer */
  .site-footer {
    padding: 36px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding-bottom: 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-about .newsletter {
    margin: 14px 0;
  }

  .footer-grid ul {
    gap: 8px;
  }

  .footer-bottom {
    padding-top: 16px;
    font-size: 0.74rem;
    justify-content: center;
    text-align: center;
  }

  /* Shop */
  .page-hero {
    padding: 22px 0 6px;
  }

  .page-hero .breadcrumbs,
  .page-hero p {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.4rem);
    margin: 0;
  }

  .shop-toolbar {
    top: 56px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0 -16px 14px;
    padding: 8px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .filters {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: 0;
    padding: 0 24px 0 0;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .sort {
    flex: none;
  }

  .sort .results-count {
    display: none;
  }

  .sort .select {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    color: transparent;
    font-size: 16px;
    background: var(--surface)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232e2a27' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 16 4 4 4-4'/%3E%3Cpath d='M7 20V4'/%3E%3Cpath d='m21 8-4-4-4 4'/%3E%3Cpath d='M17 4v16'/%3E%3C/svg%3E")
      no-repeat center;
  }

  .sort .select option {
    color: var(--ink);
  }

  .product-card .badge {
    font-size: 0.6rem;
    padding: 5px 9px;
    letter-spacing: 0.06em;
  }

  .chip {
    flex: none;
    white-space: nowrap;
    padding: 9px 16px;
  }

  /* Product page */
  .product-layout > * {
    min-width: 0;
  }

  main .breadcrumbs,
  .gallery-perks,
  .product-meta,
  .product-info > .pc-cat,
  .assurance {
    display: none;
  }

  [data-builder-root] .assurance {
    display: grid;
    margin-top: 16px;
    font-size: 0.86rem;
  }

  .product-layout {
    padding-top: 12px;
    gap: 20px;
  }

  .preview-stage {
    aspect-ratio: 1 / 0.82;
  }

  .preview-tag {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  .preview-tag__more {
    display: none;
  }

  .product-info h1 {
    font-size: clamp(1.9rem, 8.6vw, 2.3rem);
    margin-bottom: 4px;
  }

  .product-lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .config-step {
    padding: 18px 0;
  }

  /* Checkout */
  .checkout-head {
    padding-top: 18px;
  }

  .checkout-head h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .panel-lead {
    font-size: 0.9rem;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .btn--lg {
    padding: 15px 20px;
  }

  .badge {
    max-width: calc(100% - 16px);
    white-space: normal;
    line-height: 1.25;
  }

  .faq summary,
  .accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .float-card--b {
    top: 8px;
    right: 8px;
    left: auto;
    max-width: 62%;
  }

  .float-card span,
  .preview-tag,
  .editor__hint {
    white-space: normal;
  }

  .preview-tag,
  .editor__hint {
    max-width: calc(100% - 20px);
    text-align: center;
  }

  /* Product options */
  .config-step__head {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .config-step__title {
    min-width: 0;
  }

  .option-card__body strong {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 2px;
  }

  .option-card__body strong em {
    margin-left: auto;
    white-space: nowrap;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    min-width: 0;
  }

  .add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .qty {
    align-self: flex-start;
  }

  .add-row .btn {
    width: 100%;
  }

  body:not(.has-tabbar) .buy-bar {
    left: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    padding: 8px 8px 8px 14px;
    gap: 8px;
  }

  .buy-bar__info,
  .buy-bar__info strong {
    min-width: 0;
  }

  .buy-bar .btn {
    flex: none;
    padding: 12px 16px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  body:has(.buy-bar.is-visible) {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  /* Checkout */
  .checkout-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .stepper {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .summary__toggle {
    min-width: 0;
    gap: 10px;
  }

  .summary__toggle span {
    min-width: 0;
  }

  .editor__row {
    flex-direction: column;
    align-items: stretch;
  }

  .editor__row .seg,
  .editor__preview .seg {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .editor__row .seg button,
  .editor__preview .seg button {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .editor__tools {
    justify-content: flex-end;
  }

  .editor__preview {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .editor__bow {
    grid-row: auto;
    max-width: 240px;
  }

  .editor__file span {
    overflow-wrap: anywhere;
  }

  .step-actions {
    flex-wrap: wrap;
  }

  .step-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .photo-item__head {
    min-width: 0;
  }

  .photo-item__info strong,
  .cart-line__name,
  .pc-title {
    overflow-wrap: anywhere;
  }

  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-thumb {
    width: 72px;
    height: 80px;
  }

  .newsletter {
    max-width: none;
  }

  .contact-list a div,
  .contact-list li > span div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* Product cards */
  .product-grid,
  .product-grid--3 {
    gap: 18px 10px;
  }

  .product-card .pc-media {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .pc-body {
    padding-top: 10px;
  }

  .product-card .pc-cat,
  .product-card .pc-desc,
  .product-card .pc-cta {
    display: none;
  }

  .pc-title {
    font-size: 1.15rem;
  }
}

/* ---------- Motion ---------- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: linear(0, 0.21 6%, 0.62 14%, 0.92 22%, 1.06 30%, 1.08 36%, 1.04 46%, 0.99 60%, 1 100%);
  interpolate-size: allow-keywords;
}

svg.i {
  flex: none;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-grid > div:first-child > * {
  animation: rise 0.9s var(--ease-out) both;
}

.hero-grid > div:first-child > :nth-child(2) { animation-delay: 70ms; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: 140ms; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: 210ms; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: 280ms; }

.hero-visual {
  animation: rise-scale 1.1s var(--ease-out) 0.12s both;
}

.page-hero h1,
.checkout-head h1 {
  animation: rise 0.7s var(--ease-out) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
}

@keyframes rise-scale {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

::view-transition-old(root) {
  animation: vt-out 0.22s var(--ease-out) both;
}

::view-transition-new(root) {
  animation: vt-in 0.38s var(--ease-out) both;
}

::view-transition-group(*) {
  animation-duration: 0.42s;
  animation-timing-function: var(--ease-out);
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.tabbar {
  view-transition-name: tabbar;
}

.btn {
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out), transform 0.5s var(--spring);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.12s;
}

.btn.is-done {
  background: var(--success);
  animation: pop 0.5s var(--spring);
}

.btn.is-done svg {
  animation: draw-in 0.4s var(--ease-out) both;
}

.btn.is-done .btn-price {
  display: none;
}

[data-submit-label] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes pop {
  40% {
    transform: scale(1.03);
  }
}

@keyframes draw-in {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
  }
}

.swatch,
.swatches-mini button,
.hero-try__swatches button {
  transition: transform 0.45s var(--spring);
}

.swatch.is-active::after,
.swatches-mini button.is-active::after,
.hero-try__swatches button.is-active::after {
  animation: ring 0.45s var(--spring);
}

@keyframes ring {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.chip {
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
    transform 0.4s var(--spring);
}

.chip:active {
  transform: scale(0.95);
}

details::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition: block-size 0.45s var(--ease-out), opacity 0.35s var(--ease-out), content-visibility 0.45s allow-discrete;
}

details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.summary::details-content {
  transition-duration: 0.35s;
}

.drawer {
  transition: transform 0.5s var(--ease-out);
}

.drawer-backdrop {
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

body.drawer-opening .cart-line,
body.drawer-opening .drawer__foot {
  animation: rise 0.55s var(--ease-out) both;
  animation-delay: calc(120ms + var(--i, 0) * 60ms);
}

body.drawer-opening .drawer__foot {
  animation-delay: 200ms;
}

.toast {
  animation: toast-spring 0.55s var(--spring) both;
}

@keyframes toast-spring {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

.cart-count.bump {
  animation: bump 0.6s var(--spring);
}

.product-card .pc-media .art,
.cat-card .cat-media .art {
  transition: transform 0.8s var(--ease-out);
}

@media (max-width: 900px) {
  .reveal {
    transform: translate3d(0, 12px, 0);
    transition-duration: 0.6s;
    transition-delay: calc(var(--i, 0) * 45ms);
  }

  .tabbar a svg,
  .tabbar button svg {
    transition: transform 0.45s var(--spring);
  }

  .tabbar .is-active svg {
    transform: translateY(-1px) scale(1.08);
  }

  .tabbar .is-active::before {
    width: 22px;
    animation: grow 0.45s var(--spring) both;
  }

  @keyframes grow {
    from {
      transform: translateX(-50%) scaleX(0);
    }
  }
}

/* ---------- Photography ---------- */
img.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}

img.photo.is-loaded {
  opacity: 1;
}

.pc-media--photo,
.cat-media--photo,
.stage-photo,
.feature-visual--photo,
.about-visual--photo {
  background: #efe7dd;
}

.product-card .pc-media--photo {
  display: block;
}

.product-card .pc-media--photo .badge {
  z-index: 1;
}

.product-card .pc-media--photo .pc-cta {
  z-index: 1;
}

@media (hover: hover) {
  .product-card:hover .pc-media--photo img.photo,
  .cat-card:hover .cat-media--photo img.photo {
    transform: scale(1.04);
  }
}

.cat-card .cat-media--photo {
  display: block;
}

.hero-arch img.photo {
  position: absolute;
  inset: 0;
  object-position: 34% 42%;
}

.feature-visual--photo {
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
}

.about-visual--photo img.photo {
  position: absolute;
  inset: 0;
}

/* Hero: a mini live preview next to the name field, the photo stays untouched */
.hero-try {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.hero-try__preview {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 0.5s var(--ease-out);
}

.hero-try__preview .art {
  width: 92%;
}

.hero-try__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero-try__row {
  display: flex;
  gap: 8px;
}

.hero-try__row .input {
  flex: 1;
  min-width: 0;
}

.icon-btn--dark {
  flex: none;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.icon-btn--dark:hover {
  background: #000;
  color: #fff;
}

/* Product stage: product photo or live personalised preview */
.preview-stage.has-photo {
  background: #efe7dd;
}

.stage-photo,
.stage-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);
}

.preview-stage.has-photo[data-view='photo'] .stage-art,
.preview-stage.has-photo[data-view='art'] .stage-photo {
  opacity: 0;
  pointer-events: none;
}

.preview-stage.has-photo[data-view='photo'] .stage-art {
  transform: scale(0.98);
}

.preview-stage .preview-tag {
  z-index: 1;
  transition: opacity 0.3s var(--ease-out);
}

.preview-stage.has-photo[data-view='photo'] .preview-tag {
  opacity: 0;
}

.stage-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.stage-thumb {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stage-thumb img,
.stage-thumb__art {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: grid;
  place-items: center;
  overflow: hidden;
  outline: 1.5px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.25s var(--ease-out), transform 0.4s var(--spring);
}

.stage-thumb__art .art {
  width: 90%;
}

.stage-thumb.is-active {
  color: var(--ink);
}

.stage-thumb.is-active img,
.stage-thumb.is-active .stage-thumb__art {
  outline-color: var(--ink);
}

.stage-thumb:active img,
.stage-thumb:active .stage-thumb__art {
  transform: scale(0.95);
}

@media (min-width: 901px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .cat-grid > .cat-card {
    grid-column: span 2;
  }

  .cat-grid > .cat-card:nth-child(-n + 2) {
    grid-column: span 3;
  }

  .cat-grid > .cat-card:nth-child(-n + 2) .cat-media {
    aspect-ratio: 16 / 10;
  }
}

.art--photo {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  display: block;
}

.unique-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.unique-tag svg {
  width: 18px;
  height: 18px;
  color: var(--rose-dark);
}

.unique-tag span {
  display: grid;
  line-height: 1.2;
}

.unique-tag small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 600px) {
  .unique-tag {
    align-self: flex-start;
    min-height: 44px;
  }
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

/* Sale prices, sold pieces, discount codes */
.pc-price s,
.product-price s {
  color: var(--muted);
  font-weight: 400;
  text-decoration-thickness: 1px;
}

.pc-price s {
  font-size: 0.85em;
  margin-right: 2px;
}

.product-price s {
  font-size: 1.1rem;
  margin-right: 10px;
}

.badge--sale {
  background: var(--rose-dark);
  color: #fff;
}

.badge--sold {
  background: var(--ink);
  color: #fff;
}

.pc-media.is-sold img.photo.is-loaded {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.unique-tag.is-sold svg {
  color: var(--muted);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.photo-chip--sold {
  background: #f6e1dc;
  color: var(--danger);
}

.coupon {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.coupon summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--ink-soft);
}

.coupon summary::-webkit-details-marker {
  display: none;
}

.coupon svg {
  width: 16px;
  height: 16px;
  color: var(--rose-dark);
}

.coupon__row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.coupon__row .input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coupon__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coupon__applied > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coupon__applied em {
  font-style: normal;
  color: var(--success);
  font-weight: 500;
}

.coupon__note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.coupon__note--error {
  color: var(--danger);
}

.summary-rows .summary-discount {
  color: var(--success);
}

@media (max-width: 600px) {
  .hero-try {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-try__preview {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .stage-thumb img,
  .stage-thumb__art {
    width: 56px;
    height: 56px;
  }

  .float-card,
  .hero-try {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Custom bow builder */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: 28px 0 80px;
}

.builder__stage-wrap {
  position: sticky;
  top: 96px;
}

.builder__stage {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: calc(100vh - 150px);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ece5dc url('/img/scene/porta.webp') center / cover;
}

.builder__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 38% 30%, rgba(255, 252, 246, 0.35), transparent 60%),
    linear-gradient(180deg, transparent 70%, rgba(60, 42, 34, 0.08));
  pointer-events: none;
}

.builder__art {
  position: relative;
  width: 90%;
  height: 92%;
  display: grid;
  place-items: center;
}

.builder__art .art {
  width: 100%;
  height: 100%;
}

.builder__art.is-swapping .art {
  animation: b-swap 0.5s var(--ease);
}

.b-pop {
  animation: b-pop 0.55s var(--ease) both;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes b-pop {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    transform: none;
  }
}

@keyframes b-swap {
  from {
    opacity: 0.25;
    transform: scale(0.95);
  }
}

.builder__price {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.builder__surprise {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}

.builder__surprise:hover {
  transform: translateY(-1px);
}

.builder__surprise svg {
  width: 16px;
  height: 16px;
  color: var(--rose-dark);
}

.builder__summary {
  margin: 14px auto 0;
  max-width: 520px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.builder__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ece3d9;
  animation: b-fade 0.35s var(--ease);
}

.builder__photo[hidden],
.builder__art[hidden] {
  display: none;
}

.builder__photo-fill {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px) saturate(0.9);
  opacity: 0.85;
}

.builder__photo-img,
.builder__photo-overlay,
.builder__photo-overlay .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.builder__photo-img {
  object-fit: contain;
}

.builder__stage.is-photo::before {
  display: none;
}

@keyframes b-fade {
  from {
    opacity: 0;
  }
}

.builder__views {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.builder__views button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.builder__views button svg {
  width: 15px;
  height: 15px;
}

.builder__views button.is-active {
  background: var(--ink);
  color: #fff;
}

.b-design__lead {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dropzone--compact {
  padding: 20px 18px;
}

.dropzone--compact .dropzone__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.b-design .photo-tips {
  margin-top: 12px;
}

.b-design .field-error {
  margin-top: 8px;
}

.b-design__ready {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.b-design__thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.b-design__thumb img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.b-design__info {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.b-design__info span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-design__info strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 500;
  font-size: 0.92rem;
}

.b-design__info strong svg {
  width: 15px;
  height: 15px;
}

.b-design__actions {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.builder__form h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 10px 0 10px;
}

.b-presets-wrap {
  margin: -8px 0 8px;
}

.b-presets-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.b-presets {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.b-presets::-webkit-scrollbar {
  display: none;
}

.b-preset {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.b-preset img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.b-preset:hover {
  border-color: #d6c8ba;
}

.b-preset.is-active {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.b-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}

.b-tiles--tessuto {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.b-tile {
  position: relative;
  display: block;
  cursor: pointer;
}

.b-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.b-tile__body {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  height: 100%;
  padding: 8px 8px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}

.b-tile:hover .b-tile__body {
  border-color: #d6c8ba;
}

.b-tile__art {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.b-tiles--tessuto .b-tile__art {
  aspect-ratio: 1.4;
}

.b-tile-art {
  width: 88%;
  height: 88%;
}

.b-tile strong {
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.25;
}

.b-tile__hint {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}

.b-tile__price {
  margin-top: 2px;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--rose-dark);
}

.b-tile__check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}

.b-tile__check svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.b-tile input:checked + .b-tile__body {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.b-tile input:checked + .b-tile__body .b-tile__check {
  opacity: 1;
  transform: none;
}

.b-tile input:focus-visible + .b-tile__body {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.b-tile.is-blocked {
  cursor: not-allowed;
}

.b-tile.is-blocked .b-tile__body {
  opacity: 0.4;
}

.b-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.segmented input:checked + span {
  background: var(--ink);
  color: #fff;
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.pc-art--builder .art {
  width: 74%;
}

.pc-media:has(.pc-art--builder),
.builder-promo__art {
  background: #ece5dc url('/img/scene/porta-420.webp') center / cover;
}

/* Home: builder promo */
.builder-promo {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, var(--blush));
  border: 1px solid #efd9d3;
  color: inherit;
  text-decoration: none;
}

.builder-promo__art {
  aspect-ratio: 5 / 6;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transition: background 0.6s var(--ease);
}

.builder-promo__art .art {
  width: 86%;
  height: 92%;
  transition: opacity 0.26s, transform 0.26s var(--ease);
}

.builder-promo__art.is-swapping .art {
  opacity: 0;
  transform: scale(0.96);
}

.builder-promo h2 {
  margin: 12px 0 12px;
}

.builder-promo p {
  color: var(--ink-soft);
  max-width: 480px;
}

.builder-promo__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 26px;
}

.builder-promo__chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .builder {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 0 0 40px;
  }

  .builder__stage-wrap {
    top: 56px;
    z-index: 30;
    margin-inline: calc(50% - 50vw);
    padding: 8px calc(50vw - 50%) 10px;
    background: var(--bg);
    box-shadow: 0 10px 14px -14px rgba(46, 42, 39, 0.35);
  }

  .builder__stage {
    aspect-ratio: auto;
    width: 100%;
    height: clamp(190px, 32vh, 290px);
    height: clamp(190px, 32svh, 290px);
    max-height: none;
    border-radius: var(--radius);
    background-size: 150% auto;
    background-position: 50% 32%;
    transition: height 0.3s var(--ease);
  }

  body.is-typing .builder__stage {
    height: 190px;
  }

  body.is-typing .builder__surprise {
    opacity: 0;
    pointer-events: none;
  }

  .builder__art {
    position: absolute;
    inset: 6px 0;
    width: auto;
    height: auto;
  }

  .builder__stage .preview-tag {
    display: none;
  }

  body.page-builder .tabbar,
  body.page-builder .buy-bar {
    transition: transform 0.32s var(--ease), opacity 0.25s var(--ease);
  }

  body.page-builder.bars-away .tabbar {
    transform: translateY(100%);
  }

  body.page-builder.has-tabbar.bars-away .buy-bar.is-visible {
    transform: translateY(calc(56px + env(safe-area-inset-bottom)));
  }

  body.page-builder.has-tabbar {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  body.page-builder .buy-bar:not(.is-visible) {
    transform: translateY(calc(100% + 80px));
    opacity: 0;
    pointer-events: none;
  }

  body.page-builder.is-typing .tabbar,
  body.page-builder.is-typing .buy-bar {
    transform: translateY(calc(100% + 140px));
    opacity: 0;
    pointer-events: none;
  }

  body.page-builder.bars-away .toast-wrap {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }

  body.page-builder.is-typing .toast-wrap {
    bottom: auto;
    top: 276px;
  }

  .b-tiles,
  .b-presets {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .b-tile,
  .b-preset,
  .segmented label,
  .swatch {
    -webkit-tap-highlight-color: transparent;
  }

  .b-tile:active .b-tile__body {
    transform: scale(0.97);
  }

  .builder__price {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.95rem;
  }

  .builder__surprise {
    top: 10px;
    left: 10px;
    padding: 6px 11px;
    font-size: 0.78rem;
  }

  .builder__stage .preview-tag {
    left: 10px;
    bottom: 10px;
  }

  .builder__views {
    bottom: 8px;
    padding: 2px;
  }

  .builder__views button {
    min-height: 30px;
    padding: 4px 12px;
    font-size: 0.78rem;
  }

  body.is-typing .builder__views {
    opacity: 0;
    pointer-events: none;
  }

  .builder__art {
    inset: 6px 0;
  }

  .b-design__ready {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .b-design__thumb {
    width: 64px;
    height: 64px;
  }

  .b-design__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 18px;
  }

  .builder__summary {
    display: none;
  }

  .builder__form h1 {
    font-size: clamp(1.9rem, 8.6vw, 2.3rem);
    margin: 6px 0 4px;
  }

  .builder__form .product-lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .b-tiles,
  .b-presets {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-inline: calc(50% - 50vw);
    padding: 4px calc(50vw - 50%) 8px;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .b-tiles::-webkit-scrollbar {
    display: none;
  }

  .b-tile {
    flex: 0 0 116px;
    scroll-snap-align: start;
  }

  .b-tiles--tessuto .b-tile {
    flex-basis: 96px;
  }

  .b-tile__hint {
    display: none;
  }

  .builder-promo {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .builder-promo__art {
    aspect-ratio: 1;
  }
}

@media (hover: hover) and (min-width: 901px) {
  body.drawer-open .drawer-backdrop {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

/* Hero: photo with the name embroidered live and the dashed spot for the photo */
.hero-canvas {
  --thread: #c9708f;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 864 / 1152;
  transform: translateY(-50%);
}

.hero-canvas__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.hero-canvas__photo.is-active {
  opacity: 1;
}

.hero-canvas__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-name {
  font-family: 'Great Vibes', cursive;
  fill: var(--thread);
  transition: fill 0.5s var(--ease), opacity 0.3s;
}

.hero-name.is-placeholder {
  opacity: 0.5;
}

.hero-zone__ring {
  fill: rgba(255, 255, 255, 0.55);
  stroke: var(--thread);
  stroke-width: 3;
  stroke-dasharray: 10 7;
  stroke-linecap: round;
  transition: stroke 0.5s var(--ease);
  animation: zone-dash 14s linear infinite;
}

.hero-zone__icon {
  fill: none;
  stroke: var(--thread);
  stroke-width: 2.6;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: stroke 0.5s var(--ease);
}

.hero-zone__lead {
  stroke: #fff;
  stroke-width: 2.6;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1.5px rgba(60, 40, 35, 0.35));
}

@keyframes zone-dash {
  to {
    stroke-dashoffset: -170;
  }
}

.hero-pin {
  position: absolute;
  left: 3%;
  width: 31%;
  top: 46.5%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.hero-try {
  grid-template-columns: minmax(0, 1fr);
}

.hero-try label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.hero-try .input.has-error {
  border-color: var(--danger);
}

.hero-visual .float-card--a {
  top: 9%;
  bottom: auto;
  left: auto;
  right: -18px;
}

@media (max-width: 1080px) {
  .hero-visual .float-card--a {
    right: 0;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    aspect-ratio: 1 / 1.1;
  }

  .hero-canvas {
    left: -15%;
    width: 130%;
  }

  .hero-pin {
    left: 13%;
    width: 20%;
    padding: 5px 7px;
    border-radius: 10px;
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .hero-try label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
}

/* Checkout: online payment */
.pay-options {
  margin-top: 4px;
}

.pay-view {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 0 80px;
  text-align: center;
}

.pay-view h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 10px 0 12px;
}

.pay-view__lead {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 460px;
}

.pay-view__lead strong {
  color: var(--ink);
  font-weight: 600;
}

.pay-view__box {
  padding: clamp(18px, 4vw, 28px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.pay-view__buttons {
  min-height: 120px;
  position: relative;
  z-index: 0;
}

.pay-view__box .form-error {
  margin-top: 14px;
}

.pay-view .btn-text {
  margin-top: 22px;
}

.pay-view__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pay-view__note svg {
  width: 15px;
  height: 15px;
}

/* Builder: tag explaining the dashed spot for the customer's photo */
.builder__spot-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 36px);
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.builder__spot-tag[hidden] {
  display: none;
}

.builder__art {
  transition: transform 0.6s var(--ease-out);
}

.builder__zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.builder__zoom svg {
  width: 15px;
  height: 15px;
  color: var(--rose-dark);
}

.builder__zoom[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

.builder__zoom[aria-pressed='true'] svg {
  color: #fff;
}

.spot-short {
  display: none;
}

.spot-ring {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px dashed var(--rose-dark);
}

.b-spot circle {
  animation: zone-dash 14s linear infinite;
}

[data-count-for].is-near,
[data-notes-count].is-near {
  color: var(--danger);
}

@media (max-width: 900px) {
  .builder__spot-tag {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .builder__zoom {
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .spot-long {
    display: none;
  }

  .spot-short {
    display: inline;
  }

  body.is-typing .builder__spot-tag,
  body.is-typing .builder__zoom {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Blank pieces to embroider: live preview on the aida panel ---------- */

.stage-print {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 1;
  pointer-events: none;
}

.art-print {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.art-print .art--photo {
  position: absolute;
  inset: 0;
}

.print-area {
  position: absolute;
  container-type: size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  --thread: #8a5d56;
  animation: print-in 0.35s var(--ease);
}

.print-area.is-hint {
  border: 1.5px dashed rgba(164, 108, 99, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
}

.print-hint {
  font-size: clamp(9px, 12cqh, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.print-photo {
  display: grid;
  place-items: center;
  height: 92cqh;
  max-width: 92cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px dashed rgba(164, 108, 99, 0.7);
  background: rgba(255, 255, 255, 0.55);
  color: var(--rose-dark);
  flex: none;
}

.print-area.has-text .print-photo {
  height: 54cqh;
}

.print-photo svg {
  width: 34%;
  height: 34%;
}

.print-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.print-area:has(.print-photo img) .print-photo {
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(164, 108, 99, 0.35);
}

.print-name,
.print-phrase {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--thread);
  text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.12), 0 0 1px rgba(255, 255, 255, 0.8);
}

.print-name {
  font-family: var(--font-script);
  font-size: min(40cqh, 17cqw);
  line-height: 1;
}

.print-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: min(17cqh, 8cqw);
  line-height: 1.15;
}

.print-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2cqh;
  max-width: 100%;
}

.print-area.has-photo .print-text {
  margin-top: 3cqh;
}

.print-area.has-photo .print-name {
  font-size: min(22cqh, 15cqw);
}

.print-area.has-photo .print-phrase {
  font-size: min(11cqh, 7cqw);
}

.print-area.is-wide.has-photo.has-text {
  flex-direction: row;
}

.print-area.is-wide.has-photo.has-text .print-photo {
  height: 92cqh;
}

.print-area.is-wide.has-photo.has-text .print-text {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0 0 0 5cqw;
  align-items: flex-start;
  text-align: left;
}

.print-area.is-wide.has-photo.has-text .print-name {
  font-size: min(42cqh, 13cqw);
}

.print-area.is-wide.has-photo.has-text .print-phrase {
  font-size: min(17cqh, 5.5cqw);
}

@keyframes print-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.preview-stage .preview-tag--print {
  opacity: 1 !important;
}

.config-step__lead {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.option-cards--extras .option-card__body strong {
  justify-content: flex-start;
  align-items: center;
}

.option-cards--extras .option-card__body strong em {
  margin-left: auto;
  white-space: nowrap;
}

.option-card.is-off {
  cursor: default;
}

.option-card.is-off .option-card__body {
  opacity: 0.6;
  background: var(--cream);
}

.option-card.is-off .option-card__body strong em {
  color: var(--muted);
  font-size: 0.8rem;
}

.lettering-fields {
  margin-top: 14px;
}

/* ---------- Date picker (checkout "Ti serve entro il") ---------- */

.field-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.field-hint svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--rose-dark);
}

.field-hint strong {
  color: var(--ink);
  font-weight: 500;
}

.datepick {
  position: relative;
  max-width: 380px;
}

.datepick__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.datepick__toggle svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--rose-dark);
}

.datepick__toggle span::first-letter {
  text-transform: uppercase;
}

.datepick__toggle.is-empty span {
  color: var(--muted);
}

.datepick__toggle[aria-expanded='true'] {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(196, 139, 130, 0.15);
}

.datepick__pop {
  margin-top: 8px;
  width: min(340px, 100%);
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: datepick-in 0.18s var(--ease);
}

.datepick__pop[hidden] {
  display: none;
}

@keyframes datepick-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.datepick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.datepick__head strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: capitalize;
}

.datepick__nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.datepick__nav svg {
  width: 18px;
  height: 18px;
}

.datepick__nav:hover:not(:disabled) {
  background: var(--blush);
  border-color: var(--blush);
}

.datepick__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.datepick__week,
.datepick__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.datepick__week span {
  padding: 4px 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.datepick__day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.datepick__day:hover:not(.is-off) {
  background: var(--blush);
}

.datepick__day:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
}

.datepick__day.is-off {
  color: #c2b8ad;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(46, 42, 39, 0.04) 4px 6px);
  border-radius: 8px;
  cursor: not-allowed;
}

.datepick__day.is-today::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--rose-dark);
}

.datepick__day.is-first:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px var(--rose);
  color: var(--rose-dark);
  font-weight: 500;
}

.datepick__day.is-selected {
  background: var(--ink);
  color: #fff;
}

.datepick__note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.datepick__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.confirmation__mail{margin:14px 0 0;color:var(--muted);font-size:.92rem}


/* Store page and category copy */
.store-visit {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-bottom: 96px;
}

.store-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.store-card h2 {
  margin-top: 0;
}

.store-card h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.store-address {
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.7;
}

.store-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.store-hours th,
.store-hours td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.store-hours th {
  font-weight: 500;
}

.store-hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.store-hours .is-closed {
  color: var(--muted);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.store-actions .btn svg {
  width: 18px;
  height: 18px;
}

.store-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.store-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.store-services li {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
}

.store-services .fl-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--rose-dark);
}

.store-services .fl-icon svg {
  width: 20px;
  height: 20px;
}

.store-services h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
}

.store-services h3 a:hover {
  color: var(--rose-dark);
}

.store-services p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-area {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
}

.store-area h2 {
  margin-bottom: 0;
}

.store-area__text p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.seo-copy {
  padding: 0 0 96px;
}

.seo-copy__inner {
  max-width: 760px;
  margin-inline: auto;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.seo-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.seo-copy p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .store-visit,
  .store-area {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .store-services {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
