/* ==========================================================================
   The Breedo Way
   Design system taken from the Breedo Books reference site:
   navy #12335c + patriotic red #b52232, Georgia headings, Arial body.
   ========================================================================== */

:root {
  color-scheme: only light;
  --ink: #12335c;
  --red: #b52232;
  --red-dark: #8f1726;
  --paper: #fff;
  --body: #42536a;
  --muted: #536479;
  --line: #dbe2eb;
  --line-2: #c6d3e2;
  --wash: #f6f8fb;

  --ff-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --ff-body: Arial, Helvetica, sans-serif;
  --ff-script: "Brush Script MT", "Segoe Script", "Lucida Handwriting", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: only light;
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color-scheme: only light;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.7 var(--ff-body);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.14;
  margin: 16px 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 5vw, 72px); }
h2 { font-size: clamp(38px, 4.5vw, 64px); }
h3 { font-size: clamp(30px, 3vw, 42px); }
h4 { font-size: 22px; }

/* Brush Script accent — h1 and the big statement only, as on the reference site */
h1 em, .statement em {
  color: var(--red);
  font-family: var(--ff-script);
  font-style: normal;
}

/* h2/h3 accents stay red italic Georgia */
h2 em, h3 em { color: var(--red); font-weight: 400; font-size: .86em; }

p { margin: 0 0 22px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 20px 0; padding-left: 22px; }
li { margin-bottom: 8px; }

strong { color: var(--ink); }

::selection { background: var(--ink); color: #fff; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #087ccc;
  outline-offset: 5px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 14px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-top: 7px solid var(--red);
  transition: box-shadow .25s ease;
}
header.site-header.is-stuck { box-shadow: 0 2px 16px rgba(18, 51, 92, .13); }

.header-inner {
  max-width: 1500px; margin: auto; padding: 22px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 24px;
}

.brand { font: 700 25px/1.2 var(--ff-head); letter-spacing: 2px; color: var(--ink); }
.brand span {
  display: block; font: 14px var(--ff-body); letter-spacing: 4px;
  margin-top: 7px; color: var(--red);
}

nav.main-nav { display: flex; flex-wrap: wrap; gap: 14px 25px; font-weight: bold; font-size: 16px; }
nav.main-nav a { padding: 2px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
nav.main-nav a:hover { color: var(--red); border-bottom-color: var(--red); }
nav.main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
  font: 700 15px var(--ff-body); letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 16px; border-radius: 4px; cursor: pointer;
}
.nav-toggle:hover { background: var(--ink); color: #fff; }
.nav-toggle b { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle b::before, .nav-toggle b::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle b::before { top: -6px; }
.nav-toggle b::after { top: 6px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  nav.main-nav {
    width: 100%; flex-direction: column; flex-wrap: nowrap; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  nav.main-nav.is-open { max-height: 620px; }
  nav.main-nav a {
    padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 18px;
  }
  nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* ---------- patriotic banner ---------- */
.patriotic-banner {
  height: clamp(180px, 27vw, 370px);
  max-width: 1500px; margin: auto; overflow: hidden;
}
.patriotic-banner img { height: 100%; width: 100%; object-fit: cover; object-position: center; }

/* ---------- intro ---------- */
.intro {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  max-width: 1200px; margin: auto; padding: 24px 24px 46px; text-align: center;
}
.intro-copy { text-align: left; }
.intro h1 { margin: 12px 0 10px; }
.intro p { margin: 8px 0; color: var(--body); font-size: 21px; }
.intro .founder { font-size: 16px; color: var(--red); }

.portrait {
  width: 145px; height: 180px; object-fit: cover; object-position: center 12%;
  border: 5px solid #fff; outline: 2px solid var(--ink); border-radius: 4px;
  flex: 0 0 auto;
}
.portrait--lg { width: 230px; height: 290px; }

@media (max-width: 650px) {
  .intro { flex-direction: column; gap: 15px; }
  .intro-copy { text-align: center; }
  .portrait { width: 110px; height: 135px; }
  .portrait--lg { width: 170px; height: 215px; }
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: block;
  font-size: 14px; letter-spacing: 1.6px; font-weight: 700; color: var(--red);
  text-transform: uppercase;
}

.lead { font-size: 21px; max-width: 550px; color: var(--body); }

.button {
  display: inline-flex; align-items: center; gap: 30px;
  background: var(--red); color: #fff;
  padding: 14px 24px; font-size: 17px; font-weight: 700;
  border: 2px solid var(--red); border-radius: 4px; margin-top: 12px;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.button--navy { background: var(--ink); border-color: var(--ink); }
.button--navy:hover { background: #0c2544; border-color: #0c2544; }

.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.byline { font-size: 14px; letter-spacing: 1px; margin-top: 28px; }
.small-label { font-size: 14px; letter-spacing: 1px; display: block; }
.source-note { font-size: 15px; color: var(--muted); }
.availability { font-size: 16px !important; }
.author-title { font-size: 14px; letter-spacing: 1px; }

blockquote {
  margin: 20px 0; border-left: 4px solid var(--red); padding-left: 24px;
  font: 23px/1.6 var(--ff-head); color: var(--ink);
}

details {
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: 16px 0; margin: 25px 0; font-size: 17px;
}
summary { cursor: pointer; font-weight: bold; }
summary:hover { color: var(--red); }
details p, details ul { margin: 20px 0 5px !important; }

/* ---------- main containers ---------- */
.books { max-width: 1260px; margin: auto; padding: 0 30px; }
.reading { max-width: 1050px; padding-top: 50px; padding-bottom: 60px; }
.reading h1 { font-size: clamp(36px, 4.3vw, 58px); }
.reading h2 { font-size: 32px; margin-top: 35px; }
.reading details { font-size: 18px; }
.reading details summary { font-size: 21px; }
.reading .button { margin-bottom: 15px; }
.document { max-width: 800px; margin: 35px 0; }
.document p { margin: 0 0 22px; }

/* the shop listing keeps .reading's typography but uses the full .books width,
   so four product cards fit on one row */
.shop-page { max-width: 1260px; }

/* ---------- feature + statement ---------- */
.feature {
  padding: 48px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px;
  border-top: 3px solid var(--red); border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.feature-copy { max-width: 650px; }
.feature-copy h2 em { font-size: .8em; }

.statement { align-self: center; text-align: center; border-left: 1px solid var(--line-2); padding-left: 25px; }
.statement p { font: 700 clamp(48px, 5vw, 70px)/1.06 var(--ff-head); margin: 24px 0; }
.statement-line { height: 3px; width: 65px; background: var(--red); display: block; margin: 24px auto; }

/* ---------- story / author ---------- */
.story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; padding: 52px 45px; }
.story p { margin: 0 0 22px; color: var(--body); }

.author {
  max-width: 1170px; margin: 0 auto 50px; padding: 40px 30px;
  border-top: 4px solid var(--ink);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px;
}
.author p { color: var(--body); }

/* ---------- book showcase ---------- */
.book-showcase {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px;
  padding: 52px 45px; align-items: start;
  border-top: 3px solid var(--red); border-bottom: 1px solid var(--line);
}
.book-cover {
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 34px rgba(18, 51, 92, .22);
  width: 100%;
}
.cover-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.cover-thumbs button {
  flex: 1; padding: 0; line-height: 0; cursor: pointer; background: var(--wash);
  border: 2px solid var(--line); border-radius: 3px; transition: border-color .18s ease;
}
.cover-thumbs button:hover { border-color: var(--line-2); }
.cover-thumbs button[aria-selected="true"] { border-color: var(--red); }

.price { font: 700 44px/1 var(--ff-head); color: var(--ink); }
.price-note { font-size: 16px; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 26px 0 18px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag {
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted);
}
.tag--stock { border-color: var(--ink); background: var(--ink); color: #fff; }

.option-group { margin: 22px 0; }
.option-group > .small-label { margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.option-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.option-chip {
  padding: 11px 20px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 700 16px var(--ff-body); border-radius: 4px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.option-chip:hover { border-color: var(--line-2); }
.option-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 4px 0 var(--red); }

/* ---------- facts grid ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin: 40px 0; border-top: 1px solid var(--line); }
.facts div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--ff-head); font-size: 24px; margin-bottom: 4px; }
.facts span { font-size: 15px; color: var(--muted); }

/* ---------- product cards ---------- */
/* fixed column counts rather than auto-fit, so a category holding a single
   product gets a normal-sized card instead of one stretched across the row */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 32px 0; }
@media (max-width: 1150px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .product-grid { grid-template-columns: 1fr; } }
.product {
  border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product:hover { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(18, 51, 92, .12); transform: translateY(-3px); }
.product-media { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-bottom: 3px solid var(--red); }
/* contain, not cover: merch photos are square but the book cover is portrait,
   and cropping it cut the title off */
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .5s ease; }
.product:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body .eyebrow { margin-bottom: 8px; }
.product-body h3 { font-size: 26px; margin: 0 0 8px; }
.product-desc { font-size: 16px; color: var(--body); margin-bottom: 14px; }
.sizes { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.size {
  font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 9px; border-radius: 3px;
}
/* nowrap + a slightly smaller price keeps the price and the button on one line
   even when a struck-through "was" price is shown */
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.product-price { font: 700 25px var(--ff-head); color: var(--ink); white-space: nowrap; }
.product-price s { font-size: 15px; color: var(--muted); font-weight: 400; }
.product-foot .button { flex: 0 0 auto; }
.product .button { margin-top: 0; padding: 11px 20px; font-size: 15px; gap: 12px; }
.product-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); margin: 36px 0; }
.trust div { padding: 20px 24px; border-right: 1px solid var(--line); }
.trust div:last-child { border-right: 0; }
.trust strong { display: block; font-size: 17px; }
.trust span { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .trust div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 17px; margin: 24px 0; }
th, td { text-align: left; vertical-align: top; padding: 15px 20px; border-bottom: 1px solid var(--line); }
thead { background: var(--ink); color: #fff; }
tbody th { width: 36%; }
tbody tr:hover { background: var(--wash); }
.addr { white-space: pre-line; color: var(--body); }
.empty-row td { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---------- search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 28px 0 8px; }
.search-field { flex: 1 1 300px; }
.search-field input {
  width: 100%; padding: 14px 18px; font: 17px var(--ff-body); color: var(--ink);
  border: 2px solid var(--line); border-radius: 4px; background: #fff;
}
.search-field input:focus { border-color: var(--ink); outline-offset: 2px; }
.result-count { font-size: 16px; color: var(--muted); }

/* ---------- comment blocks ---------- */
.comment { padding: 22px 0; border-bottom: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; padding-top: 10px; }
.info-list { list-style: none; margin: 24px 0 0; padding: 0; }
.info-list li { margin: 0 0 22px; }
.info-list span { display: block; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red); font-weight: 700; }
.info-list strong { font-size: 19px; font-weight: 400; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; font: 17px var(--ff-body); color: var(--ink);
  border: 2px solid var(--line); border-radius: 4px; background: #fff;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.form-status { margin-top: 16px; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--wash); font-size: 16px; }

/* ---------- call to action band ---------- */
.cta {
  background: var(--ink); color: #fff; text-align: center;
  padding: 56px 40px; margin: 56px 0 0;
}
.cta h2 { color: #fff; margin-top: 10px; }
.cta h2 em { color: #fff; }
.cta .eyebrow { color: #fff; opacity: .85; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 640px; margin-inline: auto; font-size: 20px; }
.cta .button-row { justify-content: center; margin-top: 10px; }
.cta .button--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .button--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- footer ---------- */
footer.site-footer {
  max-width: 1500px; margin: auto; padding: 24px 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  border-top: 2px solid var(--red); font-size: 15px;
}
footer.site-footer .brand { font-size: 21px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { font-size: 15px; color: var(--muted); }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 800px) {
  .header-inner { padding: 20px; }
  .books { padding: 0 18px; }
  .feature { padding: 28px 12px; grid-template-columns: 1fr; }
  .statement { border-left: 0; border-top: 1px solid var(--line-2); padding: 25px 0 0; }
  .statement p { font-size: 46px; }
  .story, .author, .book-showcase, .contact-grid { grid-template-columns: 1fr; gap: 24px; padding-left: 12px; padding-right: 12px; }
  .story, .book-showcase { padding-top: 32px; padding-bottom: 32px; }
  .author { margin: 0 12px 30px; }
  .patriotic-banner { height: 220px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 20px; }
  footer.site-footer > p { width: 100%; order: 3; }
}

@media (max-width: 600px) {
  th, td { padding: 12px 8px; font-size: 16px; }
  .reading { padding-top: 30px; }
  .price { font-size: 36px; }
}

@media (max-width: 480px) {
  /* keep the wordmark and the Menu button on one comfortable row */
  .brand { font-size: 20px; letter-spacing: 1px; }
  .brand span { font-size: 12px; letter-spacing: 3px; }
  .nav-toggle { padding: 9px 13px; font-size: 14px; }
  .header-inner { padding: 18px 16px; }
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 3px;
  background: #fff; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, background .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   Shop — cart, checkout and flash messages
   ========================================================================== */

/* ---------- cart link in the nav ---------- */
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px;
  background: var(--red); color: #fff; border-radius: 999px;
  font: 700 13px/1 var(--ff-body);
}
.cart-count.is-empty { background: var(--line); color: var(--muted); }
nav.main-nav a.cart-link.is-current { color: var(--red); border-bottom-color: var(--red); }

/* ---------- flash messages ---------- */
.flash-wrap { max-width: 1260px; margin: 24px auto 0; padding: 0 30px; }
.flash {
  margin: 0 0 12px; padding: 14px 18px; font-size: 16px;
  border-left: 4px solid var(--ink); background: var(--wash);
}
.flash--ok { border-left-color: #1b7a52; }
.flash--bad { border-left-color: var(--red); }
.flash ul { margin: 8px 0 0; }
.flash li { margin-bottom: 4px; }
@media (max-width: 800px) { .flash-wrap { padding: 0 18px; } }

/* ---------- buttons: extra sizes ---------- */
.button--sm { padding: 8px 14px; font-size: 14px; gap: 10px; margin-top: 0; }
.button--block { width: 100%; justify-content: center; }
.button--danger { background: var(--red); border-color: var(--red); }
.button[disabled] { opacity: .5; cursor: not-allowed; }

.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 15px var(--ff-body); color: var(--ink); text-decoration: underline;
}
.link-button:hover { color: var(--red); }
.link-button--danger { color: var(--red); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.link-arrow::after { content: "\2192"; transition: transform .18s ease; }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover::after { transform: translateX(3px); }

.opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }

/* ---------- product detail: quantity ---------- */
.add-to-cart { margin-top: 8px; }
.qty-row { margin: 22px 0; }
.qty-row .small-label { margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.qty-control { display: inline-flex; align-items: stretch; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; }
.qty-control input {
  width: 68px; border: 0; text-align: center; font: 700 17px var(--ff-body); color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-step {
  width: 44px; border: 0; background: var(--wash); color: var(--ink);
  font: 700 20px/1 var(--ff-body); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.qty-step:hover { background: var(--ink); color: #fff; }

.product-copy h2, .product-copy h3 { font-size: 26px; margin-top: 28px; }
.product-copy ul { margin: 18px 0; }

.product-media { display: block; }
.product-body h3 a:hover { color: var(--red); }

/* ---------- cart table ---------- */
.cart-table td { vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 16px; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.cart-item .source-note { display: block; }

.qty-inline { display: flex; align-items: center; gap: 8px; }
.qty-inline input {
  width: 72px; padding: 9px 10px; text-align: center;
  border: 2px solid var(--line); border-radius: 4px; font: 700 16px var(--ff-body); color: var(--ink);
}

/* ---------- totals ---------- */
.totals { margin: 32px 0 0; max-width: 420px; margin-left: auto; }
.totals dl, .summary-totals { margin: 0; }
.totals dl > div, .summary-totals > div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.totals dt, .summary-totals dt { color: var(--muted); margin: 0; }
.totals dd, .summary-totals dd { margin: 0; font-weight: 700; }
.totals-grand { border-bottom: 0 !important; padding-top: 16px !important; }
.totals-grand dt, .totals-grand dd { font: 700 24px var(--ff-head); color: var(--ink); }
.totals .button-row { margin-top: 20px; justify-content: flex-end; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; margin-top: 10px; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; gap: 32px; } }

.order-summary { border: 1px solid var(--line); padding: 26px 28px; background: var(--wash); position: sticky; top: 120px; }
.order-summary h2 { font-size: 26px; margin-top: 0; }
@media (max-width: 860px) { .order-summary { position: static; } }

.summary-lines { list-style: none; margin: 0 0 18px; padding: 0; }
.summary-lines li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.summary-lines em { display: block; font-style: normal; color: var(--muted); font-size: 14px; }
.summary-lines b { font-weight: 400; color: var(--muted); }

.paypal-box { min-height: 180px; margin: 18px 0; }
.form-status--bad { border-left-color: var(--red); background: #fdf2f3; }

.note { border: 1px solid var(--line-2); background: var(--wash); padding: 20px 24px; margin: 20px 0; }
.note code { font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; background: #fff; padding: 2px 6px; border: 1px solid var(--line); }

/* ---------- pagination (Laravel default markup) ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--ink); background: #fff;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .active span, .pagination [aria-current] span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { color: var(--muted); background: var(--wash); }

/* ---------- shop category filter ---------- */
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 18px; }
.chip {
  padding: 9px 18px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 700 15px var(--ff-body); border-radius: 999px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-page .result-count { margin: 0 0 6px; }
