/* ==========================================================================
   WUMITH STORE — PAGE STYLES (1 of 2)
   Hero, category tiles, product cards, shop toolbar, newsletter strip
   ========================================================================== */

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--linen) 0%, var(--bone) 78%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.6rem, 6vw, 5rem);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 2.2rem 2.8rem; }
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--clay);
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.28em;
  background: rgba(224, 160, 60, 0.35);
  border-radius: 3px;
  z-index: -1;
}

.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.hero__proof li { display: flex; align-items: center; gap: 0.45rem; list-style: none; }
.hero__proof ul { display: contents; }
.hero__proof svg { width: 17px; height: 17px; color: var(--olive); flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: 200px 200px var(--r-lg) var(--r-lg);
  box-shadow: 0 30px 60px -40px rgba(36, 26, 18, 0.8);
}
@media (max-width: 900px) {
  .hero__media img { aspect-ratio: 16 / 11; border-radius: var(--r-lg); }
}

.hero__badge {
  position: absolute;
  left: -8px;
  bottom: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 230px;
}
.hero__badge strong { display: block; font-size: 0.9rem; line-height: 1.25; }
.hero__badge span { font-size: 0.76rem; color: var(--muted); }
.hero__badge svg { width: 26px; height: 26px; color: var(--clay); flex: none; }

/* ---------------- MARQUEE STRIP ---------------- */
.strip {
  background: var(--ink);
  color: #EADCCB;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding-block: 0.7rem;
  overflow: hidden;
  white-space: nowrap;
}
.strip__inner {
  display: inline-flex;
  gap: 3rem;
  padding-left: var(--gutter);
  animation: slide 38s linear infinite;
}
.strip span { display: inline-flex; align-items: center; gap: 3rem; }
.strip span::after { content: "◦"; color: var(--honey); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- CATEGORY TILES ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 1rem;
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--sand);
  color: var(--ink);
}
.cat-tile__num {
  position: absolute;
  top: 0.85rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(36, 26, 18, 0.07);
  font-weight: 600;
}
.cat-tile__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.cat-tile__count { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.cat-tile__arrow {
  position: absolute;
  top: 1rem; left: 1.1rem;
  width: 26px; height: 26px;
  color: var(--clay);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cat-tile:hover .cat-tile__arrow { opacity: 1; transform: translateX(0); }

/* ---------------- PRODUCT CARDS ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 1.15rem;
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sand);
}
.card:focus-within { border-color: var(--clay); }

.card__media {
  position: relative;
  display: block;
  background: var(--linen);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__cat {
  position: absolute;
  left: 0.6rem; top: 0.6rem;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem 0.95rem;
  flex: 1;
}

.card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}
.card__name a { color: inherit; text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }  /* whole card clickable */
.card__name a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--clay); outline-offset: 2px; }

.card__detail { font-size: 0.78rem; color: var(--muted); margin: 0; }

.card__price {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.12rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.card__price .cur { font-size: 0.85em; color: var(--ink-soft); font-weight: 600; }

.card__actions { display: flex; gap: 0.4rem; padding: 0 0.9rem 0.9rem; }
.card__add {
  flex: 1;
  position: relative;
  z-index: 2;
  font-size: 0.83rem;
  padding: 0.6rem 0.8rem;
}

/* ---------------- SHOP TOOLBAR ---------------- */
.shop-head {
  background: var(--linen);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  padding: 0;
  list-style: none;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--clay-deep); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--sand); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.4rem;
}
.search-box {
  position: relative;
  flex: 1 1 320px;
}
.search-box svg {
  position: absolute;
  left: 0.95rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-box .input { padding-left: 2.7rem; border-radius: var(--r-pill); }

.sort-box { flex: 0 0 auto; }
.sort-box .select { border-radius: var(--r-pill); padding-block: 0.72rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--linen); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.chip__n { opacity: 0.6; font-size: 0.78em; margin-left: 0.15rem; }

.results-line {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

/* ---------------- EMPTY STATE ---------------- */
.empty-state {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  border: 1px dashed var(--sand);
  border-radius: var(--r-lg);
  background: var(--white);
}
.empty-state svg { width: 44px; height: 44px; color: var(--sand); margin: 0 auto 1rem; }
.empty-state h3 { margin-bottom: 0.4rem; }
.empty-state p { color: var(--muted); max-width: 40ch; margin-inline: auto; }

/* ---------------- NEWSLETTER / CTA BAND ---------------- */
.band {
  background: var(--olive);
  color: #F1EADC;
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.band h2 { color: #FFFCF7; margin-bottom: 0.5rem; }
.band p { color: #D8CFBC; margin: 0; max-width: 46ch; }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
@media (max-width: 760px) { .band__actions { justify-content: flex-start; } }
.band .btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #FFFCF7; }
.band .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #FFFCF7; border-color: #fff; }
