/* shop pages: see style.css for the shared design tokens */
/* Shop listing, product detail, artisans, photo credits and 404. Boutique catalogue look. */

/* ---------- Page intro (eyebrow + serif title + one line + thin rule) ---------- */
.zw-page-intro { padding: 1.5rem 0 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--zw-line); }
.zw-page-title { font-family: var(--zw-serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.005em; margin: 0 0 .75rem; color: var(--zw-ink); }
.zw-page-lede { color: var(--zw-muted); max-width: 38rem; margin: 0; font-size: 1rem; line-height: 1.7; }

/* ---------- Filters ---------- */
.zw-filters { padding: 0; }
.zw-filters-title { margin: 0 0 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--zw-ink); color: var(--zw-ink); font-weight: 500; }
.zw-field { margin-bottom: 1.6rem; }
.zw-filters .form-label, .zw-sort .form-label { font-size: .64rem; letter-spacing: .2em; margin-bottom: .35rem; }
.zw-filters .form-control,
.zw-filters .form-select,
.zw-sort .form-select {
  border: 0; border-bottom: 1px solid var(--zw-line); border-radius: 0; background-color: transparent;
  padding: .45rem 0; font-size: .92rem; color: var(--zw-ink); box-shadow: none;
}
.zw-filters .form-select, .zw-sort .form-select { padding-right: 1.6rem; background-position: right .1rem center; cursor: pointer; }
.zw-filters .form-control:focus,
.zw-filters .form-select:focus,
.zw-sort .form-select:focus { border-bottom-color: var(--zw-ink); box-shadow: inset 0 -1px 0 var(--zw-ink); }
.zw-filters .form-control::placeholder { color: #a39a8c; }
.zw-filters .btn-brown { margin-top: .4rem; }
.zw-clear { font-size: .64rem; color: var(--zw-muted); border-bottom-color: var(--zw-line); }

.zw-filter-toggle {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: transparent; border: 0; border-top: 1px solid var(--zw-ink); border-bottom: 1px solid var(--zw-line);
  padding: .9rem 0; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--zw-ink);
}
.zw-filter-toggle i { transition: transform .2s ease; }
.zw-filter-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.zw-filter-toggle:focus-visible { outline: 2px solid var(--zw-brown); outline-offset: 2px; }
@media (max-width: 991.98px) {
  .zw-filters.show, .zw-filters.collapsing { padding-top: 1.5rem; }
}
@media (min-width: 992px) {
  .zw-filters { position: sticky; top: 7.5rem; }
}

/* ---------- Result count + sort ---------- */
.zw-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding-bottom: .9rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--zw-line); }
.zw-count { font-size: .7rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--zw-muted); }
.zw-sort { display: flex; align-items: center; gap: .9rem; }
.zw-sort .form-label { white-space: nowrap; }
.zw-sort .form-select { width: auto; min-width: 11rem; }

/* Three products per row beside the filters on large screens */
@media (min-width: 992px) {
  .zw-shop-grid > .col-lg-3 { flex: 0 0 auto; width: 33.3333%; }
}

.zw-empty { padding: 3rem 1rem; text-align: center; font-family: var(--zw-serif); font-style: italic; font-size: 1.35rem; color: var(--zw-muted); border-top: 1px solid var(--zw-line); border-bottom: 1px solid var(--zw-line); }

/* Pagination: quiet squares */
.zw-pager { margin-top: 3rem; }
.zw-pager .pagination { --bs-pagination-bg: transparent; --bs-pagination-hover-bg: var(--zw-sand); --bs-pagination-hover-color: var(--zw-ink); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(74, 54, 38, .2); --bs-pagination-active-color: var(--zw-paper); gap: .35rem; }
.zw-pager .page-link { min-width: 2.5rem; text-align: center; font-size: .78rem; letter-spacing: .08em; border-radius: 2px !important; margin-left: 0 !important; }

/* ---------- Breadcrumb ---------- */
.zw-crumbs .breadcrumb { --bs-breadcrumb-divider-color: var(--zw-line); --bs-breadcrumb-item-active-color: var(--zw-muted); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 2rem; }
.zw-crumbs .breadcrumb a { color: var(--zw-ink); text-decoration: none; }
.zw-crumbs .breadcrumb a:hover { color: var(--zw-clay); }

/* ---------- Product detail ---------- */
.zw-gallery .product-gallery-main { background: var(--zw-sand); }
.zw-gallery .product-gallery-main { display: block; border: 0; }

.zw-thumbs .product-thumb { width: 84px; height: 84px; }
@media (min-width: 992px) {
  .zw-product-info { position: sticky; top: 7.5rem; padding-left: 1rem; }
}
.zw-product-cat { display: inline-block; text-decoration: none; margin-bottom: 1rem; }
.zw-product-cat:hover { color: var(--zw-clay); }
.zw-product-name { font-family: var(--zw-serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0 0 .9rem; }
.zw-product-maker { color: var(--zw-muted); margin-bottom: .6rem; }
.zw-product-maker a { color: var(--zw-ink); }
.zw-product-rating { margin-bottom: 1.5rem; }
.zw-product-rating a { color: var(--zw-muted); margin-left: .35rem; }
.zw-product-price { font-size: 1.55rem; font-weight: 400 !important; color: var(--zw-ink); letter-spacing: .03em; margin-top: 1.25rem; }
.zw-was { font-size: .95rem; color: var(--zw-muted); margin-left: .6rem; }
.zw-note { font-size: .8rem; color: var(--zw-muted); margin-bottom: 1.5rem; }
.zw-stock { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #4c6a43; margin-bottom: 1rem; }
.zw-stock-out { color: var(--zw-clay); }
.zw-buy .zw-qty { width: 5.5rem; flex: 0 0 5.5rem; text-align: center; background: transparent; border-color: var(--zw-ink); }
.zw-buy .zw-qty:focus { box-shadow: inset 0 0 0 1px var(--zw-ink); }

.zw-description { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--zw-line); }
.zw-description h2 { margin-bottom: .9rem; color: var(--zw-ink); font-weight: 500; }
.zw-description p { line-height: 1.8; color: #4a443b; }

.zw-details { margin: 1.5rem 0; }
.zw-details > div:last-child { border-bottom: 1px solid var(--zw-line); }
.zw-details > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--zw-line); }
.zw-details dt { font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--zw-muted); padding-top: .2rem; }
.zw-details dd { margin: 0; font-size: .92rem; }

.zw-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.zw-tag { display: inline-block; border: 1px solid var(--zw-line); padding: .3rem .6rem; font-size: .6rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--zw-muted); }

/* Reviews */
.zw-reviews { scroll-margin-top: 7rem; margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--zw-line); }
.zw-section-head { margin-bottom: 2rem; }
.zw-section-head h2, .zw-related .section-head h2 { font-family: var(--zw-serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0; }
.zw-review { padding: 1.5rem 0; border-bottom: 1px solid var(--zw-line); }
.zw-review:first-of-type { border-top: 1px solid var(--zw-line); }
.zw-review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.zw-review-head .stars { font-size: .8rem; letter-spacing: .1em; }
.zw-review-title { font-family: var(--zw-serif); font-size: 1.3rem; font-weight: 500 !important; }
.zw-review-body { line-height: 1.75; color: #4a443b; margin-bottom: .6rem; }
.zw-review-meta { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--zw-muted); }
.zw-verified { color: var(--zw-clay); white-space: nowrap; }

.zw-panel { background: var(--zw-surface); border: 1px solid var(--zw-line); padding: 2rem; }
.zw-panel-title { font-family: var(--zw-serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 1.25rem; }
.zw-panel legend { float: none; }

/* Related */
.zw-related { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--zw-line); }

/* ---------- Artisans ---------- */
.zw-artisan { display: flex; flex-direction: column; background: var(--zw-surface); border: 1px solid var(--zw-line); padding: 2rem 1.75rem 1.75rem; transition: border-color .2s; }
.zw-artisan:hover { border-color: var(--zw-ink); }
.zw-artisan-mark { width: 3.25rem; height: 3.25rem; display: flex; align-items: center; justify-content: center; background: var(--zw-sand); font-family: var(--zw-serif); font-style: italic; font-size: 1.6rem; color: var(--zw-brown); margin-bottom: 1.5rem; }
.zw-artisan .eyebrow .bi { letter-spacing: 0; }
.zw-artisan-name { font-family: var(--zw-serif); font-weight: 400; font-size: 1.85rem; line-height: 1.1; margin: 0 0 1rem; }
.zw-artisan-bio { color: #4a443b; line-height: 1.75; font-size: .95rem; }
.zw-artisan-spec { font-size: .85rem; color: var(--zw-muted); padding-top: .9rem; border-top: 1px solid var(--zw-line); margin-bottom: 1.5rem; }
.zw-artisan-spec strong { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--zw-ink); margin-right: .25rem; }

/* ---------- Photo credits ---------- */
.zw-credits { background: var(--zw-surface); border: 1px solid var(--zw-line); }
.zw-credits .table { font-size: .9rem; }
.zw-credits .table > :not(caption) > * > * { padding: .9rem 1rem; }
.zw-credits .table thead th { border-bottom-color: var(--zw-ink); white-space: nowrap; }
.zw-credits .table tbody tr:last-child > * { border-bottom: 0; }
.zw-credit-product { font-family: var(--zw-serif); font-size: 1.1rem; font-weight: 500; }

/* ---------- 404 ---------- */
.zw-404 { text-align: center; padding: 4rem 0 3rem; max-width: 40rem; margin: 0 auto; }
.zw-404-num { font-family: var(--zw-serif); font-style: italic; font-weight: 400; font-size: clamp(6rem, 18vw, 10rem); line-height: .9; color: var(--zw-brown); margin: 0 0 1.25rem; }
.zw-404 .zw-page-lede { margin-bottom: 2.25rem; }
.zw-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding-top: 2rem; border-top: 1px solid var(--zw-line); }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  .zw-page-intro { padding-top: .5rem; margin-bottom: 1.75rem; }
  .zw-toolbar { align-items: flex-end; }
  .zw-sort { width: 100%; justify-content: space-between; }
  .zw-sort .form-select { min-width: 0; flex: 1; max-width: 14rem; }
  .zw-details > div { grid-template-columns: 6rem 1fr; }
  .zw-panel { padding: 1.5rem 1.25rem; }
  .zw-artisan { padding: 1.5rem 1.25rem; }
  .zw-reviews, .zw-related { margin-top: 3.5rem; padding-top: 2.25rem; }
  .zw-related .section-head { flex-direction: column; align-items: flex-start; }
}
