:root {
  --ink: #17201d;
  --muted: #69736f;
  --paper: #fffdf8;
  --soft: #f5f1e8;
  --sage: #708a74;
  --sage-dark: #3e5c49;
  --berry: #b45868;
  --clay: #c28a5c;
  --line: rgba(23, 32, 29, 0.12);
  --shadow: 0 24px 70px rgba(31, 43, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(112, 138, 116, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(180, 88, 104, 0.08), transparent 34%),
    var(--paper);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(62, 92, 73, 0.28);
  border-radius: 50%;
  background: #edf4ea;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--sage-dark);
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--sage-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.account-button:hover {
  border-color: rgba(62, 92, 73, 0.36);
  background: #ffffff;
}

.cart-button,
.primary-link,
.secondary-link,
.primary-button,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.cart-button {
  gap: 8px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(31, 43, 37, 0.08);
}

.cart-button svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.cart-button strong {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--berry);
  color: #ffffff;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(40px, 8vw, 96px) clamp(18px, 5vw, 64px) clamp(30px, 5vw, 64px);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--berry);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 11em;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-text {
  max-width: 560px;
  margin: 26px 0 0;
  color: #43504a;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.primary-button,
.checkout-button {
  padding: 0 24px;
  background: var(--sage-dark);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(62, 92, 73, 0.24);
}

.secondary-link {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--sage-dark);
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.18), transparent 42%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip div {
  min-height: 112px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--sage-dark);
  font-size: 28px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading,
.product-workspace,
.hot-section,
.standards {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hot-section {
  padding: 86px 0 12px;
}

.hot-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.hot-heading h2 {
  font-size: clamp(31px, 4vw, 48px);
}

.hot-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.hot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
}

.hot-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(62, 92, 73, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(112, 138, 116, 0.12), transparent 56%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(31, 43, 37, 0.08);
}

.hot-card:first-child {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.hot-image-button {
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: var(--soft);
  cursor: pointer;
}

.hot-image-button img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.hot-card:hover .hot-image-button img {
  transform: scale(1.035);
}

.hot-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.rank-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--berry);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.hot-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hot-title-row h3 {
  font-size: 20px;
}

.hot-title-row strong {
  flex: 0 0 auto;
  color: var(--berry);
  font-size: 22px;
}

.hot-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.hot-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(112, 138, 116, 0.12);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  padding: 92px 0 24px;
}

.section-heading h2,
.standards h2 {
  max-width: 650px;
  font-size: clamp(31px, 4vw, 48px);
}

.section-heading p:last-child {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--muted);
}

.filter-stack {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(62, 92, 73, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(112, 138, 116, 0.13), transparent 52%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 38px rgba(31, 43, 37, 0.07);
}

.filter-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 4px;
}

.filter-intro span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.filter-intro p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-group-primary {
  padding: 14px;
  border: 1px solid rgba(112, 138, 116, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.filter-group-secondary {
  padding-left: 14px;
  border-left: 3px solid rgba(112, 138, 116, 0.32);
}

.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.pet-filter-bar .filter-chip {
  min-width: 116px;
  min-height: 52px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--sage-dark);
  box-shadow: 0 10px 24px rgba(31, 43, 37, 0.06);
}

.food-filter-bar .filter-chip {
  min-height: 38px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

.filter-chip.is-active {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #ffffff;
}

.pet-filter-bar .filter-chip.is-active {
  box-shadow: 0 16px 30px rgba(62, 92, 73, 0.22);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(31, 43, 37, 0.08);
}

.product-card[hidden] {
  display: none;
}

.product-image-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--soft);
  cursor: pointer;
}

.product-image-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-image-button img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-title-row h3 {
  font-size: 20px;
}

.price {
  flex: 0 0 auto;
  color: var(--berry);
  font-size: 21px;
  font-weight: 900;
}

.sales-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
}

.sales-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(112, 138, 116, 0.12);
}

.sales-row span:last-child {
  color: var(--muted);
  background: rgba(23, 32, 29, 0.06);
  font-weight: 700;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.meta-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1f6ef;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.card-actions button {
  min-height: 42px;
}

.detail-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--sage-dark);
  cursor: pointer;
  font-weight: 800;
}

.add-button {
  min-width: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.standards {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 96px 0 100px;
}

.standard-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.standard-list article {
  min-height: 198px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.standard-list span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--clay);
  font-weight: 900;
}

.standard-list h3 {
  font-size: 20px;
}

.standard-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-page {
  min-height: 100vh;
}

.auth-gate-page {
  overflow: hidden;
}

.auth-gate {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.48)),
    url("assets/hero.jpg") center / cover;
  filter: blur(6px);
  transform: scale(1.04);
}

.auth-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(23, 32, 29, 0.18);
}

.auth-preview-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
}

.auth-preview-copy h1 {
  max-width: none;
  font-size: clamp(50px, 8vw, 92px);
}

.auth-preview-copy p:last-child {
  margin: 16px 0 0;
  color: #38443e;
  font-size: 18px;
}

.auth-main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0 100px;
}

.auth-hero {
  max-width: 760px;
  margin-bottom: 30px;
}

.auth-hero h1 {
  max-width: 12em;
  font-size: clamp(40px, 6vw, 68px);
}

.auth-hero p:last-child {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.auth-shell,
.account-panel {
  border: 1px solid rgba(62, 92, 73, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(112, 138, 116, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(31, 43, 37, 0.09);
}

.auth-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
}

.auth-floating {
  position: relative;
  z-index: 2;
  display: block;
  width: min(430px, 100%);
  padding: 26px;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(22px);
}

.auth-card-heading {
  margin-bottom: 18px;
}

.auth-card-heading h2 {
  font-size: clamp(29px, 5vw, 40px);
}

.auth-card-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.auth-floating .auth-tabs {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-tab {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--sage-dark);
  cursor: pointer;
  font-weight: 900;
}

.auth-tab.is-active {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #ffffff;
}

.auth-panel {
  display: none;
  gap: 16px;
  padding: clamp(26px, 5vw, 42px);
}

.auth-floating .auth-panel {
  padding: 18px 0 0;
}

.auth-panel.is-active {
  display: grid;
}

.auth-panel h2,
.account-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.auth-panel label,
.address-form label {
  display: grid;
  gap: 8px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 900;
}

.auth-panel input,
.address-form input,
.address-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
}

.auth-panel input,
.address-form input {
  min-height: 48px;
  padding: 0 14px;
}

.address-form textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
}

.auth-panel input:focus,
.address-form input:focus,
.address-form textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(112, 138, 116, 0.16);
}

.account-panel {
  padding: clamp(24px, 5vw, 42px);
}

.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.address-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.address-full,
.address-actions {
  grid-column: 1 / -1;
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guest-button {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid rgba(62, 92, 73, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--sage-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.guest-button:hover {
  background: #ffffff;
}

.cart-drawer,
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(23, 32, 29, 0.38);
  backdrop-filter: blur(8px);
}

.cart-drawer.is-open,
.modal-layer.is-open {
  display: block;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: -24px 0 80px rgba(23, 32, 29, 0.2);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  font-size: 30px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cart-item img {
  width: 74px;
  height: 74px;
  border-radius: 7px;
  object-fit: cover;
}

.cart-item h3 {
  font-size: 15px;
}

.cart-item p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-controls button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f6ef;
  color: var(--sage-dark);
  cursor: pointer;
  font-weight: 900;
}

.quantity-controls span {
  min-width: 18px;
  text-align: center;
  font-weight: 900;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--berry);
  cursor: pointer;
  font-weight: 800;
}

.cart-empty {
  display: none;
  padding: 42px 24px;
  color: var(--muted);
  text-align: center;
}

.cart-empty.is-visible {
  display: block;
}

.cart-empty a {
  color: var(--sage-dark);
  font-weight: 900;
}

.drawer-footer {
  margin-top: auto;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 18px;
}

.total-row strong {
  color: var(--berry);
  font-size: 28px;
}

.checkout-button {
  width: 100%;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.modal-layer {
  place-items: center;
  padding: 20px;
}

.modal-layer.is-open {
  display: grid;
}

.product-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
}

.modal-media {
  min-height: 100%;
  background: var(--soft);
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.modal-content {
  padding: clamp(28px, 5vw, 48px);
  overflow-y: auto;
}

.modal-content h2 {
  max-width: 360px;
  font-size: clamp(30px, 4vw, 44px);
}

.modal-summary {
  margin: 18px 0 26px;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  color: #38443e;
}

.modal-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.modal-buy-row strong {
  color: var(--berry);
  font-size: 30px;
}

.checkout-modal {
  position: relative;
  display: flex;
  width: min(640px, 100%);
  max-height: min(860px, calc(100vh - 32px));
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-content {
  width: 100%;
  max-height: min(860px, calc(100vh - 32px));
  min-height: 0;
  padding: clamp(28px, 5vw, 42px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.checkout-content h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.checkout-summary {
  margin: 14px 0 24px;
  color: var(--muted);
}

.saved-address-hint {
  margin: -10px 0 20px;
  padding: 10px 12px;
  border: 1px solid rgba(112, 138, 116, 0.18);
  border-radius: 8px;
  background: rgba(112, 138, 116, 0.1);
  color: var(--sage-dark);
  font-size: 14px;
  font-weight: 800;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-address-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-address-heading h3 {
  font-size: 20px;
}

.checkout-address-list {
  display: grid;
  gap: 10px;
  max-height: min(300px, 32vh);
  overflow-y: auto;
  padding: 3px;
  scrollbar-width: thin;
}

.checkout-address-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.checkout-address-card.is-selected {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(112, 138, 116, 0.14);
}

.checkout-address-card.is-default .checkout-address-main span {
  background: var(--berry);
  color: #ffffff;
}

.checkout-address-main {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.checkout-address-main span {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(112, 138, 116, 0.12);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
}

.checkout-address-main strong {
  color: var(--ink);
  font-size: 18px;
}

.checkout-address-main small,
.checkout-address-main p,
.checkout-address-main em {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.checkout-address-actions,
.checkout-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-address-editor {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(112, 138, 116, 0.2);
  border-radius: 8px;
  background: rgba(112, 138, 116, 0.08);
}

.checkout-address-editor[hidden] {
  display: none;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 900;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
}

.checkout-form input {
  min-height: 48px;
  padding: 0 14px;
}

.checkout-form textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(112, 138, 116, 0.16);
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-total-row span {
  color: var(--muted);
}

.checkout-total-row strong {
  color: var(--berry);
  font-size: 28px;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: sticky;
  bottom: -1px;
  z-index: 2;
  margin: 0 calc(clamp(28px, 5vw, 42px) * -1) calc(clamp(28px, 5vw, 42px) * -1);
  padding: 14px clamp(28px, 5vw, 42px) clamp(28px, 5vw, 42px);
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.checkout-actions .secondary-link,
.checkout-actions .primary-button {
  width: 100%;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.account-modal {
  position: relative;
  width: min(960px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.account-modal-content {
  max-height: min(820px, calc(100vh - 40px));
  overflow-y: auto;
  padding: clamp(26px, 5vw, 42px);
}

.account-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.account-modal-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.account-modal-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.address-book-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.address-list-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.address-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.address-list-heading h3 {
  font-size: 20px;
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.address-card.is-default {
  border-color: rgba(62, 92, 73, 0.42);
  box-shadow: 0 10px 26px rgba(62, 92, 73, 0.12);
}

.address-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.address-card p,
.address-card small,
.address-empty {
  margin: 0;
  color: var(--muted);
}

.address-card small {
  display: block;
  margin-top: 6px;
}

.address-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  min-width: min(320px, calc(100% - 36px));
  max-width: 520px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(23, 32, 29, 0.22);
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.admin-page {
  min-height: 100vh;
}

.admin-header {
  background: rgba(255, 253, 248, 0.92);
}

.admin-main {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0 86px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.admin-hero h1 {
  max-width: 10em;
  font-size: clamp(38px, 6vw, 72px);
}

.admin-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-kpi,
.admin-panel {
  border: 1px solid rgba(62, 92, 73, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(112, 138, 116, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 42px rgba(31, 43, 37, 0.08);
}

.admin-kpi {
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 20px;
}

.admin-kpi span,
.admin-kpi small,
.admin-panel-heading span,
.admin-table small,
.catalog-item small {
  color: var(--muted);
}

.admin-kpi span,
.admin-panel-heading span {
  font-size: 13px;
  font-weight: 900;
}

.admin-kpi strong {
  color: var(--sage-dark);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.admin-dashboard-secondary {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  margin-top: 18px;
}

.admin-panel {
  min-width: 0;
  padding: 22px;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td {
  color: #38443e;
  font-size: 14px;
}

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

.admin-table strong,
.admin-table small {
  display: block;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(180, 88, 104, 0.12);
  color: var(--berry);
  font-size: 12px;
  font-weight: 900;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form label,
.admin-fieldset {
  display: grid;
  gap: 8px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
}

.admin-form input,
.admin-form select {
  min-height: 46px;
  padding: 0 12px;
}

.admin-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(112, 138, 116, 0.16);
}

.admin-fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-fieldset legend,
.admin-form-wide,
.admin-submit {
  grid-column: 1 / -1;
}

.admin-fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.admin-fieldset input {
  width: auto;
  min-height: auto;
}

.admin-submit {
  width: 100%;
}

.sales-list,
.catalog-list {
  display: grid;
  gap: 12px;
}

.sales-item,
.catalog-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.sales-item {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.sales-item-head,
.sales-item-meta,
.catalog-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sales-item-head span,
.catalog-item-title span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(112, 138, 116, 0.12);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
}

.sales-item-head strong,
.catalog-item-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sales-item-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.sales-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 29, 0.08);
}

.sales-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage-dark), var(--berry));
}

.sales-item-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sales-item-meta strong {
  color: var(--berry);
}

.catalog-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.catalog-item img {
  width: 74px;
  height: 74px;
  border-radius: 7px;
  object-fit: cover;
}

.catalog-item p {
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-tabs {
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .address-book-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 12em;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hot-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hot-grid {
    grid-template-columns: 1fr;
  }

  .hot-card:first-child {
    grid-row: auto;
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .standards {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid,
  .admin-dashboard,
  .admin-dashboard-secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand small,
  .cart-button span {
    display: none;
  }

  .account-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 32px 18px 20px;
  }

  h1 {
    font-size: clamp(36px, 13vw, 58px);
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 18px;
  }

  .trust-strip div {
    min-height: 94px;
    padding: 18px;
  }

  .product-grid,
  .hot-grid,
  .standard-list {
    grid-template-columns: 1fr;
  }

  .filter-stack {
    gap: 14px;
    padding: 16px;
  }

  .filter-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .filter-intro p {
    text-align: left;
  }

  .pet-filter-bar .filter-chip {
    min-width: 104px;
  }

  .hot-section {
    padding-top: 70px;
  }

  .hot-card,
  .hot-card:first-child {
    grid-template-columns: 1fr;
  }

  .section-heading {
    padding-top: 70px;
  }

  .card-actions {
    grid-template-columns: 1fr 46px;
  }

  .product-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .modal-media img {
    min-height: 260px;
    max-height: 42vh;
  }

  .modal-buy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .checkout-actions {
    grid-template-columns: 1fr;
  }

  .account-modal-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .address-form {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    width: 100%;
  }

  .admin-main {
    width: min(100% - 28px, 1220px);
    padding-top: 28px;
  }

  .admin-hero {
    display: block;
  }

  .admin-kpi-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 16px;
  }

  .admin-panel-heading,
  .sales-item-head,
  .sales-item-meta,
  .catalog-item-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table {
    min-width: 780px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    display: grid;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .product-title-row {
    flex-direction: column;
    gap: 6px;
  }

  .site-header {
    align-items: center;
  }

  .account-button {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sales-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
