/*
Theme Name: HomeHaven Market
Author: Codex
Description: WordPress-managed eBay home marketplace with Apple-inspired motion.
Version: 4.5.0
*/

:root {
  --ink: #111315;
  --muted: #66706b;
  --paper: #f5f5f7;
  --surface: #ffffff;
  --line: rgba(17, 19, 21, .1);
  --moss: #203c34;
  --sage: #5c756b;
  --coral: #c65a46;
  --sky: #edf4f3;
  --ease-apple: cubic-bezier(.16, 1, .3, 1);
  --shadow-soft: 0 24px 80px rgba(17, 19, 21, .12);
  --scroll-progress: 0;
  --hero-shift: 0px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--moss);
}
.skip-link:focus { top: 14px; }
.promo-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 16px;
  color: #f7f7f8;
  background: #111315;
  font-size: 13px;
  font-weight: 760;
}
.promo-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.promo-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd2c3;
}
.site-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 19, 21, .08);
  background: rgba(245, 245, 247, .82);
  backdrop-filter: saturate(180%) blur(22px);
}
.utility {
  display: grid;
  grid-template-columns: auto minmax(260px, 680px) auto;
  align-items: center;
  gap: 18px;
  padding: 13px clamp(18px, 5vw, 72px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 860;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(145deg, #1e3c35, #86b9ab);
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(32, 60, 52, .2);
}
.search {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 46px;
  border: 1px solid rgba(17, 19, 21, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  overflow: hidden;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 16px;
  outline: none;
  background: transparent;
}
.search button {
  width: 54px;
  border: 0;
  color: #fff;
  background: var(--moss);
  cursor: pointer;
  transition: background .36s var(--ease-apple), opacity .36s var(--ease-apple);
}
.search button:hover { background: #152821; }
.quick-links, .nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 760;
}
.quick-links {
  font-size: 14px;
  white-space: nowrap;
}
.quick-links a.social-mini { color: var(--sage); }
.nav {
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 18px 13px;
  overflow-x: auto;
  white-space: nowrap;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: #26302d;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .5s var(--ease-apple);
}
.nav a:hover::after { right: 0; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  min-height: 700px;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(143, 210, 195, .24), transparent 28rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6.1vw, 86px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy p {
  max-width: 560px;
  margin: 22px 0 28px;
  color: #3d4542;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.48;
}
.hero-stage {
  position: relative;
  min-height: clamp(430px, 50vw, 620px);
  border-radius: 28px;
  overflow: hidden;
  background: #dfe8e5;
  box-shadow: 0 34px 110px rgba(17, 19, 21, .18);
  isolation: isolate;
  transform: translate3d(0, calc(var(--hero-shift) * .45), 0);
  transition: transform .2s linear;
}
.hero-stage::before { display: none; }
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.22));
  z-index: -1;
}
.stage-photo {
  position: absolute;
  inset: clamp(20px, 4vw, 42px) clamp(20px, 4vw, 42px) auto auto;
  width: min(280px, 42%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(17, 19, 21, .18);
  transform: translate3d(0, calc(var(--hero-shift) * -.25), 0);
}
.stage-photo strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1;
}
.stage-photo span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 720;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.metric {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(17, 19, 21, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(18px);
}
.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--moss);
  font-size: 26px;
  line-height: 1;
}
.metric span {
  color: #39433f;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.3;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn, .bin-button, .quick-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  color: #fff;
  background: var(--moss);
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
  transition:
    background .55s var(--ease-apple),
    color .55s var(--ease-apple),
    border-color .55s var(--ease-apple),
    box-shadow .55s var(--ease-apple),
    transform .55s var(--ease-apple);
}
.btn:hover, .bin-button:hover, .quick-view-button:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 12px 34px rgba(32, 60, 52, .14);
}
.btn.alt {
  color: var(--moss);
  border-color: rgba(32, 60, 52, .22);
  background: rgba(255, 255, 255, .76);
}
.band {
  padding: 54px clamp(18px, 5vw, 72px);
}
.band-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}
.band-title h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: 0;
}
.band-title p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.discovery-panel {
  position: sticky;
  top: 116px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(17, 19, 21, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 54px rgba(17, 19, 21, .08);
  backdrop-filter: saturate(180%) blur(22px);
}
.catalog-search {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(17, 19, 21, .1);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #fff;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 19, 21, .1);
  border-radius: 999px;
  color: #34423d;
  background: #fff;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition:
    background .55s var(--ease-apple),
    color .55s var(--ease-apple),
    border-color .55s var(--ease-apple),
    opacity .55s var(--ease-apple);
}
.filter-pill.is-active {
  color: #fff;
  border-color: var(--moss);
  background: var(--moss);
}
.result-count {
  min-width: 108px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(17, 19, 21, .08);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(17, 19, 21, .07);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: saturate(.98);
  transition:
    opacity .85s var(--ease-apple),
    transform .85s var(--ease-apple),
    filter .85s var(--ease-apple),
    box-shadow .7s var(--ease-apple),
    border-color .7s var(--ease-apple);
  will-change: opacity, transform, filter;
}
.product-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.product-card:hover {
  border-color: rgba(32, 60, 52, .18);
  box-shadow: 0 24px 72px rgba(17, 19, 21, .12);
}
.product-card.is-filtering {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  filter: blur(8px) saturate(.9);
  pointer-events: none;
}
.product-card.is-hidden { display: none; }
.image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3.15;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.05s var(--ease-apple), filter 1.05s var(--ease-apple);
}
.product-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}
.image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .28));
  opacity: .82;
}
.badge-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 19, 21, .62);
  font-size: 12px;
  font-weight: 820;
  backdrop-filter: blur(14px);
}
.product-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}
.product-card h3 {
  min-height: 48px;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.trust-note {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.quick-view-button {
  color: var(--moss);
  border-color: rgba(17, 19, 21, .1);
  background: #fff;
}
.bin-button { width: 100%; }
.source-link {
  color: var(--sage);
  font-size: 13px;
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed rgba(17, 19, 21, .14);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, .74);
  text-align: center;
}
.empty-state.is-visible { display: block; }
.after-sales {
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(237,244,243,.95));
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  padding: 22px;
  border: 1px solid rgba(17, 19, 21, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(17, 19, 21, .06);
}
.service-card h3 { margin: 0 0 8px; }
.service-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.48;
}
.service-card a {
  color: var(--coral);
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 38px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #111315;
}
.footer h3 { margin: 0 0 12px; }
.footer p, .footer a {
  display: block;
  margin: 0 0 9px;
  color: #e8ece7;
}
.homehaven-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s var(--ease-apple);
}
.homehaven-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 19, 21, .34);
  backdrop-filter: blur(22px);
  cursor: pointer;
}
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(540px, 100%);
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(251, 251, 253, .94);
  box-shadow: -28px 0 90px rgba(0, 0, 0, .2);
  transform: translate3d(104%, 0, 0);
  transition: transform .68s var(--ease-apple);
}
.homehaven-drawer.is-open .drawer-panel { transform: translate3d(0, 0, 0); }
.drawer-close {
  justify-self: end;
  width: 44px;
  height: 44px;
  margin: 14px;
  border: 1px solid rgba(17, 19, 21, .1);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.drawer-content {
  padding: 0 24px 28px;
  overflow: auto;
}
.drawer-content img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 20px;
}
.drawer-kicker {
  margin: 0 0 8px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}
.drawer-content h3 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
}
.drawer-content p {
  color: var(--muted);
  line-height: 1.55;
}
.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .95s var(--ease-apple), transform .95s var(--ease-apple);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .hero-stage, .hero-stage::before, .stage-photo, .product-card, [data-reveal] {
    opacity: 1;
    transform: none !important;
    filter: none !important;
  }
}
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-stage { min-height: 500px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discovery-panel { grid-template-columns: 1fr; }
  .result-count { text-align: left; }
}
@media (max-width: 900px) {
  .utility { grid-template-columns: 1fr; }
  .quick-links { justify-content: space-between; flex-wrap: wrap; }
  .nav { justify-content: flex-start; }
  .product-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: 1fr 1fr; }
  .discovery-panel { top: 0; }
}
@media (max-width: 620px) {
  .hero { padding-top: 42px; }
  .hero-stage { min-height: 390px; border-radius: 22px; }
  .stage-photo { width: calc(100% - 32px); inset: auto 16px 16px 16px; }
  .hero-stats, .product-grid, .service-grid, .footer, .card-actions, .drawer-actions { grid-template-columns: 1fr; }
  .band-title { align-items: flex-start; flex-direction: column; }
  .btn { width: 100%; }
  .discovery-panel { position: relative; top: auto; }
}

/* HomeHaven 4.2.0 carousel and Apple-style nav */
.nav-utility {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(32, 60, 52, .16);
  border-radius: 999px;
  color: var(--moss);
  background: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 820;
}
.nav {
  position: relative;
  overflow: visible;
  gap: clamp(8px, 1.5vw, 18px);
}
.nav-item { position: relative; display: inline-flex; }
.nav-link,
.nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #26302d;
  transition: color .42s var(--ease-apple), background .42s var(--ease-apple);
}
.nav .nav-link::after { display: none; }
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-link:hover {
  color: #0f211c;
  background: rgba(255,255,255,.64);
}
.nav-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(17,19,21,.08);
  border-radius: 22px;
  background: rgba(251,251,253,.86);
  box-shadow: 0 28px 90px rgba(17,19,21,.16);
  backdrop-filter: saturate(180%) blur(28px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -8px, 0) scale(.985);
  transform-origin: top center;
  transition: opacity .34s var(--ease-apple), transform .46s var(--ease-apple);
}
.nav-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel,
.nav-item.is-open .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}
.nav-panel a {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 14px;
  white-space: normal;
  transition: background .32s var(--ease-apple), transform .32s var(--ease-apple);
}
.nav-panel a::after { display: none; }
.nav-panel a:hover {
  background: rgba(32,60,52,.08);
  transform: translate3d(0, -1px, 0);
}
.nav-panel strong {
  font-size: 14px;
  line-height: 1.2;
}
.nav-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.homehaven-carousel.hero-stage {
  display: grid;
  min-height: clamp(430px, 50vw, 620px);
  background: #dfe8e5;
}
.hero-stage::before,
.hero-stage::after,
.stage-photo {
  display: none;
}
.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.05s var(--ease-apple), transform 1.3s var(--ease-apple);
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-controls {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.carousel-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(17,19,21,.28);
  backdrop-filter: blur(18px);
  cursor: pointer;
  pointer-events: auto;
  transition: transform .44s var(--ease-apple), background .44s var(--ease-apple);
}
.carousel-arrow:hover {
  transform: translate3d(0, -1px, 0);
  background: rgba(17,19,21,.42);
}
.carousel-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(17,19,21,.24);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  cursor: pointer;
  transition: width .42s var(--ease-apple), background .42s var(--ease-apple);
}
.carousel-dot.is-active {
  width: 24px;
  background: #fff;
}
@media (max-width: 900px) {
  .nav { justify-content: flex-start; overflow-x: auto; overflow-y: visible; }
  .nav-panel { left: 0; transform: translate3d(0, -8px, 0) scale(.985); }
  .nav-item:hover .nav-panel,
  .nav-item:focus-within .nav-panel,
  .nav-item.is-open .nav-panel {
    transform: translate3d(0, 0, 0) scale(1);
  }
  .nav-utility { justify-self: start; }
}
@media (max-width: 620px) {
  .carousel-controls {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
}

/* HomeHaven 4.2.1 mobile carousel precedence */
@media (max-width: 900px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
  }
  .homehaven-carousel.hero-stage {
    order: -1 !important;
    width: 100%;
  }
}
@media (max-width: 620px) {
  .homehaven-carousel.hero-stage {
    order: -1 !important;
    min-height: 330px !important;
  }
  .hero-copy {
    width: 100%;
  }
}

/* HomeHaven 4.4.0 catalog gallery and category rail */
.store-signal {
  color: inherit;
  text-decoration: none;
  transition:
    transform .55s var(--ease-apple),
    border-color .55s var(--ease-apple),
    background .55s var(--ease-apple),
    box-shadow .55s var(--ease-apple);
}
.store-signal:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(32, 60, 52, .18);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 48px rgba(32, 60, 52, .12);
}
.discovery-panel {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) auto auto;
}
.category-scroller {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.category-scroller .filter-row {
  width: max-content;
  min-width: 100%;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}
.category-scroller .filter-pill,
.category-menu .filter-pill {
  white-space: nowrap;
}
.category-overflow {
  position: relative;
  z-index: 3;
}
.category-overflow summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 19, 21, .1);
  border-radius: 999px;
  color: #34423d;
  background: #fff;
  font-size: 13px;
  font-weight: 820;
  list-style: none;
  cursor: pointer;
  transition:
    background .42s var(--ease-apple),
    color .42s var(--ease-apple),
    border-color .42s var(--ease-apple),
    transform .42s var(--ease-apple);
}
.category-overflow summary::-webkit-details-marker { display: none; }
.category-overflow[open] summary,
.category-overflow summary:hover {
  color: #fff;
  border-color: var(--moss);
  background: var(--moss);
  transform: translate3d(0, -1px, 0);
}
.category-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  max-height: min(420px, 70vh);
  padding: 12px;
  border: 1px solid rgba(17, 19, 21, .08);
  border-radius: 18px;
  background: rgba(251, 251, 253, .94);
  box-shadow: 0 24px 80px rgba(17, 19, 21, .16);
  backdrop-filter: saturate(180%) blur(24px);
  overflow: auto;
}
.category-menu .filter-pill {
  width: 100%;
  justify-content: flex-start;
  border-radius: 12px;
}
.product-card[data-gallery] .image-wrap::before {
  content: "Gallery";
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #203c34;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 860;
  backdrop-filter: blur(14px);
}
.drawer-gallery {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.drawer-content .drawer-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 0;
  background: #e9efed;
}
.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74px;
  gap: 10px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #eef3f1;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color .34s var(--ease-apple),
    transform .34s var(--ease-apple),
    box-shadow .34s var(--ease-apple);
}
.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--moss);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 12px 30px rgba(32, 60, 52, .14);
}
.drawer-content .gallery-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
  border-radius: 11px;
}
.drawer-actions {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1100px) {
  .discovery-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .catalog-search {
    grid-column: 1 / -1;
  }
  .category-scroller {
    grid-column: 1 / 2;
  }
}
@media (max-width: 720px) {
  .discovery-panel {
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .category-overflow {
    display: none;
  }
  .category-scroller {
    width: 100%;
    margin-right: -12px;
    padding-right: 12px;
  }
  .category-scroller .filter-row {
    min-width: max-content;
  }
  .result-count {
    min-width: 0;
    text-align: left;
  }
  .drawer-panel {
    width: 100%;
  }
  .gallery-thumbs {
    grid-auto-columns: 64px;
  }
  .gallery-thumb {
    width: 64px;
    height: 64px;
  }
}

/* HomeHaven 4.4.1 Quick view left preview stage */
.homehaven-drawer {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 34vw);
}
.drawer-backdrop {
  z-index: 0;
}
.drawer-spotlight {
  position: absolute;
  inset: 0 min(540px, 34vw) 0 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 64px);
  pointer-events: none;
}
.drawer-spotlight::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 3vw, 44px);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: clamp(22px, 3vw, 42px);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .32), transparent 20rem),
    rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 28px 120px rgba(17, 19, 21, .24);
  backdrop-filter: blur(28px) saturate(145%);
}
.drawer-preview-shell {
  position: relative;
  z-index: 1;
  width: min(760px, 78%);
  height: min(78vh, 620px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: clamp(20px, 2.4vw, 34px);
  background: rgba(255, 255, 255, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    0 34px 120px rgba(17, 19, 21, .2);
  overflow: hidden;
}
.drawer-stage-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(17, 19, 21, .18));
  transform: translate3d(0, 0, 0) scale(.992);
  transition:
    opacity .28s var(--ease-apple),
    transform .42s var(--ease-apple);
}
.homehaven-drawer.is-open .drawer-stage-image {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.drawer-panel {
  z-index: 2;
  width: min(540px, 34vw);
}
.drawer-gallery-strip {
  margin-bottom: 18px;
}
.drawer-mobile-image {
  display: none;
}
.drawer-gallery-strip .gallery-thumbs {
  grid-auto-columns: 82px;
  padding: 4px 0 8px;
}
.drawer-gallery-strip .gallery-thumb {
  width: 82px;
  height: 82px;
}
@media (max-width: 980px) {
  .homehaven-drawer {
    display: block;
  }
  .drawer-spotlight {
    display: none;
  }
  .drawer-panel {
    width: min(540px, 100%);
  }
  .drawer-content .drawer-mobile-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 22px;
    background: #eef3f1;
  }
}
@media (max-width: 720px) {
  .drawer-gallery-strip .gallery-thumbs {
    grid-auto-columns: 64px;
  }
  .drawer-gallery-strip .gallery-thumb {
    width: 64px;
    height: 64px;
  }
}

/* HomeHaven 4.5.0 account and API foundation */
.page-main {
  min-height: 70vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(143, 210, 195, .22), transparent 26rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}
.account-shell {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}
.account-hero {
  max-width: 760px;
  margin-bottom: 28px;
}
.account-eyebrow {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 860;
  text-transform: uppercase;
}
.account-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}
.account-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.account-notice {
  max-width: 920px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 760;
}
.account-notice-success {
  color: #17352d;
  background: rgba(143, 210, 195, .28);
}
.account-notice-error {
  color: #752f25;
  background: rgba(209, 114, 93, .18);
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.account-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(17, 19, 21, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 48px rgba(17, 19, 21, .07);
  backdrop-filter: blur(18px);
}
.account-panel h2 {
  margin: 0;
  font-size: 22px;
}
.account-muted,
.account-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}
.account-form {
  display: grid;
  gap: 12px;
}
.account-form label {
  display: grid;
  gap: 7px;
  color: #24312d;
  font-size: 13px;
  font-weight: 820;
}
.account-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(17, 19, 21, .12);
  border-radius: 12px;
  padding: 0 13px;
  background: #fff;
  outline: none;
}
.account-form input:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(32, 60, 52, .12);
}
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  color: #fff;
  background: var(--moss);
  font-weight: 820;
  cursor: pointer;
  transition: transform .34s var(--ease-apple), box-shadow .34s var(--ease-apple);
}
.account-button:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 14px 34px rgba(32, 60, 52, .16);
}
.account-link {
  color: var(--sage);
  font-size: 13px;
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-api-panel code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #203c34;
  background: rgba(143, 210, 195, .18);
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}
