/* Charing Cross visual refresh: preserve existing markup and behavior. */
/* v56: legacy green token names intentionally alias plum for template compatibility. */
:root {
  --cc-ink: #333333;
  --cc-muted: #5e5660;
  --cc-green: #944f70;
  --cc-green-deep: #783e5b;
  --cc-green-dark: #783e5b;
  --cc-plum: #944f70;
  --cc-plum-dark: #783e5b;
  --cc-lime: #edf053;
  --cc-paper: #fdfdfd;
  --cc-cream: #f8f3f6;
  --cc-line: #e5dfe3;
  --cc-card: #fff;
  --cc-focus: #944f70;
  --cc-radius: 18px;
  --cc-shadow: 0 10px 30px rgb(32 51 44 / 7%);
  --primary-color: var(--cc-green);
  --secondary-color: var(--cc-green);
  --text-color: var(--cc-ink);
  --dark-font-color: var(--cc-ink);
}

html { scroll-behavior: smooth; }
body {
  color: var(--cc-ink);
  background: var(--cc-paper);
  font-family: Inter, "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body :is(h1, h2, h3, h4) {
  color: var(--cc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.16;
}
body :where(h1) { font-size: clamp(2rem, 4.4vw, 3.6rem); }
body :where(h2) { font-size: clamp(1.55rem, 2.7vw, 2.35rem); }
body :where(h3) { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
body :where(p, li) { max-width: 75ch; }
body :where(a) { text-underline-offset: .18em; }
body :where(a:hover) { color: var(--cc-green); }
body :where(button, input, select, textarea) { font: inherit; }
body :where(button, [type="button"], [type="submit"], .button, .cc-btn, .cc-financing-button):focus-visible,
body :where(a, summary):focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 3px;
}

/* Header and navigation */
body :where(.site-header, .main-navigation) {
  background: var(--cc-paper);
  border-color: var(--cc-line);
}
body :where(.site-header, .main-navigation) a { color: var(--cc-ink); }
body :where(.main-navigation .main-nav ul li a) {
  padding: 14px 12px;
  font-size: .9rem;
  font-weight: 650;
}
body :where(.main-navigation .main-nav ul li a:hover, .main-navigation .main-nav ul li a:focus-visible) {
  color: var(--cc-green);
}

/* Shared page widths, headings, breadcrumbs, and calls to action */
body .page-wrapper.container,
body .archive-page-header,
body .archive-content-wrapper,
body .blog-content-wrapper,
body .product-content-layout,
body .checkout-container,
body .cart-container {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-inline: auto;
}
body :where(.main-content) { color: var(--cc-ink); }
body .main-content h1,
body .archive-title,
body .blog-title,
body .product-title {
  color: var(--cc-ink);
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.08;
}
body .main-content h2,
body .archive-content-wrapper h2 {
  color: var(--cc-ink);
  border-color: var(--cc-line);
}
body .yoast-breadcrumbs,
body .breadcrumb-container,
body .post-meta-details {
  color: var(--cc-muted);
  font-size: .82rem;
}
body .yoast-breadcrumbs a,
body .breadcrumb-container a { color: var(--cc-green); }
body :where(.button, .cc-btn-primary, .cc-financing-button, .checkout-container button,
  .cart-container button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button) {
  min-height: 46px;
  border: 1px solid var(--cc-green-deep);
  border-radius: 999px;
  background: var(--cc-green-deep);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
body :where(.button:hover, .cc-btn-primary:hover, .cc-financing-button:hover,
  .checkout-container button:hover, .cart-container button:hover,
  .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover) {
  border-color: var(--cc-green);
  background: var(--cc-green);
  color: #fff;
}
body :where(.cc-btn-secondary) { color: var(--cc-green); border-color: var(--cc-line); }

/* Homepage sections retain their existing copy and product queries. */
body .page-content {
  --primary-color: var(--cc-green);
  --secondary-color: var(--cc-ink);
  --text-light: #f1e7ed;
  --text-dark: var(--cc-ink);
  --star-color: #edf053;
}
body .page-content .banner {
  max-width: 1200px;
  min-height: 430px;
  margin: 28px auto 0;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  align-items: flex-start;
  border-radius: 24px;
  background: radial-gradient(ellipse at 85% 20%, rgb(233 248 120 / 17%), transparent 34%),
    linear-gradient(135deg, #783e5b, #944f70);
  text-align: left;
}
body .page-content .banner h1 { max-width: 13ch; font-size: clamp(2.5rem, 5.6vw, 4.7rem); line-height: 1.02; }
body .page-content .banner h2 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
body .page-content .banner p { margin-inline: 0; color: #f1e7ed; }
body .page-content .banner .button,
body .page-content .cats-gallery .button {
  border: 1px solid var(--cc-lime);
  border-radius: 999px;
  background: var(--cc-lime);
  color: var(--cc-ink);
}
body .page-content .banner .button:hover,
body .page-content .cats-gallery .button:hover { background: #e1e33f; color: var(--cc-ink); }
body .page-content .cats-gallery {
  min-height: 0;
  max-width: 1200px;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  background: transparent;
}
body .page-content .cats-gallery h2 { text-align: left; }
body .page-content .about-section,
body .page-content .values-section,
body .page-content .adoption-section {
  max-width: 1200px;
  min-height: 0;
  margin: 1.25rem auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 22px;
  background: var(--cc-green-deep);
}
body .page-content .about-item { border: 1px solid rgb(32 51 44 / 8%); border-radius: 16px; }

/* About/contact content and single article reading measure. */
body :where(.entry-content, .page-content) :where(img, video, iframe) { max-width: 100%; }
body.single-post .site-main,
body.page:not(.page-template-page-home) .site-main {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
body.single-post .entry-header,
body.single-post .entry-content,
body.single-post .comments-area { max-width: 850px; margin-inline: auto; }
body.single-post .entry-title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
body.single-post .entry-content { color: #5e5660; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.85; }
body.single-post .entry-content h2 { margin-top: 2.3em; font-size: clamp(1.7rem, 3vw, 2.4rem); }
body.single-post .entry-content h3 { margin-top: 1.8em; font-size: clamp(1.3rem, 2vw, 1.65rem); }
body.single-post .entry-content a { color: var(--cc-green); text-decoration: underline; }

/* Location and breed pages */
body.page-template-page-cat-landing .main-content,
body.page-template-page-cat-rescue .main-content,
body.page-template-page-cat-hub-sale .main-content,
body.page-template-page-cat-hub-rescue .main-content,
body.page-template-page-cat-master-sale .main-content {
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}
body.page-template-page-cat-landing .main-content > h1:first-child,
body.page-template-page-cat-rescue .main-content > h1:first-child,
body.page-template-page-cat-hub-sale .main-content > h1:first-child,
body.page-template-page-cat-hub-rescue .main-content > h1:first-child,
body.page-template-page-cat-master-sale .main-content > h1:first-child {
  max-width: 18ch;
  margin: 1.4rem 0 1rem;
}
body .main-content .state-contact-box {
  border-radius: var(--cc-radius);
  background: var(--cc-green-deep);
  box-shadow: var(--cc-shadow);
}
body .resource-card,
body .cc-spec-card,
body .cc-faq-item,
body .cc-post-card {
  border-color: var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: 0 4px 18px rgb(32 51 44 / 5%);
}
body .resource-card,
body .cc-post-card { background: var(--cc-card); }
body .faq-item,
body .cc-faq-item { scroll-margin-top: 6rem; }

/* Product grids and reusable product cards */
body .product-grid-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
body .product-card {
  border-color: var(--cc-line);
  border-radius: 22px;
  background: var(--cc-card);
  box-shadow: 0 5px 20px rgb(32 51 44 / 6%);
}
body .product-card .product-image-wrapper { border-radius: 18px; }
body .product-card .cat-name {
  color: var(--cc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 600;
}
body .product-card .cat-specs { color: var(--cc-muted); }
body .product-card .cat-price,
body .product-card .cat-price .price { color: var(--cc-ink); }
body .product-card .meet-me-button {
  background: var(--cc-lime);
  color: var(--cc-ink);
  font-weight: 700;
}
body .product-card .meet-me-button:hover { background: #e1e33f; color: var(--cc-ink); }
body .sidebar-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}
body .sidebar-product-grid .product-card { padding: 3px 3px 8px; border-radius: 15px; }
body .sidebar-product-grid .product-image-wrapper { border-radius: 12px; aspect-ratio: .9; }
body .sidebar-product-grid .product-card-content { padding: 8px 5px 0; }
body .sidebar-product-grid .cat-name { margin-bottom: 5px; font-size: .95rem; }
body .sidebar-product-grid .cat-specs { gap: 4px; margin-bottom: 7px; font-size: .72rem; }
body .sidebar-product-grid .cat-age-icon,
body .sidebar-product-grid .cat-coat-icon { width: 12px; height: 12px; }
body .sidebar-product-grid .cat-price { margin-bottom: 7px; font-size: .9rem; }
body .sidebar-product-grid .meet-me-button { min-height: 36px; padding: 6px; font-size: .76rem; }

/* Single product: keep gallery and payment panel balanced on larger screens. */
body.single-product .product-content-layout {
  width: min(1200px, calc(100% - 48px));
  gap: clamp(28px, 5vw, 68px);
}
body.single-product .product-sidebar,
body.single-product .rescue-details-card,
body.single-product .info-card {
  border-color: var(--cc-line);
  border-radius: var(--cc-radius);
  background: var(--cc-card);
  box-shadow: 0 5px 22px rgb(32 51 44 / 6%);
}
body.single-product .product-title { margin-top: 0; }
body.single-product .product-price { color: var(--cc-green); font-size: clamp(1.45rem, 2.2vw, 2rem); }
body.single-product .product-short-description,
body.single-product .product-description { color: var(--cc-muted); }

/* Blog archives and article cards */
body .archive-content-wrapper,
body .blog-content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
body .archive-posts-column,
body .blog-posts-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body .custom-blog-card {
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  background: var(--cc-card);
  box-shadow: 0 5px 20px rgb(32 51 44 / 5%);
}
body .custom-blog-card .card-inner-wrapper { height: 100%; }
body .post-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
body .post-card-content { padding: 18px; }
body .post-card-title { margin: .5rem 0; font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.22; }
body .post-card-title a { color: var(--cc-ink); }
body .post-card-excerpt { color: var(--cc-muted); font-size: .92rem; }
body .post-card-excerpt .read-more-btn { color: var(--cc-green); font-weight: 750; }
body .archive-sidebar-column > *,
body .blog-sidebar-column > * {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  background: var(--cc-card);
}

/* Cart, checkout, and confirmation panels */
body .cart-item-card,
body .bill-summary-card,
body .checkout-review-summary-card,
body .thankyou-summary-card,
body .thankyou-note {
  border-color: var(--cc-line);
  border-radius: var(--cc-radius);
  background: var(--cc-card);
  box-shadow: 0 5px 20px rgb(32 51 44 / 5%);
}
body .checkout-header,
body .summary-header,
body .thankyou-header { color: var(--cc-ink); }
body :where(.checkout-container input, .checkout-container select, .checkout-container textarea,
  .cart-container input, .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea, .woocommerce form .form-row select) {
  min-height: 44px;
  border: 1px solid #cbd3c9;
  border-radius: 9px;
  background: #fff;
  color: var(--cc-ink);
}
body :where(.checkout-container input:focus, .checkout-container select:focus,
  .checkout-container textarea:focus, .woocommerce form .form-row input:focus) {
  border-color: var(--cc-green);
  box-shadow: 0 0 0 3px rgb(49 89 78 / 14%);
}

@media (max-width: 980px) {
  body .product-grid-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .archive-content-wrapper,
  body .blog-content-wrapper { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  body :where(.page-wrapper.container, .archive-page-header, .archive-content-wrapper,
    .blog-content-wrapper, .product-content-layout, .checkout-container, .cart-container) {
    width: min(100% - 30px, 600px);
  }
  body .archive-content-wrapper,
  body .blog-content-wrapper { grid-template-columns: 1fr; }
  body .archive-sidebar-column,
  body .blog-sidebar-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body .archive-sidebar-column > *,
  body .blog-sidebar-column > * { margin: 0; padding: 12px; }
}
@media (max-width: 520px) {
  body .product-grid-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body :where(.product-card) { border-radius: 16px; }
  body :where(.product-card .product-image-wrapper) { border-radius: 13px; }
body .product-card .cat-name { font-size: 1.02rem; }
body .product-card .cat-specs { font-size: .76rem; }
body .product-card .cat-price { font-size: .98rem; }
body .product-card .meet-me-button { min-height: 40px; padding-inline: 6px; font-size: .82rem; }
  body :where(.archive-posts-column, .blog-posts-column) { grid-template-columns: 1fr; }
  body :where(.archive-sidebar-column, .blog-sidebar-column) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body :where(*) { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
