/**
 * Skin-type / ingredient / VS hub pages
 */
.cosm-hub-page {
  padding: 1.5rem 0 4rem;
  min-height: 50vh;
}
.cosm-hub-hero {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.cosm-hub-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7C4A85;
  font-weight: 600;
}
.cosm-hub-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: #1a1a2e;
  line-height: 1.2;
}
.cosm-hub-lead {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}
.cosm-hub-count {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}
.cosm-hub-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.cosm-hub-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1rem;
  background: linear-gradient(145deg, #F4E7F3, #E8DDEE);
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a2e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cosm-hub-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 74, 133, 0.15);
  color: #1a1a2e;
}
.cosm-hub-tile-icon {
  font-size: 1.25rem;
  color: #7C4A85;
}
.cosm-hub-tile-title {
  font-weight: 700;
  font-size: 1.05rem;
}
.cosm-hub-tile-count {
  font-size: 0.8rem;
  opacity: 0.7;
}
.cosm-ing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
}
.cosm-ing-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a2e;
}
.cosm-ing-list a:hover {
  border-color: #7C4A85;
  color: #7C4A85;
}
.cosm-ing-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.cosm-ing-count {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}
.cosm-hub-empty {
  padding: 2rem;
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  text-align: center;
}
.cosm-hub-empty-hint {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}
.cosm-hub-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.cosm-hub-explore-more {
  margin: 1.25rem 0 0.5rem;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
}
.cosm-hub-explore-more--empty {
  display: none; /* empty state already shows CTAs in cosm-hub-empty */
}
.cosm-hub-explore-lead {
  margin: 0.35rem 0 1rem;
  font-size: 0.9rem;
  color: #64748b;
}
.cosm-hub-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 0.5rem;
}
.cosm-hub-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
}
.cosm-hub-pagination a.is-active,
.cosm-hub-pagination a:hover {
  background: #7C4A85;
  border-color: #7C4A85;
  color: #fff;
}
.cosm-hub-section-title {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
}
.cosm-hub-related-cats {
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}
.cosm-hub-related-ings {
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}
.cosm-hub-index-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  vertical-align: middle;
}
.cosm-chip-count {
  margin-left: 0.25rem;
  font-size: 0.8em;
  font-weight: 600;
  opacity: 0.65;
}
.cosm-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cosm-hub-see-also .cosm-hub-subsection-title {
  margin: 1.1rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}
.cosm-hub-see-also .cosm-hub-chips {
  margin-bottom: 0.25rem;
}
.cosm-hub-see-also-line {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #475569;
}
.cosm-hub-see-also-line a {
  color: #7C4A85;
  font-weight: 600;
  text-decoration: none;
}
.cosm-hub-body-effect {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
  background: rgba(249, 232, 237, 0.55);
  border-left: 3px solid #7C4A85;
}
.cosm-hub-body-effect strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4A2E4D;
}
.cosm-ing-learn {
  margin: 0 0 2rem;
}
.cosm-ing-learn__lead {
  margin: -0.35rem 0 1rem;
  max-width: 36rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.55;
}
.cosm-ing-learn__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.cosm-ing-learn__card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, rgba(249, 232, 237, 0.45) 0%, #fff 55%);
  border: 1px solid #eadfe4;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cosm-ing-learn__card:hover {
  border-color: #7C4A85;
  transform: translateY(-2px);
}
.cosm-ing-learn__name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
}
.cosm-ing-learn__effect {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
}
.cosm-hub-faq {
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}
.cosm-hub-faq-accordion {
  max-width: 48rem;
}
.cosm-hub-back {
  margin-top: 1.5rem;
}
.cosm-hub-back a {
  color: #7C4A85;
  font-weight: 600;
  text-decoration: none;
}
.cosm-hub-back a:hover {
  text-decoration: underline;
}
.srm-unit-price,
.srm-volume-meta {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}
.srm-volume-meta {
  margin: 0.25rem 0 0;
}
.pdp-unit-price {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.35rem;
}
.pdp-ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.pdp-ingredient-chips a {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #475569;
  text-decoration: none;
}
.pdp-ingredient-chips a:hover {
  border-color: #7C4A85;
  color: #7C4A85;
}

.pdp-top-ingredients {
  margin: 0.85rem 0 0.35rem;
  max-width: 36rem;
}

.pdp-top-ingredients__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.pdp-ingredient-chips--top {
  margin-top: 0;
}

.pdp-top-ingredients__more {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7C4A85;
  text-decoration: none;
}

.pdp-top-ingredients__more:hover {
  text-decoration: underline;
}

.pdp-beauty-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pdp-beauty-meta a:hover {
  color: #7C4A85;
}

/* VS */
.cosm-vs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cosm-vs-card {
  display: block;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #1a1a2e;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cosm-vs-card:hover {
  border-color: #f0c4ce;
  box-shadow: 0 8px 24px rgba(124, 74, 133, 0.1);
  color: #1a1a2e;
}
.cosm-vs-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #faf7f8;
  min-height: 120px;
}
.cosm-vs-card-media img {
  max-width: 88px;
  max-height: 88px;
  object-fit: contain;
}
.cosm-vs-vs {
  font-weight: 700;
  color: #7C4A85;
  font-size: 0.85rem;
  text-transform: lowercase;
}
.cosm-vs-card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cosm-vs-card-body span {
  font-size: 0.85rem;
  color: #7C4A85;
  font-weight: 600;
}
.cosm-vs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cosm-vs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 560px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.cosm-vs-table th,
.cosm-vs-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  text-align: left;
}
.cosm-vs-table th[scope="row"] {
  width: 140px;
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.cosm-vs-col a {
  color: #1a1a2e;
  font-weight: 600;
  text-decoration: none;
  display: block;
  line-height: 1.35;
}
.cosm-vs-col a:hover {
  color: #7C4A85;
}
.cosm-vs-thumb {
  display: block;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
}
.cosm-vs-cta {
  display: inline-block;
  background: #7C4A85;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.cosm-vs-cta:hover {
  background: #a8485f;
}
.cosm-vs-cta-row th,
.cosm-vs-cta-row td {
  border-bottom: none;
}
