/* MyHomeThings — Etsy-inspired storefront */
:root {
  --bg: #ffffff;
  --ink: #222222;
  --muted: #595959;
  --line: #e1e3df;
  --cream: #fdebd2;
  --orange: #f1641e;
  --orange-dark: #e04e00;
  --pill: #222222;
  --max: 1400px;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 0.5rem 1rem; z-index: 99;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* —— Top bar —— */
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0.55rem;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  font: 600 0.95rem var(--sans);
  color: var(--ink);
  cursor: pointer;
  padding: 0.35rem 0.25rem;
}
.hamburger {
  width: 18px; height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 5px / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 10px / 100% 2px no-repeat;
}
.search {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
  background: #fff;
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.7rem 1.1rem;
  font: 400 1rem var(--sans);
  min-width: 0;
}
.search-go {
  width: 2.75rem;
  border: 0;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.search-go:hover { background: var(--orange-dark); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font: 500 0.95rem var(--sans);
}
.top-actions a { text-decoration: none; }
.top-actions a:hover { text-decoration: underline; }
.icon-btn {
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none !important;
  padding: 0.25rem;
}

.subnav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem 1.25rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font: 500 0.92rem var(--sans);
}
.subnav a {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.subnav a:hover { text-decoration: underline; }
.gift { font-size: 0.95rem; }

/* —— Hero (Etsy mosaic) —— */
.hero-etsy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 420px;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  background: var(--cream);
  border-radius: 8px;
  padding: 6px;
  min-height: 380px;
}
.tile {
  border-radius: 4px;
  background: center / cover no-repeat var(--img), #e8dcc8;
  min-height: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1rem 0.5rem 1rem 0.75rem;
}
.hero-kicker {
  margin: 0;
  font: 500 0.95rem var(--sans);
  color: var(--muted);
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pill);
  color: #fff;
  text-decoration: none;
  font: 600 0.95rem var(--sans);
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill-dark:hover { background: #000; transform: translateY(-1px); }

.hero-features {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}
.feature-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  min-height: 180px;
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.feature-card:hover img { transform: scale(1.04); }
.price-chip {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: 600 0.85rem var(--sans);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}

/* —— Interest rows —— */
.interest {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 0.5rem;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pill-outline {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: 600 0.9rem var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.pill-outline:hover { background: #f5f5f5; }

.interest-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  position: relative;
}
.interest-item {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  text-decoration: none;
  font: 600 0.95rem var(--sans);
}
.interest-item span:last-child { display: block; margin-top: 0.65rem; }
.blob {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: center / cover no-repeat var(--img), #eee;
  transition: transform 0.2s ease;
}
.blob.round { border-radius: 50%; }
.interest-item:hover .blob { transform: scale(1.04); }
.row-next {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 3.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}
.row-next:hover { background: #000; }

.disclosure {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: #fafafa;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner strong { color: var(--ink); font-family: var(--serif); }

/* Fresh finds (home) */
.fresh-finds {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1.75rem;
}
.home-products { margin: 0; }
.home-products .hq-skeleton {
  min-height: 220px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: mht-shimmer 1.2s ease-in-out infinite;
  border: 0;
}
@keyframes mht-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.card-ph {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: #f3f3f1;
}
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.35;
}
.card-price {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.home-empty {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

/* Catalog / product (shared) */
main.page { max-width: var(--max); margin: 0 auto; padding: 1.25rem; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font: 600 0.95rem var(--sans);
}
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.card a { color: inherit; text-decoration: none; display: block; padding: 0.75rem; font-size: 0.95rem; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: 0.5rem; border-radius: 6px; }
.gallery { display: flex; gap: 0.5rem; overflow-x: auto; margin: 1rem 0; }
.gallery img { height: 180px; border-radius: 8px; }
.price { font-weight: 600; }

/* —— PDP (Etsy-like listing) —— */
.page--pdp { max-width: 1200px; padding-top: 0.75rem; }
.pdp-crumbs ol {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem;
  font-size: 0.82rem; color: var(--muted);
}
.pdp-crumbs li:not(:last-child)::after { content: "›"; margin-left: 0.35rem; color: #bbb; }
.pdp-crumbs a { color: var(--muted); text-decoration: none; }
.pdp-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.75rem 2.25rem;
  align-items: start;
}
.pdp-gallery { position: relative; }
.pdp-main-fig {
  margin: 0;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}
.pdp-main-fig img {
  width: 100%; height: 100%; object-fit: contain; background: #fff;
}
.pdp-main-fig--empty {
  display: grid; place-items: center; color: var(--muted); font-size: 0.95rem;
}
.pdp-thumbs {
  list-style: none; margin: 0.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.pdp-thumb {
  width: 64px; height: 64px; padding: 0; border-radius: 8px;
  border: 2px solid transparent; background: #fff; cursor: pointer; overflow: hidden;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active, .pdp-thumb:hover { border-color: var(--ink); }
.pdp-buy {
  position: sticky; top: 5.5rem;
  padding: 0.25rem 0 1rem;
}
.pdp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--orange);
}
.pdp-title {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.02em;
}
.pdp-rating { margin: 0 0 0.85rem; font-size: 0.92rem; color: var(--ink); }
.pdp-stars { color: #222; letter-spacing: 0.05em; }
.pdp-rating-count { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.pdp-price { margin: 0 0 0.85rem; }
.pdp-price-label { display: block; font-size: 0.8rem; color: var(--muted); }
.pdp-price-val {
  font-family: var(--serif);
  font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em;
}
.pdp-price-note { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.pdp-buy-blurb {
  margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; line-height: 1.45;
}
.pdp-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.9rem 1.25rem;
  background: var(--orange); color: #fff; border-radius: 999px;
  font: 700 1rem var(--sans); text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pdp-cta:hover { background: var(--orange-dark); }
.pdp-cta:active { transform: translateY(1px); }
.pdp-trust {
  list-style: none; margin: 1rem 0 0; padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.4rem;
  font-size: 0.88rem; color: var(--muted);
}
.pdp-trust code {
  font-size: 0.82rem; background: #f4f4f2; padding: 0.1rem 0.35rem; border-radius: 4px; color: var(--ink);
}
.pdp-disclosure {
  margin: 0.85rem 0 0; font-size: 0.78rem; color: #888; line-height: 1.4;
}
.pdp-details, .pdp-faq, .pdp-reviews, .pdp-related {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.pdp-details h2, .pdp-faq h2, .pdp-reviews h2, .pdp-related h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.35rem; letter-spacing: -0.02em;
}
.pdp-cats { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.pdp-desc { font-size: 0.98rem; line-height: 1.6; color: var(--ink); }
.pdp-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.75rem 0; }
.pdp-faq-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.55rem;
  background: #fff;
}
.pdp-faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none;
}
.pdp-faq-item summary::-webkit-details-marker { display: none; }
.pdp-faq-item summary::after {
  content: "+"; float: right; color: var(--muted); font-weight: 500;
}
.pdp-faq-item[open] summary::after { content: "–"; }
.pdp-faq-item p { margin: 0.65rem 0 0.15rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.pdp-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pdp-review {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: #fff;
}
.pdp-review-meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem;
}
.pdp-review h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.pdp-review p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: #333; }
.pdp-review-note { margin: 1rem 0 0; font-size: 0.82rem; color: var(--muted); }
.pdp-related-grid { margin: 0; }

@media (max-width: 900px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .pdp-buy { position: static; }
}

@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "cat logo actions"
      "search search search";
  }
  .cat-btn { grid-area: cat; }
  .logo { grid-area: logo; justify-self: start; }
  .search { grid-area: search; }
  .top-actions { grid-area: actions; }
  .hero-etsy {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mosaic { min-height: 220px; max-height: 260px; }
  .hero-copy { padding: 0.5rem 0; }
  .hero-copy h1 { max-width: none; }
  .hero-features { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 160px; }
  .feature-card { min-height: 160px; }
}
@media (max-width: 560px) {
  .cat-btn span:last-child { display: none; }
  .subnav { gap: 0.5rem 0.9rem; font-size: 0.85rem; }
  .hero-features { grid-template-columns: 1fr; }
}
