:root {
  --bg: #fbf6ed;
  --bg-soft: #f4faf2;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #151916;
  --muted: #66716a;
  --line: #e6ddd0;
  --forest: #1f6f55;
  --forest-strong: #0e4738;
  --berry: #7f334a;
  --tea: #a95743;
  --candle: #d89a42;
  --wood: #8a5a3c;
  --wood-soft: #caa783;
  --sage: #edf6ee;
  --paper: #fffaf1;
  --shadow: 0 18px 42px rgba(33, 42, 34, 0.11);
  --shadow-soft: 0 10px 24px rgba(33, 42, 34, 0.08);
  --radius: 8px;
  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body: "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(138, 90, 60, 0.06) 0 1px, transparent 1.35px),
    radial-gradient(circle at 18px 14px, rgba(31, 111, 85, 0.045) 0 0.9px, transparent 1.2px),
    linear-gradient(180deg, #fbf6ed 0%, #f6fbf3 48%, #fffdf8 100%);
  background-position: 0 0, 0 0, 0 0;
  background-size: 34px 34px, 46px 46px, auto;
  line-height: 1.35;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(31, 71, 55, 0.12);
  background: rgba(255, 252, 246, 0.93);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px rgba(33, 42, 34, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(148px, 12vw, 166px);
  height: auto;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions form {
  margin: 0;
}

.ghost-action,
.icon-action,
.primary-action,
.secondary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.ghost-action {
  padding: 0 14px;
  border-color: rgba(31, 71, 55, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.ghost-action:hover,
.icon-action:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(33, 42, 34, 0.08);
}

.primary-action {
  padding: 0 18px;
  background: var(--forest);
  color: #ffffff;
  font-weight: 750;
}

.primary-action:hover {
  background: var(--forest-strong);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.secondary-action {
  padding: 0 16px;
  border-color: rgba(31, 111, 85, 0.24);
  background: var(--sage);
  color: var(--forest-strong);
  font-weight: 700;
}

.text-action {
  width: max-content;
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: var(--forest-strong);
  font-weight: 700;
}

.icon-action {
  width: 34px;
  min-height: 34px;
  border-color: rgba(31, 71, 55, 0.14);
  background: var(--surface-strong);
  color: var(--forest-strong);
  font-weight: 850;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(230px, 292px) minmax(0, 1fr);
  gap: 26px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 42px) 54px;
}

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf6ed 54%, #f6fbf3 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 620ms ease;
}

.brand-intro[hidden] {
  display: none;
}

.brand-intro.is-visible {
  opacity: 1;
}

.brand-intro.is-hiding {
  opacity: 0;
}

.brand-intro-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(10px);
}

.brand-intro.is-ready .brand-intro-inner {
  animation: brandIntroEnter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-intro-inner img {
  width: clamp(230px, 34vw, 500px);
  max-width: min(82vw, 500px);
  height: auto;
}

.brand-intro-inner p {
  position: relative;
  margin: 0;
  color: var(--forest-strong);
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
}

.brand-intro-inner p::after {
  display: block;
  width: min(220px, 54vw);
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--forest), var(--berry), transparent);
  content: "";
  opacity: 0.7;
}

.category-rail {
  position: sticky;
  top: 28px;
  align-self: start;
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(31, 71, 55, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16px 12px, rgba(202, 167, 131, 0.13) 0 1px, transparent 1.4px),
    rgba(255, 253, 248, 0.94);
  background-size: 42px 42px, auto;
  box-shadow: var(--shadow-soft);
  scrollbar-color: rgba(31, 111, 85, 0.4) transparent;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.category-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tree li ul {
  margin-left: 14px;
  padding-left: 10px;
  border-left: 1px solid rgba(31, 71, 55, 0.11);
}

.category-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0;
  padding: 7px 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.category-button::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--forest), var(--wood-soft));
  content: "";
  opacity: 0;
  transform: scaleY(0.7);
  transition: opacity 160ms ease, transform 160ms ease;
}

.category-button span {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.category-button small {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 28px;
  padding: 1px 5px;
  border-radius: 999px;
  transform: translateY(-50%);
  color: var(--muted);
  text-align: center;
  transition: background 160ms ease, color 160ms ease;
}

.icon-action svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
}

.category-button.active,
.category-button:hover {
  border-color: rgba(31, 111, 85, 0.22);
  background: rgba(237, 246, 238, 0.9);
  color: var(--forest-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.75);
}

.category-button.active::before,
.category-button:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.category-button.active small,
.category-button:hover small {
  background: rgba(255, 253, 248, 0.72);
  color: var(--forest-strong);
}

.shop-surface {
  min-width: 0;
}

.shop-brand-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(190px, 22vw, 284px);
  align-items: flex-start;
  margin: 2px 0 clamp(20px, 4vw, 38px);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 250, 241, 0.9) 36%, rgba(255, 250, 241, 0.24) 68%, rgba(255, 250, 241, 0.02) 100%),
    url("/assets/img/loft-hero.jpg") center right / cover no-repeat;
  color: inherit;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.shop-layout > .category-rail {
  margin-top: calc(clamp(190px, 22vw, 284px) + clamp(20px, 4vw, 38px) + 2px);
}

.shop-surface > .shop-brand-hero {
  margin-left: calc((clamp(230px, 20vw, 292px) + 26px) * -1);
}

.page-brand-hero {
  width: min(1050px, 100%);
  min-height: clamp(180px, 20vw, 252px);
  margin: 16px auto 18px;
}

.shop-brand-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 46%;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 47, 37, 0.18) 100%);
  content: "";
}

.hero-brand-copy {
  --hero-logo-width: clamp(222px, 24vw, 390px);
  position: relative;
  z-index: 1;
  display: grid;
  width: min(72%, 760px);
  gap: clamp(4px, 0.8vw, 8px);
  padding: clamp(14px, 2vw, 24px) clamp(18px, 2.6vw, 30px);
  color: var(--forest-strong);
}

.hero-brand-copy p {
  width: var(--hero-logo-width);
  max-width: 100%;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 1.88vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(18px, 4vw, 36px);
  align-items: end;
  margin-bottom: 16px;
}

.shop-intro {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--tea);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

.shop-toolbar h1,
.panel-hero h1 {
  max-width: 790px;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.7vw, 4.3rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-copy {
  max-width: 650px;
  margin: 12px 0 0;
  color: #47564e;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.shop-hero-side {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  align-self: start;
  padding-top: 6px;
}

.shop-side-links,
.page-top-links,
.product-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-side-links {
  justify-content: flex-end;
}

.shop-side-links a,
.page-top-links a,
.product-about-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid rgba(31, 71, 55, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(247, 244, 235, 0.78)),
    rgba(255, 253, 248, 0.66);
  color: var(--forest-strong);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(30, 55, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.shop-side-links a:hover,
.page-top-links a:hover,
.product-about-links a:hover {
  border-color: rgba(31, 111, 85, 0.28);
  background: rgba(237, 248, 240, 0.9);
  transform: translateY(-1px);
}

.hero-logo {
  display: block;
  width: var(--hero-logo-width);
  max-width: 100%;
  height: auto;
}

.search-box,
.sort-box,
.mobile-categories {
  display: grid;
  gap: 6px;
}

.search-box {
  position: relative;
}

.search-box label,
.sort-box label,
.mobile-categories label,
.login-form span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.search-box input,
.sort-box select,
.mobile-categories select,
.login-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(31, 71, 55, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 248, 0.98)),
    var(--surface-strong);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(33, 42, 34, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-box input {
  padding-right: 48px;
}

.search-box input::placeholder {
  color: #7a837d;
  opacity: 1;
}

.search-clear {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 246, 238, 0.72);
  color: var(--forest-strong);
  cursor: pointer;
  font-size: 1.34rem;
  line-height: 1;
  opacity: 0.82;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.search-clear:hover {
  background: rgba(237, 246, 238, 0.96);
  opacity: 1;
  transform: scale(1.03);
}

.search-clear[hidden] {
  display: none;
}

.search-box input:focus,
.sort-box select:focus,
.mobile-categories select:focus,
.login-form input:focus {
  border-color: var(--forest);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 111, 85, 0.16);
}

.mobile-categories {
  display: none;
  margin-bottom: 14px;
}

.mobile-sort-box {
  display: none;
  margin-bottom: 14px;
}

.listing-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.listing-title::after {
  display: block;
  flex: 1 1 auto;
  max-width: 260px;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 111, 85, 0.32), rgba(202, 167, 131, 0.34), transparent);
  content: "";
}

.category-seo-note {
  max-width: 830px;
  margin: -4px 0 18px;
  color: #4c5d52;
  font-size: 0.96rem;
  line-height: 1.62;
}

.catalog-trust-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 71, 55, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 22px 18px, rgba(202, 167, 131, 0.1) 0 1px, transparent 1.4px),
    rgba(255, 253, 248, 0.92);
  background-size: 44px 44px, auto;
  box-shadow: var(--shadow-soft);
}

.catalog-trust-note h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  letter-spacing: 0;
}

.catalog-trust-note p {
  max-width: 860px;
  margin: 0;
  color: #4c5d52;
  font-size: 0.95rem;
  line-height: 1.55;
}

.catalog-trust-note nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.catalog-trust-note a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(31, 71, 55, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--forest-strong);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(33, 42, 34, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.catalog-trust-note a:hover {
  border-color: rgba(31, 111, 85, 0.28);
  box-shadow: 0 12px 24px rgba(33, 42, 34, 0.1);
  transform: translateY(-1px);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 71, 55, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(88, 70, 48, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18px 16px, rgba(202, 167, 131, 0.1) 0 1px, transparent 1.4px),
    rgba(255, 253, 248, 0.97);
  background-size: 46px 46px, auto;
  box-shadow: 0 10px 24px rgba(33, 42, 34, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  animation: cardEnter 420ms ease both;
  animation-delay: var(--card-delay, 0ms);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.product-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--wood-soft), var(--berry));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-card * {
  min-width: 0;
}

.product-card:hover {
  border-color: rgba(31, 111, 85, 0.28);
  background: #fffefa;
  box-shadow: 0 18px 38px rgba(33, 42, 34, 0.13);
  transform: translateY(-2px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(31, 71, 55, 0.08);
  background:
    radial-gradient(circle at 14px 13px, rgba(138, 90, 60, 0.12) 0 1px, transparent 1.3px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 250, 242, 0.88)),
    #f7f6ef;
  background-size: 38px 38px, auto, auto;
  box-shadow: inset 0 0 28px rgba(31, 71, 55, 0.055);
  text-decoration: none;
}

.product-media::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.74) 46%, rgba(255, 255, 255, 0.18) 92%);
  background-position: 100% 0;
  background-size: 220% 100%;
  content: "";
  opacity: 1;
  animation: imageSheen 1.3s ease-in-out infinite;
  transition: opacity 180ms ease;
}

.product-media.is-loaded::before {
  opacity: 0;
  animation-play-state: paused;
}

.product-media::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(138, 90, 60, 0.16);
  border-radius: 6px;
  content: "";
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.product-card:hover .product-media::after {
  opacity: 1;
}

.product-media img {
  position: absolute;
  inset: 11px;
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  object-fit: contain;
  opacity: 0;
  filter: saturate(0.98) contrast(1.01);
  transition: opacity 180ms ease, filter 180ms ease;
}

.product-media.is-loaded img {
  opacity: 1;
}

.skeleton-card {
  min-height: 390px;
  border-color: rgba(31, 71, 55, 0.08);
  background:
    linear-gradient(105deg, rgba(255, 253, 248, 0.82) 0%, rgba(237, 246, 238, 0.96) 38%, rgba(255, 253, 248, 0.82) 74%),
    rgba(255, 253, 248, 0.94);
  background-size: 230% 100%, auto;
  box-shadow: var(--shadow-soft);
  animation: skeletonPulse 1.35s ease-in-out infinite;
}

.skeleton-card::before {
  display: none;
}

.product-card:hover .product-media img {
  filter: saturate(1.06) contrast(1.03);
}

.shelf-note {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(31, 71, 55, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(255, 253, 248, 0.96), rgba(237, 246, 238, 0.9)),
    radial-gradient(circle at 18px 14px, rgba(202, 167, 131, 0.16) 0 1px, transparent 1.4px);
  background-size: auto, 44px 44px;
  box-shadow: var(--shadow-soft);
}

.shelf-note::after {
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--forest), var(--wood-soft), var(--berry));
  content: "";
  opacity: 0.56;
}

.shelf-note small {
  color: var(--tea);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shelf-note p {
  max-width: 760px;
  margin: 4px 0 0;
  color: #34413b;
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.16;
}

.shelf-note span {
  justify-self: end;
  color: var(--forest-strong);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, var(--paper), var(--sage));
  color: rgba(31, 71, 55, 0.62);
  font-weight: 850;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 10px;
  padding: 14px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-category {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sage);
  color: var(--forest-strong);
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.65em;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 1rem;
  line-height: 1.22;
}

.product-card h2 a {
  text-decoration: none;
}

.product-card h2 a:hover {
  color: var(--forest-strong);
}

.price-row strong {
  color: var(--berry);
  font-size: 1.22rem;
}

.price-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.description {
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #35413c;
  font-size: 0.92rem;
  line-height: 1.5;
}

.description.collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.description p,
.description ul,
.description ol {
  margin: 0 0 0.58em;
}

.description p:empty,
.description p + br {
  display: none;
}

.description table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  table-layout: fixed;
}

.description td,
.description th {
  border: 1px solid var(--line);
  padding: 5px;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.action-full {
  grid-column: 1 / -1;
}

.details-action,
.buy-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 111, 85, 0.24);
  border-radius: var(--radius);
  background: var(--forest);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.details-action:hover {
  border-color: rgba(127, 51, 74, 0.2);
  background: var(--berry);
  box-shadow: 0 10px 20px rgba(127, 51, 74, 0.16);
}

.buy-action {
  background: var(--berry);
}

.buy-action:hover {
  border-color: rgba(31, 111, 85, 0.24);
  background: var(--forest-strong);
  box-shadow: 0 10px 20px rgba(31, 111, 85, 0.16);
}

.cart-action {
  width: 44px;
  min-height: 42px;
  border-color: rgba(31, 111, 85, 0.24);
  background: var(--sage);
  color: var(--forest-strong);
}

.details-action:focus-visible,
.product-card a:focus-visible,
.category-button:focus-visible,
.detail-main-trigger:focus-visible,
.gallery-arrow:focus-visible,
.thumb-button:focus-visible,
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible,
.shop-brand-hero:focus-visible,
.shop-side-links a:focus-visible,
.page-top-links a:focus-visible,
.product-about-links a:focus-visible,
.catalog-trust-note a:focus-visible,
.search-clear:focus-visible,
.ghost-action:focus-visible,
.icon-action:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(31, 111, 85, 0.24);
  outline-offset: 2px;
}

.empty-state,
.admin-log,
.panel-hero,
.metric,
.login-panel,
.shop-about {
  border: 1px solid rgba(31, 71, 55, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 24px 20px, rgba(202, 167, 131, 0.14) 0 1px, transparent 1.4px),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(237, 246, 238, 0.9));
  background-size: 46px 46px, auto;
}

.empty-state[hidden],
.load-sentinel[hidden] {
  display: none !important;
}

.empty-state h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.empty-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(31, 111, 85, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.82);
  color: var(--forest-strong);
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-shell {
  width: min(100%, 460px);
  padding: 20px;
}

.login-panel {
  padding: 28px;
}

.login-panel h1 {
  font-family: var(--font-heading);
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.login-note {
  margin: 10px 0 0;
  color: #47564e;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-form label {
  display: grid;
  gap: 6px;
}

.form-error,
.panel-message {
  margin: 0;
  color: var(--berry);
  font-weight: 700;
}

.panel-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 42px) 54px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}

.login-logo {
  display: block;
  width: min(100%, 210px);
  height: auto;
}

.load-sentinel {
  height: 1px;
  margin-top: 22px;
}

.product-page {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 42px) 60px;
}

.product-visual-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  width: min(1480px, 100%);
  gap: 16px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 42px) 0;
}

.product-brand-hero {
  grid-column: 1 / -1;
  min-height: clamp(190px, 20vw, 264px);
  margin-bottom: 0;
}

.product-trust-strip {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 71, 55, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
}

.product-trust-strip::before,
.product-trust-strip::after {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 54px;
  height: 100%;
  pointer-events: none;
  content: "";
}

.product-trust-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.98), transparent);
}

.product-trust-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 253, 248, 0.98), transparent);
}

.trust-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 9px 0;
  animation: trustTicker 34s linear infinite;
}

.trust-track span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(237, 248, 240, 0.82);
  color: var(--forest-strong);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.trust-track span::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest), var(--candle));
  box-shadow: 0 0 0 3px rgba(31, 111, 85, 0.08);
  content: "";
}

.product-search-box {
  width: min(100%, 360px);
  justify-self: end;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(230px, 292px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.product-content {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--forest-strong);
  font-weight: 850;
  text-decoration: none;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  margin-bottom: 22px;
}

.detail-gallery,
.detail-info,
.detail-description,
.related-products,
.product-about {
  border: 1px solid rgba(31, 71, 55, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.detail-gallery {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}

.gallery-main {
  position: relative;
  display: grid;
  touch-action: pan-y;
}

.detail-main-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: zoom-in;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(237, 246, 238, 0.88)),
    #f1f5f0;
}

.gallery-arrow,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 52px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--forest-strong);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.74;
  text-shadow: 0 1px 6px rgba(255, 253, 248, 0.9);
  transition: opacity 160ms ease, transform 160ms ease;
}

.gallery-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-arrow-prev {
  left: 4px;
}

.gallery-arrow-next {
  right: 4px;
}

.gallery-arrow:hover,
.lightbox-arrow:hover {
  opacity: 1;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f6ef;
  cursor: pointer;
  transition: border-color 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.thumb-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 250, 242, 0.86)),
    #f7f6ef;
  object-fit: contain;
  padding: 3px;
}

.thumb-button:hover,
.thumb-button.active {
  border-color: rgba(31, 111, 85, 0.4);
  box-shadow: 0 0 0 2px rgba(31, 111, 85, 0.08);
}

.thumb-button:hover img {
  filter: saturate(1.06);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(18, 24, 20, 0.48);
  backdrop-filter: blur(3px);
  --lightbox-pan-x: 0px;
  --lightbox-pan-y: 0px;
  --lightbox-zoom: 1;
}

.image-lightbox:focus {
  outline: 0;
}

.lightbox-stage {
  display: grid;
  width: min(1180px, 100%);
  max-height: calc(100vh - 78px);
  place-items: center;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 88px);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: default;
  object-fit: contain;
  transform: translate3d(var(--lightbox-pan-x), var(--lightbox-pan-y), 0) scale(var(--lightbox-zoom));
  transform-origin: center center;
  transition: transform 120ms ease;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.image-lightbox.is-zoomed .lightbox-stage {
  place-items: center;
}

.image-lightbox.is-zoomed .lightbox-stage img {
  cursor: grab;
}

.image-lightbox.is-panning .lightbox-stage img,
.image-lightbox.is-pinching .lightbox-stage img {
  cursor: grabbing;
  transition: none;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 253, 248, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.44);
}

.lightbox-arrow-prev {
  left: clamp(6px, 1.4vw, 18px);
}

.lightbox-arrow-next {
  right: clamp(6px, 1.4vw, 18px);
}

.lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 253, 248, 0.88);
  cursor: pointer;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.82;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.04);
}

.lightbox-counter {
  position: absolute;
  bottom: clamp(14px, 3vw, 26px);
  left: 50%;
  color: rgba(255, 253, 248, 0.8);
  font-size: 0.94rem;
  font-weight: 850;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
}

.detail-info {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.detail-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.86rem, 2.9vw, 2.95rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

.detail-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.detail-purchase strong {
  color: var(--berry);
  font-size: 2rem;
}

.detail-purchase span,
.sku-line {
  color: var(--muted);
}

.detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 220px);
  gap: 10px;
  align-items: center;
}

.purchase-note {
  max-width: 460px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-specs {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 71, 55, 0.1);
}

.product-specs h2 {
  margin: 0;
  color: var(--forest-strong);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-specs dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.product-specs div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(31, 71, 55, 0.08);
  border-radius: 7px;
  background: rgba(247, 250, 246, 0.72);
}

.product-specs dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.product-specs dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.detail-actions .buy-action,
.detail-actions .cart-action {
  min-height: 48px;
}

.detail-actions .cart-action {
  width: 48px;
}

.detail-description,
.related-products,
.product-about {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.detail-description h2,
.related-products h2 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  letter-spacing: 0;
}

.product-about h2 {
  max-width: 720px;
  font-size: clamp(1.56rem, 2.4vw, 2.2rem);
}

.product-about-links {
  margin-top: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
}

.related-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  border-color: rgba(31, 111, 85, 0.28);
  box-shadow: var(--shadow-soft);
}

.related-thumb {
  display: grid;
  width: 76px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 250, 242, 0.86)),
    #f7f6ef;
  color: rgba(31, 71, 55, 0.58);
  font-size: 0.68rem;
  font-weight: 850;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.related-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.related-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 750;
  line-height: 1.2;
}

.related-copy strong {
  color: var(--berry);
}

.shop-about {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 36px);
}

.shop-about h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.86rem, 3.6vw, 3.15rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.shop-about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 32px);
  margin-top: 18px;
}

.shop-about-copy p {
  margin: 0;
  color: #47564e;
  font-size: 1.02rem;
  line-height: 1.65;
}

.shop-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.shop-about-stats span {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(31, 71, 55, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, var(--paper));
  color: var(--muted);
  font-weight: 750;
}

.shop-about-stats strong {
  color: var(--forest-strong);
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1;
}

.shop-legal-note {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 71, 55, 0.12);
}

.shop-legal-note h3,
.legal-grid h2,
.legal-section h2 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.shop-legal-note p {
  max-width: 820px;
  margin: 0;
  color: #47564e;
  line-height: 1.6;
}

.legal-page {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
}

.page-top-links {
  width: min(1050px, 100%);
  margin: 0 auto;
  justify-content: flex-start;
}

.legal-article {
  max-width: 1050px;
  margin: 16px auto 0;
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid rgba(31, 71, 55, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
}

.legal-logo {
  width: clamp(148px, 16vw, 205px);
  height: auto;
  margin-bottom: 14px;
}

.legal-article h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.legal-lead {
  max-width: 780px;
  margin: 16px 0 0;
  color: #47564e;
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 32px);
  margin-top: 28px;
}

.about-story p {
  margin: 0;
  color: #47564e;
  font-size: 1.03rem;
  line-height: 1.68;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 30px;
}

.legal-grid section,
.legal-section {
  border-top: 1px solid rgba(31, 71, 55, 0.12);
  padding-top: 18px;
}

.legal-grid p,
.legal-section p,
.source-list {
  color: #47564e;
  line-height: 1.65;
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-section {
  margin-top: 24px;
}

.cookie-consent {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 30;
  display: grid;
  width: min(540px, calc(100vw - 24px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(31, 71, 55, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
}

.panel-hero {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 18px;
}

.panel-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-connect-action {
  width: fit-content;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-log {
  padding: 20px;
}

.admin-log h2 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.admin-log dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-log div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 71, 55, 0.1);
}

.admin-log dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-log dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandIntroEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageSheen {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@keyframes trustTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes skeletonPulse {
  from {
    background-position: 100% 0, 0 0;
  }

  to {
    background-position: -100% 0, 0 0;
  }
}

@media (max-width: 980px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

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

  .category-rail {
    display: none;
  }

  .shop-layout > .category-rail {
    margin-top: 0;
  }

  .shop-surface > .shop-brand-hero {
    margin-left: 0;
  }

  .mobile-categories {
    display: grid;
  }

  .shop-hero-side > .sort-box {
    display: none;
  }

  .mobile-sort-box {
    display: grid;
  }

  .shop-brand-hero {
    min-height: 220px;
    background:
      linear-gradient(90deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 250, 241, 0.91) 50%, rgba(255, 250, 241, 0.25) 100%),
      url("/assets/img/loft-hero.jpg") center right / cover no-repeat;
  }

  .hero-brand-copy {
    --hero-logo-width: clamp(220px, 34vw, 330px);
    width: min(86%, 640px);
  }

  .product-visual-shell {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .product-search-box {
    justify-self: stretch;
  }

  .shop-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .shop-hero-side {
    grid-template-columns: 1fr;
    align-items: end;
  }

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

  .shop-about-copy,
  .shop-about-stats,
  .about-story,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions button {
    flex: 1;
  }

  .catalog-trust-note {
    grid-template-columns: 1fr;
  }

  .catalog-trust-note nav {
    justify-content: flex-start;
  }

}

@media (max-width: 620px) {
  body {
    background-color: var(--bg);
    background-image:
      radial-gradient(circle at 1px 1px, rgba(138, 90, 60, 0.05) 0 1px, transparent 1.3px),
      linear-gradient(180deg, #fbf6ed 0%, #f6fbf3 54%, #fffdf8 100%);
    background-size: 34px 34px, auto;
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 10px 16px;
  }

  .brand-logo {
    width: 142px;
  }

  .top-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .top-actions form,
  .ghost-action {
    width: 100%;
  }

  .ghost-action {
    min-height: 36px;
  }

  .shop-layout,
  .product-page,
  .panel-layout {
    padding-top: 12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-visual-shell {
    gap: 8px;
    padding: 10px 10px 0;
  }

  .shop-brand-hero {
    width: 100%;
    min-height: 0;
    height: clamp(126px, 38vw, 148px);
    margin: 0 0 16px;
    margin-right: auto;
    background:
      linear-gradient(90deg, rgba(255, 250, 241, 0.99) 0%, rgba(255, 250, 241, 0.94) 52%, rgba(255, 250, 241, 0.24) 78%, rgba(255, 250, 241, 0.04) 100%),
      url("/assets/img/loft-hero.jpg") 72% center / cover no-repeat;
  }

  .product-brand-hero {
    height: clamp(112px, 32vw, 132px);
    margin-bottom: 0;
  }

  .product-trust-strip {
    border-radius: var(--radius);
    box-shadow: none;
  }

  .trust-track {
    padding: 5px 0;
    animation-duration: 28s;
  }

  .trust-track span {
    min-height: 26px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .product-search-box {
    width: 100%;
  }

  .hero-brand-copy {
    --hero-logo-width: clamp(170px, 50vw, 206px);
    width: min(68%, 250px);
    gap: 2px;
    padding: 10px 10px 8px;
    justify-items: start;
  }

  .hero-brand-copy p {
    font-size: clamp(0.74rem, 2.95vw, 0.88rem);
    line-height: 0.98;
  }

  .search-box input,
  .sort-box select {
    min-height: 44px;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 0.94rem;
  }

  .search-box input {
    padding-right: 45px;
  }

  .search-clear {
    right: 6px;
    bottom: 5px;
  }

  .shop-toolbar {
    gap: 14px;
    margin-bottom: 12px;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 0.74rem;
  }

  .shop-toolbar h1 {
    font-size: 1.72rem;
    line-height: 1.08;
  }

  .hero-copy {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .shop-hero-side {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shop-side-links {
    gap: 8px;
  }

  .page-top-links {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .page-brand-hero {
    margin-top: 0;
  }

  .shop-side-links a,
  .page-top-links a,
  .product-about-links a,
  .catalog-trust-note a {
    flex: 1 1 auto;
    min-height: 34px;
    padding: 8px 10px;
    justify-content: center;
    box-shadow: none;
    text-align: center;
  }

  .page-top-links a {
    min-width: 0;
    white-space: nowrap;
  }

  .hero-logo {
    width: var(--hero-logo-width);
  }

  .category-seo-note {
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .catalog-trust-note {
    margin-top: 18px;
    padding: 14px;
  }

  .catalog-trust-note nav {
    gap: 8px;
  }

  .status-strip {
    margin-bottom: 12px;
    padding: 9px 10px;
  }

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

  .product-media {
    aspect-ratio: 4 / 5.15;
  }

  .product-media img {
    inset: 8px 8px 10px;
    width: calc(100% - 16px);
    height: calc(100% - 18px);
    object-position: center center;
  }

  .product-body {
    gap: 8px;
    padding: 10px;
  }

  .product-category {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .product-card h2 {
    min-height: 3.6em;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .price-row strong {
    font-size: 1.05rem;
  }

  .details-action {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .shelf-note {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 14px;
  }

  .shelf-note p {
    font-size: 1rem;
    line-height: 1.18;
  }

  .shelf-note span {
    justify-self: start;
    font-size: 0.82rem;
  }

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

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

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

  .product-detail {
    grid-template-columns: 1fr;
  }

  .detail-info h1 {
    font-size: 2rem;
  }

  .product-specs dl {
    grid-template-columns: 1fr;
  }

  .thumb-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-arrow,
  .lightbox-arrow {
    width: 34px;
    height: 38px;
    font-size: 1.78rem;
  }

  .gallery-arrow-prev {
    left: 1px;
  }

  .gallery-arrow-next {
    right: 1px;
  }

  .lightbox-arrow-prev {
    left: 4px;
  }

  .lightbox-arrow-next {
    right: 4px;
  }

  .lightbox-stage {
    max-height: calc(100vh - 126px);
  }

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

  .related-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 102px;
  }

  .related-thumb {
    width: 68px;
    height: 88px;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-media {
    aspect-ratio: 4 / 5.2;
  }

  .product-body {
    gap: 6px;
    padding: 8px;
  }

  .product-category {
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .product-card h2 {
    min-height: 3.64em;
    font-size: 0.8rem;
    line-height: 1.18;
  }

  .price-row strong {
    font-size: 0.96rem;
  }

  .details-action {
    min-height: 34px;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .brand-intro {
    transition-duration: 120ms !important;
  }
}
