/*
Theme Name: Pagewell Books New
Theme URI: https://pagewellbooks.com/
Author: Pagewell Books
Author URI: https://pagewellbooks.com/
Description: A modern, trust-first block theme for Pagewell Books. Navy & cream, big search, curated product grids, and a community-marketplace feel inspired by the best book discovery experiences.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pagewell-books-new
Tags: block-theme, full-site-editing, e-commerce, woocommerce, custom-colors, custom-logo, wide-blocks
*/

/* ---------- Base ---------- */
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  color: #111827;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
}

a { color: #1E3A8A; text-decoration: none; }
a:hover { color: #F97316; }

/* ---------- Header ---------- */
.pw-header {
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pw-logo img, .pw-logo svg { height: 38px; width: auto; }

.pw-search {
  background: #F3F4F6;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 16px;
  width: 100%;
  max-width: 560px;
  transition: border-color .15s, background .15s;
}
.pw-search:focus { outline: none; border-color: #1E3A8A; background: #ffffff; }

.pw-nav {
  display: flex;
  gap: 28px;
  padding: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
}
.pw-nav a { color: #111827; }
.pw-nav a:hover { color: #1E3A8A; }

.pw-pill {
  background: #1E3A8A;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  transition: background .15s, transform .15s;
}
.pw-pill:hover { background: #172F6C; color: #ffffff !important; transform: translateY(-1px); }

.pw-pill--coral {
  background: #F97316;
}
.pw-pill--coral:hover { background: #EA580C; }

/* ---------- Hero ---------- */
.pw-hero {
  background: #FEF3C7;
  border-radius: 24px;
  padding: 64px 56px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.pw-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: #111827;
}
.pw-hero p {
  font-size: 18px;
  color: #374151;
  margin: 0 0 28px;
  max-width: 480px;
}
.pw-hero img, .pw-hero svg {
  width: 100%;
  height: auto;
  max-height: 380px;
  justify-self: end;
}

@media (max-width: 900px) {
  .pw-hero { grid-template-columns: 1fr; padding: 40px 28px; }
  .pw-hero img, .pw-hero svg { max-height: 260px; justify-self: center; }
}

/* ---------- Trust band ---------- */
.pw-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  margin: 32px 0;
}
.pw-trust__item { text-align: center; }
.pw-trust__item strong { display: block; font-size: 16px; color: #111827; margin-bottom: 4px; }
.pw-trust__item span { font-size: 14px; color: #6B7280; }
@media (max-width: 720px) { .pw-trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section titles ---------- */
.pw-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 48px 0 20px;
}
.pw-section-title h2 { font-size: 28px; margin: 0; }
.pw-section-title a { font-weight: 600; }

/* ---------- Products ---------- */
.woocommerce ul.products li.product,
.pw-product-card {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  transition: transform .2s, box-shadow .2s;
}
.woocommerce ul.products li.product:hover,
.pw-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(30, 58, 138, 0.25);
}
.woocommerce ul.products li.product a img {
  border-radius: 12px;
  background: #F9FAFB;
}
.woocommerce ul.products li.product .price {
  color: #1E3A8A;
  font-weight: 700;
  font-size: 16px;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button {
  background: #1E3A8A;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #172F6C; }
.woocommerce #respond input#submit.alt, .woocommerce button.button.alt {
  background: #F97316;
}
.woocommerce #respond input#submit.alt:hover, .woocommerce button.button.alt:hover {
  background: #EA580C;
}

/* ---------- Category chips ---------- */
.pw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.pw-chip {
  background: #F3F4F6;
  color: #111827;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.pw-chip:hover { background: #1E3A8A; color: #ffffff; }

/* ---------- Footer ---------- */
.pw-footer {
  background: #1E3A8A;
  color: #E5E7EB;
  padding: 64px 0 32px;
  margin-top: 64px;
}
.pw-footer a { color: #ffffff; }
.pw-footer a:hover { color: #FCD34D; }
.pw-footer h4 {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.pw-footer ul { list-style: none; padding: 0; margin: 0; }
.pw-footer li { margin-bottom: 10px; }
.pw-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #C7D2FE;
}
