/* ECC Gallery — WordPress additions on top of gallery.css (the approved preview stylesheet, unchanged).
   Uses only the preview's tokens: gallery white / pale teal (--mist) / light blue (--sky) walls with blue-ink text,
   dark rooms for artworks. Light pages opt in with .theme-light exactly like the gallery sections. */

/* ---------- WordPress chrome ---------- */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.nav__cart { white-space: nowrap; }
.ecc-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #15212a; font-size: 11px; font-weight: 700; margin-left: 4px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 auto 18px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.collection__more { max-width: var(--max); margin: 48px auto 0; text-align: center; }

/* ---------- viewing room / originals commerce slot ---------- */
.room__commerce { margin: 0 0 16px; color: var(--amber); font-size: 14px; }
.room__commerce[hidden] { display: none; }
.orig__actions [data-ecc-buy] { order: -1; }

/* ---------- light page shell (cart, checkout, shop, quote, archive) ---------- */
.page-shell { position: relative; z-index: 1; min-height: 70vh; padding: clamp(110px, 14vw, 160px) var(--gutter) clamp(64px, 9vw, 120px); }
.page-shell > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.page-shell .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.page-content { max-width: 860px; margin: 0 auto; font-size: 17px; }
.page-content > p { max-width: 68ch; }
.page-content a:not(.btn):not(.button) { color: var(--paper-text); text-underline-offset: 3px; }
.page-shell h1, .page-shell h2, .page-shell h3 { color: var(--paper-text); }
.page-shell h2:not(.display), .page-shell h3:not(.display) { font-family: var(--serif); font-weight: 400; }

/* ---------- artwork page (dark viewing room, server-rendered) ---------- */
.artwork-page { position: relative; z-index: 1; display: grid; gap: 8px; padding: 86px 0 48px; min-height: 100vh; }
.artwork__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 35% 40%, color-mix(in srgb, var(--r1, #555) 38%, transparent), transparent 70%), radial-gradient(40% 40% at 70% 60%, color-mix(in srgb, var(--r2, #333) 28%, transparent), transparent 70%); opacity: .55; }
.artwork__stage { position: relative; display: grid; place-items: center; padding: 8px 16px; perspective: 1400px; }
.artwork__art { position: relative; margin: 0; overflow: hidden; transition: transform .5s var(--ease); box-shadow: 0 60px 100px -40px rgba(0,0,0,.95); touch-action: pan-y; }
.artwork__art img { max-width: calc(100vw - 32px); max-height: 72vh; width: auto; height: auto; }
.artwork__panel { position: relative; padding: 16px var(--gutter) 24px; max-width: 640px; }
.artwork__nav { display: flex; justify-content: space-between; margin: 28px 0 8px; font-size: 13px; letter-spacing: .12em; }
.artwork__nav a { color: var(--muted); text-decoration: none; }
.artwork__nav a:hover { color: var(--text); }
.buybox { margin: 4px 0 22px; padding: 18px 20px; border: 1px solid rgba(239,233,223,.18); border-radius: 14px; background: rgba(239,233,223,.04); }
.buybox__price { font-family: var(--serif); font-size: 28px; margin: 0 0 12px; }
.buybox__price span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.buybox--sold { color: var(--muted); }
.staff-tools { margin: 18px 0 0; }
@media (min-width: 1000px) {
  .artwork-page { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: center; padding: 96px 0 64px; }
  .artwork__art img { max-width: 56vw; max-height: 78vh; }
  .artwork__panel { padding-right: var(--gutter); padding-left: 0; }
}
.artwork-page .woocommerce-message, .artwork-page .woocommerce-error, .artwork-page .woocommerce-info { color: var(--text); background: rgba(239,233,223,.06); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; list-style: none; margin: 0 0 16px; }
.artwork-page .woocommerce-message a.button { color: var(--ink); background: var(--text); }

/* ---------- artwork archive ---------- */
.art-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.art-filter .chip { text-decoration: none; }
.art-grid { list-style: none; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.art-card a { display: grid; gap: 8px; text-decoration: none; color: var(--paper-text); }
.art-card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--ink-3); box-shadow: 0 18px 40px -24px rgba(21,33,42,.5); }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art-card a:hover .art-card__img img { transform: scale(1.04); }
.art-card__id { font-size: 12px; letter-spacing: .18em; font-weight: 700; }
.art-card__state { font-size: 13px; color: var(--paper-muted); }
.art-card__state--available { color: #0f5c55; font-weight: 600; }

/* ---------- WooCommerce on the light walls ---------- */
.ecc-shop .woocommerce, .page-shell .woocommerce { color: var(--paper-text); }
.page-shell .woocommerce-products-header__title, .page-shell .product_title { font-family: var(--serif); font-weight: 340; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; }
.woocommerce ul.products { display: grid !important; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product img { border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 40px -24px rgba(21,33,42,.5); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--paper-text); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--paper-text); font-weight: 600; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce-page .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--paper-text); color: var(--paper); font: 600 14px/1 var(--sans); letter-spacing: .02em; transition: transform .3s var(--ease), background-color .3s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #22343f; color: var(--paper); transform: translateY(-1px); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; }
.woocommerce .quantity .qty { min-height: 46px; border-radius: 10px; border: 1px solid rgba(21,33,42,.2); }
.woocommerce table.shop_table { border-radius: 12px; border-color: rgba(21,33,42,.14); background: rgba(255,255,255,.55); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: rgba(21,33,42,.1); padding: 14px 16px; }
.woocommerce table.shop_table img { width: 72px; border-radius: 4px; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { background: rgba(255,255,255,.55); border-radius: 14px; padding: 18px 20px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single {
  min-height: 48px; border-radius: 10px; border: 1px solid rgba(21,33,42,.22); background: #fff; color: var(--paper-text); padding: 10px 14px; font: 16px var(--sans);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 26px; }
.woocommerce form .form-row label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); font-weight: 600; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { border-top-color: #2b7a74 !important; background: rgba(255,255,255,.7) !important; color: var(--paper-text) !important; border-radius: 10px; }
.woocommerce-error { border-top-color: #b4232a !important; }
.woocommerce-message::before, .woocommerce-info::before { color: #2b7a74 !important; }
.woocommerce div.product div.images img { border-radius: 8px; }
.woocommerce span.onsale { background: var(--paper-text); }
#payment { background: rgba(229,239,244,.8) !important; border-radius: 12px !important; }
#payment div.payment_box { background: #fff !important; color: var(--paper-text) !important; }
#payment div.payment_box::before { border-bottom-color: #fff !important; }

/* ---------- quote-first shipping ---------- */
.ecc-quote-panel { margin: 18px 0; padding: 18px 20px; border-radius: 14px; background: var(--sky); border: 1px solid rgba(21,33,42,.12); color: var(--paper-text); }
.ecc-quote-panel p { margin: 0 0 10px; }
.ecc-quote-panel p:last-child { margin: 0; }
.ecc-quote-form { display: grid; gap: 18px; max-width: 860px; margin: 32px auto 0; }
.ecc-quote-form .field input, .ecc-quote-form .field select, .ecc-quote-form .field textarea { background: #fff; border-color: rgba(21,33,42,.22); color: var(--paper-text); }
.ecc-quote-form .field select option { background: #fff; }
.ecc-quote-form .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--paper-text); font-weight: 400; }
.ecc-quote-form .check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; }
.ecc-quote-error { grid-column: 1 / -1; color: #9b1c23; background: #fff; border-radius: 10px; padding: 12px 16px; border: 1px solid rgba(155,28,35,.3); margin: 0; }
.ecc-quote-done { max-width: 860px; margin: 32px auto 0; padding: 24px; border-radius: 14px; background: #fff; }
.ecc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 700px) { .ecc-quote-form { grid-template-columns: 1fr 1fr; } .ecc-quote-form .field--full { grid-column: 1 / -1; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .artwork__art, .art-card__img img { transition: none; }
}

/* ---------- light pages: the approved light-blue wall, frosted light nav ---------- */
.page-shell.theme-light:not(.theme-light--mist) { background: linear-gradient(var(--paper), var(--sky) 360px, var(--sky)); }
.page-article .section-head { max-width: 860px; }
.page-shell.theme-light ~ .footer, .ecc-shop .footer { background: var(--sky); --text: var(--paper-text); --muted: rgba(21,33,42,.74); --faint: rgba(21,33,42,.66); --line: rgba(21,33,42,.14); color: var(--faint); }

/* M6: inquiry fallback (visible address + copy) for visitors without an email app */
.inquiry-fallback { margin-top: 1rem; }
.inquiry-fallback a { overflow-wrap: anywhere; }
.inquiry-fallback .link-btn { margin-left: .25rem; }
