/*
 * public/css/shop-v2.css — /shop two-section catalog layout (Home & Lifestyle / Body & Wellness).
 * Owns: shop-v2-specific components (cards, section headers, filter tabs, brand strip).
 * Does NOT own: hub-nav, hub-footer, hub-hero, or any global hub.css rules.
 */

/* ── Brand promise strip ─────────────────────────────────────────────────── */
.shop-brand-strip {
  background: #F5F0E8;
  border-bottom: 1px solid #E0D8CC;
  padding: 0.75rem 1.5rem;
}
.shop-brand-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: #5A4E46;
  flex-wrap: wrap;
}
.shop-brand-sep { opacity: 0.4; }
.shop-brand-link {
  color: #B86A4B;
  text-decoration: none;
  font-weight: 500;
}
.shop-brand-link:hover { text-decoration: underline; }

/* ── Hero CTAs ───────────────────────────────────────────────────────────── */
.shop-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.shop-hero-cta-secondary {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
}
.shop-hero-cta-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.8); }

/* ── Manifesto strip ─────────────────────────────────────────────────────── */
.shop-manifesto {
  background: #F5F0E8;
  border-bottom: 1px solid #E0D8CC;
  padding: 1.75rem 2rem;
}
.shop-manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.shop-manifesto-text {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #3A3330;
  line-height: 1.75;
  font-style: italic;
}
.shop-manifesto-quiz {
  font-size: 0.82rem;
  color: #B86A4B;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
  font-style: normal;
}
.shop-manifesto-quiz:hover { text-decoration: underline; }

/* ── Filter tabs (section tabs) ──────────────────────────────────────────── */
.shop-filters {
  background: #fff;
  border-bottom: 1px solid #E8E2D6;
  position: sticky;
  top: 0;
  z-index: 90;
}
.shop-filters-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.shop-filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-filter-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: #7A7067;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.shop-tab:hover { color: #2D3E33; }
.shop-tab.shop-chip--active {
  color: #2D3E33;
  border-bottom-color: #2D3E33;
  font-weight: 600;
}

/* Category chips row */
.shop-filter-chips--categories {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0 0.8rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-filter-chips--categories::-webkit-scrollbar { display: none; }
.shop-chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid #D6CEC5;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #5A4E46;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  background: #fff;
}
.shop-chip:hover { background: #F5F0E8; border-color: #B0A899; color: #2D3E33; }
.shop-chip.shop-chip--active {
  background: #2D3E33;
  color: #fff;
  border-color: #2D3E33;
}

/* ── Second filter row: price tiers + sort ───────────────────────────────── */
.shop-filter-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.shop-price-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.shop-price-chip {
  cursor: pointer;
  border: 1px solid #D6CEC5;
  background: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #5A4E46;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.shop-price-chip:hover { background: #F5F0E8; border-color: #B0A899; color: #2D3E33; }
.shop-price-chip.shop-chip--active {
  background: #2D3E33;
  color: #fff;
  border-color: #2D3E33;
}
.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.shop-sort-label {
  font-size: 0.78rem;
  color: #7A7067;
  font-family: 'DM Sans', sans-serif;
}
.shop-sort-select {
  font-size: 0.78rem;
  color: #2D3E33;
  border: 1px solid #D6CEC5;
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  background: #fff;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.shop-sort-select:focus { outline: none; border-color: #7A9E7E; }

/* ── Main content area ───────────────────────────────────────────────────── */
.shop-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Section blocks ──────────────────────────────────────────────────────── */
.shop-section {
  margin-bottom: 4rem;
}
.shop-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #E8E2D6;
  padding-bottom: 0.75rem;
}
.shop-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: #2D3E33;
  margin: 0;
  line-height: 1.2;
}
.shop-section-browse {
  font-size: 0.8rem;
  color: #B86A4B;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.shop-section-browse:hover { text-decoration: underline; }
.shop-section-browse--active { font-weight: 600; }

/* ── Product grid ────────────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ── Product card ────────────────────────────────────────────────────────── */
.shop-card {
  background: #fff;
  border: 1px solid #E8E2D6;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.shop-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.shop-card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F5F0E8;
}
.shop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.shop-card:hover .shop-card-img { transform: scale(1.03); }
.shop-card-img-placeholder {
  aspect-ratio: 1 / 1;
  background: #F5F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card-pillar-icon {
  font-size: 2rem;
  opacity: 0.35;
}
.shop-card-body {
  padding: 1.1rem 1.1rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.shop-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: #2D3E33;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}
.shop-card-hook {
  font-size: 0.8rem;
  color: #7A7067;
  margin: 0;
  line-height: 1.55;
  flex: 1;
  /* Clamp to 2 lines so cards are equal height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-price {
  font-size: 0.85rem;
  color: #5A4E46;
  font-weight: 500;
  margin: 0;
}
.shop-card-btns {
  margin-top: auto;
  padding-top: 0.75rem;
}
.shop-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  background: #2D3E33;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}
.shop-card-btn:hover { background: #1D2E23; }
.shop-card-btn--disabled {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  background: #F0EBE1;
  color: #B0A899;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: default;
}

/* ── Empty states ────────────────────────────────────────────────────────── */
.shop-section-empty {
  padding: 3rem 2rem;
  text-align: center;
  background: #FDFAF6;
  border: 1px dashed #D6CEC5;
  border-radius: 4px;
}
.shop-empty-icon { font-size: 2rem; margin: 0 0 0.75rem; opacity: 0.4; }
.shop-empty-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: #5A4E46;
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.shop-empty-body { font-size: 0.88rem; color: #9A9087; margin: 0; }
.shop-empty-body a { color: #B86A4B; text-decoration: none; }
.shop-empty-body a:hover { text-decoration: underline; }
.shop-all-empty {
  padding: 5rem 2rem;
  text-align: center;
}
.shop-affiliate-note {
  font-size: 0.72rem;
  color: #B0A899;
  margin-top: 3rem;
  text-align: center;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .shop-main { padding: 2rem 1rem 3rem; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .shop-section-title { font-size: 1.3rem; }
  .shop-brand-strip-inner { font-size: 0.78rem; gap: 0.5rem; }
  .shop-brand-sep { display: none; }
}
@media (max-width: 380px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ── Product detail link elements (card → /shop/:slug) ──────────────────── */
.shop-card-img-link { display: block; text-decoration: none; }
.shop-card-name-link { text-decoration: none; color: inherit; }
.shop-card-name-link:hover .shop-card-name { color: #B86A4B; }
.shop-card-btns { display: flex; gap: 0.5rem; }
.shop-card-btns .shop-card-btn { flex: 1; }
.shop-card-btn--details {
  display: block;
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.75rem;
  background: #F5F0E8;
  color: #5A4B38;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid #E0D8CC;
  transition: background 0.15s;
}
.shop-card-btn--details:hover { background: #EDE8E0; }
