/* Pet-smart commerce template — Petlibro-inspired light retail */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-bg, #fff);
  color: var(--brand-text, #1a1c1a);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.wrap {
  width: min(100% - 2rem, var(--max, 1200px));
  margin-inline: auto;
}

.promo-bar {
  background: var(--brand-promo, #12352c);
  color: var(--brand-promo-text, #e8fff6);
  font-size: 13px;
  text-align: center;
  padding: 0;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  min-height: 40px;
  display: grid;
  place-items: center;
}

.promo-bar__track {
  width: min(920px, 100% - 3rem);
  position: relative;
  min-height: 1.35em;
}

.promo-bar__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  padding: 0.55rem 0;
}

.promo-bar__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.demo-banner {
  background: #fff8e8;
  color: #6a5420;
  font-size: 12px;
  text-align: center;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #f0e2b8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-line, #e5e7e3);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  color: var(--brand-text);
}
.brand-mark--logo {
  align-items: center;
}
.brand-mark--logo img {
  display: block;
  height: 36px;
  width: auto;
}

.brand-mark__inc {
  display: inline;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  justify-content: center;
}

.nav a {
  color: var(--brand-text);
  font-size: 0.92rem;
  font-weight: 560;
  opacity: 0.88;
}

.nav a:hover { opacity: 1; color: var(--brand-accent); }

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--brand-line);
  background: #fff;
  color: var(--brand-text);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.icon-btn:hover { border-color: var(--brand-accent); }

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #eef6f2 0%, #f7f8f6 45%, #e7f1ec 100%);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  display: grid;
  align-items: center;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center end;
  padding: 2rem 4vw 2rem 0;
  opacity: 0.95;
}

.hero__media img {
  width: min(48vw, 560px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.12));
}

.hero__slide.is-active .hero__media img {
  animation: float-in 0.9s ease both;
}

.hero__veil { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0;
  max-width: 34rem;
}

.hero__slide.is-active .hero__content {
  animation: rise 0.8s ease both;
}

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(18, 53, 44, 0.28);
  cursor: pointer;
}

.hero__dot.is-active { background: var(--brand-accent, #1f8a70); }

.hero__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--brand-line, #e5e7e3);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-text, #1a1c1a);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero__nav--prev { left: 0.85rem; }
.hero__nav--next { right: 0.85rem; }

@media (max-width: 700px) {
  .hero__nav { display: none; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.hero__brand {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
}

.hero__headline {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
}

.hero__sub {
  margin: 0 0 1.5rem;
  color: var(--brand-muted);
  max-width: 30rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
}

.btn--primary:hover { background: var(--brand-accent-dim); }

.btn--ghost {
  background: #fff;
  border-color: var(--brand-line);
  color: var(--brand-text);
}

.btn--ghost:hover { border-color: var(--brand-accent); }

.section { padding: 3.25rem 0; }
.section--soft { background: var(--brand-bg-soft, #f6f7f5); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section__hint {
  margin: 0.3rem 0 0;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.collections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.collection-tile {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  padding: 1.25rem 1.1rem;
  min-height: 132px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.collection-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--brand-line));
}

.collection-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.collection-tile p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.88rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: fade-up 0.55s ease both;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--brand-surface, #f3f4f2);
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.product-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card__badge {
  align-self: start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--brand-accent);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

.product-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-card__summary {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-muted);
  font-size: 0.8rem;
}

.stars { color: #d4a017; letter-spacing: 0.02em; }

.product-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.price { font-weight: 800; letter-spacing: -0.015em; }
.price__compare {
  margin-left: 0.35rem;
  color: var(--brand-muted);
  font-weight: 500;
  text-decoration: line-through;
  font-size: 0.84rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding: 1.25rem 0 0;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  padding: 1rem;
}

.trust-item strong { display: block; margin-bottom: 0.2rem; }

.banner-cta {
  margin: 0.5rem 0 0;
  border-radius: calc(var(--brand-radius) + 4px);
  padding: 1.6rem 1.4rem;
  background: linear-gradient(115deg, #12352c, #1f8a70);
  color: #f3fffa;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.banner-cta p { margin: 0.25rem 0 0; opacity: 0.9; }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  padding: 2.5rem 0 3.5rem;
  align-items: start;
}

.pdp__media {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.pdp__media img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
}

.pdp__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pdp__meta {
  color: var(--brand-muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.option-group { margin: 0.9rem 0; }
.option-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-muted);
  margin-bottom: 0.35rem;
}

.option-group select {
  width: 100%;
  max-width: 280px;
  background: #fff;
  color: var(--brand-text);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--brand-line);
  background: #f3f5f2;
  padding: 2.5rem 0 2rem;
  color: var(--brand-muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-grid h4 {
  margin: 0 0 0.7rem;
  color: var(--brand-text);
  font-size: 0.86rem;
  font-weight: 750;
}

.footer-grid a {
  display: block;
  padding: 0.18rem 0;
}

.footer-grid a:hover { color: var(--brand-accent); }

.site-footer__legal {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brand-line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 24, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: #fff;
  border-left: 1px solid var(--brand-line);
  z-index: 60;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head,
.cart-drawer__foot {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--brand-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer__foot {
  border-bottom: 0;
  border-top: 1px solid var(--brand-line);
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.cart-drawer__body { padding: 1rem 1.15rem; overflow: auto; flex: 1; }

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--brand-line);
}

.cart-line .thumb {
  width: 64px;
  height: 64px;
  background: var(--brand-surface);
  border-radius: 8px;
}

.cart-empty {
  color: var(--brand-muted);
  padding: 2rem 0;
  text-align: center;
}

.checkout {
  max-width: 640px;
  margin: 2rem auto 3.5rem;
  padding: 1.4rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.checkout h1 { margin-top: 0; font-weight: 800; }

.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin-bottom: 0.28rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--brand-line);
  background: #fff;
  color: var(--brand-text);
}

.notice {
  padding: 0.75rem 0.9rem;
  background: #eef8f4;
  border: 1px solid #cfe8dc;
  color: var(--brand-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.success-panel { text-align: center; padding: 4rem 1rem; }
.success-panel h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.product-card:nth-child(1) { animation-delay: 0.04s; }
.product-card:nth-child(2) { animation-delay: 0.08s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.16s; }

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .collections { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__media { opacity: 0.22; place-items: end center; }
  .pdp { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .collections { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
