/*
Theme Name: Ramshoorn Catalogus
Theme URI: https://ramshoorn.cheetahflow.nl
Author: CheetahFlow
Description: POC-thema voor Boekhandel & Uitgeverij De Ramshoorn, gebaseerd op de catalogus 2026/2027.
Version: 0.1.0
Requires PHP: 8.0
Text Domain: ramshoorn
*/

:root {
  --red: #9f1d27;
  --red-dark: #74121b;
  --red-soft: #bd4b50;
  --gold: #d79b19;
  --gold-dark: #a96f00;
  --cream: #fbf7ed;
  --cream-deep: #f4ead8;
  --paper: #fffdf8;
  --ink: #252522;
  --muted: #6f6759;
  --line: #e7dcc7;
  --green: #536f62;
  --shadow: 0 18px 50px rgba(80, 50, 21, .12);
  --radius: 24px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(215,155,25,.12), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(159,29,39,.08), transparent 28rem),
    var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 14px; z-index: 99; }
.skip-link:focus { left: 10px; }

.topbar {
  background: var(--red-dark);
  color: #fff6e8;
  font-size: 14px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-meta { display: flex; gap: 18px; align-items: center; }
.poc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 11px;
}
.poc-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,237,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(159,29,39,.12);
}
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 18px 0 14px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand-logo { width: clamp(176px, 20vw, 232px); height: auto; display: block; }
.brand-mark {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 16px 16px 16px 4px;
  color: #fff; background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-family: var(--serif); font-size: 34px; font-weight: 800; line-height: 1;
  box-shadow: 0 10px 24px rgba(159,29,39,.22);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.38); border-radius: 11px 11px 11px 3px; }
.brand-text strong { display: block; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); letter-spacing: .08em; line-height: .95; color: var(--red); }
.brand-text span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: .13em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search { position: relative; }
.header-search input {
  width: 300px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  padding: 10px 40px 10px 15px; outline: none;
}
.header-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,155,25,.18); }
.header-search button { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 34px; border: 0; border-radius: 50%; background: var(--cream-deep); color: var(--red); cursor: pointer; }
.cart-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 9px 14px;
  border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
}
.cart-link:hover { background: var(--red-dark); color: #fff; }

.cart-icon { flex: 0 0 auto; margin-top: -1px; }
.cart-count { min-width: 23px; height: 23px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: 13px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--red); font-size: 30px; }

.main-navigation { border-top: 1px solid rgba(159,29,39,.08); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 3px; }
.main-navigation a {
  display: block; padding: 12px 17px; color: var(--ink); text-decoration: none; font-weight: 700;
  border-radius: 999px; transition: .18s ease;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { color: var(--red); background: rgba(215,155,25,.16); }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.7), transparent 16rem),
    linear-gradient(115deg, #f5e6c9 0%, #fbf7ed 52%, #efe0c8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 98px;
  background:
    radial-gradient(circle, rgba(255,255,255,.48) 4px, transparent 5px) 0 0/52px 26px,
    linear-gradient(100deg, rgba(111,75,32,.22), rgba(159,29,39,.10));
  opacity: .75;
}
.hero::after {
  content: ""; position: absolute; right: -110px; bottom: -150px; width: 430px; height: 430px;
  background: var(--red); opacity: .08; border-radius: 42% 58% 54% 46%;
  transform: rotate(-12deg);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 60px; align-items: center; padding: 88px 0 76px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1, .page-title, .section-title, .entry-title, .woocommerce-loop-product__title {
  font-family: var(--serif); color: var(--red); line-height: 1.08;
}
.hero h1 { margin: 0 0 20px; font-size: clamp(46px, 6vw, 78px); letter-spacing: -.025em; max-width: 750px; }
.hero-copy { max-width: 650px; font-size: 20px; color: #50483c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 31px 0 26px; }
.btn, .button, button.button, input.button, .add_to_cart_button, .single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff !important; text-decoration: none; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 25px rgba(159,29,39,.18); transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover, .button:hover, .add_to_cart_button:hover, .single_add_to_cart_button:hover { transform: translateY(-1px); background: var(--red-dark); color: #fff; box-shadow: 0 15px 32px rgba(159,29,39,.23); }
.btn-secondary, .button.secondary { background: transparent; color: var(--red) !important; border: 2px solid rgba(159,29,39,.32); box-shadow: none; }
.btn-secondary:hover, .button.secondary:hover { background: rgba(159,29,39,.08); color: var(--red-dark) !important; box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: #c0830a; color: var(--ink) !important; }
.hero-note { color: var(--muted); font-size: 15px; }
.hero-visual { position: relative; min-height: 470px; }
.hero-book-stack { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-book {
  position: absolute; width: 210px; padding: 15px 15px 24px; border-radius: 22px; background: rgba(255,253,248,.86);
  box-shadow: var(--shadow); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,.8);
}
.hero-book img { border-radius: 12px; box-shadow: 0 12px 28px rgba(49,31,17,.22); }
.hero-book:nth-child(1) { transform: rotate(-8deg) translate(-100px, 10px); z-index: 2; }
.hero-book:nth-child(2) { transform: rotate(5deg) translate(80px, -35px); width: 230px; z-index: 3; }
.hero-book:nth-child(3) { transform: rotate(-1deg) translate(15px, 155px); width: 190px; z-index: 1; }
.hero-card {
  position: absolute; right: 0; bottom: 10px; width: 245px; padding: 20px;
  border-radius: 24px 24px 24px 6px; background: var(--red); color: #fff; box-shadow: var(--shadow); z-index: 4;
}
.hero-card strong { display: block; font-family: var(--serif); font-size: 23px; line-height: 1.15; margin-bottom: 8px; }
.hero-card span { color: #ffe9bd; font-size: 15px; }

.section { padding: 72px 0; }
.section-alt { background: rgba(255,253,248,.6); border-block: 1px solid rgba(159,29,39,.08); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-kicker { margin: 0 0 6px; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .13em; font-size: 13px; font-weight: 900; }
.section-title { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.section-text { max-width: 720px; color: var(--muted); }
.section-link { font-weight: 800; white-space: nowrap; }

.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card {
  position: relative; overflow: hidden; min-height: 165px; padding: 22px; border-radius: var(--radius);
  color: var(--ink); background: var(--paper); text-decoration: none; border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(80,50,21,.07); transition: .18s ease;
}
.category-card::after {
  content: ""; position: absolute; right: -35px; bottom: -45px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215,155,25,.23), rgba(215,155,25,0) 68%);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(215,155,25,.55); }
.category-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px 15px 15px 4px; background: rgba(159,29,39,.1); color: var(--red); font-size: 22px; }
.category-card strong { display: block; font-family: var(--serif); color: var(--red); font-size: 21px; line-height: 1.2; }
.category-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.35; }

.products, .product-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.product-card, .woocommerce li.product {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  box-shadow: 0 8px 28px rgba(80,50,21,.06); transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover, .woocommerce li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { display: block; padding: 24px 24px 10px; text-decoration: none; background: linear-gradient(180deg, rgba(244,234,216,.55), transparent); }
.product-media img { margin: 0 auto; max-height: 245px; width: auto; border-radius: 6px; box-shadow: 0 12px 30px rgba(49,31,17,.18); }
.product-body { padding: 14px 20px 20px; }
.product-author { min-height: 21px; color: var(--muted); font-size: 14px; }
.product-body h2, .woocommerce-loop-product__title { margin: 2px 0 8px !important; padding: 0 !important; font-size: 21px !important; }
.product-body h2 a { color: inherit; text-decoration: none; }
.product-meta-mini { color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.price { color: var(--red) !important; font-weight: 900; font-size: 19px; }
.price del { color: var(--muted) !important; font-size: 15px; margin-right: 6px; }
.price ins { text-decoration: none; }
.product-actions { margin-top: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.product-actions .button, .product-actions .add_to_cart_button { min-height: 39px; padding: 8px 14px; font-size: 14px; box-shadow: none; }
.details-link { font-size: 14px; font-weight: 800; text-decoration: none; }
.badge-new, .onsale {
  position: absolute; top: 15px; left: 15px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .04em;
}
.badge-new { background: var(--gold); color: var(--ink); }

.feature-band {
  position: relative; overflow: hidden; border-radius: 34px; padding: 45px; color: #fff;
  background: linear-gradient(120deg, var(--red-dark), var(--red)); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center;
}
.feature-band::after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 42px solid rgba(255,255,255,.08); }
.feature-band h2 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(30px,4vw,46px); line-height: 1.1; }
.feature-band p { max-width: 720px; margin: 0 0 22px; color: #ffe9d3; }
.feature-band .btn { position: relative; z-index: 1; }
.feature-band-img { width: 180px; transform: rotate(5deg); border-radius: 9px; box-shadow: 0 20px 35px rgba(0,0,0,.25); position: relative; z-index: 1; }

.info-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.info-card { padding: 24px; border-radius: var(--radius); background: rgba(255,253,248,.78); border: 1px solid var(--line); }
.info-card strong { display: block; font-family: var(--serif); color: var(--red); font-size: 22px; margin-bottom: 8px; }
.info-card p { margin: 0; color: var(--muted); font-size: 15px; }

.page-hero { padding: 58px 0 34px; background: linear-gradient(115deg, rgba(244,234,216,.85), rgba(251,247,237,0)); border-bottom: 1px solid rgba(159,29,39,.08); }
.page-title { margin: 0; font-size: clamp(38px, 5vw, 60px); }
.page-intro { max-width: 760px; color: var(--muted); margin: 12px 0 0; }
.breadcrumbs { margin-bottom: 13px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--red); text-decoration: none; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.78); }
.woocommerce-result-count { margin: 0 !important; color: var(--muted); font-size: 14px; }
.woocommerce-ordering select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; }
.category-pills { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; }
.category-pills a { padding: 7px 13px; border-radius: 999px; background: rgba(215,155,25,.14); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.category-pills a.active, .category-pills a:hover { background: var(--red); color: #fff; }
.woocommerce-pagination { margin-top: 34px; }
.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 8px; justify-content: center; padding: 0; list-style: none; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink) !important; text-decoration: none; border: 1px solid var(--line) !important; }
.woocommerce-pagination .current, .woocommerce-pagination a:hover { background: var(--red) !important; color: #fff !important; }

.single-product-shell { padding: 52px 0 70px; }
.product-detail-top { display: grid; grid-template-columns: minmax(280px, 430px) minmax(0,1fr); gap: 52px; align-items: start; }
.product-cover-panel {
  position: sticky; top: 138px; padding: 34px; border-radius: 32px; background: linear-gradient(145deg, #fffdf8, #f1e3ce);
  border: 1px solid rgba(215,155,25,.32); box-shadow: var(--shadow); text-align: center;
}
.product-cover-panel::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(159,29,39,.10); border-radius: 24px; pointer-events: none; }
.product-cover-panel img { margin: 0 auto; max-height: 520px; width: auto; border-radius: 7px; box-shadow: 0 20px 42px rgba(49,31,17,.24); }
.product-summary h1 { margin: 0 0 6px; font-family: var(--serif); color: var(--red); font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; }
.product-subtitle { margin: 0 0 5px; color: var(--gold-dark); font-family: var(--serif); font-size: 23px; }
.product-author-large { margin: 0 0 24px; color: var(--muted); font-size: 20px; }
.buy-panel { padding: 25px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(80,50,21,.08); }
.buy-panel .price { display: block; font-size: 31px; margin-bottom: 10px; }
.stock-line { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; margin-bottom: 18px; }
.stock-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #5e9d68; box-shadow: 0 0 0 5px rgba(94,157,104,.13); }
.cart { margin: 0 0 15px !important; }
.quantity input, input.qty { width: 74px !important; min-height: 45px; margin-right: 9px; border: 1px solid var(--line); border-radius: 13px; padding: 7px 9px; background: #fff; }
.buy-benefits { display: grid; gap: 7px; margin: 17px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.buy-benefits span::before { content: "✓"; color: var(--gold-dark); font-weight: 900; margin-right: 7px; }
.quick-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick-specs span { padding: 6px 10px; border-radius: 999px; background: rgba(215,155,25,.15); color: #67513a; font-size: 13px; font-weight: 700; }
.product-content-grid { display: grid; grid-template-columns: minmax(280px, 390px) 1fr; gap: 38px; margin-top: 46px; align-items: start; }
.spec-card, .description-card { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.spec-card h2, .description-card h2 { margin: 0; padding: 17px 22px; color: #fff; background: var(--red); font-family: var(--serif); font-size: 23px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid #eee3cf; vertical-align: top; text-align: left; }
.spec-table th { width: 39%; color: var(--muted); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.description-card .entry-content, .description-body { padding: 23px 26px; }
.description-body p:first-child { margin-top: 0; }
.description-body p:last-child { margin-bottom: 0; }
.related.products { display: block !important; margin-top: 58px; }
.related.products ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.related.products > h2 { font-family: var(--serif); color: var(--red); font-size: 34px; margin-bottom: 22px; }

.site-main > article, .content-card { padding: 42px 0 70px; }
.entry-content { max-width: 820px; }
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: var(--serif); color: var(--red); line-height: 1.15; }
.entry-content h1 { font-size: 44px; }
.entry-content h2 { font-size: 32px; margin-top: 36px; }
.entry-content h3 { font-size: 24px; }
.entry-content p, .entry-content li { color: #494236; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.contact-box { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-box strong { display: block; font-family: var(--serif); color: var(--red); font-size: 23px; margin-bottom: 9px; }

.site-footer { margin-top: 60px; color: #fff6e8; background: #4f171b; }
.footer-wave { height: 40px; background: radial-gradient(circle at 20px -8px, transparent 28px, #4f171b 29px) 0 0/44px 40px repeat-x; transform: translateY(-39px); margin-bottom: -39px; opacity: .98; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 40px; padding: 60px 0 38px; }
.footer-brand { font-family: var(--serif); font-size: 32px; letter-spacing: .08em; color: #fff; margin-bottom: 8px; }
.site-footer p, .site-footer li { color: #ead5bd; }
.site-footer h3 { margin: 0 0 13px; color: var(--gold); font-family: var(--serif); font-size: 20px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #fff6e8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 18px 0 24px; font-size: 14px; color: #d9c0aa; display: flex; justify-content: space-between; gap: 20px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  padding: 15px 18px; margin: 0 0 24px; border-radius: 16px; border: 1px solid var(--line); background: #fff8e7; color: var(--ink); list-style: none;
}
.woocommerce-error { border-color: #d69a9a; background: #fff0ee; color: #842029; }
.woocommerce-message { border-color: #bad7c0; background: #eff9f1; }
.shop_table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.shop_table th, .shop_table td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; }
.shop_table th { color: var(--red); font-family: var(--serif); }
.cart_totals, .woocommerce-checkout-review-order, .woocommerce-checkout-payment, .woocommerce-customer-details, .woocommerce-order-details { margin-top: 25px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
form.checkout, form.login, form.register, .woocommerce-form-coupon, .woocommerce-form-login { display: grid; gap: 14px; }
.form-row { margin-bottom: 14px !important; }
.form-row label { display: block; font-weight: 800; margin-bottom: 5px; }
.form-row input.input-text, .form-row textarea, .form-row select, .woocommerce-input-wrapper input, .woocommerce-input-wrapper textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; background: #fff;
}
#payment ul.payment_methods { list-style: none; padding: 0; }
.place-order .button { width: 100%; }
.woocommerce-notices-wrapper { margin-top: 20px; }

/* WooCommerce Blocks (winkelwagen/afrekenen) in de catalogus-stijl */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { color: var(--ink); }
.wp-block-woocommerce-cart h1, .wp-block-woocommerce-cart h2, .wp-block-woocommerce-cart h3,
.wp-block-woocommerce-checkout h1, .wp-block-woocommerce-checkout h2, .wp-block-woocommerce-checkout h3,
.wp-block-woocommerce-checkout legend, .wc-block-components-checkout-step__heading {
  color: var(--red) !important; font-family: var(--serif) !important;
}
.wc-block-components-button, .wc-block-components-button.contained,
.wc-block-components-button:not(.is-link):not(:disabled),
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button {
  background: var(--red) !important; border-color: var(--red) !important; color: #fff !important;
  border-radius: 999px !important; font-weight: 800 !important; text-transform: none !important;
  min-height: 48px; box-shadow: 0 10px 26px rgba(159,29,39,.18);
}
.wc-block-components-button:not(.is-link):not(:disabled):hover,
.wc-block-components-button:not(.is-link):not(:disabled):focus {
  background: #7f1722 !important; border-color: #7f1722 !important; color: #fff !important;
}
.wc-block-components-button.is-link { color: var(--red) !important; box-shadow: none; min-height: auto; }
.wc-block-components-product-name, .wc-block-components-product-name a { color: var(--red) !important; text-decoration-color: rgba(159,29,39,.32) !important; }
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-text-input input, .wc-block-components-select__select {
  border: 1px solid var(--line) !important; border-radius: 13px !important; background: #fff !important;
}
.wc-block-cart-items, .wc-block-components-order-summary {
  border-color: var(--line) !important;
}

@media (max-width: 1000px) {
  .related.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .header-main { grid-template-columns: auto auto 1fr; }
  .header-search { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; padding-bottom: 12px; }
  .main-navigation ul { flex-direction: column; align-items: stretch; }
  .main-navigation a { border-radius: 12px; }
  .hero-inner, .product-detail-top, .product-content-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .products, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-strip, .footer-main, .contact-grid { grid-template-columns: 1fr 1fr; }
  .product-cover-panel { position: static; }
}
@media (max-width: 640px) {
  .related.products ul.products { grid-template-columns: 1fr !important; }
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1180px); }
  .topbar-meta a:not(:last-child), .topbar .poc-pill { display: none; }
  .brand-logo { width: 148px; }
  .cart-label { display: none; }
  .hero-inner { padding: 58px 0; gap: 25px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 17px; }
  .hero-visual { min-height: 350px; }
  .hero-book { width: 155px; }
  .hero-book:nth-child(2) { width: 170px; }
  .hero-card { width: 205px; right: 0; bottom: -10px; }
  .section { padding: 48px 0; }
  .section-head { display: block; }
  .category-grid, .products, .product-grid, .info-strip, .footer-main, .contact-grid { grid-template-columns: 1fr; }
  .feature-band { grid-template-columns: 1fr; padding: 28px; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .product-content-grid { gap: 22px; }
  .footer-bottom { display: block; }
}
