/* Hearth & Paw Market - pet retail template */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #faf7f2;
  --white: #ffffff;
  --ink: #1e2a32;
  --muted: #5c6b75;
  --line: #dde4e8;
  --teal: #0d5c63;
  --teal-light: #e6f2f3;
  --coral: #e0634a;
  --coral-soft: #fdeee9;
  --ok: #2d8a5e;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --nav-h: 118px;
}

html { scroll-behavior: smooth; }

body.theme-petstore {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  padding-top: 42px;
}

body.theme-petstore a { color: var(--teal); text-decoration: none; }
body.theme-petstore a:hover { color: #0a454b; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.top-bar {
  position: fixed;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--teal);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.top-bar strong { color: #fff; }

.site-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-paw {
  width: 32px;
  height: 32px;
  background: var(--coral-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.nav-main {
  display: flex;
  gap: 22px;
  font-size: 0.875rem;
  font-weight: 600;
}
.nav-main a { color: var(--muted); }
.nav-main a:hover { color: var(--ink); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-btn {
  position: relative;
  background: var(--teal);
  color: #fff !important;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
}
.cart-btn .count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--coral);
  border-radius: 999px;
  font-size: 0.625rem;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
@media (max-width: 800px) {
  .nav-main { display: none; }
}

main { margin-top: var(--nav-h); }

.hero-retail {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--cream) 55%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-retail .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-retail .inner { grid-template-columns: 1fr; }
}
.hero-retail h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--teal);
}
.hero-retail .lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 42ch;
}
.hero-retail .actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #c9553f; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0a454b; }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero-retail img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(13, 92, 99, 0.12);
}
.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 700px) {
  .promo-strip { grid-template-columns: 1fr; }
}
.promo-strip div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.8125rem;
}
.promo-strip strong {
  display: block;
  color: var(--teal);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.block {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.block-head h2 {
  font-family: var(--display);
  font-size: 1.625rem;
  color: var(--teal);
}
.block-head p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 40ch;
}

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.cat-filter button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
}
.cat-filter button.is-on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.product-card .body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .cat {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.product-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.3;
}
.product-card .price {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--teal);
}
.product-card .stock {
  font-size: 0.6875rem;
  color: var(--ok);
  margin-top: 4px;
}
.product-card .stock.low { color: var(--coral); }
.product-card .add {
  margin-top: 12px;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
}
.service-card h3 {
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--teal);
}
.service-card p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  flex: 1;
}
.service-card .from {
  margin-top: 12px;
  font-weight: 800;
  color: var(--coral);
}
.service-card .btn { margin-top: 12px; }

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) {
  .two-up { grid-template-columns: 1fr; }
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.hours-row.today { font-weight: 700; color: var(--teal); }
.hours-row:last-child { border-bottom: 0; }

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 50, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--white);
  z-index: 301;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head h2 {
  font-family: var(--display);
  font-size: 1.25rem;
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-line .qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.cart-line .qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}
.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 0.9375rem;
}
.cart-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.cart-foot .total {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.checkout-panel {
  display: none;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}
.checkout-panel.show { display: block; }
.checkout-panel label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 12px;
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
}
.chip.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 700;
}
.order-done {
  display: none;
  padding: 16px;
  background: var(--teal-light);
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 12px;
}
.order-done.show { display: block; }
.order-done code { color: var(--teal); font-weight: 800; }

.reviews-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  font-size: 0.9375rem;
}
.review .stars { color: var(--coral); font-size: 0.875rem; }
.review p { margin-top: 8px; color: var(--muted); }
.review footer { margin-top: 10px; font-weight: 700; font-size: 0.8125rem; }

.site-footer {
  padding: 40px 24px 56px;
  background: var(--teal);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
}
.site-footer a { color: #fff; font-weight: 600; }
.site-footer .shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .site-footer .shell { grid-template-columns: 1fr; }
}
.site-footer h3 {
  font-family: var(--display);
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 10px;
}
