/* ═══ Gender Pods — Experts [experts_with_products] ═══ */

.gp-experts {
  max-width: var(--wp--style--global--wide-size, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Expert card ── */
.gp-expert {
  border: 1px solid #e4e4e7;
  background: #fff;
}

/* ── Header ── */
.gp-expert__header {
  padding: 24px 24px 16px;
}

.gp-expert__name {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

@media (min-width: 1024px) {
  .gp-expert__header {
    padding: 32px 48px 20px;
  }
}

/* ── Body: photo + info grid ── */
.gp-expert__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 24px 24px;
}

@media (min-width: 640px) {
  .gp-expert__body {
    grid-template-columns: 300px 1fr;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .gp-expert__body {
    padding: 0 48px 32px;
  }
}

.gp-expert__photo {
  overflow: hidden;
}

.gp-expert__img {
  width: 100%;
  height: auto;
  display: block;
}

.gp-expert__bio {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.gp-expert__bio p {
  margin: 0 0 8px;
}

.gp-expert__expertise-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.gp-expert__expertise {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.gp-expert__expertise p {
  margin: 0 0 4px;
}

/* ── Products section (collapsible) ── */
.gp-expert__products {
  border-top: 1px solid #e4e4e7;
}

.gp-expert__products-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-bottom: 1px solid #e4e4e7;
  background: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast, #000);
  text-align: left;
  transition: background-color 0.2s;
}

.gp-expert__products-toggle:hover {
  background-color: #fafafa;
}

@media (min-width: 1024px) {
  .gp-expert__products-toggle {
    padding: 16px 48px;
    font-size: 1.25rem;
  }
}

.gp-expert__toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Collapsed state (default) */
.gp-expert__products-content {
  display: none;
  padding: 24px;
}

@media (min-width: 1024px) {
  .gp-expert__products-content {
    padding: 24px 48px;
  }
}

/* Expanded state */
.gp-expert__products.is-open .gp-expert__products-content {
  display: block;
}

.gp-expert__products.is-open .gp-expert__toggle-icon {
  transform: rotate(180deg);
}

/* ── Single product card ── */
.gp-expert-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  margin-bottom: 16px;
  background-color: var(--wp--preset--color--highlight, #ffe600);
  border-radius: 8px;
}

@media (min-width: 768px) {
  .gp-expert-product {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }
}

.gp-expert-product__thumb {
  overflow: hidden;
  border-radius: 6px;
}

.gp-expert-product__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gp-expert-product__thumb {
    width: 180px;
    height: 180px;
  }

  .gp-expert-product__img {
    height: 100%;
  }
}

.gp-expert-product__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.gp-expert-product__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.gp-expert-product__desc p {
  margin: 0 0 8px;
}

.gp-expert-product__listeners {
  font-size: 0.875rem;
  font-style: italic;
  opacity: 0.8;
  margin-top: 8px;
}

.gp-expert-product__listeners p {
  margin: 0;
}

/* ── Order button ── */
.gp-expert__order {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.gp-expert__order-btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  background-color: var(--wp--preset--color--primary, #e53e3e);
  color: var(--wp--preset--color--base, #fff);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.gp-expert__order-btn:hover {
  background-color: var(--wp--preset--color--secondary, #d63030);
}
