/* NBXMA — New Bedford tourist attraction + shop. Black, red, white. */
:root{
  --red:#c8102e; --red-dark:#9d0c24; --black:#111111; --ink:#1c1c1c;
  --grey:#5c5c5c; --line:#e4e4e4; --paper:#ffffff; --soft:#f6f6f6;
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.55;
}
a{ color:var(--red); }
img{ max-width:100%; display:block; }
.wrap{ max-width:1080px; margin:0 auto; padding:0 20px; }

/* Header */
header.topbar{ background:var(--black); color:#fff; }
.topbar .wrap{ display:flex; align-items:center; gap:24px; min-height:60px; flex-wrap:wrap; }
.wordmark{ color:#fff; text-decoration:none; font-weight:800; font-size:22px; letter-spacing:2px; }
.wordmark em{ font-style:normal; color:var(--red); }
nav.mainnav{ display:flex; gap:4px; margin-left:auto; flex-wrap:wrap; }
nav.mainnav a{
  color:#ddd; text-decoration:none; padding:8px 12px; border-radius:6px; font-weight:600;
}
nav.mainnav a:hover{ background:#222; color:#fff; }
nav.mainnav a.active{ background:var(--red); color:#fff; }

/* Hero */
.hero{ background:var(--black); color:#fff; padding:64px 0 56px; }
.hero .kicker{ color:var(--red); font-weight:800; letter-spacing:3px; text-transform:uppercase; font-size:13px; }
.hero h1{ font-size:44px; line-height:1.08; margin:10px 0 14px; }
.hero p.lede{ font-size:19px; color:#ddd; max-width:640px; margin:0 0 26px; }
.hero .cta-row{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-block; padding:12px 22px; border-radius:8px; font-weight:700;
  text-decoration:none; border:0; cursor:pointer; font-size:16px; text-align:center;
}
.btn-red{ background:var(--red); color:#fff; }
.btn-red:hover{ background:var(--red-dark); }
.btn-ghost{ background:transparent; color:#fff; border:2px solid #fff; }
.btn-ghost:hover{ background:#fff; color:var(--black); }
.btn-disabled{
  background:#eee; color:#999; cursor:default;
}
.btn-disabled:hover{ background:#eee; }

/* Sections */
section.block{ padding:48px 0; }
section.block.soft{ background:var(--soft); }
section.block h2{ font-size:30px; margin:0 0 6px; }
section.block .sub{ color:var(--grey); margin:0 0 26px; max-width:680px; }
.section-head{ display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; }
.section-head .more{ margin-left:auto; font-weight:700; }

/* Product grid + cards */
.grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
}
.card{
  border:1px solid var(--line); border-radius:10px; overflow:hidden;
  background:#fff; display:flex; flex-direction:column;
}
.card .pimg{ background:#111; aspect-ratio:4/3; overflow:hidden; }
.card .pimg img{ width:100%; height:100%; object-fit:cover; }
.tile-fallback{
  width:100%; height:100%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:8px;
  background:var(--black); color:#fff; padding:16px; text-align:center;
}
.tile-fallback span{ font-weight:800; letter-spacing:3px; color:var(--red); font-size:20px; }
.tile-fallback em{ font-style:normal; font-size:15px; line-height:1.3; }
.card .pbody{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card h3{ margin:0; font-size:18px; line-height:1.3; }
.card .cat{ margin:0; color:var(--grey); font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:1px; }
.card .price{ margin:0; font-weight:800; font-size:15px; }
.card .blurb{ margin:0; color:var(--grey); font-size:14px; flex:1; }
.card .btn{ margin-top:4px; }
.badge{
  display:inline-block; align-self:flex-start; font-size:12px; font-weight:800;
  letter-spacing:1px; text-transform:uppercase; padding:3px 8px; border-radius:4px;
}
.badge-sold{ background:#fdeaea; color:var(--red); }
.badge-soon{ background:#eee; color:#555; }
.empty{ color:var(--grey); }

/* Visit cards */
.visit-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.visit-card{ border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.visit-card img{ width:100%; aspect-ratio:16/9; object-fit:cover; }
.visit-card .vbody{ padding:16px; }
.visit-card h3{ margin:0 0 6px; font-size:19px; }
.visit-card p{ margin:0; color:var(--grey); font-size:15px; }

/* Shop controls */
.controls{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:0 0 24px; }
.controls input[type="search"]{
  flex:1 1 260px; padding:12px 14px; font-size:16px;
  border:1px solid var(--line); border-radius:8px;
}
.pills{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  padding:9px 16px; border-radius:999px; border:1px solid var(--line);
  background:#fff; font-weight:700; font-size:14px; cursor:pointer;
}
.pill:hover{ border-color:var(--red); color:var(--red); }
.pill.active{ background:var(--black); color:#fff; border-color:var(--black); }
.count{ color:var(--grey); font-size:14px; }

/* Note box */
.note{
  border-left:4px solid var(--red); background:var(--soft);
  padding:14px 18px; border-radius:0 8px 8px 0; margin:0 0 24px;
}
.note p{ margin:0; }
.note strong{ color:var(--ink); }

/* Footer */
footer.site{
  background:var(--black); color:#aaa; padding:36px 0; font-size:14px;
}
footer.site a{ color:#fff; }
footer.site .wrap{ display:flex; gap:24px; flex-wrap:wrap; align-items:baseline; }
footer.site .fbrand{ color:#fff; font-weight:800; letter-spacing:2px; }
footer.site .fbrand em{ font-style:normal; color:var(--red); }

@media (max-width:640px){
  .hero h1{ font-size:32px; }
  section.block h2{ font-size:25px; }
}

/* ===== NBXMA v2 — storefront, source badges, out-of-stock ===== */

/* Source badges: where each product is bought */
.src{
  display:inline-block; font-size:11px; font-weight:800; letter-spacing:1.5px;
  text-transform:uppercase; padding:4px 10px; border-radius:999px; white-space:nowrap;
}
.src-etsy{ background:#f1641e; color:#fff; }
.src-amazon{ background:#232f3e; color:#ffbf00; }
.badgerow{ display:flex; justify-content:space-between; align-items:flex-start; gap:8px; min-height:22px; }
.btn-amazon{ background:#232f3e; color:#fff; }
.btn-amazon:hover{ background:#131a22; }
.oos{ display:block; color:var(--red); font-weight:700; font-size:13px; margin-top:2px; text-align:center; }
.card{ scroll-margin-top:76px; }
.store-more{ margin:28px 0 0; }

/* ---- Storefront facade ---- */
.storefront{
  background:linear-gradient(#a8c4d4 0 62%, #d9cfc0 62% 100%);
  padding:0 0 26px;
}
.facade{ max-width:1080px; margin:0 auto; padding:0 12px; }
/* Awning: red/cream stripes, sloped top, scalloped valance with the name */
.awning-top{
  height:clamp(56px, 9vw, 110px);
  background:repeating-linear-gradient(90deg, #c8102e 0 54px, #f6efe4 54px 108px);
  clip-path:polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  box-shadow:inset 0 -8px 14px rgba(0,0,0,.18);
}
.awning-valance{
  background:#a50d26;
  background-image:radial-gradient(circle at 16px -6px, transparent 14px, #a50d26 15px);
  background-size:32px 18px; background-repeat:repeat-x; background-position:bottom;
  padding:10px 12px 22px; text-align:center;
  border-bottom:6px solid #7d0a1e;
}
.awning-name{
  font-family:"Rye", Georgia, "Times New Roman", serif;
  font-size:clamp(30px, 6.5vw, 58px); letter-spacing:6px; color:#f8ecd4;
  text-shadow:0 2px 0 #7d0a1e, 0 4px 10px rgba(0,0,0,.35);
}
/* Brick wall */
.shopwall{
  background-color:#6e2b20;
  background-image:
    linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.12)),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(0,0,0,.35) 24px 26px),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(0,0,0,.28) 62px 64px);
  padding:18px 18px 22px; border-radius:0 0 10px 10px;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.address{ text-align:center; margin:2px 0 12px; }
.address span{
  display:inline-block; background:#c9a227; color:#231a08; font-weight:800;
  letter-spacing:3px; font-size:15px; padding:4px 14px; border-radius:4px;
  border:2px solid #8a6d1c; box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.windows{
  display:grid; grid-template-columns:1fr 108px 1fr; gap:14px; align-items:stretch;
}
.window{
  position:relative; background:#16242c; border:10px solid #4a3226; border-radius:4px;
  aspect-ratio:4/3; overflow:hidden; display:flex; flex-direction:column;
  box-shadow:inset 0 0 0 2px #2c1f16, 0 4px 14px rgba(0,0,0,.45);
}
/* Mullion crossbars */
.window::before, .window::after{
  content:""; position:absolute; background:#4a3226; z-index:4; pointer-events:none;
}
.window::before{ left:50%; top:0; bottom:0; width:8px; margin-left:-4px; }
.window::after{ top:50%; left:0; right:0; height:8px; margin-top:-4px; }
.glass{
  position:absolute; inset:0; z-index:3; pointer-events:none;
  background:linear-gradient(115deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
}
.win-wall{
  flex:1; display:flex; align-items:flex-end; justify-content:center; gap:10px;
  padding:12px 10px 0; position:relative; z-index:1;
}
.win-shelf{
  flex:1.4; display:flex; align-items:flex-end; justify-content:center; gap:12px;
  padding:0 10px 12px; position:relative; z-index:1;
}
.win-shelf img{ height:clamp(72px, 13vw, 138px); width:auto; border-radius:3px; box-shadow:0 4px 10px rgba(0,0,0,.5); }
.hs-paint img{
  height:clamp(46px, 7.5vw, 72px); width:auto; border-radius:2px;
  border:4px solid #d8c08a; box-shadow:0 3px 8px rgba(0,0,0,.5);
}
.mini-tile{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  background:#111; color:#fff; height:clamp(72px, 13vw, 138px); width:clamp(56px, 10vw, 104px);
  padding:8px; text-align:center; border-radius:3px; box-shadow:0 4px 10px rgba(0,0,0,.5);
}
.mini-tile b{ font-weight:800; letter-spacing:2px; color:var(--red); font-size:14px; }
.mini-tile b em{ font-style:normal; color:var(--red); }
.mini-tile i{ font-style:normal; font-size:12px; line-height:1.25; }
.hotspot{ display:block; border-radius:3px; transition:transform .15s ease, outline-color .15s ease; outline:3px solid transparent; outline-offset:3px; }
.hotspot:hover, .hotspot:focus-visible{ transform:scale(1.05); outline-color:#ffd166; }
.win-label{
  position:absolute; left:10px; bottom:8px; z-index:2; background:rgba(0,0,0,.65);
  color:#f8ecd4; font-size:12px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  padding:3px 9px; border-radius:4px; pointer-events:none;
}
.door{
  background:#1f3d2b; border:8px solid #4a3226; border-radius:4px 4px 0 0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  text-decoration:none; box-shadow:inset 0 0 0 2px #2c1f16, 0 4px 14px rgba(0,0,0,.45);
  min-height:180px;
}
.door:hover{ background:#27503a; }
.door-num{ color:#c9a227; font-weight:800; letter-spacing:2px; font-size:15px; }
.door-sign{
  background:#f8ecd4; color:#a50d26; font-weight:800; letter-spacing:3px; font-size:13px;
  padding:6px 12px; border-radius:3px; border:2px solid #a50d26;
}
.facade-note{
  text-align:center; color:#f6efe4; font-size:14px; margin:16px 0 2px;
  text-shadow:0 1px 2px rgba(0,0,0,.5);
}

@media (max-width:560px){
  .windows{ grid-template-columns:1fr 64px 1fr; gap:8px; }
  .window{ border-width:6px; }
  .win-wall{ gap:6px; padding:8px 6px 0; }
  .win-shelf{ gap:8px; padding:0 6px 8px; }
  .door{ min-height:140px; border-width:6px; }
  .door-num{ font-size:12px; }
  .door-sign{ font-size:11px; padding:4px 7px; letter-spacing:2px; }
  .win-label{ font-size:10px; left:6px; bottom:6px; }
}

/* ===== NBXMA v2 V1 — realistic 1940s storefront + masthead ===== */
/* References: real 1940s Main Street storefront photos — weathered tan
   canvas awning, muted brick/stone, dark wood, cream painted lettering.
   No bright stripes, no saturated colors. */

/* Masthead: big NBXMA logo, menu under it */
.masthead{ background:#f2ead9; border-bottom:3px solid #d8cbb2; }
.masthead .wrap{ text-align:center; padding:26px 20px 0; }
.mast-logo{
  color:#1c1a17; text-decoration:none; font-weight:900;
  font-size:clamp(44px, 9vw, 76px); letter-spacing:5px; line-height:1;
}
.mast-logo em{ font-style:normal; color:var(--red); }
.mast-sub{
  margin:6px 0 0; color:#6b5d43; font-weight:700; letter-spacing:4px;
  text-transform:uppercase; font-size:12px;
}
.mast-nav{
  display:flex; justify-content:center; gap:6px; flex-wrap:wrap;
  margin-top:16px; padding:10px 0; border-top:1px solid #d8cbb2;
}
.mast-nav a{
  color:#3d362b; text-decoration:none; padding:8px 16px; border-radius:6px;
  font-weight:700; font-size:15px;
}
.mast-nav a:hover{ background:#e4d9c2; }
.mast-nav a.active{ background:var(--red); color:#fff; }

/* Realistic storefront */
.storefront-real{
  background:linear-gradient(#a7b4ba 0 58%, #c4b89e 58% 100%);
  padding-bottom:22px;
}
.storefront-real .facade{ padding-top:0; }
.awning-top-real{
  height:clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse 220px 40px at 20% 30%, rgba(120,90,50,.14), transparent 70%),
    radial-gradient(ellipse 180px 34px at 78% 62%, rgba(120,90,50,.12), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(90,70,40,.16) 44px 46px),
    linear-gradient(#cdb98f, #bfa87a);
  clip-path:polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  box-shadow:inset 0 -10px 16px rgba(60,45,25,.25);
}
.awning-valance-real{
  background:#9d8459;
  background-image:radial-gradient(circle at 16px -6px, transparent 14px, #9d8459 15px);
  background-size:32px 18px; background-repeat:repeat-x; background-position:bottom;
  padding:8px 12px 20px; text-align:center;
  border-bottom:5px solid #7d6a45;
}
.awning-name-real{
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(22px, 4.5vw, 40px); letter-spacing:9px; color:#f2ead9;
  text-shadow:0 1px 0 rgba(60,45,25,.55), 0 2px 6px rgba(0,0,0,.25);
}
.shopwall-real{
  background-color:#6b4536;
  background-image:
    linear-gradient(#a89a7e 0 12px, transparent 12px),
    linear-gradient(rgba(255,255,255,.04), rgba(0,0,0,.14)),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(0,0,0,.28) 24px 26px),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(0,0,0,.22) 62px 64px);
}
.storefront-real .window{
  border-color:#33261c;
  background:
    radial-gradient(ellipse 70% 45% at 50% 88%, rgba(255,190,90,.14), transparent 70%),
    #1e2426;
  box-shadow:inset 0 0 0 2px #241a12, 0 4px 14px rgba(0,0,0,.45);
}
.storefront-real .window::before, .storefront-real .window::after{ background:#33261c; }
.storefront-real .door{ border-color:#33261c; }
.storefront-real .mini-tile b{ color:#f2ead9; }

/* Plain NBXMA on photo-less tiles — no split letters, no red */
.tile-fallback span{ color:#f2ead9; }

/* ===== NBXMA v2 V2 — dry-stone fieldstone, NO awning, NO brick ===== */
/* White stone the way farmers built it: stones fitted together, mortar
   gaps, no regular courses, no bright colors. */

.shopwall-stone{
  background-color:#776d5c;
  background-image:
    /* course 1 — big pale stones */
    radial-gradient(ellipse 92px 62px at 46px 34px, #ece7d8 58%, #b7ad96 63%, transparent 64%),
    radial-gradient(ellipse 84px 58px at 152px 38px, #e0d9c6 58%, #b0a68d 63%, transparent 64%),
    radial-gradient(ellipse 96px 64px at 262px 32px, #e6dfcd 58%, #b7ad96 63%, transparent 64%),
    radial-gradient(ellipse 78px 56px at 366px 40px, #d3cbb2 58%, #a89e83 63%, transparent 64%),
    radial-gradient(ellipse 88px 60px at 470px 34px, #ece7d8 58%, #b7ad96 63%, transparent 64%),
    /* course 2 — offset, slightly darker stones */
    radial-gradient(ellipse 86px 60px at 96px 104px, #d8d0bd 58%, #a89e83 63%, transparent 64%),
    radial-gradient(ellipse 94px 62px at 210px 100px, #e3dcc8 58%, #b0a68d 63%, transparent 64%),
    radial-gradient(ellipse 80px 56px at 318px 106px, #cfc6ae 58%, #a89e83 63%, transparent 64%),
    radial-gradient(ellipse 90px 62px at 424px 100px, #e0d9c6 58%, #b0a68d 63%, transparent 64%),
    radial-gradient(ellipse 76px 54px at 516px 106px, #d3cbb2 58%, #a89e83 63%, transparent 64%),
    /* course 3 — offset again */
    radial-gradient(ellipse 90px 60px at 40px 172px, #e6dfcd 58%, #b0a68d 63%, transparent 64%),
    radial-gradient(ellipse 84px 58px at 148px 176px, #ece7d8 58%, #b7ad96 63%, transparent 64%),
    radial-gradient(ellipse 96px 62px at 258px 170px, #d8d0bd 58%, #a89e83 63%, transparent 64%),
    radial-gradient(ellipse 82px 58px at 368px 176px, #e3dcc8 58%, #b0a68d 63%, transparent 64%),
    radial-gradient(ellipse 88px 60px at 472px 172px, #cfc6ae 58%, #a89e83 63%, transparent 64%),
    /* soft weathering wash */
    linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.10));
  background-size:560px 210px;
  background-repeat:repeat;
}

/* Weathered wooden sign board — the name, painted on wood */
.shopsign{
  max-width:440px; margin:0 auto 14px; text-align:center;
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(0,0,0,.28) 26px 28px),
    linear-gradient(#4a3826, #3a2b1c);
  border:3px solid #2c2115; border-radius:4px;
  padding:10px 18px 12px;
  box-shadow:0 3px 10px rgba(0,0,0,.35);
}
.shopsign span{
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(24px, 5vw, 42px); letter-spacing:10px; color:#f2ead9;
  text-shadow:0 1px 0 rgba(0,0,0,.6);
}

/* ===== NBXMA v2 V3 — Matthew's photograph is the storefront ===== */
/* Photo + percentage hotspots (his mockup geometry). No drawn wall. */
.storefront-photo{ background:#f2ead9; padding:18px 0 6px; }
.scene{ position:relative; border-radius:6px; overflow:hidden;
        box-shadow:0 10px 34px rgba(0,0,0,.35); }
.scene img{ display:block; width:100%; height:auto; }
.hot{ position:absolute; display:block; border-radius:4px;
      transition:box-shadow .18s ease, background .18s ease; }
.hot:hover, .hot:focus{ background:rgba(255,196,86,.14);
      box-shadow:0 0 0 3px rgba(255,196,86,.85), 0 0 34px rgba(255,196,86,.45) inset; }
.hot .tag{ position:absolute; left:50%; bottom:8px; transform:translateX(-50%);
      background:rgba(10,14,12,.82); color:#f2ead9; font-size:13px; letter-spacing:2px;
      padding:5px 12px; border:1px solid #c9a227; border-radius:3px; white-space:nowrap;
      opacity:0; transition:opacity .18s ease; pointer-events:none; }
.hot:hover .tag, .hot:focus .tag{ opacity:1; }
.hs-books{ left:14.6%; top:21.5%; width:25.6%; height:54%; }
.hs-door { left:43.4%; top:27%;   width:16.4%; height:59%; }
.hs-merch{ left:61.2%; top:21.5%; width:26.4%; height:54.5%; }
.hs-sign { left:39.5%; top:16.5%; width:22%;   height:12%; }
.hint{ text-align:center; color:#6b5d43; font-style:italic; margin:12px 0 0; font-size:15px; }
@media (max-width:760px){ .hot .tag{ display:none; } }

/* ===== NBXMA v2 V4 — approved red-X photo, hotspot CSS from Matt's
   fieldstone mockup, lifted straight. Positions scoped to .scene-redx
   so V3's facade-photo hotspots keep their own geometry. ===== */
.hotspot{ position:absolute; display:block; border:2px solid transparent;
  border-radius:6px; transition:all .18s ease; }
.hotspot:hover{ border-color:rgba(255,214,120,.95); background:rgba(255,196,64,.13);
  box-shadow:0 0 24px rgba(255,196,64,.35) inset; }
.hotspot .tag{ position:absolute; left:50%; bottom:8px; transform:translateX(-50%);
  background:rgba(24,20,16,.82); color:#ffe9b8; font-size:13px; letter-spacing:.06em;
  padding:4px 10px; border-radius:999px; opacity:0; transition:opacity .18s ease;
  white-space:nowrap; line-height:1.2; }
.hotspot:hover .tag{ opacity:1; }
.scene-redx .hs-books{ left:22.5%; top:31%; width:26%; height:52%; }
.scene-redx .hs-paint{ left:49.5%; top:31%; width:20%; height:52%; }
.scene-redx .hs-door { left:71.5%; top:33%; width:15.5%; height:57%; }
.scene-redx .hs-merch{ left:49.5%; top:31%; width:20%; height:52%; }
@media (max-width:760px){ .hotspot .tag{ display:none; } }

/* ===== NBXMA v2 V5 — masthead logo removed, menu bar under the storefront ===== */
.menu-bar{ background:#f2ead9; border-bottom:3px solid #d8cbb2; }
.menu-bar .mast-nav{ margin-top:0; border-top:none; }

/* ===== NBXMA v2 V6 — pagination (24 per page) ===== */
.pager{ margin:22px 0 6px; }
.pager-nav{ display:flex; justify-content:center; align-items:center; gap:6px; flex-wrap:wrap; }
.pg-btn{
  color:#3d362b; background:#fff; border:1px solid #d8cbb2; border-radius:6px;
  padding:8px 13px; font-weight:700; font-size:15px; cursor:pointer; font-family:inherit;
}
.pg-btn:hover:not(:disabled){ background:#e4d9c2; }
.pg-btn.active{ background:var(--red); border-color:var(--red); color:#fff; }
.pg-btn:disabled{ opacity:.45; cursor:default; }

/* V6 — Scott: less tan around the storefront photo, just a tiny bit */
.storefront-photo{ padding:6px 0 2px; }
.storefront-photo .hint{ margin:6px 0 0; }

/* ===== NBXMA v2 V7 — hint line gone, "New Bedford, Massachusetts" back,
   under the storefront right above the menu links ===== */
.store-sub{
  margin:0; padding:10px 0 0; text-align:center; color:#6b5d43; font-weight:700;
  letter-spacing:4px; text-transform:uppercase; font-size:12px;
}

/* ===== NBXMA v2 V8 — book covers show WHOLE, centered, no cropping =====
   Merch keeps the 4/3 cover crop (square mockups fill it). Book cards get a
   tall 3/4 cream box with contain, so the full portrait cover shows. */
.card[data-kind="book"] .pimg{ background:#f7f3ea; aspect-ratio:3/4; }
.card[data-kind="book"] .pimg img{ object-fit:contain; }

/* ===== NBXMA v2 V9 — own shopping cart ===== */
/* Cart pill: NBXMA mini wordmark (black letters, red X, like the footer
   brand) + Cart, with a live count. Sits beside the Amazon/Etsy pills. */
.src-cart{ background:var(--black); color:#fff; text-decoration:none; }
.src-cart:hover{ background:#2a2a2a; color:#fff; }
.cart-mark{ font-weight:800; letter-spacing:2px; }
.cart-mark em{ font-style:normal; color:var(--red); }
.cart-count{
  display:inline-block; background:var(--red); color:#fff; font-weight:800;
  border-radius:999px; min-width:20px; padding:1px 6px; margin-left:4px;
  text-align:center;
}
/* Add to cart: tan like the storefront, red edge, black text — sits
   beside the red Order on Etsy / dark Buy on Amazon button. */
.btn-cart{
  background:#f2ead9; color:#1c1a17; border:2px solid var(--red);
  width:100%; margin-top:8px;
}
.btn-cart:hover{ background:#e4d9c2; }
.btn-cart:disabled{ opacity:.7; cursor:default; }
/* Cart page */
.cart-empty{ text-align:center; padding:32px 0; }
.cart-empty p{ margin:0 0 16px; color:var(--grey); font-size:17px; }
.cart-lines{ display:flex; flex-direction:column; gap:14px; margin-bottom:24px; }
.cart-line{
  display:grid; grid-template-columns:96px 1fr auto auto auto; gap:16px; align-items:center;
  border:1px solid var(--line); border-radius:10px; padding:12px 16px; background:#fff;
}
.cart-thumb{ width:96px; aspect-ratio:1; overflow:hidden; border-radius:6px; background:#111; }
.cart-thumb img{ width:100%; height:100%; object-fit:cover; }
.cart-thumb .tile-fallback{ height:100%; }
.cart-info h3{ margin:0 0 4px; font-size:17px; line-height:1.3; }
.cart-unit{ margin:0; color:var(--grey); font-size:14px; font-weight:700; }
.cart-qty{ display:flex; align-items:center; gap:8px; }
.qty-btn{
  width:32px; height:32px; border-radius:6px; border:1px solid var(--line);
  background:#fff; font-size:18px; font-weight:700; cursor:pointer; line-height:1;
}
.qty-btn:hover{ border-color:var(--red); color:var(--red); }
.qty-num{ font-weight:800; min-width:20px; text-align:center; }
.cart-line-total{ font-weight:800; font-size:16px; min-width:72px; text-align:right; }
.cart-remove{
  background:none; border:0; color:var(--red); font-weight:700; cursor:pointer;
  font-size:14px; padding:6px;
}
.cart-remove:hover{ text-decoration:underline; }
.cart-summary{ border-top:2px solid var(--line); padding-top:18px; }
.cart-subtotal{ font-size:19px; margin:0 0 10px; }
.cart-note{ color:var(--grey); font-size:14px; max-width:640px; }
@media (max-width:640px){
  .cart-line{ grid-template-columns:72px 1fr auto; gap:12px; }
  .cart-thumb{ width:72px; }
  .cart-line-total{ display:none; }
}
/* Book format dropdowns (cart format fix, 2026-11-13, box11): on product
   cards the select sits above Add to cart; on the cart page it sits
   under the line price. */
.fmt-select{
  width:100%; margin-top:8px; padding:10px 12px; font:inherit; font-size:15px;
  font-weight:700; color:#1c1a17; background:#fff;
  border:2px solid var(--line); border-radius:8px; cursor:pointer;
}
.cart-info .fmt-select{ width:auto; max-width:280px; margin-top:6px; padding:6px 8px; font-size:14px; }

/* Pre-order (2026-11-13, box11, Scott's order): red Pre-order button
   shaped like Add to cart, plus the pre-order form page. */
.btn-preorder{
  background:var(--red); color:#fff;
  width:100%; margin-top:8px;
}
.btn-preorder:hover{ background:var(--red-dark); }
.cart-line.preorder-line{ grid-template-columns:96px 1fr; }
.preorder-form{ max-width:560px; }
.preorder-form .field{ margin:0 0 16px; }
.preorder-form label{ display:block; font-weight:700; margin:0 0 6px; }
.preorder-form input[type="text"],
.preorder-form input[type="email"],
.preorder-form input[type="tel"],
.preorder-form textarea{
  width:100%; padding:12px 14px; font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink);
}
.preorder-form textarea{ min-height:110px; resize:vertical; }
.preorder-form .check-row{ display:flex; gap:10px; align-items:flex-start; margin:0 0 20px; }
.preorder-form .check-row input{ margin-top:4px; width:18px; height:18px; flex:none; }
.preorder-form .check-row label{ font-weight:600; margin:0; }
.preorder-form .form-error{ color:var(--red); font-weight:700; margin:0 0 16px; }
.preorder-form .hp{ display:none !important; }
@media (max-width:640px){
  .cart-line.preorder-line{ grid-template-columns:72px 1fr; }
}
