/* Shared components, in the same paper-and-paint language as studio.css. */

/* ---------- Base refinements ---------- */
body::before{
  background-image:var(--grain);
  background-size:160px 160px;
  opacity:.55;
}
::selection{ background:var(--ochre-100); color:var(--ink); }
:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; border-radius:6px; }
button{ font:inherit; color:inherit; }
input, select, textarea{ font:inherit; }
[hidden]{ display:none !important; }
main{ position:relative; z-index:1; min-height:50vh; }
.muted{ color:var(--text-muted); }
.center{ text-align:center; }

/* ---------- Loading screen: a tote draws itself, a brush paints a sunset on it, the name writes in ---------- */
.loading-screen{ background:var(--canvas); backdrop-filter:none; }
.loader-mark{ display:flex; flex-direction:column; align-items:center; gap:14px; color:var(--ink); }
.loader-tote{ width:clamp(88px, 20vw, 122px); height:auto; overflow:visible; filter:drop-shadow(0 10px 12px rgba(59,47,34,.12)); }
.lt-handle, .lt-bag{ fill:none; stroke:var(--ink); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:100; stroke-dashoffset:100; }
.lt-bag{ fill:#FBF6EA; fill-opacity:0; }
.lt-sweep{ transform-box:fill-box; transform-origin:left center; transform:scaleX(0); }
.lt-brush{ fill:var(--ink); opacity:0; }
.loader-words{ display:flex; align-items:baseline; font:700 clamp(1.9rem, 5.4vw, 2.8rem)/1 'Space Grotesk', sans-serif; letter-spacing:-.02em; }
.loader-word .loading-word{ display:inline-flex; }
.lw-char{ display:inline-block; clip-path:inset(-15% 100% -15% 0); transform:translateY(.05em); }
.loader-script{ position:relative; display:inline-block; margin-left:.18em; font:700 .76em/1 'Caveat', cursive; letter-spacing:0; color:var(--ink-soft); transform:translateY(.06em) rotate(-3deg); }
.loader-script .ink{ display:inline-block; padding:0 .06em; clip-path:inset(-30% 100% -40% 0); }
.loader-nib{ position:absolute; top:58%; left:0; width:.17em; height:.17em; border-radius:50%; background:var(--cherry); opacity:0; }
.loader-swash{ position:absolute; left:-2%; bottom:-.34em; width:104%; height:.36em; overflow:visible; }
.loader-swash path{ fill:none; stroke:var(--ochre); stroke-width:3.2; stroke-linecap:round; vector-effect:non-scaling-stroke; stroke-dasharray:100; stroke-dashoffset:100; opacity:0; }
html.is-loading .lt-handle{ animation:ldDraw .5s cubic-bezier(.5,0,.3,1) .05s forwards; }
html.is-loading .lt-bag{ animation:ldDraw .6s cubic-bezier(.5,0,.3,1) .2s forwards, ldFill .3s ease-out .65s forwards; }
html.is-loading .lt-sweep{ animation:ldSweep .62s cubic-bezier(.45,.05,.35,1) .78s forwards; }
html.is-loading .lt-brush{ animation:ldBrush .62s cubic-bezier(.45,.05,.35,1) .78s forwards; }
html.is-loading .lw-char{ animation:ldWrite .22s cubic-bezier(.3,.7,.4,1) forwards; animation-delay:calc(1.02s + var(--i) * 60ms); }
html.is-loading .loader-script .ink{ animation:ldScript .5s cubic-bezier(.5,.1,.4,1) 1.42s forwards; }
html.is-loading .loader-nib{ animation:ldNib .5s cubic-bezier(.5,.1,.4,1) 1.42s forwards; }
html.is-loading .loader-swash path{ animation:ldSwash .3s cubic-bezier(.4,0,.2,1) 1.84s both; }
html.is-ready .loader-mark{ animation:ldOut .4s var(--ease-premium) forwards; }
html.is-ready :is(.lt-handle, .lt-bag){ stroke-dashoffset:0; }
html.is-ready .lt-bag{ fill-opacity:1; }
html.is-ready .lt-sweep{ transform:none; }
html.is-ready .lw-char{ clip-path:none; transform:none; }
html.is-ready .loader-script .ink{ clip-path:none; }
html.is-ready .loader-swash path{ stroke-dashoffset:0; opacity:1; }
@keyframes ldDraw{ to{ stroke-dashoffset:0; } }
@keyframes ldFill{ to{ fill-opacity:1; } }
@keyframes ldSweep{ to{ transform:scaleX(1); } }
@keyframes ldBrush{ 0%{ opacity:1; transform:translate(0, 0); } 50%{ transform:translate(36px, -6px); } 92%{ opacity:1; transform:translate(72px, 6px); } 100%{ opacity:0; transform:translate(74px, 6px); } }
@keyframes ldWrite{ to{ clip-path:inset(-15% 0 -15% 0); transform:none; } }
@keyframes ldScript{ to{ clip-path:inset(-30% 0 -40% 0); } }
@keyframes ldNib{ 0%{ left:0; opacity:1; } 90%{ left:100%; opacity:1; } 100%{ left:100%; opacity:0; } }
@keyframes ldSwash{ 0%{ opacity:1; } to{ stroke-dashoffset:0; opacity:1; } }
@keyframes ldOut{ to{ opacity:0; transform:translateY(-10px); } }

/* Loading screen: auto-hides even if JavaScript never runs. */
.loading-screen{ animation:loadingFailsafe 0s linear 4s forwards; }
@keyframes loadingFailsafe{ to{ opacity:0; visibility:hidden; pointer-events:none; } }
html:not(.is-loading) .loading-screen{ opacity:0; visibility:hidden; pointer-events:none; }
html.is-loading body{ overflow:hidden; }

.skip-link{
  position:fixed; left:16px; top:-60px; z-index:300;
  background:var(--ink); color:var(--white-paint);
  padding:10px 16px; border-radius:999px; text-decoration:none; font-weight:600;
  transition:top var(--dur-base) var(--ease-out);
}
.skip-link:focus{ top:12px; }

/* The studio.css `nav` and `section` rules are page-level; scope them back for components. */
.mobile-links, .breadcrumbs, .admin-nav nav, .side-tabs{ max-width:none; margin:0; padding:0; justify-content:flex-start; }
section.ig-band, .not-found, .page-hero{ content-visibility:visible; }

/* ---------- Announcement + header ---------- */
.announce{
  position:relative; z-index:51;
  background:var(--ink); color:var(--canvas);
  text-align:center;
  font:500 .76rem/1.3 'IBM Plex Mono', monospace;
  letter-spacing:.06em; text-transform:uppercase;
  padding:9px 16px;
}
.site-header{ transition:transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.site-header.is-hidden{ transform:translateY(-100%); }
.site-header.is-scrolled{ box-shadow:0 8px 24px rgba(34,29,25,.06); }
.site-header nav{ gap:20px; }
.navlinks{ gap:26px; }
.navlinks a::after{
  height:6px; bottom:-2px; opacity:.8;
  background:none;
  border-radius:0;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5 Q25 1 50 4.5 T99 3.5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5 Q25 1 50 4.5 T99 3.5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  background-color:var(--cherry);
}
.nav-actions{ gap:8px; }
.icon-btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-width:42px; height:42px; padding:0 10px;
  border-radius:999px; border:1px solid transparent;
  background:transparent; color:var(--ink); cursor:pointer;
  text-decoration:none; font-size:.88rem; font-weight:600;
  transition:background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover{ background:rgba(34,29,25,.06); border-color:var(--line); }
.icon-btn:active{ transform:scale(.96); }
.icon-btn svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.cart-count{
  position:absolute; top:2px; right:0;
  min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:var(--cherry); color:var(--white-paint);
  font:700 .68rem/18px 'Inter', sans-serif; text-align:center;
  box-shadow:0 0 0 2px var(--canvas);
}
.cart-count.is-bumped{ animation:dabBob .6s var(--ease-spring); }
.menu-btn{ display:none; }

/* ---------- Sheets (mobile menu, cart) ---------- */
.sheet-backdrop{
  position:fixed; inset:0; z-index:var(--z-sheet);
  background:rgba(34,29,25,.38); backdrop-filter:blur(6px);
  animation:fadeIn var(--dur-base) var(--ease-out);
}
.sheet{
  position:fixed; top:0; right:0; bottom:0; z-index:calc(var(--z-sheet) + 1);
  width:min(420px, 100%);
  display:flex; flex-direction:column; gap:18px;
  padding:20px 22px 24px;
  background:var(--canvas);
  background-image:var(--grain);
  border-left:1px solid var(--line);
  box-shadow:-24px 0 60px rgba(34,29,25,.18);
  transform:translateX(104%);
  visibility:hidden;
  transition:transform .42s var(--ease-out), visibility 0s linear .42s;
  overflow-y:auto;
}
.sheet.is-open{ transform:none; visibility:visible; transition:transform .42s var(--ease-out), visibility 0s; }
.sheet-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sheet-title{ font-size:1.4rem; }
.mobile-links{ display:grid; gap:2px; }
.mobile-links a{
  font:600 1.5rem/1.2 'Space Grotesk', sans-serif; text-decoration:none;
  padding:12px 4px; border-bottom:1px dashed var(--line-strong);
}
.mobile-links a[aria-current="page"]{ color:var(--cherry); }
.mobile-menu-foot{ margin-top:auto; text-align:center; font-size:1.3rem; color:var(--ink-soft); }

/* ---------- Cart drawer ---------- */
.cart-body{ display:grid; gap:12px; align-content:start; flex:1; }
.cart-line{
  display:grid; grid-template-columns:72px 1fr auto; gap:12px; align-items:center;
  padding:10px; border-radius:var(--radius-sm);
  background:var(--white-paint); border:var(--border-soft);
}
.cart-line img{ width:72px; height:84px; object-fit:cover; border-radius:10px; background:var(--canvas-deep); }
.cart-line h3{ font-size:.98rem; line-height:1.3; }
.cart-line h3 a{ text-decoration:none; }
.cart-line .price{ font-weight:600; font-size:.9rem; }
.qty{ display:inline-flex; align-items:center; border:1px solid var(--line-strong); border-radius:999px; margin-top:6px; }
.qty button{ width:30px; height:30px; border:0; background:none; cursor:pointer; font-size:1rem; border-radius:999px; }
.qty button:hover{ background:rgba(34,29,25,.06); }
.qty span{ min-width:22px; text-align:center; font-weight:600; font-size:.9rem; }
.remove-line{ border:0; background:none; color:var(--text-muted); cursor:pointer; font-size:.8rem; text-decoration:underline; text-underline-offset:3px; align-self:start; }
.cart-foot{ display:grid; gap:12px; padding-top:14px; border-top:1px dashed var(--line-strong); }
.summary-row{ display:flex; justify-content:space-between; align-items:baseline; font-size:1.05rem; }
.ship-progress{ font-size:.85rem; color:var(--text-muted); }
.ship-progress .bar{ height:6px; border-radius:99px; background:var(--canvas-deep); margin-top:6px; overflow:hidden; }
.ship-progress .bar i{ display:block; height:100%; border-radius:99px; background:var(--sage); transition:width var(--dur-slow) var(--ease-out); }
.empty-state{ text-align:center; padding:28px 12px; display:grid; gap:12px; justify-items:center; color:var(--text-muted); }
.empty-state img{ width:min(240px, 70%); height:auto; margin-bottom:4px; }
.empty-state h3{ color:var(--ink); font-size:1.2rem; }

/* ---------- Buttons ---------- */
.btn-block{ width:100%; }
.btn-lg{ min-height:54px; font-size:1.02rem; }
.btn-cherry{ background:var(--cherry); color:var(--white-paint); }
.btn-cherry:hover{ background:var(--cherry-800); transform:translateY(-2px); }
.btn-link{ background:none; border:0; padding:8px; min-height:0; color:var(--text-muted); font-weight:500; font-size:.9rem; }
.btn-link:hover{ color:var(--ink); }
.btn-sm{ min-height:36px; padding:8px 14px; font-size:.86rem; }
.btn[disabled], .btn.is-busy{ opacity:.6; pointer-events:none; }
.btn.is-busy::after{
  content:""; width:14px; height:14px; border-radius:50%;
  border:2px solid currentColor; border-right-color:transparent;
  animation:spin .7s linear infinite;
}
.link-btn{ background:none; border:0; padding:0; color:var(--blue); cursor:pointer; text-decoration:underline; text-underline-offset:3px; font-size:.88rem; justify-self:start; }
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes fadeIn{ from{ opacity:0; } }

/* ---------- Washi tape labels ---------- */
.tape{
  display:inline-block;
  padding:4px 12px 5px;
  font:600 .7rem/1.2 'IBM Plex Mono', monospace; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink);
  background:rgba(201,138,42,.55);
  transform:rotate(-3deg);
  clip-path:polygon(2% 8%, 98% 0, 100% 92%, 4% 100%, 0 50%);
}
.tape-cherry{ background:rgba(193,68,60,.32); }
.tape-blue{ background:rgba(58,76,166,.24); }
.tape-sage{ background:rgba(108,124,92,.34); }
.tape-ink{ background:var(--ink); color:var(--canvas); }

/* ---------- Product card (polaroid) ---------- */
.product-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); }
.product-card{ padding:12px 12px 16px; display:flex; flex-direction:column; }
.product-card .card-link, .card-link{ text-decoration:none; color:inherit; display:flex; flex-direction:column; height:100%; }
.card-link:focus-visible{ outline-offset:6px; }
.product-card .product-media{
  position:relative; aspect-ratio:4/5; border-radius:10px; overflow:hidden;
  background:var(--canvas-deep); margin-bottom:12px;
}
.product-card .product-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease-out), opacity .4s var(--ease-out); }
.product-card .product-media img + img{ position:absolute; inset:0; opacity:0; }
.product-card:hover .product-media img:first-child{ transform:scale(1.03); }
.product-card:hover .product-media img + img{ opacity:1; }
.product-card .tape{ position:absolute; top:10px; left:8px; z-index:2; }
.product-card h3{ font-size:1rem; }
.product-card .summary{ margin-top:4px; font-size:.84rem; color:var(--text-muted); line-height:1.5; flex:1; }
.product-meta{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; }
.price-stamp{ font:700 1.02rem/1 'Space Grotesk', sans-serif; }
.price-stamp s{ font-weight:500; font-size:.82rem; color:var(--text-faint); margin-left:6px; }
.quick-add{
  border:1.5px solid var(--ink); background:transparent; border-radius:999px;
  padding:7px 12px; font-size:.8rem; font-weight:600; cursor:pointer;
  transition:background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-fast);
}
.quick-add:hover{ background:var(--ink); color:var(--white-paint); }
.quick-add:active{ transform:scale(.95); }
.quick-add[disabled]{ opacity:.5; cursor:not-allowed; }
.is-soldout .product-media img{ filter:grayscale(.5) opacity(.8); }

/* Skeletons: faint pencil shimmer */
.skeleton-card, .skeleton-block, .skeleton-line{
  border-radius:var(--radius-sm);
  background:linear-gradient(100deg, rgba(251,248,241,.55) 30%, rgba(251,248,241,.95) 50%, rgba(251,248,241,.55) 70%) 0 0/300% 100%;
  animation:pencilShimmer 1.4s linear infinite;
}
.skeleton-card{ aspect-ratio:4/5.6; }
.skeleton-block{ min-height:360px; }
.skeleton-line{ height:14px; margin:10px 0; }
.skeleton-line.w60{ width:60%; height:28px; } .skeleton-line.w40{ width:40%; }
@keyframes pencilShimmer{ to{ background-position:-300% 0; } }

/* ---------- Chips ---------- */
.chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 14px; min-height:38px;
  border-radius:999px; border:1px solid var(--line-strong);
  background:rgba(251,248,241,.6); cursor:pointer;
  font-size:.86rem; font-weight:500;
  transition:background-color var(--dur-base) var(--ease-out), border-color var(--dur-base), color var(--dur-base), transform var(--dur-fast);
}
.chip:hover{ border-color:var(--ink); }
.chip:active{ transform:scale(.97); }
.chip.is-active, .chip[aria-pressed="true"]{ background:var(--ink); color:var(--white-paint); border-color:var(--ink); }
.chip .sw{ width:14px; height:14px; border-radius:50%; border:1px solid var(--line-strong); }

/* ---------- Forms ---------- */
.field label, .field-label{ font-size:.86rem; font-weight:600; color:var(--ink); }
.field-label{ display:block; margin-bottom:6px; }
.field{ position:relative; }
.field input, .field select, .field textarea,
.paper input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.paper select, .paper textarea{
  width:100%;
  border:1px solid var(--line-strong);
  background:rgba(251,248,241,.95);
  color:var(--ink);
  border-radius:12px;
  padding:12px 14px;
  min-height:46px;
  transition:border-color var(--dur-base), box-shadow var(--dur-base);
}
.field input:focus, .field select:focus, .field textarea:focus,
.paper input:focus, .paper select:focus, .paper textarea:focus{
  outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(58,76,166,.16);
}
.field [aria-invalid="true"], .paper [aria-invalid="true"]{ border-color:var(--cherry) !important; box-shadow:0 0 0 3px rgba(193,68,60,.12) !important; }
.field-error{ display:block; margin-top:6px; color:var(--cherry); font-size:.8rem; font-weight:500; }
.field-pair{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field-trio{ display:grid; grid-template-columns:1fr 1.2fr 1.2fr; gap:14px; }
.check{ display:flex; align-items:center; gap:10px; font-size:.92rem; cursor:pointer; }
.check input{ width:18px; height:18px; accent-color:var(--cherry); }
.select-wrap select{ border:1px solid var(--line-strong); background:var(--white-paint); border-radius:999px; padding:9px 34px 9px 14px; min-height:40px; }
.stack{ display:grid; gap:14px; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.helper-note{ font-size:.84rem; color:var(--text-muted); line-height:1.55; }
fieldset{ border:0; padding:0; margin:0; min-width:0; }

.paper{
  background:var(--white-paint);
  border:var(--border-soft);
  border-radius:var(--radius);
  box-shadow:var(--shadow-paper);
}
.pad{ padding:clamp(20px, 3vw, 32px); }

/* ---------- Toasts (sticky notes) ---------- */
.toast-stack{
  position:fixed; z-index:var(--z-toast); right:18px; bottom:18px;
  display:grid; gap:10px; width:min(360px, calc(100vw - 36px));
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  display:flex; gap:10px; align-items:flex-start;
  padding:14px 16px 15px;
  background:#fbf2c9; color:var(--ink);
  border-radius:4px 4px 16px 4px;
  box-shadow:0 14px 28px rgba(34,29,25,.16), inset 0 -2px 0 rgba(0,0,0,.04);
  font-size:.92rem; line-height:1.45;
  transform:rotate(-1deg);
  animation:toastIn .42s var(--ease-spring);
}
.toast::before{ content:""; flex:none; width:10px; height:10px; margin-top:5px; border-radius:40% 60% 55% 45%/45% 55% 45% 55%; background:var(--sage); }
.toast.is-error{ background:#f8ddd9; }
.toast.is-error::before{ background:var(--cherry); }
.toast.is-leaving{ animation:toastOut .3s var(--ease-out) forwards; }
@keyframes toastIn{ from{ opacity:0; transform:translateY(14px) rotate(2deg) scale(.96); } }
@keyframes toastOut{ to{ opacity:0; transform:translateY(8px) rotate(-2deg); } }

/* ---------- Page hero / headings ---------- */
.page-hero{ padding:72px 0 40px; max-width:760px; }
.page-hero h1{ font-size:var(--fs-h1); line-height:1.05; }
.page-hero .sub{ margin-top:16px; font-size:1.08rem; line-height:1.7; color:var(--ink-soft); max-width:60ch; }
.page-hero-tight{ padding:56px 0 28px; }
.sec-head-row{ max-width:none; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.sec-head-row > div{ max-width:640px; }
.breadcrumbs{ display:flex; gap:8px; flex-wrap:wrap; padding:28px 0 0; font-size:.84rem; color:var(--text-muted); }
.breadcrumbs a{ color:var(--text-muted); }
.narrow{ max-width:860px; }

/* ---------- Tabs ---------- */
.tabs{ display:flex; gap:4px; padding:4px; border-radius:999px; background:var(--canvas-deep); width:max-content; max-width:100%; }
.tab{ border:0; background:none; padding:9px 16px; border-radius:999px; cursor:pointer; font-weight:600; font-size:.9rem; color:var(--ink-soft); }
.tab.is-active{ background:var(--white-paint); color:var(--ink); box-shadow:0 2px 6px rgba(34,29,25,.08); }

/* ---------- Timeline (thread between pins) ---------- */
.thread{ list-style:none; margin:0; padding:0; display:grid; gap:0; position:relative; }
.thread li{ position:relative; display:grid; grid-template-columns:28px 1fr; gap:14px; padding:0 0 22px; }
.thread li::before{
  content:""; position:absolute; left:13px; top:20px; bottom:-2px; width:2px;
  background:repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 10px);
}
.thread li:last-child::before{ display:none; }
.thread li.is-done::before{ background:repeating-linear-gradient(180deg, var(--cherry) 0 5px, transparent 5px 10px); animation:threadDraw .8s var(--ease-out) both; }
.thread .pinpoint{
  position:relative; z-index:1; width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--white-paint); border:2px solid var(--line-strong);
  font:700 .7rem/1 'IBM Plex Mono', monospace; color:var(--text-faint);
}
.thread li.is-done .pinpoint{ background:var(--cherry); border-color:var(--cherry); color:var(--white-paint); }
.thread li.is-current .pinpoint{ background:var(--ink); border-color:var(--ink); color:var(--white-paint); box-shadow:0 0 0 6px rgba(193,68,60,.16); animation:pinPulse 2.2s ease-in-out infinite; }
.thread strong{ display:block; font-family:'Space Grotesk', sans-serif; font-size:1rem; }
.thread p{ color:var(--text-muted); font-size:.88rem; margin-top:2px; }
.thread time{ font:500 .72rem/1 'IBM Plex Mono', monospace; color:var(--text-faint); letter-spacing:.04em; }
.thread li.is-upcoming strong{ color:var(--text-faint); }
@keyframes threadDraw{ from{ clip-path:inset(0 0 100% 0); } to{ clip-path:inset(0); } }
@keyframes pinPulse{ 50%{ box-shadow:0 0 0 10px rgba(193,68,60,.06); } }

.status-chip.is-paid{ background:rgba(108,124,92,.16); color:var(--sage-800); }
.status-chip.is-due{ background:rgba(201,138,42,.18); color:var(--ochre-800); }
.status-chip.is-cancel{ background:rgba(193,68,60,.14); color:var(--cherry-800); }

/* ---------- Accordion ---------- */
.faq-list{ display:grid; gap:10px; }
.faq-item{ background:var(--white-paint); border:var(--border-soft); border-radius:var(--radius-sm); overflow:hidden; }
.faq-item summary{
  list-style:none; cursor:pointer; padding:18px 52px 18px 20px; position:relative;
  font:600 1.02rem/1.4 'Space Grotesk', sans-serif;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; position:absolute; right:18px; top:50%; translate:0 -50%;
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  background:var(--canvas-deep); font:500 1.1rem/1 'Inter', sans-serif;
  transition:rotate var(--dur-base) var(--ease-out), background-color var(--dur-base);
}
.faq-item[open] summary::after{ rotate:45deg; background:var(--cherry); color:var(--white-paint); }
.faq-item .answer{ padding:0 20px 18px; color:var(--text-muted); line-height:1.7; }

/* ---------- Modal ---------- */
.modal-backdrop{
  position:fixed; inset:0; z-index:var(--z-modal);
  display:grid; place-items:center; padding:20px;
  background:rgba(34,29,25,.42); backdrop-filter:blur(8px);
  animation:fadeIn var(--dur-base);
}
.modal{ width:min(760px, 100%); max-height:92vh; overflow:auto; padding:24px; animation:modalIn .36s var(--ease-out); }
.modal-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
@keyframes modalIn{ from{ opacity:0; transform:translateY(16px) scale(.98); } }

/* ---------- Paint splat (add-to-cart) ---------- */
.splat{ border-radius:45% 55% 50% 50%/55% 45% 55% 45%; }

/* ---------- Instagram band + footer ---------- */
/* ---------- Instagram band: a little pinboard of work in progress ---------- */
.ig-band{ position:relative; overflow:hidden; padding:clamp(56px, 7vw, 88px) 0; background:var(--canvas-deep); border-top:1px dashed var(--line-strong); }
.ig-band::before{ content:""; position:absolute; width:520px; height:420px; right:-120px; top:-120px; border-radius:46% 54% 60% 40%/50% 40% 60% 50%; background:var(--ochre-100); opacity:.45; pointer-events:none; }
.ig-band::after{ content:""; position:absolute; width:300px; height:240px; left:-110px; bottom:-140px; border-radius:58% 42% 40% 60%/50% 60% 40% 50%; background:var(--cherry-100); opacity:.35; pointer-events:none; }
.ig-band-inner{ position:relative; z-index:1; display:grid; grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr); align-items:center; gap:clamp(28px, 5vw, 64px); }
.ig-copy .eyebrow{ margin-bottom:14px; background:var(--canvas); }
.ig-band h2{ font-size:clamp(1.8rem, 3.4vw, 2.7rem); line-height:1.05; letter-spacing:-.02em; }
.ig-script{ font-family:'Caveat', cursive; font-weight:700; font-size:1.18em; color:var(--cherry); letter-spacing:0; white-space:nowrap; }
.ig-copy p{ margin:14px 0 24px; max-width:40ch; color:var(--ink-soft); line-height:1.65; }
.ig-follow{ display:inline-flex; align-items:center; gap:10px; }
.ig-board{ display:flex; justify-content:center; padding:18px 0 8px; text-decoration:none; color:var(--ink); }
.ig-polaroid{
  position:relative; margin:0 -10px; width:clamp(118px, 13vw, 168px); padding:8px 8px 0; background:#fff;
  border-radius:3px; box-shadow:0 1px 1px rgba(34,29,25,.06), 0 14px 30px -12px rgba(34,29,25,.35);
  transform:translateY(var(--y, 0)) rotate(var(--r, 0deg));
  transition:transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ig-polaroid img{ display:block; width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:1px; }
.ig-polaroid figcaption{ font:700 1.05rem/1 'Caveat', cursive; color:var(--ink-soft); text-align:center; padding:9px 0 11px; }
.ig-polaroid .tape{ position:absolute; top:-9px; left:50%; width:54px; height:18px; padding:0; transform:translateX(-50%) rotate(-4deg); opacity:.85; }
.ig-board:hover .ig-polaroid{ transform:translateY(calc(var(--y, 0) - 6px)) rotate(calc(var(--r, 0deg) * .5)); box-shadow:0 1px 1px rgba(34,29,25,.06), 0 22px 40px -14px rgba(34,29,25,.4); }
.ig-board:hover .ig-polaroid:nth-child(2){ transition-delay:.04s; }
.ig-board:hover .ig-polaroid:nth-child(3){ transition-delay:.08s; }
.ig-board:focus-visible{ outline:2px solid var(--focus); outline-offset:6px; border-radius:12px; }
@media (max-width:760px){
  .ig-band-inner{ grid-template-columns:1fr; }
  .ig-board{ order:-1; padding-top:4px; }
  .ig-polaroid{ width:clamp(100px, 30vw, 140px); margin:0 -8px; }
}
/* Footer: the bottom of the bag. Stitched hem on top, a sewn-in label, painted hills along the hem. */
.site-footer{ text-align:left; padding:62px 0 0; background:#ECE4D2 url("/assets/textures/canvas.webp") 0 0 / 240px; position:relative; z-index:1; overflow:hidden; }
.site-footer::before{ content:""; position:absolute; top:0; left:0; right:0; height:18px; background:linear-gradient(#DFD4BE, #E7DECB); border-bottom:1px solid #D2C5AB; box-shadow:0 1px 0 rgba(255,255,255,.4); }
.site-footer::after{ content:""; position:absolute; top:12px; left:0; right:0; height:1.4px; background:repeating-linear-gradient(90deg, #BFB194 0 7px, transparent 7px 12px); }
.footer-brand{ position:relative; align-self:start; padding:22px 22px 20px; background:var(--paper, #FBF8F1); border-radius:6px; transform:rotate(-.8deg); box-shadow:0 1px 0 rgba(34,29,25,.05), 0 10px 24px -16px rgba(59,47,34,.4); }
.footer-brand::before{ content:""; position:absolute; inset:6px; border:1.2px dashed #CDBFA4; border-radius:3px; pointer-events:none; }
.footer-grid h3{ display:flex; align-items:center; gap:8px; }
.footer-grid h3::before{ content:""; width:9px; height:9px; border-radius:40% 60% 55% 45%/45% 55% 45% 55%; background:var(--blue); }
.footer-grid > div:nth-child(3) h3::before{ background:var(--cherry); }
.footer-grid > div:nth-child(4) h3::before{ background:var(--ochre); }
.footer-base{ border-top-style:dashed; }
.footer-paint{ position:relative; margin-top:30px; height:130px; }
.footer-paint svg{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; }
.footer-grid h3{ font:500 .76rem/1.2 'IBM Plex Mono', monospace; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); margin-bottom:14px; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.footer-grid a{ text-decoration:none; color:var(--ink); font-size:.94rem; }
.footer-grid a:hover{ color:var(--cherry); }
.footer-brand p{ margin:12px 0 20px; color:var(--ink-soft); max-width:34ch; font-size:.94rem; }
.newsletter label{ display:block; font:600 .9rem/1.3 'Space Grotesk', sans-serif; margin-bottom:8px; }
.newsletter-row{ display:flex; gap:8px; max-width:380px; }
.newsletter input{ flex:1; min-width:0; border:1px solid var(--line-strong); background:var(--white-paint); border-radius:999px; padding:10px 16px; }
.newsletter .btn{ min-height:44px; padding:10px 18px; }
.newsletter small{ display:block; margin-top:8px; color:var(--text-muted); font-size:.78rem; }
.footer-base{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-top:44px; padding-top:22px; border-top:1px dashed var(--line-strong); font-size:.82rem; color:var(--ink-soft); }
.footer-legal{ display:flex; gap:16px; }
.footer-legal a{ color:var(--ink-soft); }
.studio-credit{ position:absolute; left:0; right:0; bottom:20px; margin:0; text-align:center; font:500 .62rem/1 'IBM Plex Mono', monospace; letter-spacing:.18em; text-transform:uppercase; color:rgba(251,248,241,.62); }
.studio-credit a{ color:rgba(251,248,241,.95); text-decoration:none; border-bottom:1px solid transparent; transition:border-color .2s, color .2s; }
.studio-credit a:hover{ color:#fff; border-bottom-color:rgba(251,248,241,.7); }
.studio-credit a:focus-visible{ outline:2px solid var(--white-paint); outline-offset:3px; border-radius:2px; }

/* ---------- Cross-sell banner ---------- */
.cross-sell{
  margin:56px 0 24px; padding:32px clamp(20px, 4vw, 44px);
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  border-radius:var(--radius-lg); background:var(--ink); color:var(--canvas);
}
.cross-sell h2{ color:var(--white-paint); font-size:clamp(1.4rem, 2.4vw, 1.9rem); margin-top:6px; }
.cross-sell p{ color:rgba(251,248,241,.7); margin-top:6px; }
.cross-sell .eyebrow{ background:rgba(251,248,241,.1); color:var(--canvas); margin:0; }
.cross-sell .btn-primary{ background:var(--cherry); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px){
  .navlinks{ gap:18px; font-size:.9rem; }
  .icon-btn-label{ display:none; }
  .product-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media (max-width: 960px){
  .navlinks{ display:none; }
  .menu-btn{ display:inline-flex; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width: 860px){
  .product-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .site-header .nav-cta{ display:none; }
  .site-header nav{ padding:12px 16px; }
  .wrap{ padding:0 16px; }
  .product-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
  .product-card{ padding:8px 8px 12px; }
  .product-card .summary{ display:none; }
  .product-meta{ flex-direction:column; align-items:flex-start; gap:8px; }
  .quick-add{ width:100%; }
  .field-pair, .field-trio{ grid-template-columns:1fr; }
  .page-hero{ padding:44px 0 24px; }
  .toast-stack{ right:12px; left:12px; bottom:12px; width:auto; }
  .footer-grid{ gap:24px; }
  .footer-base{ flex-direction:column; align-items:flex-start; }
  /* studio.css makes every .btn full-width on phones; keep that for main CTAs only. */
  .chip-row .btn, .newsletter .btn, .btn-sm, .qty button{ width:auto; }
}
@media (prefers-reduced-motion: reduce){
  .sheet, .site-header{ transition:none !important; }
}
