/* The Glyphwood Store (/store/). Products sit on wooden shelves; every cover wears a "Coming Soon" band until it's for sale. */
.store-sec { padding: 30px 0 50px; }
.store-wrap { max-width: 1280px; }
.store-hero { text-align: center; }
.store-hero .title-gold { font-size: clamp(38px, 5vw, 56px); margin: 0 0 .15em; }
.store-hero .lede { max-width: 760px; margin: 0 auto; font-size: 18px; color: #F4E6C8; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.store-hero .lede strong { color: var(--glow); }
.store-sec .subject-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.store-sec .subject-jump a { padding: 8px 16px; border-radius: 20px; font: 700 15px var(--sans); text-decoration: none; color: #3A2410; background: #F3E3BF; box-shadow: 0 0 0 2px #C88A1E; }
.store-sec .subject-jump a:hover { background: #FFE7A8; }

/* a shelf: heading, then products standing on a wooden ledge */
.store-sec .shelf { padding: 0; margin-top: 30px; scroll-margin-top: 90px; }
.shelf-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 18px; border-radius: 10px; background: rgba(42, 20, 4, .55); }
.shelf-head h2 { margin: 0; font-size: 28px; color: var(--glow); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.shelf-head p { margin: 0; flex: 1; min-width: 260px; font-size: 15px; color: #E9D9B8; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; padding-bottom: 18px; position: relative; }
.product-grid::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 0; height: 14px; border-radius: 4px;
  background: linear-gradient(#8E5A30, #4E2E14); box-shadow: 0 6px 12px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 220, 160, .3); }

.product { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; color: var(--ink);
  background: var(--grain), radial-gradient(ellipse at 50% 30%, #FAEFD3, var(--parchment) 60%, var(--parchment-2));
  box-shadow: 0 0 0 3px #7A4A0E, 0 0 0 6px #E9B949, 0 12px 22px rgba(0, 0, 0, .45); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px; font: 700 12px var(--sans); color: var(--ink-soft); }
.product .chip { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8A5A1A; }
.product h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.product-sub { margin: 2px 0 8px; font: italic 600 15px var(--display); color: #8A4A0E; }
.product ul { margin: 0 0 10px; padding-left: 1.1em; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.price { margin: auto 0 8px; font: 700 14px var(--sans); color: #6A4E30; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-actions .look { font: 700 14px var(--sans); color: #8A4A0E; }
.tone-cub .chip { color: #1E6E3E; } .tone-explorer .chip { color: #B4461E; } .tone-wayfinder .chip { color: #3A3F96; } .tone-steward .chip { color: #7A4A0E; }

/* covers, with the diagonal "Coming Soon" band */
.cover-wrap { position: relative; overflow: hidden; aspect-ratio: 612 / 792; background: #14281F; border-bottom: 3px solid #C88A1E; }
.cover-wrap > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .cover-wrap > img { transform: scale(1.03); }
.cover-wrap.stacked { background: radial-gradient(ellipse at 50% 40%, #3A5A48, #14281F 75%); }
.cover-wrap.stacked img { position: absolute; width: 66%; height: auto; box-shadow: 0 10px 18px rgba(0, 0, 0, .55); border-radius: 3px; }
.cover-wrap.stacked .stack-back { left: 8%; top: 10%; transform: rotate(-6deg); }
.cover-wrap.stacked .stack-front { right: 8%; top: 22%; transform: rotate(5deg); }
.ribbon { position: absolute; top: 34px; right: -58px; width: 230px; padding: 8px 0; transform: rotate(45deg); text-align: center; z-index: 2;
  font: 800 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #3A2410;
  background: linear-gradient(#FFF4C2, #F2C14E 45%, #C88A1E); box-shadow: 0 0 0 2px #7A4A0E, 0 6px 12px rgba(0, 0, 0, .45); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }

/* branded placeholder covers for books still being written */
.ph-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 16px;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c1) 80%, #fff 20%), var(--c1) 45%, var(--c2)); color: #FFF4DC;
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, .18), inset 0 0 0 10px #C88A1E; }
.ph-kicker { padding: 3px 12px; border-radius: 12px; font: 700 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 1px #E9B949; }
.ph-title { margin-top: 12px; font: 900 26px/1.1 var(--display); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2A1404); }
.ph-sub { margin-top: 6px; font: italic 600 14px var(--display); color: #F4E6C8; }
.ph-mascot, .ph-cover svg { margin: auto 0 4px; width: 62%; max-width: 170px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.ph-foot { font: italic 500 12px var(--display); color: #E9D9B8; }

.store-note { margin: 28px auto 0; text-align: center; color: #F4E6C8; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.store-note a { color: var(--glow); }

@media (max-width: 620px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product h3 { font-size: 17px; }
  .product ul { display: none; }
  .ribbon { top: 22px; right: -62px; font-size: 11px; padding: 5px 0; }
  .ph-title { font-size: 19px; }
  .shelf-head h2 { font-size: 23px; }
}

/* fixed-width books, centred on each shelf, so shelves of 4 and 5 look alike */
.product-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.product { flex: 0 1 226px; }
/* a shelf with a single product shows it as one wide card */
.product:only-child { flex: 0 1 760px; flex-direction: row; }
.product:only-child .cover-wrap { flex: none; width: 250px; border-bottom: 0; border-right: 3px solid #C88A1E; }
.product:only-child .product-body { padding: 18px 22px; }
.product:only-child h3 { font-size: 26px; }
.product:only-child ul { font-size: 16px; }
@media (max-width: 620px) {
  .product { flex: 0 1 calc(50% - 7px); }
  .product:only-child { flex: 1 1 100%; }
  .product:only-child .cover-wrap { width: 42%; }
  .product:only-child ul { display: block; font-size: 14px; }
}
.ph-cover { padding-top: 40px; }
.ph-title { margin-top: 18px; }
@media (max-width: 620px) {
  .product-actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .product-actions .btn { text-align: center; }
  .product-actions .look { text-align: center; }
  .product-body { padding: 10px 10px 12px; }
  .product-meta { flex-direction: column; gap: 0; }
}
