/*
  Product page specific styles - matching Wix design
  - Styles for product pages with accordion layout
  - Requires general.css to be loaded first
*/

/* Main product page container */
.product-page {
  padding: 0;
  margin: 0;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
}

.product-page-body main .container,
.product-page .container {
  max-width: var(--max-content-width-header-and-footer);
  /* margin: 0 auto; */
  /* padding: 40px 24px; */
}

/* Two-column product layout */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  align-items: start;
}

/* Left column - Image gallery + Speaker bio */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thumbnails {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: flex-start;
}

.main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgb(17, 211, 232);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.enlarge-btn {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.enlarge-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.enlarge-btn:hover img {
  transform: scale(1.05);
}

.enlarge-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enlarge-btn:hover .enlarge-icon {
  opacity: 1;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 1px solid white;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s ease;
}

.thumbnail.active {
  border-color: rgb(17, 211, 232);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  border-color: rgb(17, 211, 232);
}

.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.thumbnail {
  position: relative;
}

/* Speaker bio in left column */
.product-images .speaker-bio {
  margin-top: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.product-images .speaker-bio p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}

.product-images .speaker-bio p:first-child {
  font-size: 16px;
  margin-bottom: 8px;
}

.product-images .speaker-bio strong {
  font-weight: 600;
  color: #ffffff;
}

/* Right column - Accordion only */
.product-info {
  padding-top: 0;
}

/* Product details section - now in right column */
.product-details {
  margin-top: 0;
}

.product-details h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #ffffff;
}

/* Accordion styling */
.accordion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion-item {
  border-bottom: 1px solid rgb(17, 211, 232);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.accordion-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-button h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  line-height: 1.3;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: #ffffff;
}

.accordion-button.expanded .accordion-icon {
  transform: rotate(0deg);
}

.accordion-button:not(.expanded) .accordion-icon {
  transform: rotate(0deg);
}

/* Accordion content */
.accordion-content {
  padding: 0 0 24px 0;
  animation: slideDown 0.3s ease;
}

.accordion-content[hidden] {
  display: none;
}

.accordion-content p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.accordion-content li {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  position: relative;
  padding-left: 0;
}

.accordion-content li:last-child {
  margin-bottom: 0;
}

/* Detailed content styling */
.detailed-content p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}

/* Other session styling */
.other-session p:first-child {
  margin-bottom: 8px;
}

.other-session a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.other-session a:hover {
  text-decoration: underline;
}

/* Animation keyframes */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .product-layout {
    gap: 40px;
  }
  
  .product-page .container {
    padding: 32px 20px;
  }
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-page .container {
    padding: 24px 16px;
  }
  
  .product-details h1 {
    font-size: 28px;
    margin-bottom: 24px;
  }
  
  .accordion-button {
    padding: 20px 0;
  }
  
  .accordion-button h2 {
    font-size: 16px;
  }
  
  .thumbnail-nav {
    gap: 8px;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .nav-btn {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .product-page .container {
    padding: 20px 12px;
  }
  
  .product-details h1 {
    font-size: 24px;
  }
  
  .accordion-button h2 {
    font-size: 15px;
  }
  
  .accordion-content p,
  .accordion-content li {
    font-size: 13px;
  }
  
  .speaker-bio p {
    font-size: 13px;
  }
}