.shop, .detail { max-width: 1440px; margin: 0 auto; padding: 130px clamp(16px, 4vw, 48px) 60px; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.shop-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); margin: 0; line-height: 1; }
.shop-head p { color: var(--muted); font-size: 13px; letter-spacing: .08em; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.filters select { font: 14px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 6px 22px 6px 0; border-radius: 0; min-width: 120px; }
.filters .check { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 8px; }
.filters .clear { background: none; border: 0; padding: 0 0 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

.grid { columns: 4 260px; column-gap: 28px; }
.card { break-inside: avoid; display: block; margin: 0 0 38px; }
.card .frame { position: relative; overflow: hidden; background: #ece7df; }
.card .art { width: 100%; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.card .art.room { position: absolute; inset: 0; background-size: cover; opacity: 0; }
.card:hover .art.flat { transform: scale(1.03); }
.card:hover .art.room { opacity: 1; }
.card .info { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 2px; }
.card .sub { font-size: 12px; color: var(--muted); }
.card .price { font-size: 14px; white-space: nowrap; }
.card.sold .price { color: #a2452f; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.more { text-align: center; padding: 20px 0 0; }
.site-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 40px 16px 50px; border-top: 1px solid var(--line); }

/* ---------- painting page ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.viewer .stage { background: #ece7df; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 40px); overflow: hidden; cursor: zoom-in; }
.viewer .stage.zoomed { cursor: zoom-out; }
.viewer .stage .art { width: 100%; max-height: 78vh; transition: transform .25s ease-out; }
.viewer .stage.room { padding: 0; cursor: default; }
.viewer .stage.room .art { max-height: none; background-size: cover; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs button { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line); background: #ece7df center / cover no-repeat; opacity: .6; }
.thumbs button.on { opacity: 1; border-color: var(--ink); }
.buy { position: sticky; top: 110px; }
.buy .crumb { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.buy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 54px); line-height: 1.05; margin: 14px 0 10px; }
.buy .price { font-family: var(--serif); font-size: 28px; margin: 0 0 24px; }
.buy .story { line-height: 1.75; color: #4a453f; margin: 0 0 24px; }
.specs { border-top: 1px solid var(--line); margin: 0 0 26px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; text-align: right; }
.buy .btn { width: 100%; margin-bottom: 10px; }
.buy .note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 14px; }
.related { max-width: 1440px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 48px) 60px; }
.related h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 24px; }
.related .grid { columns: 4 200px; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .buy { position: static; }
  .shop, .detail { padding-top: 110px; }
  .grid { column-gap: 16px; columns: 2 150px; }
  .card { margin-bottom: 26px; }
  .card .info { flex-direction: column; gap: 4px; }
}

.thumbs { flex-wrap: wrap; }
.thumbs button.is-video { position: relative; }
.thumbs button.is-video::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; background: rgba(20, 16, 12, .35); }
.viewer .stage video { width: 100%; max-height: 78vh; display: block; background: #ece7df; }

.grid.cols { columns: auto; display: flex; gap: 28px; align-items: flex-start; }
.grid.cols .col { flex: 1 1 0; min-width: 0; }
@media (max-width: 860px) { .grid.cols { gap: 16px; } }

/* Instagram posts of the painting */
.insta { max-width: 1200px; margin: 24px auto 8px; padding: 0 24px; text-align: center; }
.insta h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 2rem; margin: 0 0 6px; }
.insta-sub { color: #6b6259; margin: 0 0 22px; }
.insta-sub a { color: inherit; }
.insta-posts { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.insta-posts .instagram-media { margin: 0 !important; width: 400px; max-width: 100% !important; min-width: 280px !important; }
@media (max-width: 640px) { .insta { padding: 0 16px; } }

/* ---------- delivery + policy footer ---------- */
.buy .deliv { font-size: 13px; line-height: 1.6; color: #4a453f; margin: 18px 0 0; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); }
.buy .deliv strong { font-weight: 500; color: var(--ink); }
.buy .note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.shop-head .shop-deliv { flex-basis: 100%; letter-spacing: .02em; font-size: 13px; }
.site-footer .foot-deliv { margin: 0 0 22px; font-size: 13px; color: #4a453f; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px auto 0; max-width: 720px; }
.site-footer .foot-links a { color: var(--muted); letter-spacing: .04em; }
.site-footer .foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- checkout ---------- */
.co { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 30px 80px -30px rgba(30, 20, 10, .5); }
.co::backdrop { background: rgba(29, 27, 24, .55); }
.co-form, .co-done { position: relative; padding: clamp(22px, 4vw, 36px); }
.co h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 36px); margin: 0 0 14px; line-height: 1.1; }
.co-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px; }
.co-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.co-item strong { font-family: var(--serif); font-size: 20px; font-weight: 500; white-space: nowrap; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.co-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.co-grid label span { letter-spacing: 0; text-transform: none; }
.co-grid .full { grid-column: 1 / -1; }
.co-grid input { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 10px 12px; border-radius: 0; }
.co-grid input:focus { outline: 2px solid var(--oak); outline-offset: -1px; }
.co-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.co-note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.co-note a { color: inherit; text-decoration: underline; }
.co-error { color: #a3361f; font-size: 13px; margin: 14px 0 0; }
.co .btn { width: 100%; margin-top: 18px; }
.co-done p { font-size: 15px; line-height: 1.7; color: #3b3631; }
@media (max-width: 520px) { .co-grid { grid-template-columns: 1fr; } }
