/* ==========================================================================
   Vista Blocks: shop and collection pages (banner, space strip, filters,
   toolbar, product cards, Load more). Ported from the prototype's shop.css.
   ========================================================================== */
.shop-hero, .shop-cats, .shop-layout { font-family: var(--sans); color: var(--charcoal); box-sizing: border-box; }
.shop-hero *, .shop-cats *, .shop-layout * { box-sizing: border-box; }
.shop-layout svg, .shop-hero svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.shop-layout p, .shop-hero p, .shop-layout h2, .shop-layout h3, .shop-hero h1 { margin: 0; }
.shop-layout a, .shop-cats a, .shop-hero a { text-decoration: none; color: inherit; }
:where(.shop-layout) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- Collection banner ---------- */
.shop-hero { position: relative; min-height: clamp(280px, 34vw, 400px); display: flex; align-items: flex-end; color: var(--ivory); background: var(--charcoal); overflow: hidden; margin: 0; }
.shop-hero__media { position: absolute; inset: 0; }
.shop-hero__media.art, .promo-tile .art { background: var(--charcoal); } /* dark while the photo loads, so the light text stays readable */
.shop-hero__media img { animation: vistaHeroZoom 9s var(--ease) both; }
@keyframes vistaHeroZoom { from { transform: scale(1.08); } }
.shop-hero__inner { text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.4); } /* no tint on the banner photo (client, Oct 1) */
.shop-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 44px; }
.crumbs--light { color: var(--ivory); margin-bottom: 26px; }
.crumbs--light a:hover { color: var(--brass-light); }
.crumbs--light span[aria-current] { color: var(--ivory); }
.shop-hero .eyebrow { margin-bottom: 14px; }
.shop-hero__title { font-family: var(--display); font-weight: 500; font-size: var(--wp--preset--font-size--title, clamp(26px, 3vw, 40px)); letter-spacing: .04em; line-height: 1.15; max-width: 760px; color: var(--ivory); }
/* Split banner (Ready to Hang): text on a charcoal panel beside the photo, so light text never sits on a light photo (no tint, client Oct 1) */
.shop-hero--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: stretch; min-height: clamp(320px, 32vw, 440px); }
.shop-hero--split .shop-hero__media { position: relative; inset: auto; grid-column: 2; grid-row: 1; min-height: 100%; }
.shop-hero--split .shop-hero__media img { animation: none; }
.shop-hero--split .shop-hero__inner { grid-column: 1; grid-row: 1; align-self: center; max-width: none; margin: 0; padding: 44px clamp(28px, 4vw, 64px) 44px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); text-shadow: none; }
.shop-hero--split .crumbs--light, .shop-hero--split .eyebrow, .shop-hero--split .shop-hero__desc { text-shadow: none; }
.shop-hero--split .eyebrow { color: var(--brass-light, #d7b77e); }
.shop-hero__desc { max-width: 560px; margin-top: 14px !important; color: var(--ivory); font-weight: 400; font-size: 15.5px; line-height: 1.7; text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.45); }
.shop-hero .eyebrow { color: var(--ivory); }
.shop-hero .crumbs--light, .shop-hero .eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.45); }

/* ---------- Space strip ---------- */
.shop-cats { padding-top: 34px; padding-bottom: 8px; margin: 0 auto !important; }
.shop-cats__track { display: flex; gap: clamp(16px, 2.6vw, 34px); justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.shop-cats__track::-webkit-scrollbar { display: none; }
/* centred when it fits, scrollable from the first item when it does not */
.shop-cats__track > :first-child { margin-left: auto; }
.shop-cats__track > :last-child { margin-right: auto; }
.shop-cat { display: grid; justify-items: center; gap: 10px; flex: none; width: 96px; text-align: center; }
.shop-cat__img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .4s var(--ease); background: var(--cream); }
.shop-cat__img img { width: 100%; height: 100% !important; object-fit: cover; }
.shop-cat__label { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; color: var(--ink-soft); }
.shop-cat:hover .shop-cat__img { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brass), 0 10px 20px -10px rgba(33,27,22,.4); }
.shop-cat.is-active .shop-cat__img { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3.5px var(--brass); }
.shop-cat.is-active .shop-cat__label { color: var(--charcoal); }

/* ---------- Layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: 34px; padding-bottom: clamp(64px, 8vw, 110px); align-items: start; margin: 0 auto !important; }
.shop-layout.is-loading .shop-main { opacity: .45; transition: opacity .2s; pointer-events: none; }

/* ---------- Filters ---------- */
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.admin-bar .filters { top: 172px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--charcoal); }
.filters__head h2 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .1em; }
.filters__close { display: none !important; }
.filters .accordion { border-top: 0; }
.filters .accordion__btn { padding: 16px 0 !important; font-size: 11px !important; }
.filters .accordion__btn em { font-style: normal; color: var(--terracotta); margin-left: 4px; }
.filters__none { padding: 16px 0; font-size: 13px; color: var(--ink-soft); }
.fgroup { display: grid; gap: 2px; padding-bottom: 16px; }
.fgroup--swatch { grid-template-columns: 1fr 1fr; column-gap: 8px; }
.fopt { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; transition: color .2s; }
.fopt:hover { color: var(--charcoal); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.fopt__box { width: 16px; height: 16px; flex: none; border: 1px solid color-mix(in srgb, var(--charcoal) 35%, transparent); background: var(--paper); display: grid; place-items: center; transition: all .2s; }
.fopt input:checked + .fopt__box { background: var(--charcoal); border-color: var(--charcoal); }
.fopt input:checked + .fopt__box::after { content: ""; width: 8px; height: 4px; border: solid var(--ivory); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.fopt input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.fopt__swatch { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow .2s; }
.fopt input:checked + .fopt__swatch { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3.5px var(--charcoal); }
.fopt__label { flex: 1; }
.fopt input:checked ~ .fopt__label { color: var(--charcoal); font-weight: 500; }
.fopt__count { font-size: 11px; color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.filters__foot { display: none; }
/* without JavaScript the filters need a button to apply them */
html:not(.js) .filters__foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar__filter { display: none !important; align-items: center; gap: 8px; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px !important; border: 1px solid var(--charcoal) !important; }
.toolbar__filter svg { width: 16px; height: 16px; }
.toolbar__count { font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.sort select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--charcoal); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242522' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; border: 1px solid var(--line); border-radius: 0; padding: 9px 34px 9px 12px; cursor: pointer; }
.sort select:focus { outline: 1px solid var(--charcoal); }
.density { display: flex; gap: 2px; }
.density button { width: 34px; height: 34px; display: grid; place-items: center; color: color-mix(in srgb, var(--charcoal) 35%, transparent) !important; transition: color .2s; }
.density button svg { width: 18px; height: 18px; }
.density button.is-active, .density button:hover { color: var(--charcoal) !important; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 14px; font-size: 12px; background: var(--cream); border-radius: 30px; transition: background .2s; }
.chip svg { width: 13px !important; height: 13px !important; }
.chip:hover { background: var(--line); }
.chip--clear { background: none; text-decoration: underline !important; text-underline-offset: 3px; padding-left: 6px; }

/* ---------- Product grid + cards ---------- */
.pgrid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px) clamp(16px, 2vw, 28px); margin-top: 28px; }
.card { position: relative; display: flex; flex-direction: column; animation: vistaCardIn .6s var(--ease) both; }
@keyframes vistaCardIn { from { opacity: 0; transform: translateY(16px); } }
.card__media { display: block; position: relative; aspect-ratio: 4 / 3; margin-bottom: 16px; overflow: hidden; background: var(--card); }
/* the mural fills the card; on hover it cross-fades to the installed room photo */
.card__flat { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.card__flat img { width: 100%; height: 100% !important; object-fit: cover; }
.card:hover .card__flat { transform: scale(1.04); }
.card__room { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.4s var(--ease); }
.card__media:hover .card__room[srcset] { opacity: 1; transform: none; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--terracotta); color: var(--ivory); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; white-space: nowrap; }
.card__badge--new { background: var(--sage-deep); }
.card__quick { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; background: var(--charcoal); color: var(--ivory); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: 12px; opacity: 0; transform: translateY(10px); transition: all .35s var(--ease); }
.card:hover .card__quick { opacity: 1; transform: none; }
.card__quick:hover { background: var(--terracotta); }
.card__artist { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); }
.card__title { font-family: var(--serif) !important; font-size: 20px !important; font-weight: 500 !important; line-height: 1.25; letter-spacing: 0 !important; text-transform: none !important; margin: 4px 0 6px !important; }
.card__title a:hover { color: var(--terracotta); }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; margin-top: auto; }
.card__price { font-weight: 600; font-size: 13.5px; }
.card__price .price-from { font-weight: 400; color: var(--ink-soft); }
.card__rating { color: var(--ink-soft); font-size: 12.5px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.card__rating svg { width: 13px !important; height: 13px !important; fill: var(--brass) !important; stroke: var(--brass) !important; }

.promo-tile { position: relative; display: flex; align-items: flex-end; min-height: 100%; color: var(--ivory) !important; overflow: hidden; background: var(--espresso); }
.promo-tile .art { position: absolute; inset: 0; }
.promo-tile .art img { transition: transform 1.4s var(--ease); }
.promo-tile:hover .art img { transform: scale(1.06); }
.promo-tile__body { text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.4); } /* no tint on the photo (client, Oct 1) */
.promo-tile__body .btn { text-shadow: none; }
.promo-tile__body { position: relative; z-index: 1; padding: 26px; }
.promo-tile .eyebrow { margin-bottom: 10px; }
.promo-tile h3 { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: .04em; line-height: 1.2; color: var(--ivory); }
.promo-tile h3 em { font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--brass-light); letter-spacing: 0; }
.promo-tile__body > p:not(.eyebrow) { margin: 10px 0 18px !important; font-size: 13.5px; font-weight: 400; color: var(--ivory); text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.45); }
.promo-tile .btn { padding: 12px 22px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.empty h3 { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: .05em; }
.empty p { color: var(--ink-soft); margin: 12px auto 26px !important; max-width: 460px; font-weight: 300; }
.empty .btn-row { justify-content: center; }

.loadmore { display: grid; justify-items: center; gap: 12px; margin-top: 50px; font-size: 12.5px; color: var(--ink-soft); letter-spacing: .06em; }
.loadmore__bar { width: 220px; height: 2px; background: var(--line); }
.loadmore__bar span { display: block; height: 100%; background: var(--charcoal); transition: width .5s var(--ease); }
.loadmore .btn { margin-top: 10px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1180px) {
  .pgrid { --cols: 3 !important; }
  .density { display: none; }
}
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .toolbar__filter { display: inline-flex !important; }
  .toolbar__count { margin-left: auto; }
  .toolbar__right { margin-left: 0; }
  .sort span { display: none; }
  .filters { position: fixed; inset: 0 auto 0 0; top: 0 !important; width: min(88vw, 380px); max-height: none; z-index: 100000; background: var(--ivory); padding: 0; display: flex; flex-direction: column; transform: translateX(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s; }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters__form { display: flex; flex-direction: column; height: 100%; }
  .filters__head { padding: 18px 20px; border-color: var(--line); }
  .filters__close { display: inline-grid !important; }
  .filters__body { flex: 1; overflow-y: auto; padding: 0 20px; }
  .filters__foot, html:not(.js) .filters__foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 16px 20px; margin: 0; border-top: 1px solid var(--line); background: var(--paper); }
  .filters__foot .btn { padding: 14px 10px; }
  .pgrid { --cols: 2 !important; }
}
@media (max-width: 640px) {
  .shop-hero__inner { padding-top: 36px; padding-bottom: 30px; }
  .shop-cat { width: 76px; }
  .shop-cat__img { width: 66px; height: 66px; }
  .shop-cat__label { font-size: 9.5px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar__right { width: 100%; }
  .sort { width: 100%; }
  .sort select { width: 100%; }
  .pgrid { gap: 22px 12px; }
  .card__title { font-size: 17px !important; }
  .card__meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card__quick { display: none; }
  .promo-tile { grid-column: 1 / -1; min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .shop-hero__media img { animation: none !important; }
}

/* Split banner on phones: photo on top, text below on the charcoal panel */
@media (max-width: 760px) {
  .shop-hero--split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .shop-hero--split .shop-hero__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }
  .shop-hero--split .shop-hero__inner { grid-column: 1; grid-row: 2; padding: 26px var(--gutter) 30px; }
}
