/* Titanium Joe — light storefront for HostPapa cPanel
   Senior-friendly defaults: larger type, stronger contrast, bigger targets */
:root {
  --bg: #fafaf9;
  --card: #ffffff;
  --text: #1c1917;
  --muted: #57534e; /* darker than stone-500 for readability */
  --line: #d6d3d1;
  --ink: #0c0a09;
  --accent: #1c1917;
  --radius: 1rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%);
  --max: 72rem;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-body: 1.125rem;       /* 18px */
  --fs-small: 1rem;          /* 16px min for secondary text */
  --fs-btn: 1.0625rem;
  --touch: 3rem;             /* ~48px minimum touch target */
  --focus: #f59e0b;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.product-card:focus-visible,
.category-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button, input, select, textarea { font: inherit; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header — single-line nav on desktop */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.65rem; min-height: 3.75rem;
  flex-wrap: nowrap;
}
.nav-brand {
  display: flex; align-items: center; gap: .5rem; text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { height: 2.1rem; width: auto; }
.nav-links {
  display: none; list-style: none; margin: 0; padding: 0;
  gap: 0.15rem 0.55rem; align-items: center;
  flex-wrap: nowrap; /* one line */
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.nav-links li { flex-shrink: 0; white-space: nowrap; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #292524;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  border-radius: 0.35rem;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: underline; }
.nav-end {
  display: flex; align-items: center; gap: .45rem;
  flex-shrink: 0;
}
.nav-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; text-decoration: none;
  font-size: 1.1rem;
}
.nav-cart-count {
  position: absolute; top: .1rem; right: .1rem;
  min-width: 1.2rem; height: 1.2rem; padding: 0 .28rem;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; border: 2px solid var(--line);
  border-radius: 999px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; width: 1.1rem; margin-inline: auto; background: var(--ink); }
.nav-links.open {
  display: flex; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap;
  background: #fff; border-bottom: 1px solid var(--line); padding: .65rem 1rem 1.15rem;
  max-height: min(75vh, 32rem); overflow-y: auto; justify-content: flex-start;
}
.nav-links.open a {
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
/* Desktop: always one horizontal line */
@media (min-width: 980px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .nav-toggle { display: none; }
  .nav-brand img { height: 2.25rem; }
  .nav-links a { font-size: 0.86rem; padding: 0.35rem 0.15rem; }
}
@media (min-width: 1280px) {
  .nav-links { gap: 0.2rem 0.75rem; }
  .nav-links a { font-size: 0.92rem; }
  .nav { min-height: 4rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: .8rem 1.35rem; border-radius: 999px;
  border: 2px solid transparent; font-size: var(--fs-btn); font-weight: 600;
  cursor: pointer; text-decoration: none; transition: .15s ease;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #292524; }
.btn-ghost { background: #fff; border-color: #a8a29e; color: var(--text); }
.btn-ghost:hover { background: #f5f5f4; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg {
  min-height: 3.25rem;
  padding: 0.9rem 1.4rem;
  font-size: 1.1rem;
}

/* Layout helpers */
main { flex: 1; }
.section { padding: 2.75rem 0; }
.section-tight { padding: 1.75rem 0 2.75rem; }
.eyebrow {
  margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #57534e;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); margin: .45rem 0 0.65rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; }
.lead {
  color: #44403c;
  max-width: 40rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Cards / grid */
.product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.product-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.product-card:hover { border-color: #a8a29e; box-shadow: 0 8px 24px rgb(0 0 0 / 6%); text-decoration: none; }
.product-card-img {
  aspect-ratio: 1; background: #f5f5f4; display: grid; place-items: center; padding: .75rem;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.product-card-meta { font-size: var(--fs-small); color: var(--muted); }
.product-card-price { margin-top: auto; padding-top: .45rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); }

/* Hero: category cards first, headline below */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.category-hero {
  padding: 1.5rem 0 2.5rem;
}
@media (min-width: 700px) {
  .category-hero { padding: 2rem 0 3.5rem; }
}
.hero-eyebrow {
  margin-bottom: 1.25rem;
}
.hero-below {
  margin-top: 2rem;
  max-width: 40rem;
}
@media (min-width: 700px) {
  .hero-below { margin-top: 2.75rem; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #f5f5f4;
  max-width: 28rem;
}
.hero-stats strong { display: block; font-size: 1.5rem; }
.hero-stats span { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #57534e; font-weight: 600; }

/* Category cards: image on top, text below (home hero) */
.category-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 700px) {
  .category-row { gap: 1.15rem; }
}
.category-row .category-card {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 140px;
  max-width: 100%;
}
/* 4 across when room; extra cards wrap to next row */
@media (min-width: 900px) {
  .category-row .category-card {
    flex: 1 1 calc(25% - 0.9rem);
    min-width: 10.5rem;
  }
}
.category-row-extra {
  margin-top: 0.85rem;
}
@media (min-width: 700px) {
  .category-row-extra { margin-top: 1.15rem; }
}
@media (min-width: 900px) {
  /* three collection cards sit nicely in one row */
  .category-row-extra .category-card {
    flex: 1 1 calc(33.333% - 0.9rem);
  }
}
.category-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}
.category-card:hover,
.category-card:focus-visible {
  border-color: #a8a29e;
  box-shadow: 0 12px 32px rgb(0 0 0 / 8%);
  transform: translateY(-2px);
  text-decoration: none !important;
}
/* Make whole card clickable; children don't intercept oddly */
.category-card > * {
  pointer-events: none;
}
.category-card-media {
  aspect-ratio: 1 / 1.05;
  min-height: 9rem;
  background: #f5f5f4;
  overflow: hidden;
  display: grid;
  place-items: center;
}
@media (min-width: 700px) {
  .category-card-media {
    aspect-ratio: 1 / 1.1;
    min-height: 14rem;
  }
}
@media (min-width: 1100px) {
  .category-card-media { min-height: 17rem; }
}
.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
/* Product photos (white bg) — show full product, don't crop */
.category-card-media-product {
  background: #fafaf9;
  padding: 0.65rem;
}
.category-card-media-product img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.category-card:hover .category-card-media img {
  transform: scale(1.04);
}
/* Logo-style media (Frontenacs, etc.) — contain, not crop */
.category-card-media-logo {
  background: #0c0a09;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.category-card-media-logo img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}
.category-card:hover .category-card-media-logo img {
  transform: scale(1.05);
}
.category-card-label {
  padding: 0.85rem 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
@media (min-width: 700px) {
  .category-card-label {
    padding: 1.15rem 1.25rem 1.35rem;
  }
}
.category-card-label h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 700px) {
  .category-card-label h2 { font-size: 1.4rem; }
}
.category-card-label p {
  margin: .4rem 0 0;
  font-size: 1rem;
  color: #44403c;
  line-height: 1.5;
}
@media (min-width: 700px) {
  .category-card-label p { font-size: 1.05rem; }
}

/* Quote / about bits */
.panel {
  background: #fff; border: 2px solid var(--line); border-radius: 1.25rem;
  padding: 1.4rem 1.45rem; box-shadow: var(--shadow);
}
.panel p { line-height: 1.65; }
.quote-grid {
  display: grid; gap: 1.25rem; align-items: center;
}
@media (min-width: 800px) {
  .quote-grid { grid-template-columns: 1fr 180px; }
}
.quote-photo {
  width: min(160px, 100%); margin: 0 auto; aspect-ratio: 3/4;
  border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background: #f5f5f4;
}
.quote-photo img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.blockquote { margin: .75rem 0 0; font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; }

/* Shop toolbar */
.toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1.5rem;
}
.toolbar input, .toolbar select, .field input, .field select, .field textarea {
  width: 100%; border: 2px solid #a8a29e; border-radius: .7rem;
  background: #fff; padding: .85rem 1rem; color: var(--text);
  min-height: var(--touch); font-size: 1.05rem;
}
.toolbar input, .toolbar select { width: auto; min-width: 12rem; flex: 1; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: 1.05rem; font-weight: 700; color: #1c1917; }
.field-row { display: grid; gap: .85rem; }
@media (min-width: 700px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}

/* Product page */
.product-layout {
  display: grid; gap: 1.5rem;
}
@media (min-width: 900px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
}
.product-media {
  background: #fff; border: 1px solid var(--line); border-radius: 1.25rem;
  aspect-ratio: 1; display: grid; place-items: center; padding: 1.25rem;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.price-lg { font-size: 1.75rem; font-weight: 700; margin: .85rem 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0; }
.chip {
  font-size: .9rem; padding: .4rem .7rem; border-radius: 999px;
  background: #f5f5f4; color: #292524; border: 1px solid var(--line); font-weight: 600;
}

/* Cart / checkout */
.shop-layout {
  display: grid; gap: 1.25rem;
}
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 1.4fr .9fr; align-items: start; }
}
.cart-line {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-line img {
  width: 80px; height: 80px; object-fit: contain; border-radius: .65rem;
  border: 1px solid var(--line); background: #fafaf9; padding: .25rem;
}
.cart-line h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.cart-line .meta { font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }
.qty {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .55rem;
}
.qty button {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.15rem; font-weight: 700;
}
.qty span { font-size: 1.1rem; font-weight: 700; min-width: 1.5rem; text-align: center; }
.summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 1.05rem; padding: .45rem 0;
}
.summary-row.total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--line); margin-top: .5rem; padding-top: .85rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: 1.1rem; }

/* Footer */
.site-footer {
  margin-top: auto; border-top: 1px solid var(--line); background: #f5f5f4;
}
.footer-map { padding: 2rem 0 1rem; }
.footer-map h2 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: #57534e; margin: 0 0 .5rem; font-weight: 700; }
.footer-map-frame {
  margin-top: 1rem; overflow: hidden; border-radius: 1rem; border: 1px solid var(--line);
  background: #e7e5e4;
}
.footer-map-frame iframe { display: block; width: 100%; height: 16rem; border: 0; }
@media (min-width: 700px) {
  .footer-map-frame iframe { height: 18rem; }
}
.footer-grid {
  display: grid; gap: 1.5rem; padding: 2rem 0;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}
.footer-grid h3 {
  margin: 0 0 .75rem; font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; color: #57534e; font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 .7rem; font-size: 1.05rem; color: #44403c; line-height: 1.45; }
.footer-grid a { color: #1c1917; font-weight: 600; }
.footer-grid a[href^="tel:"] {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.35rem; display: flex; flex-wrap: wrap; gap: .55rem 1rem;
  justify-content: space-between; font-size: var(--fs-small); color: #57534e;
}

/* Moneris overlay (from KW pattern) */
.moneris-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / 55%);
  display: grid; place-items: center; padding: 1rem;
}
.moneris-overlay[hidden] { display: none !important; }
.moneris-overlay-panel {
  width: min(100%, 28rem); background: #fff; border-radius: 1rem;
  padding: 1rem 1rem 1.25rem; box-shadow: 0 20px 50px rgb(0 0 0 / 25%);
}
.moneris-overlay-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: .5rem;
}
.moneris-overlay-close {
  border: 0; background: #f5f5f4; width: 2rem; height: 2rem; border-radius: 999px; cursor: pointer;
}
.moneris-overlay-note { font-size: .8rem; color: var(--muted); margin: 0 0 .75rem; }
.moneris-checkout-div { min-height: 120px; }
.moneris-overlay-status { font-size: .85rem; color: var(--muted); }
.moneris-overlay-status.is-error { color: #b91c1c; }
body.moneris-open { overflow: hidden; }

/* Admin */
.admin-wrap { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.admin-table th { background: #fafaf9; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #78716c; }
.admin-thumb { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--line); border-radius: .4rem; background: #fafaf9; }

/* Utils */
.stack { display: grid; gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.alert {
  padding: 1rem 1.1rem; border-radius: .75rem; font-size: 1.05rem; line-height: 1.55;
  border: 2px solid #fecaca; background: #fef2f2; color: #991b1b;
}
.alert.ok { border-color: #86efac; background: #f0fdf4; color: #14532d; }
.breadcrumbs { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: #292524; font-weight: 600; }

/* FAQ / AI content blocks */
.faq-block { margin-top: 2.5rem; }
.faq-block h2 { margin-bottom: 1rem; }
.faq-item {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  list-style: none;
  line-height: 1.4;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: #44403c;
  font-weight: 700;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0.85rem 0 0.15rem;
  color: #292524;
  line-height: 1.7;
  font-size: 1.08rem;
}
.content-prose {
  max-width: 46rem;
}
.content-prose h2 {
  margin-top: 1.85rem;
  font-size: 1.4rem;
}
.content-prose p, .content-prose li {
  color: #292524;
  line-height: 1.75;
  font-size: 1.12rem;
}
.content-prose ul { padding-left: 1.3rem; }
.content-prose a[href^="tel:"] {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: underline;
}
.seo-keypoints {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
@media (min-width: 700px) {
  .seo-keypoints { grid-template-columns: 1fr 1fr; }
}
.seo-keypoints .panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.seo-keypoints .panel p {
  margin: 0;
  color: #44403c;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Admin quick-edit bar */
#tjEditBar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgb(28 25 23 / 96%);
  color: #fafaf9;
  border-top: 1px solid #44403c;
  box-shadow: 0 -8px 30px rgb(0 0 0 / 18%);
}
.tj-edit-bar-inner {
  width: min(100% - 1.5rem, 72rem);
  margin: 0 auto;
  padding: .65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
#tjEditBar .btn { min-height: 2.25rem; font-size: .82rem; }
#tjEditBar .btn-ghost {
  background: transparent;
  border-color: #57534e;
  color: #fafaf9;
}
#tjEditBar .btn-ghost:hover { background: #292524; }
.tj-edit-status { font-size: .8rem; color: #a8a29e; margin-left: .25rem; }
body.tj-edit-mode { padding-bottom: 4.5rem; }
body.tj-edit-mode [data-copy].tj-editable {
  outline: 2px dashed #fbbf24 !important;
  outline-offset: 3px;
  background: rgb(254 243 199 / 45%) !important;
  cursor: text;
  min-width: 1ch;
}
body.tj-edit-mode [data-copy].tj-editable:focus {
  outline-color: #f59e0b !important;
  background: #fffbeb !important;
}

/* Magnetic product badges — high visibility on cards */
.product-card-img {
  position: relative;
}
.product-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
  pointer-events: none;
}
.product-badge-magnetic {
  background: #b45309;
  color: #fffbeb;
  border: 2px solid #78350f;
}
.product-badge-nonmag {
  background: #f5f5f4;
  color: #44403c;
  border: 1px solid #d6d3d1;
  font-weight: 700;
}
.product-card-magnetic {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px #fcd34d, 0 1px 2px rgb(0 0 0 / 4%);
}
.product-card-magnetic:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px #fbbf24, 0 8px 24px rgb(0 0 0 / 8%);
}
.card-mag-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.25rem 0 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.card-mag-label strong {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-mag-safety {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: #7c2d12;
}
.mag-page-banner {
  margin: 0 0 1.15rem;
  padding: 1.05rem 1.15rem;
  border-radius: 0.75rem;
  border: 2px solid #f59e0b;
  font-size: 1.05rem;
  line-height: 1.6;
  background: #fffbeb;
  color: #78350f;
}
.mag-page-banner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mag-page-banner p {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #7c2d12;
}
.mag-page-banner p:first-of-type {
  margin-top: 0.15rem;
}
.chip-magnetic {
  background: #b45309;
  color: #fffbeb;
  border-color: #78350f;
  font-weight: 700;
}
.card-chips { margin: 0.25rem 0 0.35rem; }
.mag-warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #78350f;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Global senior-friendly extras */
#shopCount, .shop-count {
  font-size: 1.05rem;
  font-weight: 600;
  color: #44403c;
}
.product-layout .lead {
  font-size: 1.12rem;
  color: #292524;
}
/* Phone numbers sitewide — easier to tap and read */
a[href^="tel:"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Prefer reduced motion when requested */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Engraving commerce + senior-friendly engraving page */
.engrave-hero {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 860px) {
  .engrave-hero { grid-template-columns: 1.2fr 0.8fr; gap: 1.75rem; }
}
.engrave-price-callout { margin-top: 1.25rem; }
.engrave-rate {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.5rem;
  color: var(--ink);
}
.engrave-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: #44403c;
  line-height: 1.65;
}
.engrave-summary-card h2 { margin-bottom: 0.75rem; }
.cart-note {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #57534e;
  font-style: italic;
}

/* Easy engraving page (larger type, clearer steps) */
.page-engrave .engrave-easy {
  max-width: 44rem;
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #292524;
}
.page-engrave .engrave-easy h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: #0c0a09;
}
.page-engrave .engrave-easy h2 {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: #0c0a09;
}
.page-engrave .engrave-easy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #0c0a09;
}
.page-engrave .engrave-easy p { margin: 0 0 0.75rem; }
.engrave-easy-kicker {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #57534e;
}
.engrave-easy-lead {
  font-size: 1.2rem;
  color: #44403c;
  max-width: 38rem;
}
.engrave-easy-price {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  padding: 1.25rem 1.35rem;
}
.engrave-easy-price-label {
  margin: 0 0 0.5rem !important;
  font-size: 1.15rem !important;
}
.engrave-easy-price-num {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.85rem !important;
}
.engrave-easy-price-num strong {
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1;
  color: #0c0a09;
}
.engrave-easy-price-num span {
  font-size: 1.1rem;
  color: #44403c;
}
.engrave-easy-price-facts {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
  color: #292524;
}
.engrave-easy-price-facts li { margin: 0.35rem 0; }
.engrave-easy-example {
  margin: 1rem 0 0 !important;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 0.65rem;
  font-size: 1.05rem;
}

/* Live type bar on price card */
.engrave-type-bar {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 2px solid #0c0a09;
  border-radius: 0.85rem;
}
.engrave-type-bar-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c0a09;
}
.engrave-type-bar-input {
  width: 100%;
  min-height: 3.35rem;
  border: 2px solid #a8a29e;
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #0c0a09;
  background: #fafaf9;
}
.engrave-type-bar-input:focus {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  border-color: #0c0a09;
  background: #fff;
}
.engrave-type-bar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1917;
}
.engrave-type-bar-help {
  margin: 0.55rem 0 0 !important;
  font-size: 1rem;
  color: #44403c;
}
.engrave-type-bar-actions {
  margin-top: 0.9rem !important;
}
.engrave-type-bar-status {
  margin: 0.75rem 0 0 !important;
  font-size: 1.05rem;
}
.engrave-type-bar-status.is-ok {
  color: #166534;
  font-weight: 600;
}
.engrave-type-bar-status.is-error {
  color: #b91c1c;
  font-weight: 600;
}
.engrave-easy-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.engrave-easy-step-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.engrave-easy-step-num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #0c0a09;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.engrave-easy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}
.btn-lg {
  min-height: 3.1rem;
  padding: 0.8rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.engrave-easy-phone {
  background: #f5f5f4;
  border: 2px solid #d6d3d1;
  padding: 1.25rem 1.35rem;
}
.engrave-easy-phone-lead { font-size: 1.15rem; color: #292524; }
.engrave-easy-hours {
  font-size: 1.05rem;
  color: #44403c;
  font-weight: 600;
}
.engrave-easy-phones {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.engrave-easy-phones li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.engrave-easy-phone-label {
  min-width: 5.5rem;
  font-weight: 700;
  color: #57534e;
  font-size: 1rem;
}
.engrave-easy-phone-link {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0c0a09;
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.02em;
}
.engrave-easy-phone-link:hover { color: #1c1917; }
.engrave-easy-fact-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .engrave-easy-fact-grid { grid-template-columns: 1fr 1fr; }
}
.engrave-easy-fact-grid .panel {
  padding: 1.15rem 1.2rem;
  margin: 0;
}
.engrave-easy-tips {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
  color: #292524;
}
.engrave-easy-tips li { margin: 0.4rem 0; }
.engrave-easy-final {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 2px solid #0c0a09;
}
.engrave-easy-final .engrave-easy-actions {
  justify-content: center;
}

.engrave-dialog {
  border: none;
  padding: 0;
  max-width: min(36rem, calc(100vw - 1.25rem));
  width: 100%;
  border-radius: 1rem;
  background: transparent;
  font-size: 1.05rem;
}
.engrave-dialog::backdrop {
  background: rgb(12 10 9 / 55%);
}
.engrave-dialog-panel {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgb(0 0 0 / 25%);
  padding: 1.25rem 1.2rem 1.25rem;
  display: grid;
  gap: 0.95rem;
}
.engrave-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.engrave-dialog-head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.4rem;
  line-height: 1.25;
}
.engrave-close {
  border: 1px solid var(--line);
  background: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.engrave-price-line { margin: 0; font-size: 1.05rem; color: #292524; }
.engrave-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #292524;
}
.engrave-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.engrave-dialog-actions .btn {
  min-height: 2.85rem;
  font-size: 1.05rem;
}
body.engrave-open { overflow: hidden; }
.engrave-dialog textarea {
  width: 100%;
  resize: vertical;
  min-height: 6rem;
  border: 2px solid #d6d3d1;
  border-radius: 0.65rem;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1.5;
}
.engrave-dialog select,
.engrave-dialog input[type="text"] {
  width: 100%;
  border: 2px solid #d6d3d1;
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1.1rem;
  background: #fff;
  min-height: 3rem;
}
.engrave-dialog label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c1917;
}

/* Product-page engraving add-on */
.engrave-addon h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.engrave-addon-summary {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #fafaf9;
  border: 1px solid var(--line);
}
.engrave-addon-summary strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #57534e;
  margin-bottom: 0.2rem;
}
