/* =====================================================================
   shop.css — print shop + cart + email-capture styling.
   Matches the gallery's palette (warm paper, ink, Cormorant + Inter).
   ===================================================================== */
:root {
  --bg: #FAFAF7; --ink: #1A1A1A; --muted: #6B6B66; --line: #E5E3DE;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
}
.print-page, .shop-index {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.section-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---- Shop header / footer ---- */
.shop-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6vw; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(250,250,247,.92); backdrop-filter: blur(8px); z-index: 50;
}
.shop-header .wordmark { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; color: var(--ink); }
.shop-header nav { display: flex; align-items: center; gap: 1.4rem; }
.shop-header nav a { text-decoration: none; color: var(--ink); font-size: .9rem; }
.shop-header nav a:hover { color: var(--muted); }
.cart-toggle { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font: inherit; font-size: .85rem; }
.cart-toggle [data-cart-count] { font-weight: 600; }
.shop-footer { display: flex; justify-content: space-between; padding: 2.5rem 6vw; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; margin-top: 4rem; }

/* ---- Print detail page ---- */
.print-detail { max-width: 1200px; margin: 0 auto; padding: 2rem 6vw 4rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.print-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; }
.print-figure { margin: 0; }
.print-figure img { width: 100%; height: auto; display: block; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.print-buy h1 { font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1.1; margin: 0 0 .5rem; }
.print-meta { color: var(--muted); font-size: .85rem; margin: 0 0 1.5rem; }
.print-blurb { line-height: 1.6; color: #333; }
.print-buy label { display: block; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .5rem; }
.variant-select, .qty-input {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 100%;
}
.qty-row { display: flex; align-items: center; gap: 1rem; }
.qty-row label { margin: 1.6rem 0 .5rem; }
.qty-input { width: 5rem; }
.btn-primary {
  display: inline-block; width: 100%; margin-top: 1.5rem; padding: .9rem 1.4rem;
  background: var(--ink); color: var(--bg); border: none; border-radius: 6px;
  font: inherit; font-size: .95rem; cursor: pointer; text-align: center; text-decoration: none;
}
.btn-primary:hover { opacity: .88; }
.btn-secondary {
  display: inline-block; width: 100%; box-sizing: border-box; margin-top: .8rem; padding: .8rem 1.4rem;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 6px;
  font: inherit; font-size: .9rem; cursor: pointer; text-align: center; text-decoration: none;
}
.print-ship { font-size: .8rem; color: var(--muted); margin-top: 1.2rem; text-align: center; }

/* ---- Shop landing grid ---- */
.shop-main { max-width: 1300px; margin: 0 auto; padding: 3rem 6vw; }
.shop-intro { max-width: 640px; margin-bottom: 3rem; }
.shop-intro h1 { font-family: var(--serif); font-weight: 400; font-size: 3rem; margin: .4rem 0 1rem; }
.shop-intro .lede { line-height: 1.7; color: #333; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.shop-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.shop-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; transition: transform .3s ease; }
.shop-card:hover img { transform: scale(1.02); }
.shop-card-title { font-family: var(--serif); font-size: 1.15rem; margin-top: .6rem; }
.shop-card-price { font-size: .82rem; color: var(--muted); }

/* ---- Cart drawer ---- */
.cart-drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.cart-drawer.open { display: block; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--bg); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.18);
}
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: var(--serif); font-weight: 400; margin: 0; font-size: 1.5rem; }
.cart-head button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-item-title { font-family: var(--serif); font-size: 1.05rem; display: block; }
.cart-item-variant { font-size: .78rem; color: var(--muted); }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.cart-item-qty button { border: 1px solid var(--line); background: #fff; width: 26px; height: 26px; border-radius: 4px; cursor: pointer; }
.cart-item-remove { width: auto !important; border: none !important; background: none !important; color: var(--muted); font-size: .78rem; text-decoration: underline; margin-left: .4rem; }
.cart-item-price { font-variant-numeric: tabular-nums; }
.cart-foot { padding: 1.3rem 1.5rem; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 1rem; }
.cart-foot .btn-primary { margin-top: 0; }
.cart-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.cart-note a { color: var(--ink); }

/* ---- Footer email signup (homepage) ---- */
.signup {
  max-width: 560px; margin: 0 auto; padding: 3rem 6vw 1rem; text-align: center;
}
.signup h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: .4rem 0 .6rem; }
.signup p { color: var(--muted); line-height: 1.6; margin: 0 auto 1.4rem; max-width: 460px; }
.signup form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.signup input[type=email] { flex: 1; min-width: 220px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
.signup .btn-primary { width: auto; margin-top: 0; }
[data-signup-status] { width: 100%; font-size: .85rem; margin: .8rem 0 0; min-height: 1.2em; }
[data-signup-status].ok { color: #2e7d32; }
[data-signup-status].error { color: #b3261e; }
[data-signup-status] a { color: var(--ink); }

/* ---- Wallpaper modal ---- */
.wp-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.wp-modal.open { display: block; }
.wp-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.wp-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(460px, 92vw); background: var(--bg); border-radius: 10px; padding: 2.2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.wp-card h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: .4rem 0 .6rem; }
.wp-card p { color: var(--muted); line-height: 1.6; }
.wp-card form { margin-top: 1.2rem; }
.wp-card input[type=email] { width: 100%; box-sizing: border-box; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
.wp-close { position: absolute; top: .8rem; right: 1rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.wp-status { font-size: .85rem; margin: .8rem 0 0; }
.wp-status.ok { color: #2e7d32; } .wp-status.error { color: #b3261e; }
.wp-status a { color: var(--ink); }

/* ---- Lightbox Buy button (homepage) ---- */
.lightbox-buy {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--bg); color: var(--ink); border: none; border-radius: 999px;
  padding: .55rem 1.3rem; font: inherit; font-size: .85rem; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.25); z-index: 5; text-decoration: none;
}
.lightbox-buy:hover { opacity: .9; }

@media (max-width: 800px) {
  .print-layout { grid-template-columns: 1fr; gap: 2rem; }
}
