/*
Theme Name: Long Gallery
Description: Jerry Smith Fine Arts. A lamplit three.js gallery wall of oil portraits as the home page hero, with commission terms and a full-screen gallery walk.
Version: 1.6.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: long-gallery
*/

:root {
  --umber: #17110d;
  --bistre: #221a14;
  --lamp: #f0d9a8;
  --bone: #ebe1cf;
  --soft: #d6cab5;
  --muted: #a8977d;
  --line: rgba(240,217,168,.2);
  --display: 'Cormorant SC', Georgia, serif;
  --body: 'Cormorant Garamond', Garamond, Georgia, serif;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--umber); color: var(--bone); font: 400 1.2rem/1.65 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--lamp); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The header stays with you: clear over the home hero, then a solid umber bar once you scroll. */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.5rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(23,17,13,.94); border-bottom: 1px solid var(--line); transition: padding .3s, background .3s, border-color .3s; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(23,17,13,.82); backdrop-filter: blur(8px); } }
.home .site-header { position: fixed; inset: 0 0 auto 0; }
.home .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; border-color: transparent; }
.site-header.scrolled { padding-block: .9rem; }
body.admin-bar .site-header { top: 32px; }
:target, section[id] { scroll-margin-top: calc(var(--head-h, 80px) + 1rem); }
.mark { font: 500 1.25rem var(--display); letter-spacing: .08em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; }
.site-header nav a { text-decoration: none; color: var(--muted); transition: color .3s; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--lamp); }

/* ---------- hero: the gallery drifts behind the title ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.stage > img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .8s;
  background: linear-gradient(90deg, rgba(23,17,13,.85), rgba(23,17,13,.4) 42%, transparent 62%), linear-gradient(transparent 70%, var(--umber)); }
.hero .text { position: absolute; z-index: 2; left: clamp(1rem, 4vw, 3.5rem); top: 50%; transform: translateY(-50%); max-width: 30rem; transition: opacity .7s, transform .7s; }
.eyebrow { font: 500 .95rem var(--display); letter-spacing: .16em; color: var(--muted); margin: 0 0 1rem; }
.hero h1 { font: 400 clamp(3.4rem, 8vw, 6.4rem)/.92 var(--body); margin: 0 0 1.4rem; }
.hero h1 i { color: var(--lamp); }
.hero .lede { color: var(--soft); max-width: 34ch; margin: 0 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.btn { display: inline-block; padding: .75rem 1.7rem; border: 1px solid var(--lamp); background: none; color: var(--lamp); cursor: pointer; text-decoration: none; transition: background .3s, color .3s; }
.btn:hover { background: var(--lamp); color: var(--umber); }
.link { color: var(--soft); text-underline-offset: 4px; }
.hint { position: absolute; z-index: 2; right: clamp(1rem, 4vw, 3.5rem); bottom: 2rem; margin: 0; font-style: italic; color: var(--muted); transition: opacity .6s; }

/* a painting has been chosen: the title steps aside and a label appears */
.hero .label { position: absolute; z-index: 2; left: clamp(1rem, 4vw, 3.5rem); right: clamp(1rem, 4vw, 3.5rem); bottom: 2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .6s; }
.label h2 { font: italic 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--body); margin: 0 0 .15rem; }
.label p { margin: 0; color: var(--muted); }
.label button { background: none; border: 1px solid var(--line); padding: .55rem 1.2rem; cursor: pointer; flex-shrink: 0; }
.label button:hover { border-color: var(--lamp); color: var(--lamp); }
.hero.close .text { opacity: 0; transform: translate(-1.5rem, -50%); pointer-events: none; }
.hero.close::after, .hero.close .hint { opacity: 0; }
.hero.close .label { opacity: 1; pointer-events: auto; }

/* ---------- sections ---------- */
section.band { padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 6vw, 6rem); }
h2.title { font: 400 clamp(2.4rem, 4.6vw, 3.6rem)/1.05 var(--body); margin: 0 0 .6rem; }
.note { color: var(--muted); font-style: italic; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }

.about { max-width: 780px; margin: 0 auto; text-align: center; }
.about blockquote { margin: 0 0 2.5rem; font: italic clamp(1.7rem, 3vw, 2.3rem)/1.35 var(--body); color: var(--lamp); }
.about p { text-align: left; color: var(--soft); }

.portraits { background: var(--bistre); }
.hang { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: end; }
.hang figure { margin: 0; }
.frame { padding: 9px; background: linear-gradient(135deg, #b9914f, #6e5226 40%, #d8b878 62%, #7a5a2a); box-shadow: 0 30px 50px -25px rgba(0,0,0,.9); }
.frame img { border: 3px solid #d9c49a; width: 100%; }
.hang figcaption { margin-top: .9rem; }
.hang figcaption span { display: block; font-style: italic; color: var(--muted); font-size: 1rem; }

.terms .inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); }
.terms p { color: var(--soft); max-width: 42ch; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; font-style: italic; color: var(--muted); padding-bottom: .6rem; border-bottom: 1px solid var(--lamp); }
td { padding: 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms td:first-child { white-space: nowrap; padding-right: 1.5rem; font-style: italic; }
.terms td:last-child, .terms th:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.terms td:last-child { font: 500 1.3rem var(--display); color: var(--lamp); }
.fine { font-size: 1rem; color: var(--muted); }

.contact { text-align: center; background: var(--bistre); }
.contact p { color: var(--soft); max-width: 42ch; margin: 1rem auto 2.2rem; }
/* back to top: a small gilt-edged button that appears once the hero is behind you */
.to-top { position: fixed; z-index: 5; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: center; gap: .1rem; width: 3.4rem; height: 3.4rem; justify-content: center;
  border: 1px solid var(--lamp); background: rgba(23,17,13,.85); color: var(--lamp); font: 500 .75rem var(--display); letter-spacing: .12em; cursor: pointer;
  opacity: 0; transform: translateY(.75rem); pointer-events: none; transition: opacity .4s, transform .4s, background .3s, color .3s; }
.to-top svg { width: 14px; height: 14px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--lamp); color: var(--umber); }

.site-footer { text-align: center; color: var(--muted); font-style: italic; font-size: 1rem; padding: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- ordinary pages and posts ---------- */
.entry { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem); }
.entry + .entry { padding-top: 0; }
.entry h1, .entry h2.entry-title { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--body); margin: 0 0 .5rem; }
.entry h2.entry-title a { text-decoration: none; }
.entry .meta { color: var(--muted); font-style: italic; margin: 0 0 2rem; }
.entry-content a { color: var(--lamp); }
.entry-content img { margin: 1.5rem 0; }
.entry-content blockquote { border-left: 1px solid var(--lamp); margin: 1.5rem 0; padding-left: 1.25rem; font-style: italic; color: var(--soft); }
.entry .meta a { color: var(--lamp); text-decoration: none; }
.entry-content h2 { font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--body); color: var(--lamp); margin: 2.5rem 0 .8rem; }
.entry-content h3 { font: 500 1rem var(--display); letter-spacing: .12em; color: var(--muted); margin: 2.5rem 0 .6rem; }
.entry-content img, .lead-img img { width: 100%; height: auto; box-shadow: 0 24px 40px -24px rgba(0,0,0,.9); }
.lead-img { margin: 0 0 2rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-style: italic; }
.post-nav a { color: var(--soft); text-decoration: none; }
.post-nav a:hover { color: var(--lamp); }
.post-nav span:last-child { text-align: right; }

/* ---------- Contact ---------- */
.contact-page { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.contact-intro h1 { font: 400 clamp(2.8rem, 6vw, 4.6rem)/1 var(--body); margin: 0 0 1rem; }
.contact-intro .lede { color: var(--soft); max-width: 36ch; margin: 0 0 2.5rem; }
.facts { margin: 0; display: grid; gap: 1.1rem; }
.facts div { border-top: 1px solid var(--line); padding-top: 1rem; }
.facts dt { font: 500 .85rem var(--display); letter-spacing: .14em; color: var(--muted); margin-bottom: .2rem; }
.facts dd { margin: 0; color: var(--soft); }
.facts a { color: var(--lamp); text-underline-offset: 3px; }
.contact-form { background: var(--bistre); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); }
.contact-form h2 { font: 400 clamp(1.9rem, 3vw, 2.4rem)/1.1 var(--body); margin: 0 0 1.5rem; }
.contact-form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; }
.field { margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-size: 1.05rem; color: var(--soft); }
.field .opt { font-style: italic; color: var(--muted); font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1.1rem; color: var(--bone); background: var(--umber); border: 1px solid rgba(240,217,168,.28); border-radius: 0; padding: .7rem .85rem; width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input::placeholder, .field textarea::placeholder { color: #7d705e; font-style: italic; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lamp); box-shadow: 0 0 0 1px var(--lamp); }
.has-error input, .has-error textarea { border-color: #d98b6f; }
.field-error, .form-alert { color: #f0a88c; font-size: 1rem; }
.form-alert { margin: 0 0 1.25rem; }
.trap { position: absolute; left: -9999px; }
.field-hint { font-size: .98rem; font-style: italic; color: var(--muted); }
.field input[type="date"] { color-scheme: dark; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-size: 1.05rem; color: var(--soft); padding: 0; margin-bottom: .45rem; }
.choice { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .45rem; }
.choice .field-hint, .choice .field-error { display: block; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; max-width: 100%; padding: .45rem 1rem; border: 1px solid rgba(240,217,168,.28); color: var(--soft); font-size: 1.02rem; transition: border-color .2s, background .2s, color .2s; }
.pill:hover span { border-color: var(--lamp); }
.pill input:checked + span { background: var(--lamp); border-color: var(--lamp); color: var(--umber); }
.pill input:focus-visible + span { outline: 1px solid var(--lamp); outline-offset: 3px; }

/* the commission card on Contact, and the "how it works" side of Request a Commission */
.cta-card { display: block; text-decoration: none; margin: 0 0 2.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--lamp); background: linear-gradient(135deg, rgba(240,217,168,.08), transparent 60%); transition: background .3s; }
.cta-card:hover { background: rgba(240,217,168,.12); }
.cta-card .eyebrow { margin: 0 0 .3rem; }
.cta-card strong { display: block; font: 400 1.7rem/1.15 var(--body); color: var(--lamp); margin-bottom: .3rem; }
.cta-card span:last-child { color: var(--soft); }
.how { list-style: none; counter-reset: how; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.2rem; }
.how li { counter-increment: how; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .6rem; }
.how li::before { content: counter(how, upper-roman) "."; grid-row: span 2; font: 500 1.15rem var(--display); color: var(--lamp); }
.how strong { font-weight: 500; font-style: italic; font-size: 1.2rem; }
.how span { color: var(--soft); }
.mini-prices { margin-bottom: .5rem; }
.mini-prices caption { text-align: left; font: 500 .85rem var(--display); letter-spacing: .14em; color: var(--muted); padding-bottom: .6rem; border-bottom: 1px solid var(--lamp); }
.mini-prices th, .mini-prices td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.mini-prices th { font-style: italic; white-space: nowrap; padding-right: 1rem; }
@media (max-width: 480px) { .mini-prices th { white-space: normal; } }
.mini-prices td { color: var(--soft); font-size: 1.02rem; }
.mini-prices td:last-child { text-align: right; white-space: nowrap; padding-left: .8rem; font: 500 1.15rem var(--display); color: var(--lamp); }
.aside { margin-top: 2rem; color: var(--muted); font-style: italic; }
.aside a { color: var(--lamp); }
.terms .actions { margin-top: 1.5rem; }
.actions.center { justify-content: center; }
.contact-form .btn { margin-top: .5rem; }
.contact-form .fine { margin: 1rem 0 0; }
.sent h2 { color: var(--lamp); }
.sent p { color: var(--soft); }
.sent a { color: var(--lamp); }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }

/* ---------- On the Easel: the blog index ---------- */
.blog-head { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem) 2rem; }
.blog-head h1 { font: 400 clamp(2.8rem, 6vw, 4.6rem)/1 var(--body); margin: 0 0 .8rem; }
.blog-head .lede { color: var(--soft); font-style: italic; margin: 0; }
.cards { max-width: 1180px; margin: 0 auto; padding: 1rem clamp(1rem, 5vw, 3rem) 4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem); }
.card { margin: 0; }
.card-link { display: block; text-decoration: none; }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bistre); padding: 8px; background: linear-gradient(135deg, #b9914f, #6e5226 40%, #d8b878 62%, #7a5a2a); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-link:hover .card-img img { transform: scale(1.04); }
.no-img { display: grid; place-items: center; height: 100%; background: var(--bistre); color: var(--muted); font: 500 .9rem var(--display); letter-spacing: .16em; }
.card .meta { color: var(--muted); font-style: italic; font-size: 1rem; margin: 1rem 0 .2rem; }
.card h2 { font: 400 1.5rem/1.2 var(--body); margin: 0 0 .5rem; transition: color .3s; }
.card-link:hover h2 { color: var(--lamp); }
.card .excerpt p { margin: 0; color: var(--soft); font-size: 1.05rem; }
.pagination { text-align: center; padding: 0 1rem 4rem; color: var(--muted); }
.pagination .nav-links { display: flex; justify-content: center; gap: 1rem; }
.pagination a { color: var(--lamp); text-decoration: none; }

/* ---------- full-screen gallery walk (page template) ---------- */
body.page-template-template-gallery { overflow: hidden; }
.walk-stage { position: fixed; inset: 0; }
.walk-bar { position: fixed; z-index: 2; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding: 1.4rem clamp(1rem, 4vw, 3.5rem) 1.6rem; background: linear-gradient(transparent, rgba(23,17,13,.9)); }
.walk-bar .label { position: static; opacity: 1; }
.walk-bar .label a { color: var(--lamp); text-underline-offset: 3px; }
.controls { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.controls button { background: none; border: 1px solid var(--line); min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; cursor: pointer; transition: border-color .3s, color .3s; }
.controls button:hover { border-color: var(--lamp); color: var(--lamp); }
.count { font: 500 .95rem var(--display); letter-spacing: .12em; color: var(--muted); padding: 0 .6rem; }
body.page-template-template-gallery .site-header { position: fixed; inset: 0 0 auto 0; background: linear-gradient(rgba(23,17,13,.85), transparent); backdrop-filter: none; border: 0; }

@media (max-width: 900px) {
  .hang { grid-template-columns: 1fr 1fr; }
  .terms .inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header nav { gap: .3rem 1rem; font-size: 1.05rem; justify-content: flex-end; }
  .hero .text { top: auto; bottom: 2.5rem; transform: none; }
  .hero.close .text { transform: translateY(1rem); }
  .hero::after { background: linear-gradient(transparent 25%, rgba(23,17,13,.92) 70%); }
  .hint { display: none; }
  .hero .label, .walk-bar { flex-direction: column; align-items: stretch; }
  .controls { justify-content: space-between; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
/* below 600px WordPress lets its admin bar scroll away, so the header sits at the very top */
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } body.admin-bar.home .site-header:not(.scrolled) { top: 46px; } }

/* ---------- Shop (WooCommerce): the gallery's colors, frames and type ---------- */
.shop-page { max-width: 1180px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem); }
.entry.entry-wide { max-width: 1180px; }
.woocommerce-breadcrumb { color: var(--muted); font-style: italic; font-size: 1rem; margin: 0 0 2rem; }
.woocommerce-breadcrumb a { color: var(--soft); }
.woocommerce .woocommerce-products-header__title, .woocommerce-products-header h1 { font: 400 clamp(2.6rem, 5vw, 4rem)/1 var(--body); margin: 0 0 1.5rem; }

/* buttons: lamp-gold outline, filled on hover, like the rest of the site */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce button.button.alt, .woocommerce a.button.alt,
.wc-block-components-button:not(.is-link), .wp-block-button__link {
  background: transparent !important; color: var(--lamp) !important; border: 1px solid var(--lamp) !important; border-radius: 0 !important;
  font: 400 1.1rem var(--body) !important; padding: .8rem 1.8rem !important; text-shadow: none; box-shadow: none !important; transition: background .3s, color .3s; }
.woocommerce .button:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover, .wp-block-button__link:hover { background: var(--lamp) !important; color: var(--umber) !important; }
.woocommerce button.button.alt.disabled, .woocommerce button.button:disabled { opacity: .45; }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; }

/* product page */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-viewport, .woocommerce div.product div.images:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > div:first-child { padding: 12px; background: linear-gradient(135deg, #b9914f, #6e5226 40%, #d8b878 62%, #7a5a2a); box-shadow: 0 40px 60px -30px rgba(0,0,0,.9); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: var(--umber); border: 1px solid var(--lamp); top: 1.4rem; right: 1.4rem; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before { border-color: var(--lamp); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after { background: var(--lamp); }
.pswp__bg { background: var(--umber); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-top: .8rem; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-control-thumbs img { opacity: .55; transition: opacity .3s; border: 1px solid var(--line); }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce div.product .product_title { font: 400 clamp(2.4rem, 4.5vw, 3.6rem)/1.05 var(--body); margin: 0 0 .8rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--lamp) !important; font: 500 1.6rem var(--display) !important; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--soft); margin: 1rem 0 1.5rem; }
.woocommerce div.product form.cart { margin: 1.5rem 0; }
.woocommerce div.product form.cart .variations { border: 0; margin-bottom: 1rem; width: 100%; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; border: 0; padding: 0; text-align: left; }
.woocommerce div.product form.cart .variations label { font-style: italic; color: var(--soft); font-size: 1.05rem; font-weight: 400; }
.woocommerce div.product form.cart .variations select { width: 100%; max-width: 100%; font: inherit; font-size: 1.1rem; color: var(--bone); background: var(--umber); border: 1px solid rgba(240,217,168,.28); padding: .7rem .85rem; margin: .4rem 0 .3rem; }
.woocommerce div.product form.cart .reset_variations { color: var(--muted); font-size: .95rem; }
.woocommerce div.product .woocommerce-variation-price { margin: .5rem 0 1rem; }
.woocommerce div.product form.cart .quantity { display: none; }
.woocommerce div.product .product_meta { color: var(--muted); font-size: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.woocommerce div.product .product_meta a { color: var(--soft); }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 2rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 1.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; margin: 0 1.5rem 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--muted); font: 500 .95rem var(--display); letter-spacing: .14em; padding: .4rem 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--lamp); background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--lamp); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 70ch; color: var(--soft); }
.woocommerce div.product .woocommerce-tabs .panel h2 { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h3 { font: 400 1.6rem var(--body); color: var(--bone); margin: 1.5rem 0 .5rem; }
.woocommerce div.product .woocommerce-tabs .panel a { color: var(--lamp); }
.woocommerce table.shop_attributes, .woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--line); background: none !important; color: var(--soft); font-style: normal; }
.woocommerce .related, .woocommerce .upsells { display: none; }

/* shop grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2.5rem; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce ul.products li.product a img { padding: 9px; background: linear-gradient(135deg, #b9914f, #6e5226 40%, #d8b878 62%, #7a5a2a); margin-bottom: 1rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 1.6rem var(--body) !important; color: var(--bone); padding: 0 !important; }
.woocommerce-result-count { color: var(--muted); font-style: italic; }
.woocommerce-ordering select { font: inherit; color: var(--bone); background: var(--umber); border: 1px solid var(--line); padding: .4rem .6rem; }

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { background: var(--bistre) !important; color: var(--bone) !important; border: 0 !important; border-top: 2px solid var(--lamp) !important; border-radius: 0 !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--lamp) !important; }
.woocommerce-error { border-top-color: #d98b6f !important; }
.wc-block-components-notice-banner svg { fill: var(--lamp); }

/* cart and checkout blocks */
.entry-wide .wc-block-cart, .entry-wide .wc-block-checkout { color: var(--bone); }
.wc-block-components-text-input input, .wc-block-components-text-input textarea, .wc-block-components-textarea, .wc-blocks-components-select__select, .wc-block-components-combobox .components-combobox-control input.components-combobox-control__input, .wc-block-components-form .wc-block-components-text-input input {
  background: var(--umber) !important; color: var(--bone) !important; border: 1px solid rgba(240,217,168,.28) !important; border-radius: 0 !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox .components-base-control__label { color: var(--muted) !important; }
.wc-block-components-text-input input:focus, .wc-blocks-components-select__select:focus, .wc-block-components-textarea:focus { border-color: var(--lamp) !important; box-shadow: 0 0 0 1px var(--lamp) !important; }
.wc-blocks-components-select__container { background: var(--umber) !important; border-radius: 0 !important; }
.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-cart__totals-title { font: 400 1.6rem var(--body) !important; color: var(--bone) !important; text-transform: none !important; letter-spacing: 0 !important; }
.wc-block-components-checkout-step__description, .wc-block-components-product-metadata, .wc-block-components-formatted-money-amount + *, .wc-block-checkout__terms { color: var(--soft); }
.wc-block-components-totals-wrapper, .wc-block-components-order-summary-item, .wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th, .wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-checkout-step, .wp-block-woocommerce-checkout-order-summary-block { border-color: var(--line) !important; }
.wc-block-components-totals-item__value, .wc-block-components-product-price, .wc-block-components-order-summary-item__total-price, .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--lamp) !important; }
.wc-block-components-product-name, .wc-block-cart-item__product a { color: var(--bone) !important; text-decoration: none; font-size: 1.2rem; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: var(--line) !important; }
.wc-block-components-radio-control__input, .wc-block-components-checkbox__input { background: var(--umber) !important; border-color: var(--muted) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--lamp) !important; }
.wc-block-components-checkbox__mark { fill: var(--umber); }
.wc-block-components-checkbox__input:checked { background: var(--lamp) !important; border-color: var(--lamp) !important; }
.wc-block-components-order-summary-item__quantity { background: var(--lamp) !important; color: var(--umber) !important; border: 0 !important; box-shadow: none !important; }
.wc-block-components-quantity-selector { display: none !important; } /* one portrait per order */
.wc-block-components-panel__button, .wc-block-components-totals-coupon a { color: var(--soft) !important; }
.wc-block-cart-item__remove-link, .wc-block-components-checkout-return-to-cart-button { color: var(--muted) !important; }
.wp-block-woocommerce-empty-cart-block, .wc-block-cart__empty-cart__title { color: var(--soft); }
.entry-wide .wp-block-separator { border-color: var(--line); }

/* Woo's blocks size text in small ems; bring it up to the site's reading size */
.wc-block-cart, .wc-block-checkout { font-size: 1.1rem; }
.wc-block-components-product-name { font-size: 1.25rem !important; }
.wc-block-components-product-metadata, .wc-block-components-product-details, .wc-block-components-order-summary-item__individual-prices,
.wc-block-checkout__guest-checkout-notice, .wc-block-components-address-form__address_2-toggle, .wc-block-components-checkout-step__description,
.wc-block-components-totals-coupon, .wc-block-components-panel__button, .wc-block-cart-items__header, .wc-block-components-validation-error { font-size: 1rem !important; }
.wc-block-components-totals-item__label, .wc-block-components-totals-item__value, .wc-block-components-order-summary-item__total-price, .wc-block-cart-item__total { font-size: 1.15rem !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label, .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.45rem !important; }
.wc-block-components-text-input input, .wc-blocks-components-select__select { font-size: 1.1rem !important; }

@media (max-width: 860px) {
  .woocommerce div.product { grid-template-columns: minmax(0, 1fr); }
}

.deposit-note { display: inline-block; margin-left: .5rem; font: italic 400 1rem var(--body); color: var(--muted); letter-spacing: 0; vertical-align: middle; }
.woocommerce div.product .woocommerce-variation-description p { color: var(--soft); font-size: 1.05rem; margin: .4rem 0 0; }
.wc-block-components-product-metadata__description { display: none; } /* the full price and balance are listed just below it */

/* ---------- text-only shop: no product photos ---------- */
.woocommerce div.product { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin: 0 auto; }
.woocommerce div.product div.summary { border-top: 1px solid var(--lamp); padding-top: 2rem !important; }
.woocommerce div.product .woocommerce-tabs { border-top: 1px solid var(--line); }
.woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.woocommerce ul.products li.product { border: 1px solid var(--line); border-top: 2px solid var(--lamp); background: var(--bistre); padding: 2rem 2rem 2.2rem !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 2rem !important; margin-bottom: .4rem !important; }
.woocommerce ul.products li.product .price { display: block; margin-bottom: 1.2rem !important; }
.woocommerce ul.products li.product .button { margin-top: .4rem; }
.wc-block-cart-item__image, .wc-block-components-order-summary-item__image { display: none !important; }
.wc-block-cart-items .wc-block-cart-items__header-image { display: none; }
.wc-block-components-order-summary-item { padding-left: 0 !important; }
.loop-excerpt { color: var(--soft); font-size: 1.05rem; margin: .4rem 0 1.4rem; }
.loop-excerpt p { margin: 0; }
.woocommerce div.product div.images, .woocommerce-product-gallery { display: none !important; } /* text-only shop */
