/* Kelly Tracht Gallery — SAMPLE shop styles (adds to styles.css) */

.demo-bar { background: var(--coral); color: var(--white); text-align: center; font-size: .85rem; padding: 7px 16px; }

/* Header cart button */
.site-header .wrap { gap: 20px; }
.cart-btn {
  position: relative; background: none; border: 0; cursor: pointer; color: var(--ink);
  padding: 8px; display: flex; align-items: center;
}
.cart-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: var(--white);
  font-size: .7rem; font-weight: 600; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
@media (max-width: 980px) {
  .cart-btn { order: 2; margin-left: auto; }
  .nav-btn { order: 3; }
}

/* Filters */
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: 8px 18px; border-radius: 0; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
#shop-count { color: var(--ink-soft); font-size: .9rem; }
.shop-search { flex: 1 1 260px; max-width: 420px; margin: 0; }
.shop-search input { width: 100%; padding: 10px 12px 10px 38px; border: 1.5px solid var(--line); border-radius: 0; font: inherit; font-size: 16px; color: inherit;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346618c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 11px center / 18px; }
.shop-search input:focus { outline: none; border-color: var(--teal); }

/* Subject filters: buttons on wider screens, a dropdown on phones */
.subject-bar { margin: -16px 0 32px; }
.subjects { display: flex; flex-wrap: wrap; gap: 6px; }
.subjects button {
  font: inherit; font-size: .82rem; cursor: pointer;
  padding: 5px 12px; border-radius: 0; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft);
}
.subjects button span { opacity: .6; margin-left: 2px; }
.subjects button:hover { color: var(--ink); border-color: var(--ink-soft); }
.subjects button[aria-pressed="true"] { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--white); }
.subjects button[aria-pressed="true"] span { opacity: .8; }
.subject-pick { display: none; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.subject-pick select {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 10px 12px; border-radius: 0; border: 1.5px solid var(--line); background: var(--white);
}
@media (max-width: 700px) {
  .subjects { display: none; }
  .subject-pick { display: flex; }
}

/* Cards: badges and sold */
.card .frame { position: relative; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  background: var(--ink); color: var(--white); padding: 4px 10px; border-radius: 4px;
}
.badge.orig { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.card.sold img { opacity: .55; }
.card.sold .price { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 560px) {
  .grid.shop { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .grid.shop .card h3 { font-size: 1.1rem; }
  .grid.shop .card .meta { font-size: .8rem; }
  .grid.shop .card img { padding: 8px; }
}

/* Product page */
.crumbs { font-size: .88rem; color: var(--ink-soft); padding: 24px 0 0; }
.crumbs a { color: var(--ink-soft); }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; padding: 28px 0 72px; }
.pd-media { position: sticky; top: 96px; }
.pd-media .frame { background: var(--sand); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.pd-media img { max-height: 100%; object-fit: contain; padding: 28px; }
.pd-info h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .2em; }
.pd-info .meta { color: var(--ink-soft); margin: 0 0 14px; }
.pd-price { font-size: 1.6rem; font-weight: 600; margin: 0 0 20px; }
.opt-one { padding: 12px 16px; background: var(--sand); border-radius: 6px; }

.choices { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 0;
  font-size: .92rem; line-height: 1.3; text-align: center; background: var(--white);
}
.choice small { display: block; color: var(--ink-soft); font-size: .78rem; }
.choice input:checked + span { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #f0f9f9; }
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.choice.off { cursor: not-allowed; }
.choice.off span { opacity: .4; }
.mat-note { margin: -8px 0 18px; color: var(--ink-soft); }

.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-wide { width: 100%; padding: 16px; font-size: 1rem; margin: 6px 0 24px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 1000px) { .pd { grid-template-columns: 1fr 1fr; gap: 32px; } .pd-media { top: 88px; } .pd-media img { padding: 16px; } }
@media (max-width: 700px) {
  .pd { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .pd-media { position: static; }
  .pd-media .frame { aspect-ratio: auto; max-height: 70vh; }
  .pd-media img { max-height: 70vh; padding: 18px; }
}

/* Cart drawer */
.cart-backdrop { position: fixed; inset: 0; background: rgba(12,34,54,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 51;
  background: var(--white); display: flex; flex-direction: column;
  height: 100dvh; overflow-y: auto; overscroll-behavior: contain;   /* the whole drawer scrolls when the checkout part is taller than a phone screen */
  transform: translateX(100%); transition: transform .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.cart-open .cart { transform: none; }
.cart-open .cart-backdrop { opacity: 1; pointer-events: auto; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h3 { margin: 0; }
.cart-x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 4px; }
.cart-items { flex: 1 0 auto; padding: 8px 20px; }
.cart-empty { color: var(--ink-soft); padding: 24px 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 80px; object-fit: contain; background: var(--sand); padding: 4px; }
.cart-line strong { display: block; font-size: .95rem; }
.cart-line .small { display: block; color: var(--ink-soft); font-size: .82rem; line-height: 1.4; }
.cart-price { font-weight: 600; font-size: .95rem; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .9rem; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--white); border-radius: 0; cursor: pointer; color: var(--ink); }
.qty button.link { width: auto; border: 0; text-decoration: underline; color: var(--ink-soft); font-size: .82rem; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.cart-open .ktc { display: none; }   /* the chat button would cover the checkout button */
.cart-foot .small { font-size: .82rem; color: var(--ink-soft); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 6px; }
.cart-foot .btn { width: 100%; padding: 15px; font-size: 1rem; }
.cart-foot .note { margin-top: 14px; font-size: .85rem; }

/* Phone: keep logo on one line, shorter product image */
.logo { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .logo { font-size: 1.35rem; letter-spacing: .08em; }
  .site-header .wrap { gap: 8px; }
}
@media (max-width: 700px) {
  .pd-media .frame, .pd-media img { max-height: 52vh; }
}

/* Gallery look: art floating on white, three across */
.grid.shop { grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.card.art { text-align: center; }
.card.art .frame { background: none; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: visible; }
.card.art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .45s cubic-bezier(.2,.7,.3,1), filter .45s ease; }
img.flat { filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)) drop-shadow(0 10px 18px rgba(0,0,0,.16)); }
/* Hover: the piece grows slightly and lifts (mouse/trackpad only) */
@media (hover: hover) {
  .card.art:hover img, .card.art:focus-visible img { transform: scale(1.06); }
  .card.art:hover img.flat, .card.art:focus-visible img.flat { filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)) drop-shadow(0 18px 28px rgba(0,0,0,.2)); }
}
@media (prefers-reduced-motion: reduce) { .card.art img { transition: none; } }
.card.art h3 { margin-top: 8px; }
.card.art .price { margin-top: 2px; }
.sold-tag { color: var(--coral); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.card.sold img { opacity: .6; }

.pd-media .frame { background: none; }
.pd-media img.flat { padding: 32px; }
.thumbs { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.thumbs button { width: 72px; height: 72px; padding: 4px; background: var(--white); border: 1.5px solid var(--line); border-radius: 0; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--teal); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs img.flat { object-fit: contain; filter: none; }

@media (max-width: 860px) { .grid.shop { gap: 40px 24px; } }
@media (max-width: 560px) {
  .grid.shop { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .grid.shop .card.art img { padding: 2%; }
}
.pd-media .thumbs img, .pd-media .thumbs img.flat { padding: 0; max-height: none; }

/* Listing text: clean rounded sans (like the Fine Art America example), navy */
.card.art h3, .card.art .meta { font-family: "Figtree", var(--sans); }
.card.art h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: 0; color: var(--ink); margin: 14px 0 2px; }
.card.art .meta { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.card.art .price { font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-top: 2px; }
.card.art .sold-tag { font-size: .85rem; }
@media (max-width: 560px) {
  .grid.shop .card.art h3 { font-size: 1.02rem; }
  .grid.shop .card.art .meta { font-size: .85rem; }
  .grid.shop .card.art .price { font-size: 1.08rem; }
}

/* Live shop additions */
.pd-desc { margin-top: 24px; color: var(--ink-soft); font-size: .95rem; }
.pd-desc p { margin: 0 0 .8em; }
.note.thanks { border-left-color: var(--teal); margin-bottom: 24px; }
#cart-msg { margin-top: 12px; font-size: .9rem; }
.thumbs { flex-wrap: wrap; }

/* Delivery choice in the cart */
.delivery { border: 0; padding: 0; margin: 0 0 14px; }
.delivery legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.delivery label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 0; margin-bottom: 6px; cursor: pointer; font-size: .92rem; }
.delivery label[hidden] { display: none; }
.delivery label:has(input:checked) { border-color: var(--teal); background: #f2fafa; }
.delivery input { margin-top: 3px; accent-color: var(--teal); }
.delivery small { display: block; color: var(--ink-soft); font-size: .8rem; }
.ship-row strong a { color: inherit; }
.ship-where { margin: -4px 0 14px; display: grid; gap: 6px; }
.ship-where[hidden], .ship-where select[hidden] { display: none; }
.ship-where label { font-weight: 600; }
.ship-where .muted { font-weight: 400; color: var(--ink-soft); }
.ship-where input, .ship-where select { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: inherit; }

.frame-note { margin: 18px 0 0; padding: 12px 14px; background: var(--sand); border-radius: 8px; }

/* Shop page banner: the "Originals & Prints" gallery wall (Rich 2026-10-24), letters recolored in the logo pink.
   Cropped to a wide strip around the sign; phones get a tighter crop (shop-banner-narrow.jpg). The intro line sits below. */
.shop-hero { max-width: 1600px; margin: 0 auto; }
.shop-hero img { display: block; width: 100%; height: auto; }   /* shown whole: the banner has words and icons to the edges (2026-10-29) */
.shop-hero-lead { max-width: 760px; margin: 0 auto; padding: 22px 20px 0; text-align: center; color: var(--ink-soft); font-size: clamp(1.02rem, 1.3vw, 1.25rem); line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .shop-hero img { aspect-ratio: auto; }
}

/* The review ticker sits right under the banner, so it never covers the banner's icons (Rich 2026-10-29). Its styles are in styles.css. */
.shop-hero-art { overflow: hidden; }
.btn-wide + .wall-link { margin-top: -14px; }   /* "See it on your wall" right under Add to cart */
.wall-link { text-align: center; }

/* "Also available as a fine art print" on originals that have a print (Rich 2026-11-18) */
.print-of { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 10px 14px 10px 10px; border: 1px solid var(--line, #e3e0da); border-radius: 10px; color: inherit; text-decoration: none; background: #fff; }
.print-of:hover { border-color: currentColor; }
.print-of img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.print-of span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.print-of strong { font-size: .95rem; }
.print-of small { color: var(--ink-soft); font-size: .85rem; }
.print-of .print-of-go { margin-left: auto; font-size: 1.2rem; flex: none; }

/* Cart page (cart.html): the Instagram/Facebook checkout link lands here; the drawer becomes the page (Rich 2026-11-19) */
.cart-page .cart { position: static; transform: none; width: 100%; max-width: 640px; height: auto; margin: 0 auto; box-shadow: none; border: 1px solid var(--line); overflow: visible; z-index: auto; transition: none; }
.cart-page .cart-backdrop, .cart-page .cart-x, .cart-page .cart-head { display: none; }
.cart-page.cart-open .ktc { display: block; }
.cart-page-more { max-width: 640px; margin: 18px auto 0; text-align: center; }
.cart-static { max-width: 640px; margin: 0 auto; border: 1px solid var(--line); padding: 8px 20px 14px; }
.cart-static .cart-total { margin-top: 12px; }

/* Share button on listings (Rich 2026-11-21) */
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: -10px 0 22px; padding: 10px; background: none; border: 0; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.share-btn svg { width: 18px; height: 18px; flex: none; }
.share-btn:hover { opacity: .7; }
