/**
 * view_images.htm — product gallery, tab content prose, tag chips.
 */

#bordered-tabContent {
  font-family: "Oswald", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  word-wrap: break-word;
}

#bordered-tabContent h1 { font-size: 2em; margin-bottom: 0.5em; line-height: 1.3; }
#bordered-tabContent h2 {
  font-size: 1.75em;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: 700;
  scroll-margin-top: 80px;
}
#bordered-tabContent h3 {
  font-size: 1.5em;
  border-left: 4px solid #3498db;
  padding-left: 12px;
  background: #f9f9f9;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  scroll-margin-top: 80px;
}

#bordered-tabContent p { margin-bottom: 1.5em; text-align: justify; }
#bordered-tabContent ul,
#bordered-tabContent ol { margin-bottom: 1.5em; }
#bordered-tabContent li { margin-bottom: 0.5em; }

#bordered-tabContent a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
#bordered-tabContent a:hover {
  color: #2980b9;
  border-bottom-color: #2980b9;
}

#bordered-tabContent img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#bordered-tabContent blockquote {
  margin: 2em 0;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-left: 5px solid #3498db;
  color: #666;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

#bordered-tabContent table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
#bordered-tabContent th,
#bordered-tabContent td { padding: 12px; border: 1px solid #e1e4e8; text-align: left; }
#bordered-tabContent th { background-color: #f3f6f9; font-weight: 600; }
#bordered-tabContent tr:nth-child(even) { background-color: #fafafa; }

#bordered-tabContent pre {
  background: #282c34;
  color: #abb2bf;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: Consolas, monospace;
}
#bordered-tabContent code {
  background: #f0f0f0;
  color: #d63384;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: Consolas, monospace;
}
#bordered-tabContent strong { font-weight: 600; }

@media (max-width: 768px) {
  .sigma_product-single .container,
  .section.light-bg .container {
    padding-left: 15px;
    padding-right: 15px;
    display: block;
  }
  .main-content { padding: 20px; }
  #bordered-tabContent h1 { font-size: 1.6em; }
  #bordered-tabContent h2 { font-size: 1.4em; }
  #bordered-tabContent h3 { font-size: 1.2em; }
  #bordered-tabContent table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #bordered-tabContent th,
  #bordered-tabContent td {
    min-width: 120px;
    white-space: nowrap;
    padding: 4px !important;
  }
}

.sigma_product-single {
  margin: auto !important;
  width: 80% !important;
  position: relative;
  z-index: 1;
  padding-top: 10px;
}

/* Inquire Now + Email（mailto）并排 */
.sigma_product-buttons.aoxiang-product-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sigma_product-buttons.aoxiang-product-cta-row .sigma_btn {
  margin-left: 0 !important;
}

/* Email 与 Inquire Now 同色（主题橙） */
.sigma_product-buttons.aoxiang-product-cta-row .sigma_btn.light {
  background-color: var(--thm-base) !important;
  color: #fff !important;
  border: 0;
}

.sigma_product-buttons.aoxiang-product-cta-row .sigma_btn.light i {
  color: #fff !important;
}

.sigma_product-buttons.aoxiang-product-cta-row .sigma_btn.light:hover,
.sigma_product-buttons.aoxiang-product-cta-row .sigma_btn.light:focus {
  background-color: var(--thm-base-hover) !important;
  color: #fff !important;
}

.sigma_product-single-thumb { overflow: hidden; }
.sigma_product-single-thumb .slider { width: 100%; overflow: hidden; }
.sigma_product-single-thumb .slider-nav { width: 100%; margin-top: 12px; overflow: hidden; position: relative; }
.sigma_product-single-thumb .slider-nav .slick-list { overflow: hidden !important; }
.sigma_product-single-thumb .slider-nav .slick-track { margin-left: 0 !important; }
.sigma_product-single-thumb .slider-nav .slick-slide {
  float: left !important;
  padding: 0 6px;
  box-sizing: border-box;
  overflow: hidden;
}
.sigma_product-single-thumb .slider-nav img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 991px) {
  .sigma_product-single {
    width: 100% !important;
    padding-top: 8px;
    margin-bottom: 4px;
  }
  .sigma_product-single-thumb { margin-bottom: 8px; }
  .sigma_product-single-content { margin-top: 8px; }
  .sigma_product-single-thumb .slider-nav { margin-top: 6px; }
  .section.light-bg.pb-5 {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
  }
  .sigma_product-additional-info { margin-top: 2px; }
  .sigma_product-additional-info .tab-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }
  .sigma_product-additional-info .tab-pane { padding: 0 !important; }
  #tab-product-desc > h4 { margin-top: 8px; margin-bottom: 10px; }
  #tab-product-desc hr { margin: 10px 0; }
  #tab-product-desc .sigma_comment-form { margin-top: 16px; }
  #tab-product-desc .comments-list { margin-top: 12px; }
  #tab-product-desc .comments-list ul {
    margin: 0;
    padding-left: 0 !important;
    list-style: none;
  }
  #tab-product-desc .comments-list .comment-item {
    margin-left: auto;
    margin-right: auto;
  }
  #tab-product-desc form#contact.contact-form { padding: 0 !important; }
}

@media (min-width: 992px) {
  .sigma_product-single .row { align-items: center; }

  /* 主图与缩略图同一宽度（360px），缩略图条不再因左右 padding 变窄 */
  .sigma_product-single-thumb {
    overflow: visible;
    max-width: 360px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .sigma_product-single-thumb .slider {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 8px;
    left: 0 !important;
  }

  .sigma_product-single-thumb .slider img {
    max-height: 360px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
  }

  .sigma_product-single-thumb .slider .slick-list,
  .sigma_product-single-thumb .slider .slick-track { text-align: center; }

  .sigma_product-single-thumb .slider-nav {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    /* 左右留出「轨道」，箭头落在 padding 里，不压住缩略图 */
    padding-left: 42px;
    padding-right: 42px;
    box-sizing: border-box;
    overflow: visible;
  }

  .sigma_product-single .col-lg-5:first-child {
    overflow: visible;
  }

  .sigma_product-single-thumb .slider-nav .slick-list {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  .sigma_product-single-thumb .slider-nav .slick-slide {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .sigma_product-single-thumb .slider-nav img {
    height: 88px;
    object-fit: contain;
  }

  /* 箭头在左右 padding 区内（相对 .slider-nav 的 padding edge），不叠在 slick 图片上 */
  body[class*="btn-style"] .sigma_product-single-thumb .slider-nav button.slick-prev.aoxiang-thumb-nav,
  body[class*="btn-style"] .sigma_product-single-thumb .slider-nav button.slick-next.aoxiang-thumb-nav,
  .sigma_product-single-thumb .slider-nav .aoxiang-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #333;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: "Oswald", Helvetica, Arial, sans-serif;
  }

  .sigma_product-single-thumb .slider-nav .slick-prev.aoxiang-thumb-nav::before,
  .sigma_product-single-thumb .slider-nav .slick-next.aoxiang-thumb-nav::before {
    display: none !important;
    content: none !important;
  }

  .sigma_product-single-thumb .slider-nav .aoxiang-thumb-nav:hover,
  .sigma_product-single-thumb .slider-nav .aoxiang-thumb-nav:focus {
    background: var(--thm-base, #fb5b21);
    border-color: var(--thm-base, #fb5b21);
    color: #fff;
    outline: none;
  }

  .sigma_product-single-thumb .slider-nav .aoxiang-thumb-nav.slick-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed;
    pointer-events: none;
  }

  .sigma_product-single-thumb .slider-nav .slick-prev.aoxiang-thumb-nav {
    left: 5px;
  }

  .sigma_product-single-thumb .slider-nav .slick-next.aoxiang-thumb-nav {
    right: 5px;
  }

  .sigma_product-single-thumb .slider-nav .aoxiang-thumb-nav span {
    display: block;
    margin-top: -1px;
  }
}

#tab-product-infoz span {
  padding: 3px;
  margin: 5px;
  border: 1px solid #999;
  border-radius: 7px;
}
#tab-product-infoz a { color: #666; }
#tab-product-infoz a:hover { color: var(--thm-base); }
