/* Adam J Friedman — Photography & Filmmaking */

:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --ink: #f2efe9;
  --muted: #a9a49a;
  --line: rgba(242, 239, 233, 0.14);
  --accent: #d8c9a3;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(8px);
  transition: padding 0.3s;
}
.nav.scrolled { padding: 0.7rem 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.04em; }
.nav .links { display: flex; align-items: center; gap: 2rem; }
.nav .links a {
  color: var(--ink); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav .links a:hover { color: var(--accent); }
.nav .links a.cta {
  border: 1px solid var(--accent); color: var(--accent);
  padding: 0.55rem 1.3rem; border-radius: 999px; transition: 0.25s;
}
.nav .links a.cta:hover { background: var(--accent); color: #111; }
.menu-btn { display: none; background: none; border: none; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.35) 100%); }
.hero-text { position: absolute; inset: auto 0 12% 0; text-align: center; padding: 0 1.5rem; }
.hero-text h1 { font-size: clamp(2.8rem, 8vw, 6rem); margin-bottom: 0.6rem; }
.hero-text .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--ink); opacity: 0.9; margin-bottom: 2rem; }
.btn {
  display: inline-block; text-decoration: none; color: #111; background: var(--ink);
  padding: 0.85rem 2.2rem; border-radius: 999px; font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; transition: 0.25s;
}
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: var(--ink); text-decoration: none; font-size: 1.4rem; opacity: 0.7;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- sections ---------- */
.section { padding: 6rem 2rem; max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* ---------- masonry gallery ---------- */
.masonry { columns: 3 280px; column-gap: 1.2rem; }
.tile { break-inside: avoid; margin-bottom: 1.2rem; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.tile img { width: 100%; height: auto; transition: transform 0.6s ease, filter 0.6s ease; }
.tile:hover img { transform: scale(1.04); }

/* ---------- films ---------- */
.films { display: grid; gap: 3rem; max-width: 960px; margin: 0 auto; }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-title { font-family: var(--serif); font-size: 1.3rem; margin-top: 0.9rem; text-align: center; color: var(--ink); }

/* ---------- about ---------- */
.about { background: var(--bg2); max-width: none; }
.about-grid {
  max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center;
}
.about-photo img { border-radius: 4px; width: 100%; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.about-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.02rem; }

/* ---------- contact ---------- */
.contact { text-align: center; max-width: 760px; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.contact-sub { color: var(--muted); margin-bottom: 2.5rem; }
.contact-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2rem; text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 5, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: none; color: var(--ink);
  font-size: 1.8rem; cursor: pointer; padding: 0.8rem; opacity: 0.8;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; color: var(--accent); }
.lb-close { top: 1rem; right: 1.4rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- gallery cards ---------- */
.galleries { max-width: 1280px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cat-card {
  position: relative; display: block; border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--ink); aspect-ratio: 4 / 3; background: var(--bg2);
}
.cat-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-card:hover > img { transform: scale(1.05); }
.cat-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.1) 60%); }
.cat-label { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; }
.cat-label h3 { font-size: 1.6rem; }
.cat-label p { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; }
.cat-shoots {
  display: none; position: absolute; inset: auto 0 0 0; background: rgba(10,10,10,0.95);
  padding: 1rem 1.2rem; max-height: 70%; overflow-y: auto; z-index: 2;
}
.cat-card.show-shoots .cat-shoots { display: block; }
.cat-shoots a { display: block; color: var(--ink); text-decoration: none; padding: 0.45rem 0; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.cat-shoots a:hover { color: var(--accent); }

/* ---------- gallery page ---------- */
.gallery-page { padding-top: 4rem; }
.g-count { color: var(--muted); letter-spacing: 0.1em; margin-top: 0.8rem; }
.gallery-nav { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 4rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { padding: 1rem 1.2rem; }
  .menu-btn { display: block; }
  .nav .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13,13,13,0.97); flex-direction: column; padding: 1.5rem; gap: 1.4rem;
  }
  .nav.open .links { display: flex; }
  .section { padding: 4rem 1.2rem; }
  .lb-prev { left: 0.2rem; } .lb-next { right: 0.2rem; }
}

/* ---------- nav active link ---------- */
.nav .links a.active { color: var(--accent); }

/* ---------- page hero (shorter than home hero) ---------- */
.page-hero { position: relative; height: 68svh; min-height: 420px; overflow: hidden; }
.page-hero .hero-text { inset: auto 0 14% 0; }

/* ---------- doors (homepage chooser) ---------- */
.doors { max-width: 1280px; }
.door-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.door-card {
  position: relative; display: block; border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--ink); aspect-ratio: 1 / 1; background: var(--bg2);
}
.door-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.door-card:hover > img { transform: scale(1.05); }
.door-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.1) 60%); }
.door-label { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.4rem; }
.door-label h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.door-label p { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.06em; margin-top: 0.2rem; }
.door-enter {
  display: inline-block; margin-top: 0.9rem; font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 0.2rem;
}

/* ---------- intro blurb ---------- */
.intro { max-width: 780px; text-align: center; padding-top: 4rem; padding-bottom: 1rem; }
.intro p { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.6; color: var(--ink); }

/* ---------- door gallery rows ---------- */
.door-row { padding-top: 3rem; padding-bottom: 3rem; }

/* ---------- art store ---------- */
.store { max-width: 1280px; }
.store-grid { columns: 3 280px; column-gap: 1.2rem; }
.piece-card { break-inside: avoid; margin-bottom: 2.2rem; }
.piece-card img { width: 100%; height: auto; border-radius: 4px; }
.piece-card figcaption { padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.piece-card h3 { font-size: 1.4rem; }
.piece-btn { padding: 0.65rem 1.5rem; font-size: 0.75rem; cursor: pointer; border: none; font-family: var(--sans); }
.store-note { text-align: center; color: var(--muted); max-width: 640px; margin: 2.5rem auto 0; }

/* ---------- order form ---------- */
.order { max-width: 760px; }
.order-form { display: grid; gap: 1.4rem; }
.order-form .hp { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.order-form label { display: grid; gap: 0.5rem; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.order-form .opt { text-transform: none; letter-spacing: 0.02em; opacity: 0.7; }
.order-form input, .order-form select, .order-form textarea {
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 4px; padding: 0.85rem 1rem; font-size: 1rem; font-family: var(--sans); font-weight: 300;
  width: 100%; appearance: none;
}
.order-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9a49a' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.order-form textarea { resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.order-form .btn { justify-self: start; cursor: pointer; border: none; font-family: var(--sans); }
.form-note { color: var(--muted); font-size: 0.9rem; }
.form-success { text-align: center; border: 1px solid var(--line); border-radius: 4px; padding: 4rem 2rem; background: var(--bg2); }
.form-success h3 { font-size: 2rem; margin-bottom: 1rem; }
.form-success p { color: var(--muted); }

/* ---------- responsive additions ---------- */
@media (max-width: 860px) {
  .store-grid { columns: 2 200px; }
}
@media (max-width: 720px) {
  .door-grid { grid-template-columns: 1fr; }
  .door-card { aspect-ratio: 1 / 1; }
  .form-row { grid-template-columns: 1fr; }
  .store-grid { columns: 1 280px; max-width: 480px; margin: 0 auto; }
}

/* ---------- art shop — light gallery theme (art.html only) ---------- */
body.shop { --bg: #ffffff; --bg2: #f6f5f1; --ink: #1b1a17; --muted: #8d887b; --line: rgba(27,26,23,.14); --accent: #b08d57; }
body.shop .nav, body.shop .nav.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
body.shop .brand img { filter: invert(1); }

/* plain centered hero, like a gallery wall */
body.shop .shop-hero { text-align: center; padding: 9.5rem 1.5rem 4.5rem; background: #fff; max-width: 960px; margin: 0 auto; }
body.shop .shop-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
body.shop .shop-sub { color: var(--muted); max-width: 640px; margin: 1.3rem auto 0; font-size: 1.02rem; }

/* store grid — even 3-col gallery grid */
body.shop .store { max-width: 1280px; }
body.shop .store-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2.4rem; row-gap: 4rem; }
body.shop .pieces-count { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }

/* card — real frame that recolors live + hover lift/zoom */
body.shop .piece-card { margin: 0; text-align: center; }
body.shop .piece-frame {
  background: #1a1a1a;
  padding: 12px;
  box-shadow: inset 0 1px 0 var(--sheen, rgba(255,255,255,.15)), inset 0 -10px 18px var(--shade, rgba(0,0,0,.12)), 0 34px 55px -20px rgba(70,58,36,.45), 0 6px 16px rgba(27,26,23,.12);
  outline: 1px solid var(--line, transparent);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: pointer;
}
body.shop .piece-card[data-finish="Black"] .piece-frame {
  --sheen: rgba(255,255,255,.22); --shade: rgba(0,0,0,.55); --line: #050505;
  background: linear-gradient(155deg, #3d3d3d, #141414 55%, #242424);
}
body.shop .piece-card[data-finish="White"] .piece-frame {
  --sheen: rgba(255,255,255,.95); --shade: rgba(27,26,23,.08); --line: #ddd8cc;
  background: linear-gradient(155deg, #ffffff 55%, #e5e3db);
}
body.shop .piece-card[data-finish="Grey"] .piece-frame {
  --sheen: rgba(255,255,255,.55); --shade: rgba(27,26,23,.20); --line: #8f8f89;
  background: linear-gradient(155deg, #b2b2ac, #83837d 55%, #6d6d68);
}
body.shop .piece-card[data-finish="Natural Oak"] .piece-frame {
  --sheen: rgba(255,255,255,.38); --shade: rgba(90,60,20,.20); --line: #a8895c;
  background: linear-gradient(155deg, rgba(255,255,255,.20), rgba(255,255,255,0) 45%, rgba(0,0,0,.13)), url("../images/frames/oak.jpg");
  background-size: cover, 320px;
}
body.shop .piece-card[data-finish="Walnut"] .piece-frame {
  --sheen: rgba(255,255,255,.16); --shade: rgba(0,0,0,.38); --line: #3a2614;
  background: linear-gradient(155deg, rgba(255,255,255,.10), rgba(255,255,255,0) 45%, rgba(0,0,0,.22)), url("../images/frames/walnut.jpg");
  background-size: cover, 320px;
}
/* mat layer — default none (photo runs edge-to-edge inside the frame) */
body.shop .mat { background: #fff; padding: 0; transition: padding .25s ease; }
body.shop .piece-card[data-mat="white"] .mat { padding: 14px; }
body.shop .piece-frame .zoom { overflow: hidden; }
body.shop .piece-frame img { border-radius: 0; width: 100%; height: auto; transition: transform .6s ease; display: block; }
body.shop .piece-card:hover .piece-frame { transform: translateY(-8px) scale(1.015); box-shadow: inset 0 1px 0 var(--sheen, rgba(255,255,255,.15)), inset 0 -10px 18px var(--shade, rgba(0,0,0,.12)), 0 44px 68px -24px rgba(70,58,36,.55), 0 8px 20px rgba(27,26,23,.14); }

/* product page: the piece pops off the wall on hover */
body.shop .room-piece { transition: transform .55s cubic-bezier(.2,.7,.25,1.15); }
body.shop .room-piece:hover { transform: translateY(-5px) scale(1.05); }
body.shop .room-piece:hover .piece-frame {
  box-shadow: inset 0 1px 0 var(--sheen, rgba(255,255,255,.15)), inset 0 -10px 18px var(--shade, rgba(0,0,0,.12)), 0 56px 84px -26px rgba(70,58,36,.62), 0 12px 26px rgba(27,26,23,.18);
}
body.shop .piece-card:hover .piece-frame img { transform: scale(1.05); }

/* finish swatches — wood finishes carry a real grain texture */
body.shop .swatches { display: flex; justify-content: center; align-items: center; gap: .65rem; margin: 1.2rem 0 .9rem; }
body.shop .swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); cursor: pointer; padding: 0; background: #fff; transition: transform .15s; box-shadow: inset 0 1px 1px rgba(255,255,255,.35), inset 0 -2px 3px rgba(0,0,0,.18); }
body.shop .swatch:hover { transform: scale(1.12); }
body.shop .swatch[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
body.shop .swatch[data-fin="Black"] { background: #1a1a1a; }
body.shop .swatch[data-fin="White"] { background: #f4f4f2; }
body.shop .swatch[data-fin="Grey"] { background: #83837d; }
body.shop .swatch[data-fin="Natural Oak"] { background-image: url("../images/frames/oak.jpg"); background-size: 64px; }
body.shop .swatch[data-fin="Walnut"] { background-image: url("../images/frames/walnut.jpg"); background-size: 64px; }
body.shop .swatches .sep { width: 1px; height: 18px; background: rgba(0,0,0,.16); margin: 0 .15rem; }
body.shop .swatch.mat-btn[data-mat-btn="none"] { background: linear-gradient(45deg, transparent 44%, #a39c8c 44%, #a39c8c 56%, transparent 56%), #f2f0ea; }
body.shop .swatch.mat-btn[data-mat-btn="white"] { background: #ffffff; }

/* caption — small aligned title + price, whole card is the order action */
body.shop .piece-card figcaption { cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .15rem; padding-top: 0; flex-wrap: nowrap; }
body.shop .piece-card h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: .02em; margin-bottom: .2rem; }
body.shop .piece-price { color: var(--ink); font-size: .95rem; letter-spacing: .04em; }
body.shop .piece-price span { color: var(--ink); font-weight: 500; }

/* warm bands + beige footer, gallery-style */
body.shop .order { background: var(--bg2); max-width: none; }
body.shop .order > * { max-width: 760px; margin-left: auto; margin-right: auto; }
body.shop .order .section-head { margin-bottom: 2.5rem; }
body.shop footer { background: #ece7dd; border-top: none; }

@media (max-width: 720px) {
  body.shop .store-grid { grid-template-columns: repeat(2, 1fr); column-gap: 1rem; row-gap: 2.6rem; max-width: none; }
  body.shop .shop-hero { padding-top: 7.5rem; }
}

/* ---------- homepage contact form ---------- */
.contact-form { max-width: 680px; margin: 2.8rem auto 0; display: grid; gap: 1.1rem; text-align: left; }
.contact-form label { display: grid; gap: .45rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-form .opt { text-transform: none; letter-spacing: .02em; opacity: .7; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  padding: .8rem .9rem; font: inherit; font-size: .95rem; letter-spacing: normal;
  text-transform: none; border-radius: 2px; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { justify-self: center; cursor: pointer; border: none; margin-top: .3rem; }
.contact-status { text-align: center; color: var(--muted); font-size: .92rem; min-height: 1.2em; margin: 0; }

/* black mat state */
body.shop .piece-card[data-mat="black"] .mat { background: #141414; padding: 14px; }
body.shop .swatch.mat-btn[data-mat-btn="black"] { background: #1b1b1b; }

/* hover name label above each circle */
body.shop .swatch { position: relative; }
body.shop .swatch::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(3px);
  background: #1b1a17; color: #fff;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .34rem .55rem; border-radius: 3px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); z-index: 6;
}
body.shop .swatch:hover::after, body.shop .swatch:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* category filter tabs */
body.shop .piece-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin: -.6rem 0 2.6rem; }
body.shop .piece-filter {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
  padding: .52rem 1.05rem; border-radius: 999px; cursor: pointer; transition: all .2s ease;
}
body.shop .piece-filter:hover { border-color: var(--ink); }
body.shop .piece-filter.active { background: #1b1a17; border-color: #1b1a17; color: #fff; }

/* circle clicks must never move the page: no scroll anchoring on the grid */
body.shop .store-grid { overflow-anchor: none; }

/* ============ QUICK VIEW + PRODUCT PAGE (fine-art shop) ============ */
body.shop .qv-pill {
  font: inherit; font-size: .82rem; letter-spacing: .04em; cursor: pointer;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid rgba(27,26,23,.3); background: transparent; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
body.shop .qv-pill:hover { border-color: var(--ink); }
body.shop .qv-pill.active { background: var(--ink); color: #fdfcf9; border-color: var(--ink); }
body.shop .qv-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
body.shop .qv-group { margin-top: 1.15rem; }
body.shop .qv-label {
  display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .55rem;
}
body.shop .btn { background: var(--ink); color: #fdfcf9; }
body.shop .btn:hover { background: var(--accent); color: #111; }
body.shop .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
body.shop .btn.ghost:hover { background: var(--ink); color: #fdfcf9; }
body.shop .qv-swatches, body.shop .pv-swatches { justify-content: flex-start; }
body.shop .room-piece { margin: 0 auto; }

/* preview modes for non-framed finishes */
body.shop .piece-card[data-preview="bare"] .piece-frame { background: transparent; padding: 0; box-shadow: 0 18px 34px -18px rgba(27,26,23,.35); outline: none; }
body.shop .piece-card[data-preview="bare"] .mat { padding: 0; }
body.shop .piece-card[data-preview="canvas"] .piece-frame { background: transparent; padding: 0; box-shadow: 0 24px 40px -18px rgba(27,26,23,.42); outline: none; }
body.shop .piece-card[data-preview="canvas"] .mat { padding: 0; }
body.shop .piece-card[data-preview="metal"] .piece-frame { background: linear-gradient(155deg, #d9d9d9, #a6a6a6); padding: 4px; box-shadow: 0 24px 40px -18px rgba(27,26,23,.42); outline: 1px solid #bcbcbc; }
body.shop .piece-card[data-preview="metal"] .mat { padding: 0; }

/* quick-view overlay */
.qv { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.qv[hidden] { display: none; }
.qv-backdrop { position: absolute; inset: 0; background: rgba(22,20,16,.55); }
.qv-panel {
  position: relative; background: #fdfcf9; width: min(920px, 100%);
  max-height: calc(100vh - 2rem); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem;
  padding: 2.2rem; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
}
.qv-x {
  position: absolute; top: .6rem; right: .9rem; z-index: 2;
  background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.qv-card { margin: 0; }
.qv-cat { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.qv-title { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin-top: .4rem; }
.qv-price { font-family: var(--serif); font-size: 1.45rem; margin-top: .5rem; }
.qv-swatches { justify-content: flex-start; margin: 0; }
.qv-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.qv-note { color: var(--muted); font-size: .85rem; margin-top: 1rem; line-height: 1.55; }

/* product page */
.product { max-width: 1280px; }
.pv-back { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.pv-back:hover { color: var(--brass); }
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; margin-top: 1.8rem; align-items: start; }
.pv-views { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.product-media .piece-card { margin: 0; }
.product-info h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 500; margin-top: .5rem; }
.pv-note { color: #57544b; line-height: 1.7; margin-top: 1rem; max-width: 48ch; font-weight: 300; }
.pv-pricewrap { margin-top: 1.5rem; }
.pv-pricewrap #pvPrice { font-family: var(--serif); font-size: 1.9rem; }
.pv-pricewrap small { display: block; color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.pv-swatches { justify-content: flex-start; margin: 0; }
.pv-order { margin-top: 1.9rem; }
.pv-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; padding: 0; margin: 1.7rem 0 0; font-size: .82rem; letter-spacing: .05em; color: #57544b; }
.pv-trust li::before { content: "·"; color: var(--brass); margin-right: .5rem; font-weight: 700; }
.pv-specs { margin-top: 2rem; border-top: 1px solid var(--line); }
.pv-specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.pv-specs dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.pv-specs dd { margin: 0; font-weight: 300; line-height: 1.55; }
.pv-missing { text-align: center; padding: 4rem 0; }

/* on-a-wall view */
.room { margin-top: .2rem; }
.room-wall { background: linear-gradient(#f4f2ec, #eae7de); border: 1px solid var(--line); padding: 2.4rem 1rem 0; overflow: hidden; }
.room-piece { margin: 0 auto; position: relative; z-index: 2; }
.room-sofa { display: block; width: 70%; margin: 1.4rem auto 0; }
.room-cap { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .9rem; }

/* related */
.rel-card { text-decoration: none; color: inherit; display: block; }
.rel-card .piece-card { margin: 0; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 760px) {
  .qv-panel { grid-template-columns: 1fr; padding: 1.4rem; gap: 1.4rem; }
}
