/**
 * Trust Styles -- Phase 2 (CRO-04)
 * Matched to aspro-lite-custom theme: Manrope font, CSS vars, dark theme support
 * Load in Bitrix header.php: <link rel="stylesheet" href="/local/templates/.default/components/trust-styles.css">
 * All classes prefixed with tsh- to avoid Bitrix CSS conflicts
 */

/* ==========================================================================
   Trust Badge Bar (product card, below Buy button)
   ========================================================================== */

.tsh-trust-badges {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 12px;
  background: var(--darkerblack_bg_black, #f8f8f8);
  border: 1px solid var(--stroke_black, #ededed);
  border-radius: var(--theme-outer-border-radius, 8px);
}

.tsh-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--basic_text_black, #555);
  font-family: 'Manrope', 'Arial', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;
  padding: 4px 0;
}

.tsh-trust-icon {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .tsh-trust-badges {
    flex-direction: column;
    gap: 4px;
  }
}

/* ==========================================================================
   Trust Section (homepage, before footer)
   ========================================================================== */

.tsh-trust-section {
  background: var(--darkgrey_bg_black, #f4f4f4);
  border-top: 1px solid var(--stroke_black, #ededed);
  padding: 48px 24px;
  color: var(--white_text_black, #222);
}

.tsh-trust-heading {
  font-family: 'Manrope', 'Arial', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 36px;
  color: var(--white_text_black, #222);
}

.tsh-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.tsh-trust-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 767px) {
  .tsh-trust-section {
    padding: 32px 16px;
  }
  .tsh-trust-heading {
    font-size: 20px;
    margin-bottom: 24px;
  }
  .tsh-trust-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   Reviews Widget
   ========================================================================== */

.tsh-reviews-container {
  width: 100%;
  min-width: 280px;
}

.tsh-reviews-skeleton {
  width: 100%;
  min-height: 200px;
  background: var(--stroke_black, #ededed);
  border-radius: var(--theme-outer-border-radius, 8px);
  animation: tsh-pulse 1.5s ease-in-out infinite;
}

@keyframes tsh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.tsh-reviews-fallback {
  text-align: center;
  padding: 24px 16px;
  background: var(--card_bg_black, #fff);
  border: 1px solid var(--stroke_black, #ededed);
  border-radius: var(--theme-outer-border-radius, 8px);
}

.tsh-rating-stars {
  font-size: 32px;
  color: #A59301;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.tsh-rating-value {
  font-family: 'Manrope', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--basic_text_black, #555);
  margin: 0 0 12px;
}

.tsh-reviews-fallback p {
  font-family: 'Manrope', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--basic_text_black, #555);
  margin: 0 0 12px;
}

.tsh-reviews-link {
  color: var(--theme-base-color, #393027);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: 'Manrope', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease;
}

.tsh-reviews-link:hover {
  color: #A59301;
}

.tsh-reviews-link:focus {
  outline: 2px solid var(--theme-base-color, #393027);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   Photo Carousel
   ========================================================================== */

.tsh-photo-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--theme-outer-border-radius, 8px);
  border: 1px solid var(--stroke_black, #ededed);
}

.tsh-trust-photo {
  width: 100%;
  height: auto;
  display: none;
}

.tsh-trust-photo.active {
  display: block;
}

.tsh-photo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.tsh-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tsh-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gray_bg_black, #ccc);
  display: block;
  transition: all 150ms ease;
}

.tsh-dot.active::after {
  background: var(--theme-base-color, #393027);
  border-color: var(--theme-base-color, #393027);
}

.tsh-dot:hover::after {
  border-color: var(--theme-base-color, #393027);
}

.tsh-dot:focus {
  outline: 2px solid var(--theme-base-color, #393027);
  outline-offset: 2px;
}

/* ==========================================================================
   Guarantees List
   ========================================================================== */

.tsh-guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.tsh-guarantee-list li:before {
  display: none;
  content: none;
}

.tsh-guarantee-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: 'Manrope', 'Arial', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white_text_black, #222);
  min-height: 44px;
}

.tsh-guarantee-list li:last-child {
  margin-bottom: 0;
}

.tsh-guarantee-icon {
  flex-shrink: 0;
}
