/* ==========================================================================
   components.css — reusable pieces: header, buttons, soap, cards, cart, forms…
   ========================================================================== */

/* ---------- announcement ticker ---------- */
.announce {
  background: var(--accent);
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.announce__track { display: inline-flex; padding-block: 0.65rem; animation: marquee 96s linear infinite; }
.announce:hover .announce__track { animation-play-state: paused; }
.announce__item { padding-right: 3.5rem; display: inline-flex; align-items: center; gap: 3.5rem; }
.announce__item::after { content: "✺"; color: var(--sand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.35); }
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  transition: height 0.45s var(--ease);
}
.header.is-scrolled .header__inner { height: 64px; }
.header__left { display: flex; align-items: center; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }

.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--sand), var(--accent-soft));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
/* the logo mark is a mask, so it takes the text color (dark in the header, cream in the footer) */
.brand__mark {
  flex: none;
  width: 56px;
  height: 56px;
  background: currentColor;
  -webkit-mask: url("../images/logo-mark.png") center / contain no-repeat;
  mask: url("../images/logo-mark.png") center / contain no-repeat;
  transition: transform 0.9s var(--ease);
}
.header.is-scrolled .brand__mark { transform: scale(0.88); }
.brand:hover .brand__mark { transform: rotate(14deg) scale(1.06); }
.brand__name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 420px) { .brand__name { font-size: 0.68rem; letter-spacing: 0.2em; } .brand__mark { width: 46px; height: 46px; } }

.nav { display: flex; gap: 2.2rem; }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.96rem;
  padding-block: 0.3rem;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  margin-left: -10px;
  background: none;
  border: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 7rem var(--gutter) 3rem;
  background: var(--cream);
  clip-path: circle(0 at 34px 100px);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease), visibility 0s 0.9s;
}
.mobile-menu.is-open { clip-path: circle(160% at 34px 100px); visibility: visible; transition: clip-path 0.9s var(--ease); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.mobile-menu.is-open a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 250ms); }
body.menu-open { overflow: hidden; }

/* cart button */
.cart-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.cart-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }
.cart-btn__count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 20px; height: 20px;
  padding-inline: 5px;
  display: grid; place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--sand);
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.cart-btn__count.has-items { transform: scale(1); }
.cart-btn__count.bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

@media (max-width: 1180px) { .header .header__custom { display: none; } .nav { gap: 1.6rem; } }
@media (max-width: 1000px) {
  .header .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--accent);
  --fg: var(--cream);
  --fill: var(--sand);
  --fg-hover: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.9rem;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--bg);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.4s, transform 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(101%);
  transition: transform 0.65s var(--ease), border-radius 0.65s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; border-radius: 0; }
.btn:hover { color: var(--fg-hover); border-color: var(--fill); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost { --bg: transparent; --fg: var(--ink); --fill: var(--ink); --fg-hover: var(--cream); border-color: var(--ink); }
.btn--light { --bg: var(--cream); --fg: var(--ink); --fill: var(--sand); --fg-hover: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--cream); --fill: var(--cream); --fg-hover: var(--ink); border-color: rgba(251, 247, 240, 0.5); }
.btn--small { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.btn.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- soap bar (pure CSS stand-in until real photos exist) ---------- */
.soap {
  --tone: var(--sand);
  --w: 200px;
  --rot: 0deg;
  position: relative;
  width: var(--w);
  aspect-ratio: 3 / 2;
  border-radius: 26px;
  container-type: inline-size;
  overflow: hidden;
  transform: translateY(var(--sy, 0px)) rotate(var(--rot));
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--tone) 80%, white), var(--tone) 55%, color-mix(in srgb, var(--tone) 78%, #66563f));
  box-shadow:
    inset 0 -10px 20px rgba(0, 0, 0, 0.09),
    inset 0 2px 3px rgba(255, 255, 255, 0.75),
    0 26px 40px -20px rgba(70, 50, 30, 0.45);
}
.soap::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
.soap::after {
  content: "";
  position: absolute;
  top: -10%; bottom: -10%;
  left: -70%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  transition: left 1.1s var(--ease);
}
.soap:hover::after, .card:hover .soap::after, .tile:hover .soap::after { left: 140%; }

.soap__band {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 27%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  background: var(--paper);
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.05), 1px 0 0 rgba(0, 0, 0, 0.05), 0 0 18px -6px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.soap__band span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 4.6cqw;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* round variant: placeholder for shower steamers / bath bombs */
.soap--round {
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.8), transparent 36%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tone) 88%, white), var(--tone) 60%, color-mix(in srgb, var(--tone) 70%, #5a4632));
  box-shadow:
    inset -14px -18px 30px rgba(0, 0, 0, 0.14),
    inset 8px 10px 18px rgba(255, 255, 255, 0.3),
    0 26px 40px -20px rgba(70, 50, 30, 0.45);
}
.soap--round::before { inset: 8%; border-radius: 50%; }
.card__media .soap--round { --w: 56%; }
.line__thumb .soap--round { --w: 70%; border-radius: 50%; }
.line__thumb .soap--round::before { inset: 6%; border-radius: 50%; }

/* ---------- photo frame (white-bordered print look) ---------- */
.frame {
  --rot: 0deg;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 6px solid var(--paper);
  border-radius: 26px;
  background: var(--cream-2);
  box-shadow: var(--shadow-2);
  transform: translateY(var(--sy, 0px)) rotate(var(--rot));
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- chips / pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip--light { border-color: rgba(251, 247, 240, 0.35); color: var(--cream); }
.chip--light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- product card ---------- */
.card { display: flex; flex-direction: column; gap: 1rem; }
.card__media {
  --tone: var(--sand);
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r);
  overflow: hidden;
  background: color-mix(in srgb, var(--tone) 34%, var(--cream));
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.card:hover .card__media { box-shadow: var(--shadow-2); }
.card__media .soap { --w: 68%; transition: transform 0.9s var(--ease); }
.card:hover .card__media .soap { transform: rotate(calc(var(--rot) - 5deg)) scale(1.07); }
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover .card__media::after { opacity: 1; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform 1.2s var(--ease); }
.card:hover .card__img { transform: scale(1.06); }
.card__badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper);
  border-radius: 999px;
}
.card__body { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.card__name { font-size: 1.28rem; }
.card__name a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.card__name a:hover { background-size: 100% 1px; }
.card__blurb { color: var(--ink-soft); font-size: 0.93rem; margin-top: 0.25rem; }
.card__price { font-family: var(--font-display); font-size: 1.25rem; white-space: nowrap; }
.card .btn { margin-top: auto; }

/* "make it custom" card at the end of the grid */
.card--custom {
  justify-content: space-between;
  padding: 1.8rem;
  background: var(--accent);
  color: var(--cream);
  border-radius: var(--r);
  min-height: 320px;
}
.card--custom h3 { font-size: 1.9rem; line-height: 1.1; }
.card--custom p { color: rgba(251, 247, 240, 0.75); margin-top: 0.8rem; font-size: 0.97rem; }

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(42, 40, 36, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s 0.5s;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 95;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.35);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.7s var(--ease), visibility 0s 0.7s;
}
body.cart-open .drawer-backdrop { opacity: 1; visibility: visible; transition: opacity 0.5s; }
body.cart-open .drawer { transform: none; visibility: visible; transition: transform 0.7s var(--ease); }
body.cart-open { overflow: hidden; }

.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.7rem; }
.drawer__close {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.drawer__close:hover { transform: rotate(90deg); background: var(--cream-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 0.4rem 1.6rem; }
.drawer__empty { display: grid; gap: 1rem; justify-items: start; padding-block: 3rem; color: var(--ink-soft); }
.drawer__foot { padding: 1.4rem 1.6rem 1.6rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; background: var(--cream); }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.drawer__row strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.drawer__note { font-size: 0.85rem; color: var(--ink-soft); }
.drawer__status { font-size: 0.9rem; color: var(--ink-soft); min-height: 1.4em; }

.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line); animation: line-in 0.6s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateX(20px); } }
.line__thumb { --tone: var(--sand); position: relative; width: 72px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 34%, var(--cream)); }
.line__thumb .soap { --w: 78%; border-radius: 10px; }
.line__thumb .soap::before { inset: 4px; border-radius: 7px; }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.line__price { color: var(--ink-soft); font-size: 0.9rem; }
.line__side { display: grid; justify-items: end; gap: 0.5rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; background: none; border: 0; border-radius: 50%; line-height: 1; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 22px; text-align: center; font-size: 0.92rem; }
.line__remove { background: none; border: 0; padding: 0; font-size: 0.8rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--danger); }

/* ---------- accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  text-align: left;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.acc__icon { position: relative; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%; transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.6s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: rotate(180deg); }
.acc__item.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 1.5rem; max-width: 56ch; color: var(--ink-soft); }

/* ---------- forms ---------- */
.form-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.form-section + .form-section { margin-top: 2.6rem; }
.form-section__title { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.4rem; font-size: 1.55rem; }
.form-section__title small { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--ink-soft); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

.field label, .field legend { font-size: 0.9rem; font-weight: 500; padding: 0; transition: color 0.3s; }
.field:focus-within > label { color: var(--accent); }
.req { color: var(--danger); }
.opt { color: var(--ink-soft); font-weight: 400; }
.field__hint { font-size: 0.82rem; color: var(--ink-soft); }
.field__error { min-height: 0; font-size: 0.84rem; color: var(--danger); }
.field__error:empty { display: none; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), background 0.3s, transform 0.4s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(42, 40, 36, 0.3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(30, 29, 26, 0.12);
}
.input::placeholder, .textarea::placeholder { color: rgba(106, 101, 92, 0.65); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232a2824' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 67, 47, 0.12); }
.field.is-shaking { animation: shake 0.45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* pill radios / checkboxes */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  font-size: 0.93rem;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.4s var(--ease);
}
.pill:hover span { border-color: var(--ink); transform: translateY(-2px); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.pill input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 3px; }

/* photo dropzone */
.dropzone {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.8rem 1rem;
  text-align: center;
  background: var(--cream);
  border: 1.5px dashed rgba(42, 40, 36, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.dropzone:hover, .dropzone.is-over { background: var(--paper); border-color: var(--accent); transform: translateY(-2px); }
.dropzone svg { width: 28px; height: 28px; color: var(--accent); }
.dropzone strong { font-weight: 500; }
.dropzone small { color: var(--ink-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; animation: pop 0.5s var(--ease) both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: rgba(42, 40, 36, 0.78);
  color: #fff;
  border: 0; border-radius: 50%;
  font-size: 0.9rem; line-height: 1;
}
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }

/* honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2.2rem; }
.form-actions p { font-size: 0.86rem; color: var(--ink-soft); max-width: 36ch; }
.form-error { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 12px; background: rgba(180, 67, 47, 0.1); color: var(--danger); font-size: 0.93rem; }
.form-error:empty { display: none; }

/* success state */
.success { display: none; text-align: center; justify-items: center; gap: 1rem; padding-block: 2rem; }
.form-card[data-state="done"] .success { display: grid; animation: line-in 0.8s var(--ease) both; }
.form-card[data-state="done"] form > *:not(.success) { display: none; }
.success__tick { width: 84px; height: 84px; }
.success__tick circle { fill: var(--accent); }
.success__tick path { fill: none; stroke: var(--cream); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.7s 0.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.success p { max-width: 38ch; color: var(--ink-soft); }
.success__preview { font-size: 0.85rem; padding: 0.7rem 1rem; border-radius: 12px; background: rgba(30, 29, 26, 0.07); color: var(--ink); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3.5rem, 7vw, 5.5rem); background: var(--accent); color: var(--cream); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer a { text-decoration: none; opacity: 0.85; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.5s var(--ease), opacity 0.3s; padding-bottom: 2px; }
.footer a:hover { opacity: 1; background-size: 100% 1px; }
.footer__about p { max-width: 32ch; margin-top: 1rem; opacity: 0.75; }
.footer .brand { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer .brand__mark { width: 84px; height: 84px; }
.footer .brand__name { font-size: 0.85rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid rgba(251, 247, 240, 0.16); font-size: 0.85rem; opacity: 0.7; }
.footer__word { font-family: var(--font-display); font-size: clamp(3rem, 15vw, 15rem); line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap; text-align: center; color: rgba(251, 247, 240, 0.07); user-select: none; margin-top: 1rem; transform: translateY(18%); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- bubble burst (success + clicks) ---------- */
.fx-bubble {
  position: fixed;
  z-index: 200;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid hsla(var(--h), 45%, 55%, 0.5);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), hsla(var(--h), 70%, 85%, 0.25));
  animation: burst 1.7s var(--ease) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; }
}

/* ---------- bulk pricing (cart nudge + discount line) ---------- */
.drawer__nudge { padding: 0.7rem 0.95rem; border-radius: 12px; background: var(--cream-2); font-size: 0.88rem; line-height: 1.45; }
.drawer__row--discount { color: var(--accent); font-weight: 500; }
