/*
Theme Name:   GetRuffly (Lemon2 child)
Theme URI:    https://getruffly.com
Description:  GetRuffly child theme for Lemon Core 2.0.0. Applies the "Ruffly Authentic" Material 3 palette (deep teal + terracotta + honey amber + warm cream) derived directly from the Ruffly logo, and Manrope/Plus Jakarta Sans typography. Ships with a custom homepage template (page-ruffly-home.php) backed by ACF Pro fields and a scoped style surface that prevents bleed into parent theme admin/product pages. PharmacyWire templates are preserved untouched — only color/radius/font tokens are overridden via selector specificity.
Author:       GetRuffly / Octavius Meds
Template:     Lemon2
Version:      0.4.1
Text Domain:  getruffly-child
*/

/* ==========================================================================
   1. Design tokens — "Ruffly Authentic" palette (2026-04-17)
   Keep in sync with /OneDrive--Octavius/design-tokens.css and tailwind.config.js.
   ========================================================================== */
:root {
  /* Primary (deep brand teal — matches logo wordmark) */
  --color-primary: #2A5670;
  --color-on-primary: #ffffff;
  --color-primary-container: #B8D9E8;
  --color-on-primary-container: #001E2B;
  --color-primary-fixed: #B8D9E8;
  --color-primary-fixed-dim: #92BFD4;
  --color-on-primary-fixed: #001E2B;
  --color-on-primary-fixed-variant: #154962;

  /* Secondary (terracotta CTA — matches dog+Rx mark) */
  --color-secondary: #C55F2E;
  --color-secondary-hover: #A84C1F;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #FFDBCE;
  --color-on-secondary-container: #3B0900;
  --color-on-secondary-fixed-variant: #7F2B00;

  /* Tertiary (honey amber accent) */
  --color-tertiary: #F5B840;
  --color-on-tertiary: #241A00;
  --color-tertiary-container: #FFE088;
  --color-on-tertiary-container: #241A00;
  --color-on-tertiary-fixed-variant: #5C4B00;

  /* Surface ladder (warm cream) */
  --color-surface: #FFFBF2;
  --color-surface-warm: #FCEFD4;           /* v4 hero BG — between surface and tertiary-container */
  --color-on-surface: #1C1B16;
  --color-on-surface-variant: #4A483E;
  --color-surface-container: #F2EDDF;
  --color-surface-container-low: #F8F3E5;
  --color-surface-container-high: #ECE7D9;
  --color-surface-container-highest: #E6E1D3;
  --color-surface-container-lowest: #ffffff;

  /* Outline */
  --color-outline: #7C7A6D;
  --color-outline-variant: #CCC9BB;

  /* Typography */
  --font-headline: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius */
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-hero: 0 25px 50px -12px rgb(42 86 112 / 0.25);
  --shadow-nav:  0 4px 6px -1px rgb(0 0 0 / 0.06);
  --shadow-cta:  0 10px 15px -3px rgb(197 95 46 / 0.28);
}

/* ==========================================================================
   2. Global type + body overrides (parent theme)
   Applies sitewide — admin toolbar intentionally excluded via :not.
   ========================================================================== */
body, body.pw-body {
  font-family: var(--font-body);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .pw-headline {
  font-family: var(--font-headline);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.12;
}

h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--color-primary);
}

a { color: var(--color-primary); }
a:hover { color: var(--color-on-primary-fixed-variant); }

::selection {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

/* ==========================================================================
   3. Button system (primary coral / secondary outlined-teal / ghost)
   Apply by adding .gr-btn .gr-btn--primary (etc.) to any <a>/<button>.
   ========================================================================== */
.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  border: 0;
}
.gr-btn:active { transform: scale(0.97); }
.gr-btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.gr-btn--lg.gr-btn--secondary { padding: 0.875rem 1.875rem; }

.gr-btn--primary {
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  box-shadow: var(--shadow-cta);
}
.gr-btn--primary:hover { background-color: var(--color-secondary-hover); color: #fff; }

.gr-btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.75rem 1.5rem;
}
.gr-btn--secondary:hover {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.gr-btn--ghost {
  background-color: var(--color-surface-container-high);
  color: var(--color-primary);
}
.gr-btn--ghost:hover { background-color: var(--color-surface-container-highest); }

/* ==========================================================================
   4. Sitewide header (overrides parent header.php — see child theme header.php)
   ========================================================================== */
.gr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--color-surface-container-lowest);
  border-bottom: 1px solid var(--color-outline-variant);
  transition: box-shadow 0.3s ease;
}
.gr-header--scrolled { box-shadow: var(--shadow-nav); }
.gr-nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.gr-logo { display: inline-flex; align-items: center; height: 3.25rem; }
.gr-logo img { height: 3.25rem; width: auto; object-fit: contain; }

.gr-header__nav { display: none; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .gr-header__nav { display: flex; } }
.gr-header__nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-on-surface);
  text-decoration: none;
  transition: color 160ms ease;
}
.gr-header__nav a:hover { color: var(--color-primary); }
.gr-header__nav a.is-active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.25rem;
}

.gr-header__actions { display: flex; align-items: center; gap: 0.25rem; }
.gr-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-on-surface);
  cursor: pointer;
  position: relative;
  transition: background-color 160ms ease;
}
.gr-icon-btn:hover { background-color: var(--color-surface-container); }
.gr-icon-btn svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.75; }
.gr-cart-count {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  font-size: 0.6875rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile menu toggle (shown below 960px) */
.gr-menu-toggle { display: none; }
@media (max-width: 959px) { .gr-menu-toggle { display: inline-flex; } }

/* ==========================================================================
   5. HOMEPAGE — scoped under body.ruffly-home to prevent bleed
   All selectors below are prefixed with .ruffly-home so that activating this
   child theme doesn't change the look of any other page on the site.
   ========================================================================== */

.ruffly-home .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- 5a. Hero ---- */
.ruffly-home .hero {
  background-color: var(--color-surface-warm);   /* honey-cream #FCEFD4 */
  padding: 3.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.ruffly-home .hero::before {
  content: "";
  position: absolute;
  top: 3rem;
  right: -6rem;
  width: 40rem;
  height: 40rem;
  background-color: var(--color-primary-container);
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
}
@media (max-width: 960px) {
  .ruffly-home .hero::before { display: none; }
}
.ruffly-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .ruffly-home .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
}
.ruffly-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background-color: var(--color-primary-container);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.ruffly-home .hero__eyebrow svg { width: 0.875rem; height: 0.875rem; }
.ruffly-home .hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.875rem);
  margin-bottom: 0.875rem;
  color: var(--color-primary);
}
.ruffly-home .hero__tagline {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.ruffly-home .hero__sub {
  font-size: 1.125rem;
  color: var(--color-on-surface);
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.ruffly-home .hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.ruffly-home .hero__savings {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-on-primary-fixed-variant);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ruffly-home .hero__savings svg { width: 1rem; height: 1rem; color: var(--color-primary); }
.ruffly-home .hero__savings strong { color: var(--color-secondary); font-weight: 800; }

.ruffly-home .hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.ruffly-home .hero__photo-frame {
  position: relative;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background-color: var(--color-primary);
}
.ruffly-home .hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ruffly-home .hero__photo-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 20px -4px rgb(0 0 0 / 0.15);
}
.ruffly-home .hero__photo-badge-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-fixed-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ruffly-home .hero__photo-badge-icon svg { width: 1.125rem; height: 1.125rem; }
.ruffly-home .hero__photo-badge-text { font-size: 0.8125rem; color: var(--color-on-surface); line-height: 1.35; }
.ruffly-home .hero__photo-badge-text strong { font-weight: 800; color: var(--color-primary); }

/* ---- 5b. Trust badges (hardcoded — compliance carve-out) ---- */
.ruffly-home .trust {
  background-color: var(--color-surface-container-lowest);
  border-top: 1px solid var(--color-outline-variant);
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 2rem 0;
}
.ruffly-home .trust__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  margin-bottom: 1.5rem;
}
.ruffly-home .trust__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  justify-items: center;
}
@media (min-width: 768px) { .ruffly-home .trust__row { grid-template-columns: repeat(4, 1fr); } }
.ruffly-home .trust__badge { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; color: var(--color-on-surface-variant); }
.ruffly-home .trust__badge-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary-container);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ruffly-home .trust__badge-mark svg { width: 1.375rem; height: 1.375rem; }
.ruffly-home .trust__badge-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--color-primary);
  line-height: 1.2;
}
.ruffly-home .trust__badge-note { font-size: 0.6875rem; color: var(--color-on-surface-variant); line-height: 1.25; }

/* ---- 5c. Section head (shared pattern) ---- */
.ruffly-home .section-head { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.ruffly-home .section-head__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}
.ruffly-home .section-head h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.ruffly-home .section-head p { font-size: 1.0625rem; color: var(--color-on-surface-variant); }

/* ---- 5d. Benefits ---- */
.ruffly-home .benefits { padding: 5rem 0; }
.ruffly-home .benefits__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .ruffly-home .benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ruffly-home .benefits__grid { grid-template-columns: repeat(4, 1fr); } }
.ruffly-home .benefit-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.75rem;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.ruffly-home .benefit-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.ruffly-home .benefit-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  background-color: var(--color-primary-container);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.ruffly-home .benefit-card__icon svg { width: 1.5rem; height: 1.5rem; }
.ruffly-home .benefit-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.ruffly-home .benefit-card p { font-size: 0.9375rem; color: var(--color-on-surface-variant); }

/* ---- 5e. How it works ---- */
.ruffly-home .how {
  background-color: var(--color-surface-container-low);
  padding: 5rem 0;
}
.ruffly-home .how__steps { display: grid; grid-template-columns: 1fr; gap: 2rem; counter-reset: step; }
@media (min-width: 768px) { .ruffly-home .how__steps { grid-template-columns: repeat(3, 1fr); } }
.ruffly-home .how__step {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-outline-variant);
}
.ruffly-home .how__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.25rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-cta);
}
.ruffly-home .how__step-icon { width: 3rem; height: 3rem; color: var(--color-primary); margin: 0.5rem 0 1rem; }
.ruffly-home .how__step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.ruffly-home .how__step p { color: var(--color-on-surface-variant); }

/* ---- 5f. Featured products (v1 ACF repeater — not PharmacyWire-powered yet) ---- */
.ruffly-home .products { padding: 5rem 0; }
.ruffly-home .products__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .ruffly-home .products__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ruffly-home .products__grid { grid-template-columns: repeat(3, 1fr); } } /* v0.4.1: 3-col while Simparica slot is vacant; revert to repeat(4,1fr) once 4th featured product is identified */
.ruffly-home .product-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  position: relative;
}
.ruffly-home .product-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.ruffly-home .product-card__image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface-container);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-on-surface-variant);
  position: relative;
  overflow: hidden;
}
.ruffly-home .product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.ruffly-home .product-card__image svg { width: 4rem; height: 4rem; opacity: 0.4; }
.ruffly-home .product-card__tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.5rem; }
.ruffly-home .product-card__name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-on-surface);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}
.ruffly-home .product-card__meta { font-size: 0.8125rem; color: var(--color-on-surface-variant); margin-bottom: 0.75rem; }
.ruffly-home .product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-top: auto;
}
.ruffly-home .product-card__price { font-family: var(--font-headline); font-weight: 800; font-size: 1.375rem; color: var(--color-secondary); }
.ruffly-home .product-card__price-was { font-size: 0.875rem; color: var(--color-on-surface-variant); text-decoration: line-through; }
.ruffly-home .product-card__price-save {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-primary-container);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-lg);
}

/* ---- 5g. Savings callout (teal block) ---- */
.ruffly-home .savings {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: 5rem 0;
}
.ruffly-home .savings .section-head h2 { color: var(--color-on-primary); }
.ruffly-home .savings .section-head__eyebrow { color: var(--color-tertiary); }
.ruffly-home .savings .section-head p { color: rgb(255 255 255 / 0.88); }
.ruffly-home .savings__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .ruffly-home .savings__cards { grid-template-columns: repeat(3, 1fr); } }
.ruffly-home .savings__card {
  background-color: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  backdrop-filter: blur(4px);
}
.ruffly-home .savings__card h3 { color: var(--color-on-primary); font-size: 1rem; margin-bottom: 1rem; font-weight: 700; }
.ruffly-home .savings__card--highlight { background: rgb(245 184 64 / 0.18); border-color: var(--color-tertiary); }
.ruffly-home .savings__card--highlight h3 { color: var(--color-tertiary); }
.ruffly-home .savings__card--ruffly { border-color: var(--color-tertiary); }
.ruffly-home .savings__card--ruffly h3 { color: var(--color-tertiary); }
.ruffly-home .savings__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.9);
}
.ruffly-home .savings__row strong { font-weight: 700; color: var(--color-on-primary); }
.ruffly-home .savings__row-divider { border-top: 1px solid rgb(255 255 255 / 0.18); margin: 0.5rem 0; }
.ruffly-home .savings__total { font-family: var(--font-headline); font-weight: 800; font-size: 1.75rem; color: var(--color-tertiary); }
.ruffly-home .savings__disclaimer {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.65);
  max-width: 48rem;
  margin: 2rem auto 0;
  text-align: center;
  line-height: 1.6;
}

/* ---- 5h. Final CTA panel ---- */
.ruffly-home .final-cta { padding: 5rem 0; background-color: var(--color-surface); }
.ruffly-home .final-cta__panel {
  background-color: var(--color-primary);
  border-radius: var(--radius-3xl);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-on-primary);
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}
.ruffly-home .final-cta__panel::after {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background-color: rgb(245 184 64 / 0.18);
  z-index: 0;
}
.ruffly-home .final-cta__panel > * { position: relative; z-index: 1; }
.ruffly-home .final-cta__panel h2 { color: var(--color-on-primary); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.ruffly-home .final-cta__panel p { font-size: 1.125rem; color: rgb(255 255 255 / 0.92); max-width: 36rem; margin: 0 auto 2rem; }

/* ==========================================================================
   6. PharmacyWire product-card alignment (sitewide — product catalog pages)
   Do NOT remove parent selectors; only overriding color/radius/font.
   ========================================================================== */
.pw-product-card,
.product-listing-card,
.single-product-card {
  border-radius: var(--radius-2xl);
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.pw-product-card:hover,
.product-listing-card:hover,
.single-product-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.pw-product-card .price,
.pw-product-card .pw-price {
  color: var(--color-secondary);
  font-weight: 900;
}
.pw-product-card .pw-rx-required,
.pw-rx-tag {
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-fixed-variant);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}
.pw-product-card .pw-otc-tag,
.pw-otc-tag {
  background-color: var(--color-surface-container-highest);
  color: var(--color-on-surface-variant);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}
.pw-product-card .pw-brand-tag,
.pw-brand-tag {
  background-color: var(--color-tertiary-container);
  color: var(--color-on-tertiary-fixed-variant);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}
.pw-product-card .pw-generic-tag,
.pw-generic-tag {
  background-color: var(--color-primary-container);
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}

/* PharmacyWire "Add to Cart" → round coral button */
button.pw-add-to-cart,
.pw-add-to-cart-btn,
button[data-pw-action="add-to-cart"] {
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  border-radius: var(--radius-full);
  border: 0;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  box-shadow: var(--shadow-cta);
  transition: background-color 160ms ease;
}
button.pw-add-to-cart:hover,
.pw-add-to-cart-btn:hover,
button[data-pw-action="add-to-cart"]:hover { background-color: var(--color-secondary-hover); }

.pw-add-to-cart--icon,
.product-card__quick-add {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  transition: transform 160ms ease, background-color 160ms ease;
}
.pw-add-to-cart--icon:hover,
.product-card__quick-add:hover { background-color: var(--color-secondary-hover); transform: scale(1.05); }

/* ==========================================================================
   7. Footer (overrides parent footer.php — see child theme footer.php)
   ========================================================================== */
.gr-footer {
  background-color: var(--color-surface-container-low);
  border-top: 1px solid var(--color-outline-variant);
  padding: 4rem 0 2rem;
  color: var(--color-on-surface-variant);
}
.gr-footer__grid {
  max-width: 80rem;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 900px) { .gr-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.gr-footer__brand img { height: 3rem; width: auto; margin-bottom: 1rem; }
.gr-footer__brand p { font-size: 0.875rem; color: var(--color-on-surface-variant); max-width: 22rem; line-height: 1.6; }
.gr-footer h5 {
  color: var(--color-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.875rem;
}
.gr-footer ul { list-style: none; padding: 0; }
.gr-footer li { margin-bottom: 0.5rem; }
.gr-footer a { color: var(--color-on-surface); text-decoration: none; font-size: 0.875rem; }
.gr-footer a:hover { color: var(--color-secondary); }
.gr-footer__legal {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--color-outline-variant);
  font-size: 0.75rem;
  color: var(--color-on-surface-variant);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  line-height: 1.5;
}
.gr-footer__legal-note {
  max-width: 80rem;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}

/* ==========================================================================
   8. Utility — hide legacy parent-theme testimonials until replaced.
   ========================================================================== */
.pw-human-testimonials,
body.ruffly-home .testimonials--template-default { display: none !important; }

/* ==========================================================================
   9. Accessibility
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
