/* ==========================================================================
   shop.css — Second Look Books. Warm paper, quiet serif, convincingly boring.
   The seams only show if you press.
   ========================================================================== */

.shop {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  padding-bottom: 80px;
}
.shop-inner { max-width: 920px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 28px); }

/* header / colophon */
.shop-head {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 0 18px;
  border-bottom: 2px solid var(--ink);
}
.shop-logo {
  width: 44px; height: 44px; flex: none;
  cursor: pointer;
  background: none; border: none; padding: 0;
}
.shop-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.shop-logo .colophon { fill: none; stroke: var(--ink); stroke-width: 2; }
.shop-logo .inner-six { fill: none; stroke: var(--ink); stroke-width: 0.8; opacity: 0; transition: opacity 700ms ease; }
.shop-logo.looked .inner-six { opacity: 0.35; }
.shop-title { flex: 1; }
.shop-title h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 5.5vw, 34px);
  letter-spacing: 0.04em;
}
.shop-title .tagline {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
}
.shop-cart {
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  font: inherit; font-size: 12px; color: var(--ink-soft);
  padding: 8px 12px; cursor: pointer; letter-spacing: 0.08em;
}
.shop-cart:hover { border-color: var(--ink-soft); }

/* return-visitor wink */
.shop-wink {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}

/* nav strip */
.shop-nav {
  display: flex; gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.shop-nav a { color: var(--ink-faint); text-decoration: none; }
.shop-nav a:hover { color: var(--ink); }

/* section headings */
.shop h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(17px, 4vw, 22px);
  margin: 34px 0 14px;
  letter-spacing: 0.03em;
}

/* shelves */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}
.book {
  background: none; border: none; padding: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 7px;
  touch-action: manipulation;
}
.book .cover {
  aspect-ratio: 2/3;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.18), 1px 2px 6px rgba(40,30,15,0.25);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  position: relative;
}
.book .cover .ct {
  font-family: var(--font-serif);
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  overflow-wrap: break-word;
}
.book .cover.light .ct { color: rgba(30,25,15,0.85); text-shadow: none; }
.book .meta { display: flex; flex-direction: column; gap: 2px; }
.book .b-title { font-size: 12px; line-height: 1.35; }
.book .b-price { font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.book .b-note { font-size: 10px; color: var(--ink-faint); font-style: italic; }
.book:hover .cover { box-shadow: inset -3px 0 6px rgba(0,0,0,0.18), 2px 4px 12px rgba(40,30,15,0.35); }
.book.oos .cover { opacity: 0.72; }
.book.oos .b-note { color: #8a4a2a; }

/* detail modal (very plain, half-works on purpose) */
.book-detail {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(30,24,14,0.35);
  padding: 18px;
}
.bd-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  max-width: 430px; width: 100%;
  padding: 20px;
  box-shadow: 0 30px 70px -30px rgba(30,24,14,0.6);
}
.bd-card h3 { font-family: var(--font-serif); font-weight: 400; margin: 0 0 6px; font-size: 19px; }
.bd-card .bd-desc { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 10px 0; }
.bd-card .bd-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-faint); margin: 4px 0; }
.bd-card .bd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* reviews / guestbook */
.reviews { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.review {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 14px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft);
}
.review .sig { display: block; margin-top: 8px; color: var(--ink-faint); font-style: italic; }
.review.blank { border-style: dashed; color: var(--ink-faint); font-style: italic; min-height: 64px;
  display: grid; place-items: center; }

/* about / contact */
.shop-about { font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); max-width: 560px; }
.shop-about .addr { font-variant-numeric: tabular-nums; }
.shop-foot {
  margin-top: 48px; padding-top: 18px;
  border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}

/* the deflection toast */
.shop-toast {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0;
  background: var(--ink); color: var(--paper);
  font-size: 12.5px; letter-spacing: 0.06em;
  padding: 10px 18px; border-radius: 3px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease, translate 300ms ease;
  z-index: 90;
}
.shop-toast.show { opacity: 1; translate: -50% -6px; }
