/* ================================================================
   Elisa Ochoa — child theme styles
   Ported from the "Artist Shop" design study (Claude Design handoff):
   a max-minimal painting gallery — pure white / near-black, Cormorant
   Garamond display + Spectral body, with a signature framed-artwork
   treatment (thin frame + paper mat + soft wall shadow).

   The hand-built sections (hero, selected work, series band, about,
   footer) use the design's own class vocabulary so the seed markup is
   a faithful copy. The WooCommerce / Elementor blocks below re-map that
   same visual language onto Woo's real product / cart / checkout markup.
   Internal `.cm-` / `clara_` prefixes are retained for continuity.
   ================================================================ */

:root {
  --ink:        #1a1a1a;
  --bg:         #ffffff;
  --accent:     #1a1a1a;
  --muted:      #8b857a;
  --line:       rgba(26, 26, 26, .13);
  --line-soft:  rgba(26, 26, 26, .07);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Spectral", ui-serif, Georgia, serif;
  --label: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap:  1280px;
  --pad-x: 48px;
}

/* --- Global base ------------------------------------------------ */
* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 134px; /* keep in-page anchors clear of the sticky header */
}
html, body { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
::selection { background: #ece4d6; color: var(--ink); }

a { color: inherit; text-decoration: none; }
/* body a beats .elementor-widget a and similar framework specificity */
body a,
body a:hover,
body a:focus,
body a:visited { text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
em { font-style: italic; }
.muted { color: var(--muted); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}
h1 em, h2 em, h3 em, h4 em { font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}

/* --- Micro labels ----------------------------------------------- */
.eyebrow,
.footer-label,
.field__label,
.eyebrow-line .eyebrow {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { margin-bottom: 20px; display: inline-block; }

/* --- Buttons ---------------------------------------------------- */
.btn {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
  padding: 16px 34px;
  transition: .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { opacity: .85; }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--text { padding: 15px 0; position: relative; }
.btn--text::after {
  content: "";
  position: absolute;
  left: 0; bottom: 10px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: .3s;
  opacity: 0;
}
.btn--text:hover::after { transform: scaleX(1); opacity: 1; }
.btn--block { width: 100%; }

/* Interaction + accessibility states — resting look is unchanged */
.btn--solid:active { opacity: .75; }
.btn--ghost:active { background: var(--ink); color: var(--bg); }
.btn:focus-visible,
.news-btn:focus-visible,
.nav-link:focus-visible,
.cm-top .nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .4;
  cursor: not-allowed;
}
.btn--solid:disabled:hover,
.btn[aria-disabled="true"]:hover { opacity: .4; }

/* Underline-on-hover — swept from left, hidden at rest */
.u-hover { display: inline-block; position: relative; padding-bottom: 2px; }
.u-hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s;
}
.u-hover:hover::after { transform: scaleX(1); opacity: 1; }

/* =================================================================
   FRAMED ARTWORK — the signature treatment.
   Applied to bespoke markup (.art-frame) and re-used on Woo images.
   ================================================================= */
.art-frame {
  position: relative;
  background: #fcfbf8;
  border: 1px solid rgba(26, 26, 26, .14);
  box-shadow:
    0 36px 64px -34px rgba(20, 18, 14, .45),
    0 6px 16px -8px rgba(20, 18, 14, .12);
}
.art-frame__mat {
  position: absolute;
  inset: 0;
  padding: 6.5%;
  background: linear-gradient(150deg, #fdfcf9, #f4f0e7);
}
.art-frame__canvas {
  position: relative;
  width: 100%; height: 100%;
  box-shadow:
    0 0 0 1px rgba(26, 26, 26, .14),
    0 8px 20px -12px rgba(20, 18, 14, .4);
  overflow: hidden;
}
.art-frame__canvas img,
.art-frame__canvas canvas { width: 100%; height: 100%; object-fit: cover; }

/* Unframed variant (cart thumbs, portrait) */
.art-bare {
  position: relative;
  box-shadow: 0 0 0 1px rgba(26, 26, 26, .08), 0 24px 50px -34px rgba(20, 18, 14, .4);
  overflow: hidden;
}
.art-bare img { width: 100%; height: 100%; object-fit: cover; }

/* =================================================================
   SITE HEADER — Hello Elementor chrome restyled to the wordmark look
   ================================================================= */
.site-header,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner,
.site-header .container,
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header .site-title,
.site-title, h1.site-title, div.site-title { line-height: 1; }
.site-header .site-title a,
.site-title a {
  font-family: var(--label) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  letter-spacing: .26em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
}
.site-description,
p.site-description {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

/* Custom header wordmark (Elementor / HTML widget) */
.cm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Minimum middle gap; space-between supplies the rest on wide screens. */
  gap: clamp(28px, 4vw, 120px);
  min-height: 116px;
  /* Fill the header bar and use the SAME --pad-x as .wrap / .cm-home-hero so
     the wordmark's left edge and the nav's right edge line up exactly with the
     page content below. width:100% stops this flex row from shrink-wrapping to
     its content — that shrink-wrap had collapsed the space-between gap and
     pulled the wordmark/nav inward, leaving the header narrower than the body. */
  width: 100%;
  max-width: none;
  padding: 18px var(--pad-x);
  margin: 0 auto;
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--label);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark__sub {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}
.cm-top .nav,
.site-nav { display: flex; align-items: center; gap: 44px; }
.nav-link, .cm-top .nav a {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .78;
  transition: .2s;
}
.nav-link:hover, .cm-top .nav a:hover { opacity: 1; }
.cart-count { font-size: 10px; margin-left: 2px; color: var(--accent); }

/* Mobile nav toggle — hidden on desktop/tablet; revealed at <=560px (see below).
   The hamburger is a label tied to a hidden checkbox, so the menu opens with no JS. */
.cm-nav-toggle { display: none; }
.cm-burger { display: none; }
.cm-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

/* EN / PT switcher — sits inline at the end of the header nav (rendered by
   clara_lang_switcher_html). Only present when WPML is active + bilingual. */
.cm-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 22px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}
.cm-lang__item {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.cm-lang__item:hover,
.cm-lang__item.is-active { color: var(--ink); }
.cm-lang__sep { color: var(--line); }

/* --- 404 ---------------------------------------------------------- */
.cm-404 {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 120px var(--pad-x) 140px;
  text-align: center;
}
.cm-404__code {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.cm-404__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
}
.cm-404__lead {
  max-width: 46ch;
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.6;
}
.cm-404__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =================================================================
   HOME — hero, selected work, series band
   ================================================================= */
.cm-home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 90px var(--pad-x) 100px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.cm-home-hero .text { display: flex; flex-direction: column; }
.cm-home-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 28px;
}
.cm-home-hero .tagline {
  font-family: var(--serif);
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.5;
  color: #403c34;
  max-width: 30em;
  margin: 0 0 36px;
}
.cm-home-hero .hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cm-home-hero .painting-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cm-home-hero .painting-holder .art-frame {
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  width: 100%;
  max-width: 460px;
}
.cm-home-hero a.painting-holder:hover .art-frame { transform: translateY(-6px); }
.hero__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 13px;
}

.cm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 auto 46px;
  border-bottom: 1px solid var(--line);
  padding: 60px var(--pad-x) 18px;
  max-width: var(--wrap);
}
.cm-section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
}

.cm-series-band {
  padding: 80px var(--pad-x) 30px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.cm-series-band .text { max-width: 760px; margin: 0 auto; text-align: center; }
.cm-series-band .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.4;
  color: #2c2924;
  margin: 14px 0 26px;
}

/* =================================================================
   ABOUT
   ================================================================= */
.cm-about {
  padding: 64px var(--pad-x) 40px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.cm-about .about__hero {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 100px;
}
.cm-about .portrait { position: relative; aspect-ratio: 4/5; }
.cm-about h3, .cm-about .about__head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  margin: 0 0 28px;
  letter-spacing: -.01em;
}
.cm-about .about__lede {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.5;
  color: #332f29;
  margin: 0 0 26px;
}
.cm-about p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 34em;
}
.cm-about .exh-list {
  list-style: none;
  margin: 36px 0 90px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cm-about .exh-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1.6fr 90px;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cm-about .exh-year { font-family: var(--label); font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.cm-about .exh-title { font-family: var(--serif); font-size: 20px; }
.cm-about .exh-kind {
  text-align: right;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cm-about .about__cta { text-align: center; padding: 40px 0 20px; }

/* =================================================================
   FOOTER
   ================================================================= */
.cm-foot, .site-footer {
  border-top: 1px solid var(--line);
  margin-top: 90px;
  background: var(--bg);
}
.cm-foot .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px var(--pad-x) 48px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.cm-foot .footer-col { display: flex; flex-direction: column; gap: 12px; }
.cm-foot .footer-brand .wordmark__name { font-size: 26px; letter-spacing: .14em; }
.cm-foot .footer-brand .muted { font-size: 14px; line-height: 1.6; max-width: 30em; margin: 14px 0 0; }
.cm-foot h4, .cm-foot .footer-label { margin-bottom: 10px; }
.cm-foot ul { list-style: none; padding: 0; margin: 0; }
.cm-foot li { margin-bottom: 10px; }
.cm-foot .footer-link, .cm-foot li a {
  font-family: var(--sans);
  font-size: 14px;
  color: #46423a;
  transition: .2s;
}
.cm-foot .footer-link:hover, .cm-foot li a:hover { color: var(--accent); }
.news-form { display: flex; border-bottom: 1px solid var(--ink); max-width: 300px; margin-top: 4px; }
.news-input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--serif); font-size: 16px; padding: 8px 0; color: var(--ink);
}
.news-btn { background: none; border: none; cursor: pointer; font-size: 18px; padding: 0 8px; color: var(--ink); }
.cm-foot .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 24px var(--pad-x);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  color: var(--muted);
}

/* Hide the front-page title — the hero carries its own heading */
body.home .page-header,
body.home .entry-header,
body.home article.page > .entry-title,
body.home h1.entry-title,
body.home .entry-title,
body.home .post-header { display: none !important; }
body.home .entry-content { max-width: none; padding: 0; margin: 0; }

/* =================================================================
   WOOCOMMERCE — re-map the framed-gallery look onto Woo markup
   ================================================================= */

/* Shop archive page head */
.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 0 24px;   /* no horizontal gutter so the title's left edge lines
                             up with the result count + product grid below it */
}
.woocommerce .woocommerce-products-header__title,
.woocommerce-page .page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -.015em;
  margin: 0;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons — flatten to the near-black solid / hover-invert look */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce .button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce button.button.alt,
.woocommerce button.single_add_to_cart_button,
.woocommerce .single_add_to_cart_button.button.alt {
  /* !important defeats WooCommerce core's default accent (#a46497 mauve),
     whose stylesheet loads after this theme's CSS. */
  background: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  font-family: var(--label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 34px;
  line-height: 1;
  transition: opacity .25s, background .25s, color .25s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce-page button.button:hover,
.woocommerce .button.alt:hover,
.woocommerce button.single_add_to_cart_button:hover { opacity: .85; background: #1a1a1a !important; color: #fff !important; }
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce .button.alt:active { opacity: .7; }
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.woocommerce #respond input#submit:focus-visible,
.elementor-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
/* Disabled / unavailable buttons */
.woocommerce a.button.disabled,
.woocommerce a.button[disabled],
.woocommerce button.button:disabled,
.woocommerce button.button[disabled],
.woocommerce input.button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.woocommerce a.button.disabled:hover,
.woocommerce button.button:disabled:hover,
.woocommerce button.button[disabled]:hover { opacity: .4; }

/* WC notices — hairline box, no colour fill */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  padding: 18px 0;
  border-radius: 0;
  outline: none;
}
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-notice:focus { outline: none; box-shadow: none; }
/* No checkmark/info tickbox — keep the notice as plain hairline text */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { content: none; display: none; }

/* Product grid — gallery layout, framed cards */
.woocommerce ul.products,
.woocommerce ul.products.columns-1,
.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5,
.woocommerce ul.products.columns-6 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 56px 40px !important;
  list-style: none;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: var(--wrap);
}
.woocommerce ul.products li.product {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  text-align: left;
}
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last { clear: none !important; }
.woocommerce ul.products > br.clear,
.woocommerce ul.products br { display: none !important; }
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none !important; display: none !important; }

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: block;
  color: inherit;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.woocommerce ul.products li.product:hover a.woocommerce-loop-product__link { transform: translateY(-6px); }

/* The product image becomes a framed canvas */
.woocommerce ul.products li.product img {
  aspect-ratio: 4/5;
  object-fit: cover;
  margin: 0 0 22px;
  border-radius: 0;
  background: #fcfbf8;
  border: 1px solid rgba(26, 26, 26, .14);
  padding: 18px;
  box-shadow:
    0 36px 64px -34px rgba(20, 18, 14, .45),
    0 6px 16px -8px rgba(20, 18, 14, .12);
  transition: box-shadow .45s;
}
.woocommerce ul.products li.product:hover img {
  box-shadow:
    0 48px 70px -36px rgba(20, 18, 14, .5),
    0 6px 16px -8px rgba(20, 18, 14, .14);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  padding: 0;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.005em;
}
/* Card meta sub-line — "{medium}, {year}" left, price right, one baseline */
.woocommerce ul.products li.product .card__sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  margin-top: 8px;
}
.woocommerce ul.products li.product .card__sub .muted { color: var(--muted); }
.woocommerce ul.products li.product .card__price,
.woocommerce ul.products li.product .price {
  font-family: var(--label);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.woocommerce ul.products li.product .card__price.is-sold { color: var(--muted); }
.woocommerce ul.products li.product .price del { color: var(--muted); }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--ink); }
.woocommerce ul.products li.product .button { display: none; }       /* no add-to-cart on cards */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale { display: none !important; }               /* no SALE stickers */

/* Out-of-stock ("Sold") tag on the card */
.woocommerce ul.products li.product.outofstock a.woocommerce-loop-product__link { position: relative; }
.woocommerce ul.products li.product.outofstock a.woocommerce-loop-product__link::after {
  content: "Sold";
  position: absolute;
  top: 30px; right: 30px;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 12px;
}

/* =================================================================
   SINGLE PRODUCT — framed art left, spec/buy right
   ================================================================= */
.woocommerce div.product {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px var(--pad-x) 40px;
  /* Two-column gallery layout — image gets more presence than Woo's default
     48/46 floats, with the summary sitting tight beside it instead of leaving
     a wide dead gutter. After-summary blocks span both columns (below). */
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 64px;
  align-items: start;
}
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce div.product div.images { position: sticky; top: 110px; }
.woocommerce div.product .woocommerce-product-gallery { width: 100% !important; margin: 0 !important; }
/* Blocks rendered by woocommerce_after_single_product_summary span full width */
.woocommerce div.product .cm-product-desc,
.woocommerce div.product .up-sells,
.woocommerce div.product .related.products { grid-column: 1 / -1; }
.woocommerce div.product div.images { }
.woocommerce div.product div.images img {
  background: #fcfbf8;
  border: 1px solid rgba(26, 26, 26, .14);
  padding: 5%;
  box-shadow:
    0 36px 64px -34px rgba(20, 18, 14, .45),
    0 6px 16px -8px rgba(20, 18, 14, .12);
  border-radius: 0;
}
.woocommerce div.product .product_title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.015em;
  font-style: italic;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 22px;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: #37332c;
  max-width: 32em;
  margin: 0 0 24px;
}
.woocommerce div.product form.cart { border-top: 1px solid var(--line); padding-top: 30px; }
.woocommerce div.product .product_meta { display: none; }
.woocommerce-product-gallery__trigger { display: none; }

/* Spec table rendered from artwork meta (Elementor / shortcode) */
.cm-spec { margin: 0 0 34px; border-top: 1px solid var(--line); }
.cm-spec .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cm-spec dt {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.cm-spec dd { margin: 0; text-align: right; color: #37332c; }

/* Quantity input — paintings are sold individually, but keep it minimal */
.woocommerce .quantity input.qty {
  width: 64px; height: 44px; padding: 6px 8px;
  background: none; border: 1px solid var(--line); border-radius: 0;
  font-family: var(--label); font-size: 14px; text-align: center; color: var(--ink);
}

/* Related products */
.woocommerce .related.products,
.woocommerce .upsells.products { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--pad-x) 0; }
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 46px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* Long description — rendered full-width below the summary in place of the
   stock Woo tabs (which we remove). Quiet serif column, gallery-label heading. */
.cm-product-desc {
  margin: 72px 0 0;
  max-width: 60ch;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: #37332c;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.cm-product-desc p { margin: 0 0 1.1em; }
.cm-product-desc h2, .cm-product-desc h3 {
  font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 14px;
}
/* Defensive — never show an empty stock-tabs shell if one slips through */
.woocommerce-tabs.wc-tabs-wrapper:empty,
.woocommerce div.product .woocommerce-tabs ul.tabs:empty { display: none; }

/* =================================================================
   CART + CHECKOUT
   ================================================================= */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--pad-x) 100px;
}

/* Block-based Cart/Checkout (WooCommerce Blocks) — keep inside the page
   gutter so the `alignwide` cart doesn't bleed past the viewport edge. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  max-width: var(--wrap) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 40px var(--pad-x) 100px;
  box-sizing: border-box;
}

/* ----- WooCommerce Blocks Cart/Checkout — gallery restyle -----------
   The block Cart/Checkout ship with their own component styling; re-map
   them onto the same near-black / serif / hairline language as the rest
   of the shop. */

/* Block buttons (Proceed to Checkout, Place Order) → solid near-black */
.wc-block-components-button.wp-element-button {
  background: var(--accent) !important;
  color: #fff !important;
  border: 1px solid var(--accent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--label) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  padding: 17px 34px !important;
}
.wc-block-components-button.wp-element-button .wc-block-components-button__text { color: #fff; }
.wc-block-components-button.wp-element-button:hover { opacity: .85; }
.wc-block-components-button.wp-element-button:active { opacity: .7; }
.wc-block-components-button.wp-element-button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}

/* Headings + step titles → serif display */
.wp-block-woocommerce-cart .wc-block-components-title,
.wp-block-woocommerce-checkout .wc-block-components-title,
.wc-block-components-checkout-step__title {
  font-family: var(--serif) !important;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
}
.wc-block-components-checkout-step__title { font-size: 22px; }
.wc-block-components-checkout-step__heading-content { font-family: var(--sans); color: var(--muted); }

/* Product names → serif */
.wc-block-components-product-name {
  font-family: var(--serif) !important;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* Cart line items + order summary rows → hairline rules */
.wc-block-cart-items__row { border-bottom: 1px solid var(--line) !important; }
.wc-block-cart-items__header {
  border-bottom: 1px solid var(--line) !important;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wc-block-components-order-summary-item { border-color: var(--line) !important; }

/* Totals → label rows, serif grand total */
.wc-block-components-totals-item__label { font-family: var(--label); font-size: 13px; }
.wc-block-components-totals-item__value { font-family: var(--label); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; text-transform: none;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--serif); font-size: 26px;
}

/* The cart/checkout sidebar panel → soft framed box like classic #order_review.
   The block ships the column gutter as left-only padding; replace it with
   symmetric internal padding so content doesn't sit flush to the panel edge. */
.wc-block-components-sidebar.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 60%, #f6f3ec);
  border-radius: 0;
  padding: 28px 26px !important;
}
/* inner order-summary block sits inside the sidebar panel — no nested frame */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  border: 0;
  background: transparent;
  padding: 0 !important;
}

/* Form fields → squared hairline box, serif text (keeps the floating label) */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .components-form-token-field__input,
.wc-block-components-select select,
.wc-block-components-address-form input,
.wc-block-components-address-form .components-base-control input {
  border-radius: 0 !important;
  border-color: var(--line) !important;
  font-family: var(--serif) !important;
}
.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input:focus,
.wc-block-components-text-input.is-active textarea {
  border-color: var(--accent) !important;
  box-shadow: none !important;
}
.wc-block-components-text-input label { color: var(--muted); }

/* Cart line-item thumbnail → subtle lift to match product cards */
.wc-block-cart-item__image img {
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(26,26,26,.08), 0 14px 30px -20px rgba(20,18,14,.4);
}
.woocommerce table.shop_table {
  border: 0; border-collapse: collapse; background: transparent; border-radius: 0;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: 0; border-bottom: 1px solid var(--line); padding: 22px 12px; background: transparent;
}
.woocommerce table.shop_table thead th {
  font-family: var(--label);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.woocommerce-cart table.cart img {
  width: 72px; aspect-ratio: 1; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(26,26,26,.08), 0 14px 30px -20px rgba(20,18,14,.4);
}
.woocommerce .cart_totals h2,
.woocommerce .cart-collaterals h2,
.woocommerce-checkout #order_review_heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.woocommerce-cart-form__cart-item .product-remove a.remove {
  width: auto; height: auto;
  font-family: var(--label);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted) !important;
  background: transparent !important;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
}
.woocommerce-cart-form__cart-item .product-remove a.remove:hover {
  color: var(--accent) !important; border-color: var(--accent);
}

/* Checkout form fields — bottom border only, serif input */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row select,
.select2-container--default .select2-selection--single {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 18px;
  box-shadow: none;
  color: var(--ink);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus { border-bottom-color: var(--accent); outline: none; }
.woocommerce form .form-row label,
.woocommerce-checkout h3 {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order {
  border: 1px solid var(--line);
  padding: 30px 28px;
  background: color-mix(in srgb, var(--bg) 60%, #f6f3ec);
}
.woocommerce #payment,
.woocommerce-checkout #payment { background: transparent; border-top: 1px solid var(--line); padding-top: 24px; }
.woocommerce #payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 24px; }
.woocommerce #payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.woocommerce #payment div.payment_box {
  background: color-mix(in srgb, var(--bg) 60%, #f6f3ec);
  color: var(--ink); border-radius: 0; padding: 14px 18px; font-size: 14px;
}
.woocommerce #payment div.payment_box::before { display: none; }

/* No reviews / ratings in a gallery shop */
.woocommerce .star-rating,
.woocommerce-review-link,
.woocommerce-tabs .reviews_tab,
#tab-title-reviews { display: none !important; }

/* Order-received / confirmation */
.woocommerce-order { max-width: 720px; margin: 0 auto; padding: 60px var(--pad-x) 100px; text-align: center; }
.woocommerce-order .woocommerce-thankyou-order-received {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  border: 0; padding: 0; margin-bottom: 24px;
}

/* =================================================================
   ELEMENTOR widget defaults
   ================================================================= */
.elementor-button {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  background: #1a1a1a !important;
  color: #fff !important;
  border-color: #1a1a1a !important;
}
.elementor-button:hover {
  opacity: .85 !important;
}
.elementor-nav-menu a {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.elementor-nav-menu a:hover { opacity: 1; color: var(--accent) !important; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  :root { --pad-x: 28px; }
  .cm-home-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
  .cm-home-hero .painting-holder { order: -1; }
  .cm-about .about__hero { grid-template-columns: 1fr; gap: 44px; }
  /* Single product stacks: image over details, drop the sticky pin */
  .woocommerce div.product { grid-template-columns: 1fr; gap: 40px; }
  .woocommerce div.product div.images { position: static; top: auto; }
  .woocommerce div.product div.summary,
  .woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; }
  .woocommerce ul.products,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 40px 28px !important; }
  .cm-foot .grid { grid-template-columns: 1fr; gap: 36px; }
  .cm-about .exh-row { grid-template-columns: 60px 1fr; gap: 6px 16px; }
  .cm-about .exh-place, .cm-about .exh-kind { grid-column: 2; text-align: left; }
}

/* Tablet portrait — smooth the step between 980 and phone widths */
@media (max-width: 768px) {
  :root { --pad-x: 22px; }
  .cm-home-hero { gap: 40px; padding-top: 44px; padding-bottom: 52px; }
  .cm-home-hero h1 { margin-bottom: 22px; }
  .cm-section-head { padding-top: 48px; }
  .cm-series-band { padding-top: 60px; }
  .cm-about { padding-top: 48px; }
  .cm-about .about__hero { margin-bottom: 72px; }
  .woocommerce ul.products,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 { gap: 36px 24px !important; }
  .woocommerce div.product { padding-top: 28px; }
  .woocommerce .related.products,
  .woocommerce .upsells.products { padding-top: 48px; }
}

/* Collapse the header into a hamburger from tablet down. The desktop nav is a
   fixed ~493px row; together with the wordmark + sub-line it overflows the
   viewport below ~1024px (the nav items don't wrap), so the nav moves into a
   no-JS dropdown well before it can crowd the wordmark or force a scrollbar. */
@media (max-width: 1024px) {
  .site-header-inner, .cm-top { min-height: 84px; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .cm-top { position: relative; }            /* anchor the dropdown panel */
  /* Keep the wordmark on one line and drop the long sub-tagline (it lives in
     the footer); the nav collapses into the hamburger so nothing overflows. */
  .cm-top .wordmark__name { white-space: nowrap; }
  .cm-top .wordmark__sub { display: none; }

  /* Show the hamburger; hide the nav until the toggle is checked. */
  .cm-burger { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; margin: -6px; }
  .cm-top-nav { display: none; }
  .cm-nav-toggle:checked ~ .cm-top-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(20, 18, 14, .45);
    padding: 8px var(--pad-x) 18px;
  }
  .cm-top-nav .nav-link, .cm-top-nav .nav a {
    display: block;
    width: 100%;
    padding: 11px 0;
    font-size: 13px;
    letter-spacing: .1em;
    opacity: .9;
  }
  .cm-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  /* Morph the bars into an X while the menu is open, for affordance. */
  .cm-nav-toggle:checked ~ .cm-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .cm-nav-toggle:checked ~ .cm-burger span:nth-child(2) { opacity: 0; }
  .cm-nav-toggle:checked ~ .cm-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  /* Keep the PT / EN switcher compact inside the dropdown. */
  .cm-lang { padding-left: 12px; gap: 5px; font-size: 10px; letter-spacing: .1em; }
}

@media (max-width: 560px) {
  :root { --pad-x: 18px; }

  /* Single-column gallery grid, slightly less air than the default 44px */
  .woocommerce ul.products,
  .woocommerce ul.products.columns-2,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Buttons — tighter padding, stack full-width where they sit in an action row */
  .btn { padding: 13px 22px; }
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce #respond input#submit { padding: 13px 22px; }
  .cm-home-hero .hero__actions,
  .cm-about .about__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .cm-home-hero .hero__actions .btn,
  .cm-about .about__cta .btn { width: 100%; justify-content: center; }
  .cm-about .about__cta { display: flex; }

  /* Hero vertical rhythm */
  .cm-home-hero { gap: 32px; padding-top: 36px; padding-bottom: 44px; }
  .cm-home-hero .painting-holder .art-frame { max-width: 360px; }

  /* Framed mat eats less of the image on small frames */
  .art-frame__mat { padding: 4.5%; }

  /* Product cards — less-tall image so a single card isn't taller than the screen */
  .woocommerce ul.products li.product img { aspect-ratio: 3/4; padding: 12px; margin-bottom: 18px; }

  /* Single product — qty + add-to-cart on one comfortable row */
  .woocommerce div.product div.images img { padding: 6%; }
  .woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .woocommerce div.product form.cart .quantity { margin: 0; }
  .woocommerce div.product form.cart button.button { flex: 1 1 auto; min-width: 60%; }

  /* Spec table stacks: label over value instead of overflowing */
  .cm-spec .row { flex-direction: column; gap: 4px; padding: 12px 0; }
  .cm-spec dd { text-align: left; }

  /* Checkout inputs — 16px avoids iOS zoom and oversizing */
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row select,
  .woocommerce form .form-row textarea,
  .woocommerce-page form .form-row input.input-text,
  .woocommerce-page form .form-row select,
  .select2-container--default .select2-selection--single { font-size: 16px; }
  .woocommerce-checkout #order_review,
  .woocommerce-checkout .woocommerce-checkout-review-order { padding: 22px 18px; }

  /* Cart/checkout table — tighten cell padding so rows fit */
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td { padding: 16px 8px; }

  /* Exhibition rows stay legible at phone width */
  .cm-about .exh-title { font-size: 18px; }
}

/* =================================================================
   CONTACT  (studio details + Pro-independent contact form)
   ================================================================= */
.cm-contact {
  padding: 64px var(--pad-x) 90px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.cm-contact__intro { max-width: 640px; margin: 0 0 56px; }
.cm-contact__head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  margin: 14px 0 24px;
  letter-spacing: -.01em;
}
.cm-contact__lede {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.5;
  color: #332f29;
  margin: 0;
}
.cm-contact__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

/* Left column — studio details */
.cm-contact__list { margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.cm-contact__list .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cm-contact__list dt {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.cm-contact__list dd { margin: 0; font-size: 16px; font-family: var(--sans); }
.cm-contact__list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.cm-contact__list a:hover { border-color: var(--ink); }
.cm-contact__note { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 32em; margin: 0; }

/* Right column — form */
.cm-contact-form { display: flex; flex-direction: column; gap: 22px; }
.cm-contact-form .cm-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cm-contact-form .cm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cm-contact-form label {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cm-contact-form .cm-opt { text-transform: none; letter-spacing: 0; }
.cm-contact-form input,
.cm-contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  transition: border-color .2s ease;
}
.cm-contact-form input:focus,
.cm-contact-form textarea:focus { outline: none; border-color: var(--ink); }
.cm-contact-form textarea { resize: vertical; min-height: 150px; }
.cm-contact-form .cm-submit { margin-top: 4px; }
.cm-contact-form .cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cm-form-note {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 16px;
  margin: 0 0 4px;
  border: 1px solid var(--line);
}
.cm-form-note.is-ok  { border-color: rgba(26, 26, 26, .4); background: var(--line-soft); }
.cm-form-note.is-err { border-color: #b23b3b; color: #8c2f2f; }

@media (max-width: 880px) {
  .cm-contact { padding-bottom: 64px; }
  .cm-contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .cm-contact__lede { font-size: 20px; }
  .cm-contact-form .cm-field-row { grid-template-columns: 1fr; gap: 22px; }
}

/* =================================================================
   COMMISSIONS — editorial intro + the [commission_form] enquiry form
   (self-contained; see inc/commission-form.php)
   ================================================================= */
.cm-commission-page {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--pad-x) 24px;
}
/* Single-column by default — e.g. the pt-pt page, whose markup keeps the
   eyebrow/headline/paragraphs as direct children of .cm-commission-intro. */
.cm-commission-intro { max-width: 40ch; }
/* Two-column band only when the framed artwork is present (the en layout from
   _seed-home.php). Gating on :has() keeps the flat markup from grid-placing. */
.cm-commission-intro:has(.cm-commission-intro__art) {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr .8fr;   /* headline/intro left, framed artwork right */
  gap: 64px;
  align-items: center;               /* vertically centre the image against the text */
}
.cm-commission-intro__text { max-width: 40ch; }   /* preserve the reading measure */
.cm-commission-intro__art { margin: 0; }
.cm-commission-intro__art figcaption {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}
.cm-commission-intro h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -.015em;
  margin: 0 0 .4em;
}
@media (max-width: 860px) {
  .cm-commission-intro:has(.cm-commission-intro__art) { grid-template-columns: 1fr; gap: 40px; }
  .cm-commission-intro__art { max-width: 360px; }
}
.cm-commission-intro .lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
}
.cm-commission-intro .lede + p { color: var(--muted); max-width: 46ch; }

.cm-commission-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 64px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.cm-commission-cols h2 {
  font-size: 24px;
  margin: 0 0 22px;
}
.cm-commission-list { list-style: none; margin: 0; padding: 0; }
.cm-commission-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cm-commission-list li strong { font-weight: 500; }
.cm-commission-list li span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

.cm-commission-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.cm-commission-steps li {
  position: relative;
  padding: 0 0 22px 44px;
  counter-increment: step;
}
.cm-commission-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--muted);
}
.cm-commission-steps li strong { font-weight: 500; }

.cm-commission-terms {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding: 24px var(--pad-x) 0;
  font-size: 14px;
  font-style: italic;
}

.cm-commission-formhead {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--pad-x) 0;
  text-align: center;
}
.cm-commission-formhead h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 .4em; }

/* --- The form --------------------------------------------------- */
.cm-commission {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--pad-x) 100px;
}
.cm-commission__form .cm-field { margin: 0 0 22px; }
.cm-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.cm-commission .field__label { display: block; margin-bottom: 8px; }
.cm-commission .req { color: var(--ink); }
.cm-commission input[type="text"],
.cm-commission input[type="email"],
.cm-commission select,
.cm-commission textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  transition: border-color .25s;
}
.cm-commission input::placeholder,
.cm-commission textarea::placeholder { color: var(--muted); }
.cm-commission input:focus,
.cm-commission select:focus,
.cm-commission textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.cm-commission textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.cm-commission select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.cm-commission input[type="file"] {
  width: 100%;
  font-family: var(--label);
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}

.cm-field--check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.cm-field--check input { margin-top: 3px; accent-color: var(--ink); }

.cm-commission__submit { margin: 32px 0 0; }
.cm-commission__submit .btn { cursor: pointer; }

/* Honeypot — kept in the DOM for bots, hidden from people + AT. */
.cm-commission__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cm-commission__notice {
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
}
.cm-commission__notice.is-success { border-color: var(--ink); }
.cm-commission__notice.is-error { border-color: #a33; }
.cm-commission__notice p { margin: 0 0 6px; }
.cm-commission__notice p:last-child { margin: 0; }

@media (max-width: 768px) {
  .cm-commission-page { padding: 48px var(--pad-x) 16px; }
  .cm-commission-cols { grid-template-columns: 1fr; gap: 40px; margin-top: 44px; padding-top: 36px; }
  .cm-field-grid { grid-template-columns: 1fr; }
  .cm-commission-formhead { padding-top: 56px; }
  .cm-commission { padding-bottom: 72px; }
  .cm-commission__submit .btn { width: 100%; }
}
