/* ==========================================================================
   АДАПТИВНАЯ ВЕРСИЯ ДЛЯ DESKTOP
   Mobile-first подход
   ========================================================================== */

body {
  padding-top: var(--header-height, 60px);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
  z-index: 100;
  display: block;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 44px;
}

.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #e313bf;
}

.breadcrumbs span:last-child {
  color: #0f172a;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .breadcrumbs .container {
    padding-top: 16px !important;
    min-height: 60px !important;
  }

  /* Glass-контейнер для hero секции */
  .review-container {
    position: relative;
    background: #ffffff;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgb(71, 85, 105);
    opacity: 1;
    overflow: hidden;
  }

  /* Градиентная рамка */
  .review-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(90deg, #e313bf 0%, #667eea 50%, #a855f7 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
  }

}

/* ==========================================================================
   CROSSFADE IMAGES
   ========================================================================== */
.hero-main-img {
  transition: none;
  width: 100%;
  height: auto;
}

.hero-main-img.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.hero-main-img:not(.active) {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   MOBILE STYLES
   ========================================================================== */
@media (max-width: 1023px) {
  .review-container {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
  }

.hero-media {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.1);
}

  .hero-text {
    padding-left: 1rem;
    padding-right: 1rem;
    order: 3;
    padding-bottom: 10px !important;
  }

  .review-hero-new {
    padding-top: 0 !important;
    padding-bottom: 0 !important;

  }

  /* Миниатюры внутрь фото на мобилке */
  .hero-thumbs {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row !important;
    overflow-x: auto;
    padding: 6px 20px 8px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 100%);
    backdrop-filter: blur(2px);
    max-height: unset !important;
    overflow-y: visible !important;
  }

  .hero-thumbs .thumb {
    flex: 0 0 56px !important;
    width: 56px !important;
    aspect-ratio: 1 !important;
  }

  /* Варианты под фото */
  .product-variants {
    order: 2;
    padding: 12px 16px 0;
    background: white;
    margin: 1rem 0;
    display: none;
  }

  .product-variants-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .product-variants-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .variant-btn {
    padding: 0.55rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
  }

  .variant-btn:hover {
    border-color: #e313bf;
    color: #e313bf;
  }

  .variant-btn.active {
    border-color: #e313bf;
    background: #fdf0fb;
    color: #e313bf;
  }

  /* Характеристики на мобилке */
  .char-row {
    flex-direction: column;
    gap: 4px;
  }

  .char-label {
    min-width: auto;
  }

  /* Скрываем десктопные аккордеоны */
  .hero-accordion {
    display: none;
  }

  /* Скрываем десктопные варианты */
  .product-variants-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   ACCORDION - MOBILE
   ========================================================================== */
.review-accordion {
  margin: 12px 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.review-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
}

.review-accordion-trigger::after {
  content: '›';
  font-size: 1.4rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
  transform: rotate(90deg);
}

details[open] .review-accordion-trigger::after {
  transform: rotate(270deg);
}

.review-accordion-body {
  font-family: Georgia, 'Times New Roman', serif;
  padding: 14px 16px;
  color: #334155;
  border-top: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.7;
}

.review-accordion-body p {
  margin-bottom: 1em;
}

.review-accordion-body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .review-accordion {
    display: none;
  }
}

/* ==========================================================================
   ACCORDION - DESKTOP
   ========================================================================== */
.hero-accordion {
  margin-top: 20px;
}

.hero-accordion-summary {
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.hero-accordion-summary:hover {
  background: #f1f5f9;
}

.hero-accordion-summary::after {
  content: '›';
  font-size: 1.4rem;
  color: #94a3b8;
  transition: transform 0.2s;
  transform: rotate(90deg);
}

details[open] .hero-accordion-summary {
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

details[open] .hero-accordion-summary::after {
  transform: rotate(270deg);
}

.hero-accordion-content {
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569 !important;
  background: white;
}

.hero-accordion-content p {
  margin-bottom: 1em;
  color: #475569 !important;
}

.hero-accordion-content p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .hero-text {
    position: relative;
  }

  .hero-accordion {
    position: relative;
    overflow: visible;
  }

  .hero-accordion-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    max-height: 250px;
  }

}

/* ==========================================================================
   CHARACTERISTICS
   ========================================================================== */
.char-row {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.char-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.char-label {
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
  min-width: 140px;
}

.char-value {
  color: #334155;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ==========================================================================
   REVIEW BODY
   ========================================================================== */
.review-body {
  background: transparent;
  padding: 0;
}

.review-body-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.review-text-col {
  width: 100%;
}

.review-text-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  max-width: 720px;
  margin: 0 auto;
}

.review-text-content p {
  margin-bottom: 1.4em;
}

.review-text-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75em;
  text-align: left;
  line-height: 1.5;
  background: linear-gradient(135deg, #fdf0fb 0%, #f8fafc 100%);
  border: 1px solid #f3d9f0;
  border-left: 4px solid #e313bf;
  padding: 14px 18px;
  border-radius: 8px;
}

.review-text-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  margin: 1.75em 0 0.5em;
  text-align: left;
}

.review-text-content .review-ps {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 2em;
}

/* ==========================================================================
   VERDICT CARD
   ========================================================================== */
.review-verdict-col {
  width: 100%;
  margin-top: 2rem;
}

.verdict-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgb(71, 85, 105);
}

.verdict-rating {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.verdict-stars {
  font-size: 1.6rem;
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.verdict-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.verdict-score-num {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.verdict-score-max {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 400;
}

.verdict-reviews {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 4px;
}

.verdict-section {
  margin-bottom: 16px;
}

.verdict-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pros-title {
  color: #059669;
}

.cons-title {
  color: #dc2626;
}

.verdict-icon {
  font-size: 1rem;
}

.verdict-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.verdict-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.pros-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

.cons-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

.verdict-summary {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #475569;
  padding: 14px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #e313bf;
  margin-top: 16px;
}

.verdict-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #e313bf, #c40fa5);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  margin-top: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(227, 19, 191, 0.25);
}

.verdict-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(227, 19, 191, 0.35);
}

/* ==========================================================================
   PRODUCT VARIANTS
   ========================================================================== */
.product-variants-mobile {
  padding: 0 16px;
  background: transparent;
}

@media (min-width: 1024px) {
  .product-variants {
    grid-column: 3;
    grid-row: 1;
    margin-bottom: 1.5rem;
  }

  .product-variants-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-weight: 500;
  }

  .product-variants-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .variant-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
  }

  .variant-btn:hover {
    border-color: #e313bf;
    color: #e313bf;
  }

  .variant-btn.active {
    border-color: #e313bf;
    background: #fdf0fb;
    color: #e313bf;
  }
}

/* ==========================================================================
   DESKTOP LAYOUT - 1024px+
   ========================================================================== */
@media (min-width: 1024px) {
.review-container {
  display: grid;
  grid-template-columns: 70px 420px 1fr;
  grid-template-rows: auto;
  gap: 0.75rem;
  max-width: 1400px;
  padding: 2rem;
}

  .hero-media {
    width: 100%;
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: 1fr;
    grid-column: 2;
    gap: 0.75rem;
    aspect-ratio: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-main-img {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain !important;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

  .hero-video-wrapper {
    border-radius: 16px;
    grid-column: 2;
    grid-row: 1;
  }

  .hero-thumbs {
    grid-column: 1;
    grid-row: 1;
    position: static;
    flex-direction: column;
    background: transparent;
    backdrop-filter: none;
    padding: 4px;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    /*max-height: unset;*/
    border-radius: 0;
    flex: 0 0 auto;
  }

  .hero-text {
    grid-column: 3;
    padding: 0;
    background: transparent;
    text-align: left;
  }

  .hero-text .rating {
    justify-content: flex-start;
    margin-bottom: 1rem;
  }

  .hero-text h1 {
    margin-top: 0;
    padding: 0;
    text-align: left;
  }

  .hero-text .btn-wb {
    display: inline-block !important;
    margin-top: 16px !important;
    padding: 14px 36px !important;
    width: auto !important;
    max-width: 320px !important;
    width: auto;

  }

  .review-body-container {
    flex-direction: row;
    position: relative;
    align-items: flex-start;
    gap: 48px;
    max-width: 1400px;
  }

  .review-text-col {
    flex: 1 1 0;
    min-width: 0;
  }

  .review-text-content {
    max-width: 100%;
    margin: 0;
  }

  .review-verdict-col {
    flex: 0 0 300px;
    width: 300px;
    margin-top: 0;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    overflow-y: visible;
  }
}

/* ==========================================================================
   MODAL
   ========================================================================== */
/* Мобильные устройства - для фотографий покупателей */
@media (max-width: 1023px) {
  #user-photos-modal .photo-modal-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  #user-photos-modal .modal-main-image {
    padding: 1rem;
    height: calc(100vh - 100px);
  }

  #user-modal-img {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 120px);
  }
}

/* Десктоп */
@media (min-width: 1024px) {
  .photo-modal-content {
    width: 85vw;
    max-width: 1400px;
    height: 85vh;
  }

  .modal-main-image {
    padding: 3rem;
  }

  #modal-img {
    max-height: calc(85vh - 150px);
  }
}

/* ==========================================================================
   FLOATING BUTTON
   ========================================================================== */
.floating-buy {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #e313bf 0%, #ff006e 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(227,19,191,0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.floating-buy:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.floating-buy:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(227,19,191,0.5);
}

.floating-buy:active {
  transform: translateY(-2px) scale(1.03);
}

@media (min-width: 1024px) {
  .floating-buy {
    display: none;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.hero-media,
.hero-text,
.thumb {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-hero-new {
  animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .breadcrumbs,
  .hero-thumbs,
  .floating-buy,
  header,
  footer {
    display: none !important;
  }

  .review-container {
    display: block;
  }

  .hero-media {
    position: static;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   ULTRA WIDE - 1920px+
   ========================================================================== */
@media (min-width: 1920px) {
  .review-container {
    grid-template-columns: 80px 450px 1fr;
    gap: 3rem;
    max-width: 1600px;
    padding: 3rem 2rem;
  }

  .review-body-container {
    max-width: 1600px;
    padding: 0 2rem;
    gap: 80px;
  }

  .review-hero-new {
    max-width: 1600px !important;
    margin: 0 auto;
  }

  .hero-media {
    grid-template-columns: 65px 1fr;
  }

  .hero-thumbs {
    gap: 10px;
  }
}

.hero-video-wrapper {
  position: relative;
  padding-bottom: 40px;
}

.video-swipe-overlay {
  position: absolute;
  inset: 0 0 80px 0; /* не закрывает нижнюю часть с контролами */
  z-index: 10;
  background: transparent;
}

/* При клике — убираем overlay */
.video-swipe-overlay.hidden {
  pointer-events: none;
}

/* Десктоп версия — показываем только на ПК */
.product-variants-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .product-variants-desktop.has-variants {
    display: block;
  }
}

/* Мобильная версия — показываем только на мобилке */
.product-variants-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .product-variants-mobile.has-variants {
    display: block;
  }
}

.breadcrumb-title {
  display: inline;
  color: #0f172a; /* черный */
}

.breadcrumb-title-desktop {
  display: none;
}

.breadcrumb-title-mobile {
  display: inline;
  color: #0f172a !important;
}

.breadcrumbs .container {
padding: 5px 10px !important;

}

@media (min-width: 768px) {
  .breadcrumb-title-desktop {
    display: inline;
  }

  .breadcrumb-title-mobile {
    display: none;
  }
}


.user-photos-section {
  margin-bottom : 1rem;
  padding: 1rem 1rem;
  background: #fafafa;
  border-radius: 15px;
}

.user-photos-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 0px !important;
}

.user-photos-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.user-photos-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.user-photo-card {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  scroll-snap-align: start;
}

.user-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px; /* скругление как на скрине */
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.user-photo-img:hover {
  transform: scale(1.05);
}

/* Десктоп */
@media (min-width: 768px) {
  .user-photos-scroll {

    overflow-x: auto;
    gap: 1.5rem;
    padding: 2rem;
  }

  .user-photo-card {
    width: 140px;
    height: 140px;
  }
}

.user-photos-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 70px; /* отступы у wrapper, не у scroll */
}

.user-photos-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0; /* убрали боковые отступы */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.user-photos-scroll::-webkit-scrollbar {
  display: none;
}

.user-photos-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.user-photos-arrow:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.user-photos-arrow.prev {
  left: 10px; /* внутри 70px отступа wrapper */
}

.user-photos-arrow.next {
  right: 10px; /* внутри 70px отступа wrapper */
}

/* Показываем только на десктопе */
@media (min-width: 768px) {
  .user-photos-arrow {
    display: flex !important; /* перебиваем inline style от JS */
  }
}

/* Скрываем на мобилке */
@media (max-width: 767px) {
  .user-photos-arrow {
    display: none !important;
  }

  .user-photos-wrapper {
    padding: 0; /* убираем отступы */
  }
}
