/*
 * collectiondetails.css
 * Page styles for frontend_collectiondetails.php (v1).
 * Extracted from the inline <style> blocks so the HTML payload stays small
 * and the rules are cacheable. Loaded after templatecollection.css.
 */

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1600px;
}

#myCarousel .item {
  -webkit-transition: -webkit-transform 0.25s ease-in-out;
  transition: transform 0.25s ease-in-out;
}

/* ── Lazy-loaded images ─────────────────────────────────────────────────── */
.lazyimage-container {
  /* Ensure container centers its content */
  text-align: center;
}

.lazy-image {
  /* Allow text-center to center the image */
  display: inline-block;
  margin: 0 auto;
  /* Prevent the image from overflowing the container */
  max-width: 100%;
  /* Maintain aspect ratio */
  height: auto;
}

/* ── Pricing display ────────────────────────────────────────────────────── */
.strike-black s,
.strike-black s span,
.strike-black s font {
  color: #000000 !important;
}

.artistbuy-price,
.artistbuy-price * {
  color: #cc5500 !important;
}

.artistbuy-price .strike-black s,
.artistbuy-price .strike-black s span,
.artistbuy-price .strike-black s font {
  color: #000000 !important;
}

/* ── Main image wrapper ─────────────────────────────────────────────────── */
#imageWrap {
  width: auto;
  height: auto;
  background: url("/images/ajax-loader.gif") center center no-repeat;
}

/* ── Mural unit switcher (inch / ft / cm) ───────────────────────────────── */
#inch {
  cursor: pointer;
  padding: 4px 13px;
  border-radius: 2px 2px 0px 0px;
  background-color: #aaaa;
  color: #000000;
}

#ft {
  cursor: pointer;
  padding: 4px 13px;
  color: #000000;
  border-radius: 2px 2px 0px 0px;
  background-color: #339d60;
}

#cm {
  cursor: pointer;
  padding: 4px 13px;
  border-radius: 2px 2px 0px 0px;
  background-color: #339d60;
  color: #000000;
}

#resultinch {
  display: block;
  bottom: 1px;
  overflow: hidden;
  padding: 20px;
  border-radius: 0px 2px 2px 2px;
}

@media (max-width: 500px) {
  #resultinch {
    padding: 0px;
    padding-top: 20px;
  }
}

#resultft {
  display: none;
  bottom: 1px;
  padding: 30px;
  border-radius: 0px 2px 2px 8px;
}

#resultcm {
  display: none;
  bottom: 1px;
  padding: 30px;
  border-radius: 0px 2px 2px 2px;
}

/* ── Loading overlay ────────────────────────────────────────────────────── */
#loading-div-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

#loading-div {
  width: 500px;
  height: 200px;
  background-color: #fff;
  box-shadow: 2px 2px 2px #f1f1f1;
  border: 0px solid #1468b3;
  text-align: center;
  color: #202020;
  position: absolute;
  left: 50%;
  top: 40%;
  margin-left: -150px;
  margin-top: -100px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  z-index: 99;
}

/* ── Product buttons ────────────────────────────────────────────────────── */
.tabbutton {
  text-align: center;
  border-width: 1px;
  padding: 8px;
  border-color: #b3b3b3;
  border-style: solid;
  display: inline-block;
  margin: 4px 4px 4px 4px;
  border-radius: 2px;
  min-width: 65px;
}

/* ── Picture frame canvas ───────────────────────────────────────────────── */
#pictureframecanvas {
  width: 100%;
  text-align: center;
  max-width: 1200px;
  max-height: 868px;
  top: 0;
  padding: 15px;
  left: 0;
  position: relative;
}

.canvascontainer {
  text-align: center;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
  margin: 0 auto;
  -o-object-fit: contain;
  object-fit: contain;
}

/* ── Hover zoom effect ──────────────────────────────────────────────────── */
.hover-zoom img,
.hover-zoom video {
  -webkit-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.hover-zoom:hover img,
.hover-zoom:hover video {
  -webkit-transform: scale(1.15);
  transform: scale(1.15);
}

/* ── Carousel indicators (thumbnail strip in left column) ───────────────── */
.carousel-indicators {
  position: static !important;
  width: 100% !important;
  margin-left: 0% !important;
}

.carousel-indicators li {
  width: auto !important;
  height: auto !important;
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 3px 8px 13px 8px !important;
}

.carousel-indicators li:hover {
  transition: all 0.3s ease;
  opacity: 1;
  padding: 3px 8px 13px 8px !important;
  transform: scale(1.05);
}

.carousel-indicators li img {
  display: block;
  width: 100%;
}

.carousel-indicators .active {
  background: transparent !important;
}

/* ── Mobile action bar (wishlist / follow) ──────────────────────────────── */
@media (max-width: 1024px) {
  .mobile-action-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
  }

  .mobile-action-container br {
    display: none;
  }

  .mobile-action-container .action-item {
    flex: 1;
    text-align: center;
  }
}

/* ── Canvas product image (stretched canvas tab) ────────────────────────── */
.canvas-product-image {
  padding: 20px;
  max-height: 600px;
  max-width: 100%;
  height: auto;
  width: auto;
}

@media (max-width: 1024px) {
  .canvas-product-image {
    max-height: 400px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .canvas-product-image {
    max-height: 300px;
    padding: 10px;
  }
}

.canvas-image-container {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── Sub-tabs (thickness / mount options) inside product panes ──────────── */
.tabnav {
  display: inline-block;
  padding: 10px 30px 10px 30px;
  margin: 0px 10px 10px 0px;
  border-color: #6e6e6e;
  border-width: 1px;
  border-style: solid;
  color: #6e6e6e;
}

.tabs li a:hover {
  background: #ccc;
}

.tabnav.active,
.tabnav.active a:hover {
  font-weight: bold;
  border-color: #de256f;
}

.tabmetalnav {
  display: inline-block;
  padding: 10px 30px 10px 30px;
  margin: 0px 10px 10px 0px;
  border-color: #6e6e6e;
  border-width: 1px;
  border-style: solid;
  color: #6e6e6e;
}

.tabmetals li a:hover {
  background: #ccc;
}

.tabmetalnav.active,
.tabmetalnav.active a:hover {
  font-weight: bold;
  border-color: #de256f;
}

.tabcontent {
  display: none;
  position: absolute;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

@media (max-width: 768px) {
  .tabcontent {
    top: 310px;
  }
}

.tabSTnav {
  display: inline-block;
  padding: 10px 30px 10px 30px;
  margin: 0px 10px 10px 0px;
  border-color: #6e6e6e;
  border-width: 1px;
  border-style: solid;
  color: #6e6e6e;
}

.tabSTs li a:hover {
  background: #ccc;
}

.tabSTnav.active,
.tabSTnav.active a:hover {
  font-weight: bold;
  border-color: #de256f;
}

/* ── Rendering cost: skip offscreen work for the big product tab panes ──── */
/* Hidden panes are display:none already; the active pane is usually below   */
/* the fold, so content-visibility lets the browser skip layout/paint until  */
/* the user scrolls near it. contain-intrinsic-size reserves an estimated    */
/* height to keep the scrollbar stable.                                      */
.tab-content > .tab-pane {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
