/* ================================================
   YIZEE Product Page Gallery - v6b
   Modeled on yizeelight.com gallery style
   Uses !important to override yizee-style.css conflicts
   ================================================ */

/* Product Page Hero Section */
.yizee-product-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  color: #cccccc;
}

/* Breadcrumb */
.yizee-breadcrumb {
  font-size: 14px;
  color: #999999;
  margin-bottom: 24px;
  padding: 12px 0;
}
.yizee-breadcrumb a {
  color: #d4af37;
  text-decoration: none;
}
.yizee-breadcrumb a:hover {
  text-decoration: underline;
}
.yizee-breadcrumb span {
  margin: 0 8px;
}

/* Hero Inner Layout */
.yizee-product-hero {
  display: grid !important;
  grid-template-columns: 420px 1fr !important;
  gap: 40px !important;
  margin-bottom: 50px !important;
}

@media (max-width: 992px) {
  .yizee-product-hero {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* ===== Gallery Section - yizeelight.com style ===== */
.yizee-product-gallery {
  position: sticky;
  top: 20px;
  width: 400px !important;
  max-width: 100% !important;
}

/* Main image: 360x360 like yizeelight.com, white bg for product photos */
.yizee-product-gallery .yizee-gallery-main {
  width: 360px !important;
  height: 360px !important;
  max-width: 100% !important;
  margin: 0 auto 16px auto !important;
  background: #ffffff !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  cursor: pointer !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Main image inside */
.yizee-gallery-main > img.yizee-gallery-main-img,
.yizee-product-gallery .yizee-gallery-main img:not(.yizee-gallery-main-video img) {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  cursor: pointer !important;
}

/* Hide WordPress auto-rendered video in gallery-main */
.yizee-gallery-main > .wp-video,
.yizee-gallery-main > .wp-video-shortcode {
  display: none !important;
}

/* Video player in main area */
.yizee-gallery-main-video {
  width: 100% !important;
  height: 100% !important;
  display: none !important;
  background: #0a0a0a !important;
  align-items: center !important;
  justify-content: center !important;
}

.yizee-gallery-main-video video {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.yizee-gallery-main.show-video > img.yizee-gallery-main-img {
  display: none !important;
}
.yizee-gallery-main.show-video > .yizee-gallery-main-video {
  display: flex !important;
}

/* Thumbnail container - like yizeelight.com's small-container */
.yizee-product-gallery .yizee-gallery-thumbs {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 360px !important;
  max-width: 100% !important;
  scroll-behavior: smooth !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  flex-wrap: nowrap !important;
}
.yizee-gallery-thumbs::-webkit-scrollbar {
  display: none !important;
}

/* Thumbnails: 80x80 square, like yizeelight.com */
.yizee-product-gallery .yizee-gallery-thumb {
  flex-shrink: 0 !important;
  width: 80px !important;
  height: 80px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
  transition: border-color 0.2s ease !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
}

.yizee-gallery-thumb:hover,
.yizee-gallery-thumb.active {
  border-color: #d4af37 !important;
}

.yizee-gallery-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* Video thumbnail - with play icon */
.yizee-gallery-thumb-video {
  background: #1a1a1a !important;
  position: relative !important;
}

.yizee-gallery-thumb-video::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 10px 0 10px 18px !important;
  border-color: transparent transparent transparent #ffffff !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
}

.yizee-gallery-thumb-video:hover::after,
.yizee-gallery-thumb-video.active::after {
  border-left-color: #d4af37 !important;
}

/* Hide empty video thumbs and empty image thumbs */
.yizee-gallery-thumb.yizee-thumb-hidden {
  display: none !important;
}

/* Scroll buttons */
.yizee-gallery-thumbs-wrap {
  position: relative !important;
  width: 360px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

.yizee-gallery-scroll-btn {
  position: absolute !important;
  top: 0 !important;
  width: 24px !important;
  height: 100% !important;
  background: rgba(0,0,0,0.4) !important;
  border: none !important;
  cursor: pointer !important;
  z-index: 2 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
}
.yizee-gallery-scroll-btn:hover {
  background: rgba(0,0,0,0.6) !important;
}
.yizee-gallery-scroll-btn.yizee-scroll-left {
  left: 0 !important;
}
.yizee-gallery-scroll-btn.yizee-scroll-right {
  right: 0 !important;
}
.yizee-gallery-scroll-btn::after {
  content: '' !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  border-top: 2px solid #999 !important;
  border-right: 2px solid #999 !important;
}
.yizee-gallery-scroll-btn.yizee-scroll-left::after {
  transform: rotate(-135deg) !important;
  margin-left: 3px !important;
}
.yizee-gallery-scroll-btn.yizee-scroll-right::after {
  transform: rotate(45deg) !important;
  margin-right: 3px !important;
}

/* Hide dots */
.yizee-gallery-dots { display: none !important; }

/* Product Info Section */
.yizee-product-info {
  padding: 0 10px !important;
}

.yizee-product-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 24px 0 !important;
  line-height: 1.3 !important;
}

@media (max-width: 768px) {
  .yizee-product-title {
    font-size: 22px !important;
  }
  .yizee-product-gallery {
    width: 100% !important;
  }
  .yizee-gallery-main {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
  .yizee-gallery-thumbs,
  .yizee-gallery-thumbs-wrap {
    width: 100% !important;
  }
}

/* Business Info Table */
.yizee-business-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333333;
}

.yizee-business-table tr {
  border-bottom: 1px solid #333333;
}

.yizee-business-table tr:last-child {
  border-bottom: none;
}

.yizee-business-table th {
  width: 40%;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #d4af37;
  font-size: 14px;
  background: #111827 !important;
}

.yizee-business-table td {
  padding: 14px 16px;
  color: #cccccc !important;
  font-size: 14px;
  background: #111827 !important;
}

/* CTA Buttons */
.yizee-product-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.yizee-cta-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #d4af37;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.yizee-cta-quote:hover {
  background: #e6c34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.yizee-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #1a2a1a !important;
  color: #25D366 !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
  border: 2px solid #25D366 !important;
}

.yizee-cta-whatsapp:hover {
  background: #D4AF37 !important;
  color: #0F172A !important;
  transform: translateY(-2px);
}

/* Contact Info Bar */
.yizee-contact-bar {
  margin-top: 20px;
  padding: 16px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333333;
}

.yizee-contact-bar p {
  margin: 0;
  font-size: 14px;
  color: #999999;
}

.yizee-contact-bar strong {
  color: #d4af37;
}

/* ================================================
   锚点导航样式
   ================================================ */

.yizee-section-nav {
  display: flex;
  gap: 0;
  background: #111111;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  padding: 0 20px;
}

.yizee-nav-link {
  padding: 14px 24px;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}

.yizee-nav-link:hover {
  color: #ffffff;
  border-bottom-color: #666;
}

.yizee-nav-link.active {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

/* 内容区块 */
.yizee-section-block {
  padding: 40px 20px;
  border-bottom: 1px solid #222;
  scroll-margin-top: 60px;
}

.yizee-section-block:last-child {
  border-bottom: none;
}

.yizee-section-heading {
  color: #d4af37;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
}

.yizee-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4af37;
  margin: 32px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #333333;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tab compat */
.yizee-detail-tabs { display: none; }
.yizee-tab-btn { display: none; }
.yizee-tab-content { display: block !important; }
.yizee-tab-content.active { display: block !important; }

/* ================================================
   Specs Table
   ================================================ */
.yizee-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #333333;
}

.yizee-specs-table tr:nth-child(odd) { background: #1a1a1a; }
.yizee-specs-table tr:nth-child(even) { background: #222222; }

.yizee-specs-table th {
  width: 35%;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: #d4af37;
  font-size: 14px;
  border-bottom: 1px solid #333333;
}

.yizee-specs-table td {
  padding: 14px 18px;
  color: #cccccc;
  font-size: 14px;
  border-bottom: 1px solid #333333;
}

.yizee-specs-table tr:last-child th,
.yizee-specs-table tr:last-child td {
  border-bottom: none;
}

/* Product Description */
.yizee-product-description {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #333333;
  margin-bottom: 24px;
  line-height: 1.8;
  color: #cccccc;
}

.yizee-product-description h3 { color: #d4af37; margin: 24px 0 12px 0; font-size: 18px; }
.yizee-product-description p { margin: 0 0 16px 0; }
.yizee-product-description ul { margin: 16px 0; padding-left: 24px; }
.yizee-product-description li { margin-bottom: 8px; }

/* FAQ Section */
.yizee-faq-list { display: flex; flex-direction: column; gap: 16px; }

.yizee-faq-item {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333333;
  overflow: hidden;
}

.yizee-faq-question {
  padding: 18px 24px;
  background: #222222;
  font-weight: 600;
  color: #d4af37;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yizee-faq-question:hover { background: #2a2a2a; }

.yizee-faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.yizee-faq-item.active .yizee-faq-question::after {
  transform: rotate(45deg);
}

.yizee-faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #cccccc;
  line-height: 1.7;
}

.yizee-faq-item.active .yizee-faq-answer {
  padding: 18px 24px;
  max-height: 500px;
}

/* Parameter Table */
.yizee-parameter-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #333333;
}

.yizee-parameter-table th {
  padding: 16px 18px;
  text-align: center;
  font-weight: 700;
  color: #d4af37;
  font-size: 14px;
  background: #222222;
  border-bottom: 2px solid #d4af37;
  border-right: 1px solid #333333;
}

.yizee-parameter-table th:last-child { border-right: none; }

.yizee-parameter-table td {
  padding: 14px 18px;
  text-align: center;
  color: #cccccc;
  font-size: 14px;
  border-bottom: 1px solid #333333;
  border-right: 1px solid #333333;
}

.yizee-parameter-table td:last-child { border-right: none; }
.yizee-parameter-table tr:nth-child(even) td { background: #222222; }
.yizee-parameter-table tr:nth-child(odd) td { background: #1a1a1a; }

/* Lumen Table */
.yizee-lumen-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #333333;
}

.yizee-lumen-table th,
.yizee-lumen-table td {
  padding: 14px 20px;
  text-align: center;
  border: 1px solid #333333;
}

.yizee-lumen-table th { background: #222222; color: #d4af37; font-weight: 700; }
.yizee-lumen-table td { color: #cccccc; }
.yizee-lumen-table tr:nth-child(even) td { background: #222222; }

/* Product Images Grid */
.yizee-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.yizee-images-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #333333;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #1a1a1a;
}

.yizee-images-grid img:hover {
  transform: scale(1.03);
  border-color: #d4af37;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Services List */
.yizee-services-list {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333333;
  padding: 30px;
}

.yizee-services-list li {
  padding: 14px 0;
  border-bottom: 1px solid #333333;
  color: #cccccc;
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.yizee-services-list li:last-child { border-bottom: none; }

.yizee-services-list li::before {
  content: '\2713';
  color: #d4af37;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

/* Lightbox Modal */
.yizee-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.yizee-lightbox.active { display: flex; }

.yizee-lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.yizee-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #ffffff;
  cursor: pointer;
}

.yizee-lightbox-close:hover { color: #d4af37; }

/* Highlight Box */
.yizee-highlight-box {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-left: 4px solid #d4af37;
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.yizee-highlight-box h4 { color: #d4af37; margin: 0 0 12px 0; font-size: 16px; }
.yizee-highlight-box p { margin: 0; color: #cccccc; line-height: 1.7; }

/* Tags */
.yizee-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

.yizee-tags span {
  display: inline-block;
  padding: 6px 14px;
  background: #222222;
  color: #999999;
  font-size: 12px;
  border-radius: 20px;
  margin: 4px;
  transition: all 0.3s ease;
}

.yizee-tags span:hover { background: #d4af37; color: #0a0a0a; }

/* Responsive */
@media (max-width: 576px) {
  .yizee-product-page { padding: 12px; }
  .yizee-gallery-thumb { width: 60px !important; height: 60px !important; }
  .yizee-product-cta { flex-direction: column; }
  .yizee-cta-quote, .yizee-cta-whatsapp { width: 100%; text-align: center; }
  .yizee-section-heading { font-size: 1.1rem; }
  .yizee-section-block { padding: 24px 12px; }
  .yizee-images-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .yizee-images-grid img { height: 150px; }
  .yizee-nav-link { padding: 12px 16px; font-size: 0.85rem; }
}

/* Force hide WordPress auto-embedded video in gallery - aggressive override */
.yizee-gallery-main > div.wp-video,
.yizee-gallery-main > div[class*="wp-video"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
