/**
 * Apparel landing (2.0) — page-specific hero + self-care banner + accent
 * tokens. The product grid / sidebar / blog shell comes from world-grid.css.
 * Enqueued on page-mercantile.php.
 */

/* Accent contract consumed by world-grid.css. */
.ts-apparel {
  --wg-cat: var(--mascot);
  --wg-accent: var(--terra);
  --wg-search-focus: var(--gold);
  background: var(--white);
}

/* ── HERO ── */
.ts-apparel .hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 680px;
  border-bottom: 1px solid var(--border);
}
/* Tiffiny's Goods photo (#319), one file per width: desktop 2000x1333 (3:2),
   tablet 1536x2048 (3:4), phone 1080x1920 (9:16). Swap a file for a sharper
   one with the same name and nothing else changes. --hero-desktop is the
   Theme Options image, if one is set; it replaces the desktop photo only. */
.ts-apparel .hero-bg {
  position: absolute;
  inset: 0;
  background-color: #F3EFEA;
  background-image: var(--hero-desktop, url('../images/goods/goods-hero-desktop-2000x1333.jpg'));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}
.ts-apparel .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.4) 62%, rgba(255,255,255,0) 85%);
}
.ts-apparel .hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 80px 72px;
  max-width: 780px;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.ts-apparel .hero-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 16px;
}
.ts-apparel .hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}
.ts-apparel .hero-title em { font-style: italic; font-weight: 400; color: var(--charcoal); }
.ts-apparel .hero-ctas { display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.ts-apparel .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terra);
  color: #fff;
  border: 1px solid var(--terra);
  border-radius: 4px;
  padding: 13px 32px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.ts-apparel .hero-btn:hover { background: var(--mascot); border-color: var(--mascot); }

/* ── SELF-CARE BANNER ── */
.ts-apparel .selfcare-banner {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ts-apparel .selfcare-banner-bg {
  position: absolute;
  inset: -40% 0; /* first paint; main.js sizes it to section + 2 × max travel */
  background-image: url('../images/apparel-selfcare-bg.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
}
.ts-apparel .selfcare-banner-bg::after { content: ''; position: absolute; inset: 0; background: rgba(74, 110, 88, 0.15); }
.ts-apparel .selfcare-banner-inner {
  position: relative;
  z-index: 2;
  padding: 80px 8%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-apparel .selfcare-banner-card {
  background: #fff;
  padding: 72px 80px;
  max-width: 760px;
  width: 100%;
  border-top: 4px solid #7faf79;
  border-radius: 12px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.14);
  text-align: center;
}
.ts-apparel .selfcare-banner-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4728a;
  margin-bottom: 20px;
}
.ts-apparel .selfcare-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.ts-apparel .selfcare-banner-title em { font-style: normal; font-weight: 700; color: #c4728a; }
.ts-apparel .selfcare-banner-body {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.ts-apparel .selfcare-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7faf79;
  color: #fff;
  border: 1px solid #7faf79;
  padding: 13px 36px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease-out;
}
.ts-apparel .selfcare-banner-cta:hover { background: var(--dana-point); border-color: var(--dana-point); }

/* ── RESPONSIVE ── */
/* Tablet and phone: she fills the picture, so the words move to the bottom on
   a white fade that comes up from below and never covers her face (#319). */
@media (max-width: 960px) {
  .ts-apparel .hero { min-height: 780px; align-items: flex-end; }
  /* a little higher: less space above her head, more of the shirt */
  .ts-apparel .hero-bg { background-image: url('../images/goods/goods-hero-tablet-1536x2048.jpg'); background-position: center 41%; }
  .ts-apparel .hero-overlay { background: linear-gradient(to top, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0) 62%); }
}
@media (max-width: 560px) {
  .ts-apparel .hero-bg { background-image: url('../images/goods/goods-hero-mobile-1080x1920.jpg'); background-position: center top; }
}
@media (max-width: 768px) {
  .ts-apparel .hero-content { padding: 64px 32px; }
  .ts-apparel .hero-title { font-size: 44px; }
  .ts-apparel .selfcare-banner-card { padding: 48px 32px; }
  .ts-apparel .selfcare-banner-title { font-size: 32px; }
}

/* ── 2.1 REDLINE ──
 * The featured blog card's accent border must wrap the parent card's top corners
 * (12px here) instead of sitting as a flat bar. Accent stays Fri-Yay on Apparel —
 * Self-Care uses Field Day and Meetups uses Free Choice, and those differences are
 * intentional, not an inconsistency to normalise away. */
.ts-apparel .blog-featured-img {
  border-top-color: var(--fri-yay);
  border-radius: 12px 12px 0 0;
}
