:root {
  --ink: #251f23;
  --muted: #75666a;
  --rose: #d99aa7;
  --rose-dark: #a95f72;
  --blush: #f7e8ec;
  --cream: #fffaf6;
  --linen: #f6efe7;
  --cocoa: #6d4b42;
  --sage: #819b7a;
  --gold: #b88b4a;
  --line: #eadbd3;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(55, 33, 37, .10);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
main { min-height: 60vh; }

.topbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 16px;
  color: var(--cream);
  background: var(--cocoa);
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px clamp(18px, 4vw, 52px);
  background: rgba(255, 250, 246, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.auth-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--rose-dark);
}
.auth-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}
.auth-links a:hover {
  color: var(--white);
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--cocoa);
  white-space: nowrap;
}
.brand-text {
  display: grid;
  line-height: 1;
}
.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: 0;
}
.brand-text small {
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--rose-dark);
  font-size: 13px;
  letter-spacing: 0;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--rose-dark); }
.main-nav a.is-active { font-weight: 900; }
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.cart-pill strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: var(--white);
  border-radius: 50%;
  background: var(--sage);
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.account-pill {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--cocoa);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
}
.account-pill:hover {
  border-color: var(--line);
  background: var(--white);
}
.menu-toggle { display: none; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) 22px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .76fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.hero-copy h1, .page-hero h1, .page-section h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--cocoa);
}
.hero-copy p { max-width: 710px; color: var(--muted); }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--linen);
}
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
.hero-showcase {
  display: grid;
  grid-template-columns: .92fr 1.08fr .92fr;
  gap: 14px;
  align-items: end;
  min-width: 0;
}
.hero-product {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-product img {
  width: auto;
  max-width: 100%;
  height: 300px;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  justify-self: center;
}
.hero-product.is-featured {
  transform: translateY(-18px);
}
.hero-product span {
  color: var(--cocoa);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) 22px 46px;
}
.page-hero.compact { padding-bottom: 26px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 18px; }
.page-section, .band {
  padding: clamp(44px, 6vw, 78px) 22px;
}
.page-section > *, .band > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.narrow > * { max-width: 820px; }
.band {
  background: var(--linen);
  border-block: 1px solid var(--line);
}
.cta-band {
  margin: 48px auto 74px;
  max-width: min(var(--max), calc(100% - 44px));
  padding: 42px;
  text-align: center;
  color: var(--cream);
  background: var(--cocoa);
  border-radius: var(--radius);
}
.cta-band h2 { color: var(--cream); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: 0; }
h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--cocoa);
}
h3 { margin: 0 0 8px; font-size: 20px; }
.lead, .section-intro { color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-dark);
  font-weight: 800;
  cursor: pointer;
}
.btn:hover { background: var(--cocoa); }
.btn-secondary {
  color: var(--cocoa);
  background: var(--white);
  border: 1px solid var(--line);
}
.btn-secondary:hover { color: var(--white); background: var(--cocoa); }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.text-link { color: var(--rose-dark); font-weight: 800; }
.link-button {
  border: 0;
  color: var(--rose-dark);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.link-button.danger { color: #a64242; }

.section-heading { margin-bottom: 28px; }
.section-heading.split, .story-grid, .two-columns, .checkout-layout, .animal-detail, .product-detail, .admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.page-section.two-columns,
.page-section.checkout-layout {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.page-section.two-columns { max-width: var(--max); }
.story-stack {
  display: block;
}
.story-stack .section-heading,
.story-stack .rich-text {
  max-width: 920px;
}
.story-stack .rich-text {
  margin-top: 18px;
}
.story-stack .rich-text p {
  max-width: 900px;
}
.section-heading.split { align-items: end; }
.rich-text p { color: var(--muted); }
.rich-text blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.feature-grid, .product-grid, .cards-grid, .testimonial-grid, .metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-grid article, .soft-panel, .product-card, .profile-card, .testimonial, .admin-card, .form-panel, .summary, .info-stack article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(55, 33, 37, .06);
}
.feature-grid article, .soft-panel, .testimonial, .admin-card, .form-panel, .summary, .info-stack article { padding: 24px; }
.feature-grid article p, .soft-panel p, .profile-card p, .testimonial p { color: var(--muted); }

.product-grid { align-items: stretch; }
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 380px;
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--linen));
}
.product-image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius) - 2px);
  transition: transform .25s ease;
}
.product-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(37, 31, 35, .72);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.product-image:hover .product-view {
  opacity: 1;
  transform: translateY(0);
}
.product-card:hover img { transform: scale(1.035); }
.product-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--white);
}
.product-card-body .eyebrow,
.product-card-body p {
  margin-top: 0;
}
.product-card-body > p:not(.eyebrow) {
  min-height: 54px;
  color: var(--muted);
}
.product-card h3 a:hover { color: var(--rose-dark); }
.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.product-card-foot > strong { font-weight: 900; }
.price { font-size: 30px; font-weight: 900; color: var(--rose-dark); }
.stock { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.stock.in { color: #285b36; background: #e8f3e7; }
.stock.out { color: #873c3c; background: #f8dfdf; }

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
}
label span { display: block; margin-bottom: 6px; color: var(--cocoa); font-weight: 800; font-size: 13px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
}
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; color: var(--muted); }
.check input { width: auto; margin-top: 6px; }
.form-panel.flush { box-shadow: none; border: 0; padding: 0; }

.checkout-layout {
  max-width: 1060px;
  grid-template-columns: minmax(0, 620px) 340px;
  justify-content: center;
  align-items: start;
  gap: 28px;
}
.checkout-layout .form-panel,
.checkout-layout .summary {
  width: 100%;
}
.form-panel .btn,
.soft-panel .btn,
.auth-shell .btn,
.reply-form .btn {
  margin-top: 12px;
}
.form-panel label + .btn,
.auth-shell label + .btn {
  margin-top: 18px;
}
.check a {
  color: var(--rose-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.field-help.is-ok { color: #285b36; }
.field-help.is-warning { color: #8a5a24; }

.contact-hero,
.track-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 22px 34px;
}
.contact-hero h1,
.track-copy h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cocoa);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.04;
}
.contact-hero p,
.track-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}
.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px clamp(56px, 8vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(300px, 1fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}
.contact-form {
  position: relative;
}
.contact-side {
  display: grid;
  gap: 12px;
}
.contact-side article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(55, 33, 37, .06);
}
.contact-side span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose-dark);
  font-weight: 900;
  font-size: 13px;
}
.contact-side p { color: var(--muted); margin-bottom: 0; }

.track-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}
.track-form {
  display: grid;
  gap: 14px;
}
.tracking-card {
  max-width: 920px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.tracking-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.tracking-steps span {
  position: relative;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--cream);
  font-weight: 800;
  text-align: center;
}
.tracking-steps span.done {
  color: #285b36;
  border-color: #b8d8b6;
  background: #e8f3e7;
}

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cart-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 96px 110px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img, .thumb { width: 76px; height: 88px; object-fit: cover; border-radius: var(--radius); }
.summary { position: sticky; top: 96px; }
.summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}
.summary-total {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}
.summary .btn { width: 100%; margin-top: 12px; }
.summary.mini { max-width: 380px; margin: 18px 0 0 auto; position: static; }
.confirmation-box { position: static; margin: 22px 0; }
.clean-list { padding-left: 18px; color: var(--muted); }
.empty-state {
  padding: 36px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.profile-card { overflow: hidden; padding-bottom: 20px; }
.profile-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--linen); }
.profile-card h3, .profile-card p, .profile-card a, .profile-card .badge { margin-left: 18px; margin-right: 18px; }
.photo-pending {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fff7f4, #f4e8df);
  color: var(--cocoa);
}
.photo-pending strong {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--white);
  background: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}
.photo-pending span {
  font-weight: 900;
  color: var(--rose-dark);
}
.badge {
  display: inline-flex;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--sage);
  font-weight: 800;
  font-size: 12px;
}
.animal-detail, .product-detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 22px;
}
.animal-photo img, .product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.add-cart-form {
  display: grid;
  grid-template-columns: minmax(120px, 160px) auto;
  align-items: end;
  gap: 14px;
  max-width: 430px;
  margin: 24px 0 18px;
}
.add-cart-form label {
  margin: 0;
}
.add-cart-form .btn {
  min-height: 48px;
  margin: 0;
}
.trust-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.meta-grid div { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.meta-grid dt { color: var(--muted); font-size: 13px; font-weight: 800; }
.meta-grid dd { margin: 0; color: var(--cocoa); font-weight: 900; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tabs a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 800; }
.tabs a.active { color: var(--white); background: var(--rose-dark); border-color: var(--rose-dark); }
.testimonial-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) 22px 26px;
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(280px, 360px);
  align-items: end;
  gap: clamp(32px, 6vw, 76px);
}
.testimonial-hero-copy {
  min-width: 0;
}
.testimonial-hero h1 {
  margin: 0;
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cocoa);
  font-size: clamp(52px, 5.4vw, 86px);
  line-height: .98;
}
.testimonial-hero p { max-width: 720px; color: var(--muted); font-size: 18px; }
.testimonial-hero-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(55, 33, 37, .07);
}
.testimonial-hero-card span {
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.testimonial-hero-card strong {
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.15;
}
.testimonial-hero-card .btn {
  width: max-content;
}
.testimonial-feature,
.testimonial-wall {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 22px 0;
}
.testimonial-wall {
  padding-top: clamp(42px, 5vw, 70px);
  padding-bottom: clamp(58px, 7vw, 96px);
}
.testimonial-wall .section-heading {
  max-width: 620px;
  margin-bottom: 22px;
}
.testimonial-wall .section-heading h2 {
  max-width: 560px;
}
.testimonial {
  position: relative;
  margin: 0;
  padding-top: 34px;
  overflow: hidden;
}
.testimonial-large {
  width: 100%;
  min-height: 230px;
  padding: 44px 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.testimonial-grid .testimonial {
  min-height: 250px;
  padding: 40px 24px 24px;
}
.quote-mark {
  position: absolute;
  top: 4px;
  left: 22px;
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
}
.testimonial p { position: relative; z-index: 1; }
.testimonial cite {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--cocoa);
  font-weight: 900;
  font-style: normal;
}
.testimonial cite img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--linen);
}
.testimonial .reply {
  margin-top: 18px;
  padding: 14px;
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f1f6ef;
}
.testimonial .reply strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sage);
  font-size: 13px;
  text-transform: uppercase;
}
.notice { margin-top: 16px; padding: 12px; border-radius: var(--radius); background: #fff6dd; color: #735224; }
.notice.danger { background: #ffe7e7; color: #8f3535; }

.grooming-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.grooming-services-section .section-heading {
  align-items: start;
}
.grooming-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grooming-service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(55, 33, 37, .06);
}
.grooming-service-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fff, var(--linen));
}
.grooming-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grooming-service-media img[src$="placeholder.svg"] {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.grooming-service-body {
  display: grid;
  gap: 14px;
  flex: 1;
  padding: 20px;
}
.grooming-service-body p {
  margin: 0;
  color: var(--muted);
}
.grooming-service-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.grooming-service-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.grooming-service-price strong {
  color: var(--rose-dark);
  font-size: 18px;
}
.grooming-service-details {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.grooming-note {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 5vw, 58px);
  color: var(--cream);
  background: var(--ink);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; align-content: start; }
.footer-title { margin: 0 0 6px; font-weight: 900; }
.admin-link { opacity: .75; }

.flash-stack {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: 360px;
}
.flash { padding: 12px 14px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.flash-success { border-color: #b8d8b6; }
.flash-error { border-color: #ebb0b0; }
.flash.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}

.admin-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: #fbf7f2;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: var(--ink);
  color: var(--cream);
}
.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-menu-toggle {
  display: none;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255,255,255,.08);
  font-weight: 900;
}
.admin-menu-panel {
  display: block;
}
.admin-sidebar nav { display: grid; gap: 7px; margin: 24px 0; }
.admin-sidebar nav a { padding: 9px 10px; border-radius: var(--radius); color: #f4dfe4; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); }
.admin-main { padding: 28px; }
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.admin-heading h1 { margin: 0; font-size: 34px; color: var(--cocoa); }
.metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-grid article {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.metric-grid span { color: var(--muted); font-size: 13px; }
.metric-grid strong { display: block; font-size: 30px; color: var(--rose-dark); }
.admin-card { margin-bottom: 18px; overflow-x: auto; }
.admin-card p { display: block; color: var(--muted); }
.admin-card p span { color: var(--muted); }
.admin-card p strong { color: var(--ink); }
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-quick-actions a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--cocoa);
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(55, 33, 37, .05);
}
.admin-quick-actions a:hover {
  color: var(--white);
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}
.admin-status-card p,
.admin-last-order p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.order-admin-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.order-admin-summary strong,
.order-admin-summary span {
  min-width: 0;
}
.order-admin-summary b {
  color: var(--rose-dark);
}
.order-admin-summary em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  background: var(--linen);
  color: var(--cocoa);
  white-space: nowrap;
}
.status-paid,
.status-completed,
.status-shipped {
  color: #285b36;
  background: #e8f3e7;
}
.status-processing,
.status-new {
  color: #735224;
  background: #fff6dd;
}
.status-pending {
  color: #61525b;
  background: #f0e9ee;
}
.status-failed,
.status-cancelled {
  color: #873c3c;
  background: #f8dfdf;
}
.status-pending_admin {
  color: #735224;
  background: #fff6dd;
}
.status-waiting_customer {
  color: #285b36;
  background: #e8f3e7;
}
.status-closed {
  color: #5a5360;
  background: #eee8ef;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.admin-table th, .admin-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.admin-table th { color: var(--cocoa); font-size: 13px; }
.admin-table small { color: var(--muted); }
.admin-table .thumb {
  object-fit: contain;
  background: var(--cream);
}
.inline-filter { display: flex; gap: 10px; align-items: center; }
.inline-filter select { min-width: 190px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.admin-login .form-panel { width: min(420px, 100%); }
.admin-flashes { position: static; max-width: none; margin-bottom: 18px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto auto; }
  .menu-toggle {
    display: inline-grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
  }
  .menu-toggle span { width: 18px; height: 2px; background: var(--cocoa); }
  .main-nav {
    display: none;
    position: absolute;
    inset: 73px 16px auto 16px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .hero, .section-heading.split, .story-grid, .two-columns, .checkout-layout, .animal-detail, .product-detail, .admin-grid, .cart-layout, .contact-layout, .track-shell {
    grid-template-columns: 1fr;
  }
  .feature-grid, .product-grid, .cards-grid, .testimonial-grid, .metric-grid, .grooming-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { position: static; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; gap: 0; text-align: center; }
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
    gap: 10px;
  }
  .menu-toggle { justify-self: end; }
  .main-nav { inset: 116px 12px auto 12px; }
  .header-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .auth-links { gap: 5px; font-size: 12px; flex-wrap: wrap; }
  .auth-links a { padding: 6px 8px; }
  .cart-pill span, .account-pill { display: none; }
  .brand .brand-text { display: grid !important; }
  .hero-copy h1, .page-hero h1, .page-section h1 { font-size: 42px; }
  .hero-showcase { grid-template-columns: 1fr; }
  .hero-product,
  .hero-product.is-featured { transform: none; }
  .hero-product img,
  .product-image { height: 320px; }
  .feature-grid, .product-grid, .cards-grid, .testimonial-grid, .metric-grid, .grooming-service-grid, .filters, .form-grid, .meta-grid { grid-template-columns: 1fr; }
  .admin-quick-actions, .tracking-steps { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-row label, .cart-row strong { grid-column: 2; }
  .site-footer { flex-direction: column; }
  .cta-band { padding: 26px; }
  .admin-main { padding: 18px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-sidebar nav { grid-template-columns: 1fr; }
}

.cart-toast {
  position: fixed;
  right: 18px;
  top: 96px;
  z-index: 120;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(520px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
  animation: toast-in .35s ease both;
}
.cart-toast img {
  width: 64px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--linen);
}
.cart-toast p { margin: 2px 0 0; color: var(--muted); }
.toast-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toast-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cocoa);
  background: var(--white);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.toast-close:hover {
  color: var(--white);
  background: var(--cocoa);
}

.product-gallery img {
  object-fit: contain;
  padding: 18px;
  background: #fff;
}
.profile-card img {
  object-fit: contain;
  padding: 12px;
  background: var(--linen);
}

.order-success {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 86px) 22px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 380px;
  gap: 32px;
  align-items: center;
}
.order-success h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cocoa);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
}
.order-success-copy p { max-width: 720px; color: var(--muted); font-size: 18px; }
.ordered-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ordered-items article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.ordered-items span { color: var(--rose-dark); font-weight: 900; }
.ordered-items b { color: var(--cocoa); }

.auth-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 22px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 520px);
  gap: 34px;
  align-items: center;
}
.auth-shell.compact-auth {
  grid-template-columns: minmax(0, .85fr) minmax(320px, 480px);
  padding-top: 64px;
  padding-bottom: 64px;
}
.auth-copy h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  color: var(--cocoa);
}
.auth-copy p { color: var(--muted); font-size: 18px; }
.account-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px) 22px;
}
.account-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.account-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cocoa);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
}
.account-header p { color: var(--muted); margin-bottom: 0; }
.account-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}
.account-card h2 { font-size: 34px; }
.order-list { display: grid; gap: 10px; }
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.order-line small { display: block; color: var(--muted); }

.notice.success {
  background: #e8f3e7;
  color: #285b36;
}
.account-create-box {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.small-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--rose-dark);
  font-weight: 900;
}

.request-list { display: grid; gap: 14px; }
.request-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.request-overview { min-width: 0; }
.request-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.request-topline > strong {
  min-width: 0;
  color: var(--cocoa);
  font-size: 18px;
}
.request-thread {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.thread-message {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.thread-message.from-admin {
  border-color: #cbdcbc;
  background: #f1f6ef;
}
.thread-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.thread-message small,
.thread-message em {
  color: var(--muted);
  font-size: 12px;
}
.thread-message em {
  display: block;
  margin-bottom: 4px;
  font-style: normal;
  font-weight: 900;
}
.thread-message p {
  margin: 0;
  color: var(--muted);
}
.request-reply-form {
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.category-edit-list {
  display: grid;
  gap: 14px;
}
.category-edit-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.reply-form { display: grid; gap: 10px; }
.reply-form small { color: var(--muted); }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.legal-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(55, 33, 37, .05);
}
.legal-grid h2 {
  font-size: 26px;
}
.legal-grid p {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card, .profile-card, .grooming-service-card, .soft-panel, .btn, .cart-pill, .account-pill {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.product-card:hover, .profile-card:hover, .grooming-service-card:hover, .soft-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(55, 33, 37, .10);
}
.btn:hover, .cart-pill:hover, .account-pill:hover {
  transform: translateY(-1px);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .order-success, .auth-shell, .account-grid, .request-card {
    grid-template-columns: 1fr;
  }
  .testimonial-hero {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ordered-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cart-toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 14px;
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .toast-actions { grid-column: 1 / -1; justify-content: stretch; }
  .toast-actions .btn { flex: 1; }
  .ordered-items { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .testimonial-large { padding: 28px; }
  .testimonial-hero { padding-top: 48px; }
  .testimonial-hero h1 { font-size: 44px; }
  .testimonial-hero-card .btn { width: 100%; }
  .thread-message div, .request-topline { align-items: flex-start; flex-direction: column; }
}

/* Mobile polish layer: keep it last so older responsive rules cannot re-break spacing. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
    line-height: 1.6;
  }

  .topbar {
    gap: 2px;
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.35;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .brand-text strong { font-size: 24px; }
  .brand-text small { font-size: 10px; }
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    inset: calc(100% + 8px) 12px auto 12px;
    gap: 4px;
    padding: 12px;
  }

  .main-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: var(--linen);
  }

  .header-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .auth-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }

  .auth-links a:only-child { grid-column: 1 / -1; }

  .auth-links a,
  .cart-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    box-shadow: 0 8px 18px rgba(55, 33, 37, .05);
  }

  .cart-pill {
    min-width: 98px;
    gap: 8px;
  }

  .cart-pill span { display: inline; }
  .cart-pill strong {
    min-width: 23px;
    height: 23px;
  }

  .hero,
  .page-hero,
  .contact-hero,
  .track-shell,
  .testimonial-hero,
  .auth-shell,
  .account-shell,
  .animal-detail,
  .product-detail,
  .order-success {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 34px;
    gap: 24px;
  }

  .page-hero {
    padding-top: 36px;
    padding-bottom: 26px;
  }

  .contact-hero,
  .track-shell,
  .testimonial-hero {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .page-section,
  .band {
    padding: 36px 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .page-section h1,
  .contact-hero h1,
  .track-copy h1,
  .testimonial-hero h1,
  .auth-copy h1,
  .account-header h1,
  .order-success h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.05;
  }

  h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  h3 { font-size: 19px; }

  .lead,
  .section-intro,
  .page-hero p,
  .contact-hero p,
  .track-copy p,
  .testimonial-hero p,
  .auth-copy p,
  .order-success-copy p {
    font-size: 16px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .actions,
  .section-heading.split,
  .checkout-layout,
  .cart-layout,
  .contact-layout,
  .account-grid,
  .auth-shell,
  .track-shell,
  .animal-detail,
  .product-detail,
  .order-success {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
  }

  .actions,
  .section-heading.split {
    gap: 10px;
  }

  .actions .btn,
  .section-heading .btn,
  .form-panel .btn,
  .form-panel button[type="submit"],
  .soft-panel .btn,
  .auth-shell .btn,
  .contact-form .btn,
  .contact-form button[type="submit"],
  .cta-band .btn,
  .account-card .btn,
  .filters .btn,
  .summary .btn,
  .track-form .btn,
  .track-form button[type="submit"],
  .reply-form button[type="submit"] {
    width: 100%;
  }

  .btn {
    min-height: 48px;
    padding: 12px 16px;
    text-align: center;
  }

  .btn-small {
    min-height: 42px;
    padding: 9px 14px;
  }

  input,
  textarea,
  select {
    min-height: 48px;
    padding: 12px;
  }

  label span { margin-bottom: 5px; }
  .form-grid,
  .filters,
  .track-form,
  .reply-form {
    gap: 12px;
  }

  .form-panel,
  .summary,
  .soft-panel,
  .admin-card,
  .info-stack article {
    padding: 20px;
  }

  .check {
    gap: 9px;
    margin: 12px 0;
  }

  .check input {
    min-height: auto;
    margin-top: 5px;
  }

  .hero-showcase { gap: 12px; }
  .hero-product { padding: 10px; }
  .hero-product img {
    height: 250px;
    max-height: 250px;
  }

  .product-grid,
  .feature-grid,
  .cards-grid,
  .testimonial-grid,
  .grooming-service-grid,
  .metric-grid,
  .filters,
  .form-grid,
  .meta-grid,
  .legal-grid,
  .ordered-items {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .product-image {
    height: auto;
    min-height: 0;
    padding: 10px;
    aspect-ratio: 4 / 5;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-view {
    opacity: 1;
    transform: none;
    right: 10px;
    bottom: 10px;
  }

  .product-card-body {
    padding: 16px;
    gap: 7px;
  }

  .product-card-body h3 {
    margin: 0;
    line-height: 1.2;
  }

  .product-card-body > p:not(.eyebrow) {
    min-height: 0;
    margin-bottom: 6px;
  }

  .product-card-foot {
    gap: 12px;
    align-items: center;
  }

  .product-card-foot .btn {
    min-width: 108px;
    width: auto;
  }

  .product-gallery img {
    max-height: 360px;
  }

  .grooming-hero {
    display: grid;
    align-items: stretch;
  }

  .grooming-service-card {
    min-height: 0;
  }

  .grooming-service-media {
    aspect-ratio: 16 / 10;
  }

  .grooming-service-body {
    padding: 16px;
    gap: 12px;
  }

  .grooming-service-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .add-cart-form {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: none;
    margin: 22px 0 18px;
  }

  .add-cart-form .btn {
    width: 100%;
    margin-top: 2px;
  }

  .trust-list {
    margin-top: 16px;
  }

  .checkout-layout {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .checkout-layout .summary { order: -1; }
  .summary {
    position: static;
    top: auto;
  }

  .summary p {
    align-items: baseline;
  }

  .contact-layout,
  .cart-layout,
  .auth-shell,
  .account-grid {
    gap: 18px;
  }

  .contact-layout {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .contact-side article { padding: 18px; }

  .cart-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }

  .cart-row img,
  .thumb {
    width: 64px;
    height: 74px;
    object-fit: contain;
    background: var(--linen);
  }

  .cart-row label,
  .cart-row strong {
    grid-column: 2;
  }

  .cart-toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 14px;
    width: auto;
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 10px;
    gap: 10px;
  }

  .cart-toast img {
    width: 54px;
    height: 62px;
  }

  .toast-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .toast-actions .btn {
    width: 100%;
  }

  .testimonial-hero {
    align-items: stretch;
  }

  .testimonial-hero-card {
    width: 100%;
    padding: 18px;
  }

  .testimonial-feature,
  .testimonial-wall {
    padding-left: 18px;
    padding-right: 18px;
  }

  .testimonial-feature { padding-top: 18px; }
  .testimonial-wall {
    padding-top: 34px;
    padding-bottom: 48px;
  }

  .testimonial-large,
  .testimonial-grid .testimonial,
  .testimonial {
    min-height: 0;
    padding: 34px 20px 22px;
  }

  .quote-mark {
    left: 18px;
    top: 2px;
    font-size: 58px;
  }

  .testimonial cite {
    align-items: center;
  }

  .tracking-card,
  .tracking-card > div:first-child {
    display: grid;
    gap: 12px;
  }

  .tracking-card {
    padding: 20px;
  }

  .tracking-steps {
    grid-template-columns: 1fr;
  }

  .order-line {
    flex-direction: column;
    gap: 8px;
  }

  .account-header {
    align-items: flex-start;
    gap: 12px;
  }

  .account-card h2 { font-size: 30px; }

  .cta-band {
    max-width: calc(100% - 36px);
    margin: 32px auto 46px;
    padding: 24px 18px;
  }

  .site-footer {
    padding: 30px 18px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    width: 100%;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    padding: 10px 14px;
    box-shadow: 0 12px 28px rgba(37, 31, 35, .18);
  }

  .admin-sidebar-head {
    min-height: 42px;
  }

  .admin-brand {
    min-width: 0;
    white-space: normal;
  }

  .admin-brand span {
    overflow: hidden;
    display: block;
    max-width: 210px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .admin-menu-panel {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .admin-menu-panel.is-open {
    display: block;
  }

  .admin-sidebar nav,
  .admin-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar nav {
    max-height: 54vh;
    margin: 0 0 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .admin-sidebar nav a {
    padding: 10px;
    background: rgba(255,255,255,.05);
    font-size: 13px;
  }

  .admin-sidebar form .btn {
    width: 100%;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-heading h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .admin-card {
    overflow-x: visible;
  }

  .admin-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
  }

  .admin-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(55, 33, 37, .05);
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    word-break: break-word;
  }

  .admin-table td:last-child {
    border-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .admin-table td[data-label="Action"] .btn {
    width: 100%;
  }

  .admin-table td[data-label="Image"] .thumb,
  .admin-table td[data-label="Photo"] .thumb {
    width: 84px;
    height: 96px;
  }

  .inline-filter {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .inline-filter select {
    min-width: 0;
  }

  .request-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .request-topline,
  .thread-message div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .auth-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cart-pill {
    align-self: start;
    min-height: 42px;
    height: 42px;
    min-width: 92px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-copy h1,
  .page-hero h1,
  .page-section h1,
  .contact-hero h1,
  .track-copy h1,
  .testimonial-hero h1,
  .auth-copy h1,
  .account-header h1,
  .order-success h1 {
    font-size: 34px;
  }

  .product-card-foot {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-card-foot .btn {
    width: 100%;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .auth-links {
    grid-template-columns: 1fr;
  }

  .header-actions {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .cart-pill {
    min-width: 88px;
  }
}
