/* Bold and Stitch: the hero stage and everything WooCommerce renders. main.css carries the shared design. */

/* ---------------------------------------------------------------- hero stage */
.home .site-header:not(.is-solid) { color: var(--stage-ink, #14110f); }
.home .site-header:not(.is-solid) .logo small { color: inherit; opacity: 0.7; }
.site-header { transition: background 0.4s, box-shadow 0.4s, color 0.6s; }

.stage {
  --px: 0; --py: 0;
  position: relative; isolation: isolate; overflow: hidden; touch-action: pan-y;
  margin-top: -76px; height: calc(100svh - 38px); min-height: 680px; max-height: 1080px;
  color: var(--stage-ink);
  background: radial-gradient(70% 70% at 50% 46%, var(--bg), var(--deep));
  transition: color 0.7s;
}
.stage-wash { position: absolute; inset: 0; z-index: 0; clip-path: circle(0 at 50% 48%); }
.is-changing .stage-wash { clip-path: circle(120% at 50% 48%); transition: clip-path 1s cubic-bezier(0.7, 0, 0.2, 1); }

.stage-word {
  position: absolute; z-index: 1; left: 0; right: 0; top: 50%; text-align: center; pointer-events: none; user-select: none;
  transform: translate3d(calc(var(--px) * -36px), calc(-50% + var(--py) * -22px), 0);
}
.stage-word > span {
  display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 0.8; white-space: nowrap;
  letter-spacing: -0.04em; font-size: clamp(120px, 30vw, 620px); color: var(--wordc); transition: color 0.8s;
}
.stage-word > span[data-len="7"] { font-size: clamp(100px, 24.5vw, 500px); }
.stage-word > span[data-len="4"], .stage-word > span[data-len="3"] { font-size: clamp(140px, 38vw, 720px); }
.stage-word span span { display: inline-block; animation: word-up 1.1s var(--ease) both; animation-delay: calc(var(--i) * 34ms); }
@keyframes word-up { from { transform: translateY(46%) rotate(5deg); opacity: 0; } }

.stage-figure {
  position: absolute; z-index: 2; inset: 92px 0 92px; pointer-events: none; perspective: 1200px;
}
.stage-figure img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-height: 100%; max-width: 46vw; object-fit: contain;
  filter: drop-shadow(0 46px 44px rgba(0, 0, 0, 0.34));
  transform: rotateY(calc(var(--px) * 9deg)) rotateX(calc(var(--py) * -6deg)) translate3d(calc(var(--px) * 16px), calc(var(--py) * 12px), 0);
  animation: figure-float 7s ease-in-out infinite alternate;
}
@keyframes figure-float { to { translate: 0 -10px; } }
.stage-figure img.is-out { animation: figure-out 0.75s cubic-bezier(0.6, 0, 0.8, 0.3) both; }
.stage-figure img.is-in { animation: figure-in 1s var(--ease) 0.16s both; }
@keyframes figure-out { to { transform: translateX(-34%) rotate(-11deg) scale(0.92); opacity: 0; } }
@keyframes figure-in { from { transform: translateX(38%) rotate(10deg) scale(0.9); opacity: 0; } }
[data-dir="prev"] .stage-figure img.is-out { animation-name: figure-out-r; }
[data-dir="prev"] .stage-figure img.is-in { animation-name: figure-in-r; }
@keyframes figure-out-r { to { transform: translateX(34%) rotate(11deg) scale(0.92); opacity: 0; } }
@keyframes figure-in-r { from { transform: translateX(-38%) rotate(-10deg) scale(0.9); opacity: 0; } }

.stage-copy { position: absolute; z-index: 3; left: var(--pad); bottom: 58px; max-width: 34vw; }
.stage-copy .eyebrow { opacity: 0.75; }
.stage-copy h1 { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.7vw, 88px); line-height: 0.98; letter-spacing: -0.02em; }
.stage-copy h1 em { font-style: italic; }
.stage-all { display: inline-flex; gap: 10px; margin-top: 22px; padding-bottom: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.stage-all .arrow { transition: transform 0.4s var(--ease); }
.stage-all:hover .arrow { transform: translateX(5px); }

.stage-piece {
  position: absolute; z-index: 3; right: var(--pad); bottom: 58px; width: min(330px, 26vw); padding: 20px 22px 22px;
  border-radius: 22px; background: rgba(247, 244, 239, 0.95); color: var(--ink);
  box-shadow: 0 34px 60px -32px rgba(0, 0, 0, 0.55);
}
.stage-count { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.stage-title { display: block; margin-top: 8px; font-family: var(--serif); font-size: 29px; font-weight: 600; line-height: 1.04; }
.stage-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.stage-size { padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; }
.stage-price { margin-top: 12px; font-size: 22px; font-weight: 700; }
.stage-price s { font-size: 15px; font-weight: 400; color: var(--muted); margin-right: 4px; }
.stage-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.stage-buy, .stage-view { display: grid; place-items: center; padding: 13px 18px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.stage-buy { background: var(--ink); color: var(--paper); }
.stage-buy:hover { background: var(--cognac); }
.stage-buy.loading { opacity: 0.6; }
.stage-buy.added::after, .stage-piece .added_to_cart { display: none; }
.stage-view { border: 1px solid var(--line); }
.stage-view:hover { border-color: var(--ink); }

.stage-rail { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(247, 244, 239, 0.2); backdrop-filter: blur(12px); }
.stage-pick { position: relative; display: grid; place-items: center; width: 54px; height: 58px; padding: 5px; border-radius: 11px; overflow: hidden; background: var(--dot); opacity: 0.72; transition: opacity 0.3s, transform 0.4s var(--ease); }
.stage-pick img { height: 100%; width: auto; object-fit: contain; }
.stage-pick:hover { opacity: 1; transform: translateY(-3px); }
.stage-pick.on { opacity: 1; }
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.92); transform: scaleX(0); transform-origin: left; }
.stage.is-timing .stage-pick.on .stage-progress { animation: stage-bar 6.5s linear both; }
.stage-pick.on .stage-progress { transform: scaleX(1); }
@keyframes stage-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1080px) {
  .stage-copy { max-width: 40vw; }
  .stage-piece { width: 280px; }
  .stage-title { font-size: 25px; }
}
@media (max-width: 860px) {
  .stage { height: auto; min-height: calc(100svh - 38px); max-height: none; display: flex; flex-direction: column; padding: 86px 0 14px; }
  .stage-copy { position: relative; left: 0; bottom: auto; order: 1; max-width: none; padding: 0 var(--pad); }
  .stage-copy .eyebrow { display: none; }
  .stage-copy h1 { margin: 0; font-size: clamp(30px, 8.6vw, 52px); line-height: 1.04; }
  .stage-copy h1 br { display: none; }
  .stage-all { display: none; }
  .stage-word { top: 37%; }
  .stage-figure { position: relative; inset: auto; order: 2; flex: 1; min-height: 280px; margin: 8px 0 4px; }
  .stage-figure img { max-width: 86vw; }
  .stage-rail { position: relative; left: auto; bottom: auto; transform: none; order: 3; align-self: center; max-width: calc(100vw - 2 * var(--pad)); margin: 0 0 10px; }
  .stage-pick { width: 44px; height: 46px; padding: 4px; }
  .stage-piece { position: relative; right: auto; bottom: auto; order: 4; width: auto; margin: 0 var(--pad); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
  .stage-count, .stage-left { display: none; }
  .stage-title { grid-column: 1; margin: 0; font-size: 20px; }
  .stage-meta { grid-column: 1; margin-top: 5px; }
  .stage-price { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 18px; text-align: right; }
  .stage-price s { display: block; margin: 0; font-size: 12px; }
  .stage-price s:empty { display: none; }
  .stage-actions { grid-column: 1 / -1; margin-top: 10px; }
}

@media (max-width: 860px) {
  .logo { font-size: 19px; letter-spacing: 0.08em; white-space: nowrap; }
  .logo small { font-size: 7.5px; letter-spacing: 0.4em; }
  .nav-icons { gap: 0; }
  .nav-icons .icon-btn { width: 36px; }
}

/* ---------------------------------------------------------------- shared additions */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--cognac); outline-offset: 2px; }
.sec-side { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.foot-line { margin-top: 18px; max-width: 300px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(239, 233, 223, 0.28); border-radius: 999px; color: var(--bone); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.foot-social a:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.foot-social svg { width: 19px; height: 19px; }
.letter-line { margin-top: 18px; color: rgba(239, 233, 223, 0.6); }
.letter-done { font-size: 30px; padding: 26px 0 6px; }
.search-bar { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); box-shadow: 0 1px 0 var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease); color: var(--ink); }
.search-open .search-bar { opacity: 1; transform: none; pointer-events: auto; }
.search-bar .wrap { display: flex; gap: 12px; padding-block: 12px; }
.search-bar input[type="search"] { flex: 1; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; outline: none; }
.search-bar button { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* cards: WooCommerce price markup */
.card .quick { text-align: center; }
.card .added_to_cart { display: none; }
.card .quick.loading { opacity: 0.6; }
.card-price del, .pdp-info .price del { color: var(--muted); font-weight: 400; margin-right: 8px; text-decoration: line-through; }
.card-price ins, .pdp-info .price ins { text-decoration: none; }
.card-price .woocommerce-Price-amount, .pdp-info .price .woocommerce-Price-amount { white-space: nowrap; }
.card.is-sold .card-media img { opacity: 0.45; }
.card-media img { height: 100%; }

.oneofone-media img, .cat img { mix-blend-mode: normal; }
.oneofone-media img { filter: drop-shadow(0 24px 24px rgba(20, 17, 15, 0.25)); }
.cat img { filter: drop-shadow(0 18px 18px rgba(20, 17, 15, 0.22)); height: 74%; top: -8%; }
.cat-photo img { inset: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.cat-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20, 17, 15, 0.55)); }
.cat-photo { color: var(--paper); }
.cat-photo .go { color: var(--ink); }

.is-studio .card-media img, .is-studio .pdp-main img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.is-studio .thumb img { object-fit: cover; mix-blend-mode: normal; }
.is-studio.card:hover .card-media img { transform: scale(1.03); }

/* shop */
.shop { align-items: start; }
.opt-link { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.opt-link:hover, .opt-link.on { color: var(--ink); }
.opt-link.on { font-weight: 700; }
.opt-link em { font-style: normal; font-size: 12px; color: var(--muted); }
.size-links { display: flex; flex-wrap: wrap; gap: 6px; }
.size-links a { min-width: 44px; padding: 7px 10px; text-align: center; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; }
.size-links a.on, .size-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.toolbar .woocommerce-result-count { margin: 0; }
.toolbar .woocommerce-ordering { margin: 0; }
.toolbar select.orderby { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 10px 16px; outline: none; }
.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; gap: 6px; height: auto; min-width: 0; border: 0; list-style: none; }
.woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.woocommerce-pagination .current { background: var(--ink); color: var(--paper); }

/* product page */
.page-head-tight { padding-bottom: 8px; }
.pdp-main img { display: block; }
.thumb { padding: 0; }
.pdp-info .price { flex-wrap: wrap; }
.pdp-info .acc .body ul { margin: 10px 0 0 18px; }
.pdp-info .acc .body a { text-decoration: underline; text-underline-offset: 3px; }
.pdp-buy { margin-top: 24px; }
.pdp-buy form.cart { display: grid; gap: 14px; }
.pdp-buy .quantity { display: none; }
.pdp-buy .single_add_to_cart_button { width: 100%; padding: 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; transition: background 0.3s; }
.pdp-buy .single_add_to_cart_button:hover { background: var(--cognac); }
.pdp-buy .single_add_to_cart_button.loading { opacity: 0.6; }
.pdp-buy .single_add_to_cart_button.disabled { opacity: 0.35; cursor: not-allowed; }
.pdp-buy table.variations { width: 100%; border-collapse: collapse; }
.pdp-buy table.variations th, .pdp-buy table.variations td { display: block; padding: 0; text-align: left; }
.pdp-buy table.variations label, .bns-field label { display: block; margin: 8px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.pdp-buy select, .bns-field input, .bns-field select, .bns-field textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; outline: none; }
.pdp-buy .reset_variations { font-size: 12px; color: var(--muted); }
.pdp-buy .woocommerce-variation-price { font-size: 22px; font-weight: 700; }
.pdp-buy .stock { font-size: 13px; color: var(--muted); }
.pdp-buy .stock.in-stock { display: none; }
.pdp-error { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: #f6e3de; color: #7c2b1b; font-size: 14px; }
.sold-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.sold-note a { text-decoration: underline; }
.pdp-related { padding-bottom: 120px; }
.pdp-related .sec-head h2 { font-size: clamp(40px, 5vw, 72px); }

/* bag */
.bag-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cart-lines { flex: 1; overflow-y: auto; padding: 18px 26px; list-style: none; }
.cart-foot { padding: 22px 26px; border-top: 1px solid var(--line); }
.cart-foot .btn { width: 100%; justify-content: center; padding: 19px; }
.cart-foot small { display: block; text-align: center; margin-top: 10px; color: var(--muted); }
.cart-meta { font-size: 12px; }
.cart-thumb img { height: 100%; }
.cart-empty { padding-inline: 26px; }

.bag-loading .bag-body { opacity: 0.45; pointer-events: none; transition: opacity 0.2s; }

.note svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--cognac); margin-top: 2px; }

/* pages */
.page-body { padding-top: 48px; padding-bottom: 110px; }
.page-title { font-size: clamp(44px, 6vw, 92px); }
.page-prose .entry { max-width: 720px; margin-top: 34px; }
.page-prose .entry h2 { margin: 34px 0 10px; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; }
.page-prose .entry h3 { margin: 22px 0 6px; font-size: 15px; }
.page-prose .entry p, .page-prose .entry ul, .page-prose .entry table { margin-bottom: 14px; }
.page-prose .entry ul { padding-left: 20px; }
.page-prose .entry a { color: var(--cognac); text-decoration: underline; }
.page-prose .entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-prose .entry th, .page-prose .entry td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.page-prose .entry mark { padding: 1px 5px; border-radius: 4px; background: #f6d98b; color: var(--ink); }
.page-404 { text-align: center; min-height: 55vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.page-store .page-title { font-size: clamp(38px, 5vw, 70px); margin-bottom: 26px; }

/* WooCommerce blocks: cart and checkout */
.page-store .wc-block-components-button:not(.is-link), .page-store .wc-block-cart__submit-button, .page-store .wc-block-components-checkout-place-order-button { background: var(--ink) !important; color: var(--paper) !important; border-radius: 999px !important; border: 0 !important; font-weight: 700; letter-spacing: 0.08em; }
.page-store .wc-block-components-button:not(.is-link):hover { background: var(--cognac) !important; }
.page-store .wc-block-components-text-input input, .page-store .wc-block-components-combobox input, .page-store .wc-block-components-country-input input { border-radius: 12px !important; }
.page-store .wc-block-components-sidebar { background: var(--bone); padding: 22px !important; border-radius: 20px; }
.woocommerce-form-login input, .woocommerce-form-register input, .woocommerce-MyAccount-content input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: #fff; }
.woocommerce-form-login .button, .woocommerce-form-register .button, .woocommerce-MyAccount-content .button { width: auto; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.woocommerce-MyAccount-navigation a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: var(--bone); list-style: none; }

/* order summary and confirmation */
.wc-block-components-product-metadata__description { display: none; }
.wc-block-components-order-summary-item__total-price { font-weight: 600; }
.page-store .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block { border: 0; }
.woocommerce-order { max-width: 760px; }
.woocommerce-thankyou-order-received { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin-bottom: 22px; }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; list-style: none; margin-bottom: 30px; }
.woocommerce-order-overview li { padding: 14px 16px; border-radius: 14px; background: var(--bone); font-size: 12px; color: var(--muted); }
.woocommerce-order-overview strong { display: block; margin-top: 2px; font-size: 15px; color: var(--ink); }
.woocommerce-order-details__title, .woocommerce-column__title { margin: 26px 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wc-item-meta { list-style: none; margin-top: 6px; font-size: 13px; color: var(--muted); }
.wc-item-meta li, .wc-item-meta p { display: inline; }
.wc-item-meta li { display: block; }
.wc-item-meta strong { font-weight: 600; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

@media (max-width: 860px) {
  .pdp-buy .single_add_to_cart_button { padding: 18px; }
  .woocommerce-columns--addresses { grid-template-columns: 1fr; }
}
