/* -------------------------------
   Hide breadcrumb/address sections
-------------------------------- */
body.single-product .woocommerce-breadcrumb,
body.woocommerce.single-product .woocommerce-breadcrumb,
body.single-product .oeltek-cat-top-row,
body.woocommerce.single-product .oeltek-cat-top-row,
body.single-product .oeltek-cat-breadcrumb,
body.woocommerce.single-product .oeltek-cat-breadcrumb {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* -------------------------------
   Mobile gallery guide + zoom icon
-------------------------------- */
body.single-product .oeltek-mobile-category-guide-text {
  color: #d06067 !important;
  text-shadow: 0 1px 3px rgba(255,255,255,0.75) !important;
  font-weight: 900 !important;
}

body.single-product .woocommerce-product-gallery__trigger {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background-color: rgba(80,80,80,0.50) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  font-size: 0 !important;
  color: transparent !important;
  opacity: 0.82 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='8,3 3,3 3,8'/><line x1='3' y1='3' x2='9' y2='9'/><polyline points='16,3 21,3 21,8'/><line x1='21' y1='3' x2='15' y2='9'/><polyline points='3,16 3,21 8,21'/><line x1='3' y1='21' x2='9' y2='15'/><polyline points='16,21 21,21 21,16'/><line x1='21' y1='21' x2='15' y2='15'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 21px 21px !important;
}

body.single-product .woocommerce-product-gallery__trigger::before,
body.single-product .woocommerce-product-gallery__trigger::after,
body.single-product .woocommerce-product-gallery__trigger img,
body.single-product .woocommerce-product-gallery__trigger span {
  display: none !important;
  content: none !important;
}

body.single-product .woocommerce-product-gallery__trigger.is-faded {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  body.single-product .woocommerce-product-gallery {
    position: relative !important;
  }

  body.single-product .oeltek-mobile-category-guide {
    position: absolute !important;
    top: 5% !important;
    left: 12px !important;
    right: auto !important;
    z-index: 60 !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 7px !important;
    text-decoration: none !important;
    opacity: 0.82 !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
    pointer-events: auto !important;
  }

  body.single-product .oeltek-mobile-category-guide.is-faded {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
    pointer-events: none !important;
  }

  body.single-product .oeltek-mobile-category-guide-box {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: rgba(208,96,103,0.90) !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    backdrop-filter: blur(3px) !important;
  }

  body.single-product .oeltek-mobile-category-guide-box::before {
    content: "›" !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body.single-product .woocommerce-product-gallery__trigger {
    top: 5% !important;
    right: 12px !important;
    left: auto !important;
    position: absolute !important;
    z-index: 61 !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
  }
}

@media (min-width: 769px) {
  body.single-product .woocommerce-product-gallery__trigger {
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
  }
}
/* -------------------------------
   Custom zoom modal
-------------------------------- */
body.oeltek-zoom-open {
  overflow: hidden !important;
}

.oeltek-product-zoom-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(5,12,24,0.72) !important;
  backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}

.oeltek-product-zoom-box,
.oeltek-product-zoom-box img,
.oeltek-product-zoom-box video {
  width: 85vw !important;
  max-width: 85vw !important;
  height: auto !important;
  max-height: 86vh !important;
}

.oeltek-product-zoom-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.oeltek-product-zoom-box img,
.oeltek-product-zoom-box video {
  object-fit: contain !important;
  border-radius: 10px !important;
  background: #000 !important;
}

body.single-product .zoomImg {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.oeltek-product-zoom-hint {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2147483647 !important;
  width: 44px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(230,230,230,0.88) !important;
  font-size: 0 !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 3px rgba(0,0,0,0.55) !important;
  pointer-events: auto !important;
  user-select: none !important;
  opacity: 0.9 !important;
  cursor: pointer !important;
}

.oeltek-product-zoom-hint-left {
  left: 16px !important;
}

.oeltek-product-zoom-hint-left::before {
  content: ">" !important;
}

.oeltek-product-zoom-hint-right {
  right: 16px !important;
}

.oeltek-product-zoom-hint-right::before {
  content: "<" !important;
}

.oeltek-product-zoom-hint-left::before,
.oeltek-product-zoom-hint-right::before {
  font-size: 42px !important;
  line-height: 1 !important;
  pointer-events: auto !important;
}

@media (min-width: 769px) {
  .oeltek-product-zoom-hint-left {
    left: 7vw !important;
  }

  .oeltek-product-zoom-hint-right {
    right: 7vw !important;
  }
}

@media (max-width: 768px) {
  .oeltek-product-zoom-hint-left {
    left: 12px !important;
  }

  .oeltek-product-zoom-hint-right {
    right: 12px !important;
  }
}

/* -------------------------------
   Product gallery thumbnails
-------------------------------- */
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery .flex-viewport {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image > a > img,
body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image > img,
body.single-product .woocommerce-product-gallery__wrapper .oeltek-pgv-posterimg,
body.single-product .woocommerce-product-gallery__wrapper .oeltek-pgv-inlineholder video {
  border: 0 !important;
  box-shadow: none !important;
}

body.single-product .oeltek-pgv-thumbtag {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.single-product .woocommerce-product-gallery .flex-control-nav,
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  touch-action: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  list-style: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  direction: rtl !important;
  scrollbar-width: none !important;
}

body.single-product .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar,
body.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
  display: none !important;
}

body.single-product .woocommerce-product-gallery .flex-control-nav li,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  width: 67px !important;
  height: 67px !important;
  min-width: 67px !important;
  max-width: 67px !important;
  flex: 0 0 67px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #d8d8d8 !important;
  box-sizing: border-box !important;
}

body.single-product .woocommerce-product-gallery .flex-control-nav img,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  border: 0 !important;
}

body.single-product .woocommerce-product-gallery .flex-control-nav li:has(img.flex-active),
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active),
body.single-product .woocommerce-product-gallery .flex-control-nav li.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li.flex-active {
  border: 1px solid #cc5f5a !important;
}

body.single-product .woocommerce-product-gallery .flex-control-nav img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  outline: 1px solid #cc5f5a !important;
  outline-offset: -1px !important;
}

@media (max-width: 768px) {
  body.single-product .woocommerce-product-gallery .flex-control-nav,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 5px 12px !important;
    gap: 7px !important;
    background: #e7e3df !important;
    border-radius: 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.single-product .woocommerce-product-gallery .flex-control-nav li,
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    flex-basis: 62px !important;
  }
}

/* Main gallery video play icon */
body.single-product .woocommerce-product-gallery__image.oeltek-pgv-video:not(.is-playing)::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.42) !important;
  backdrop-filter: blur(3px) !important;
  z-index: 4 !important;
  pointer-events: none !important;
}

body.single-product .woocommerce-product-gallery__image.oeltek-pgv-video:not(.is-playing)::before {
  content: "" !important;
  position: absolute !important;
  left: calc(50% + 3px) !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 13px solid transparent !important;
  border-bottom: 13px solid transparent !important;
  border-left: 20px solid rgba(255,255,255,0.95) !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

body.single-product .woocommerce-product-gallery__image.oeltek-pgv-video.is-playing::before,
body.single-product .woocommerce-product-gallery__image.oeltek-pgv-video.is-playing::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 768px) {
  body.single-product .woocommerce-product-gallery__image.oeltek-pgv-video:not(.is-playing)::after {
    width: 50px !important;
    height: 50px !important;
  }

  body.single-product .woocommerce-product-gallery__image.oeltek-pgv-video:not(.is-playing)::before {
    border-top-width: 11px !important;
    border-bottom-width: 11px !important;
    border-left-width: 17px !important;
  }
}
/* -------------------------------
   Related products small text
-------------------------------- */
body.single-product .oeltek-related-clean-products > h2 {
  font-size: 80% !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  margin: 0 0 14px 0 !important;
}

body.single-product .oeltek-related-clean-title {
  font-size: 70% !important;
  line-height: 1.8 !important;
  color: #777 !important;
  font-weight: 400 !important;
  margin: 8px 0 6px 0 !important;
}

body.single-product .oeltek-related-clean-price,
body.single-product .oeltek-related-clean-price .amount,
body.single-product .oeltek-related-clean-price ins,
body.single-product .oeltek-related-clean-price del {
  font-size: 80% !important;
  line-height: 1.8 !important;
}

/* -------------------------------
   Hide old WooCommerce price/cart/variation/title places
-------------------------------- */
body.single-product .summary.entry-summary form.cart,
body.single-product .entry-summary form.cart,
body.single-product form.cart.variations_form,
body.single-product table.variations,
body.single-product .single_variation_wrap,
body.single-product .woocommerce-variation-add-to-cart,
body.single-product .quantity,
body.single-product button.single_add_to_cart_button {
  position: absolute !important;
  right: -99999px !important;
  left: auto !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.single-product .summary.entry-summary > p.price,
body.single-product .entry-summary > p.price,
body.single-product .summary.entry-summary .price,
body.single-product .entry-summary .price,
body.single-product .product_meta + .price,
body.single-product .woocommerce-variation-price,
body.single-product .single_variation .price {
  position: absolute !important;
  right: -99999px !important;
  left: auto !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* -------------------------------
   Product title
-------------------------------- */
body.single-product h1.product_title,
body.single-product .product_title {
  font-family: inherit !important;
  color: #111111 !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  line-height: 1.8 !important;
}

@media (min-width: 769px) and (max-width: 1200px) {
  body.single-product h1.product_title,
  body.single-product .product_title {
    font-size: 20px !important;
  }
}

@media (max-width: 768px) {
  body.single-product .summary.entry-summary h1.product_title,
  body.single-product .entry-summary h1.product_title,
  body.single-product .summary.entry-summary .product_title,
  body.single-product .entry-summary .product_title {
    display: none !important;
  }

  body.single-product .oeltek-mobile-under-gallery-title {
    font-family: inherit !important;
    color: #111111 !important;
    font-size: 16.5px !important;
    font-weight: 950 !important;
    line-height: 1.8 !important;
    text-align: right !important;
    direction: rtl !important;
    margin: 8px 0 3px 0 !important;
  }
}

/* -------------------------------
   Custom price block under gallery
-------------------------------- */
body.single-product .oeltek-mobile-product-pricebar {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 14px 0 !important;
  padding: 9px 12px 11px 12px !important;
  background: #ffffff !important;
  direction: rtl !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

body.single-product .oeltek-pricebar-note {
  width: 100% !important;
  color: #777 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  text-align: right !important;
}

body.single-product .oeltek-pricebar-note-top {
  color: #777 !important;
}

body.single-product .oeltek-pricebar-note-bottom {
  color: #777 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  margin-top: -2px !important;
}

body.single-product .oeltek-mobile-variation-price,
body.single-product .oeltek-mobile-simple-price {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  direction: rtl !important;
  text-align: right !important;
  box-sizing: border-box !important;
}

body.single-product .oeltek-mobile-color-square {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 7px !important;
  border: 1px solid #d8d8d8 !important;
  box-sizing: border-box !important;
}

body.single-product .oeltek-mobile-price-info {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  line-height: 1.7 !important;
  direction: rtl !important;
}

body.single-product .oeltek-mobile-color-name {
  font-size: 12px !important;
  color: #555 !important;
  font-weight: 700 !important;
}

body.single-product .oeltek-pricebar-qty {
  color: #777 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
}

/* Desktop/tablet qty chooser inside price rows */
body.single-product .oeltek-pricebar-desktop-qty {
  margin-right: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  direction: rtl !important;
}

body.single-product .oeltek-pricebar-qty-plus,
body.single-product .oeltek-pricebar-qty-minus {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f0f0f0 !important;
  color: #555 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
}

body.single-product .oeltek-pricebar-qty-number {
  min-width: 22px !important;
  color: #555 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

body.single-product .oeltek-pricebar-qty-label {
  color: #666 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  margin-left: 4px !important;
  direction: rtl !important;
}

body.single-product .oeltek-pricebar-addcart {
  margin-right: auto !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #d06067 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  body.single-product .oeltek-mobile-product-pricebar {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    padding: 7px 12px 9px 12px !important;
  }

  body.single-product .oeltek-pricebar-addcart,
  body.single-product .oeltek-pricebar-desktop-qty {
    display: none !important;
  }
}

/* -------------------------------
   Desktop/tablet custom add-to-cart message
-------------------------------- */
body.single-product .oeltek-mobile-product-pricebar + .woocommerce-message.oeltek-ajax-added-message {
  width: 100% !important;
  max-width: 100% !important;
  margin: 8px 0 14px 0 !important;
  padding: 9px 14px !important;
  background: #d06067 !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  direction: rtl !important;
  text-align: right !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
  animation: oeltekDesktopCartNoticeHide 10s forwards !important;
}

body.single-product .oeltek-mobile-product-pricebar + .woocommerce-message.oeltek-ajax-added-message::before,
body.single-product .oeltek-mobile-product-pricebar + .woocommerce-message.oeltek-ajax-added-message::after {
  display: none !important;
  content: none !important;
}

body.single-product .oeltek-mobile-product-pricebar + .woocommerce-message.oeltek-ajax-added-message,
body.single-product .oeltek-mobile-product-pricebar + .woocommerce-message.oeltek-ajax-added-message * {
  color: #ffffff !important;
}

body.single-product .oeltek-mobile-product-pricebar + .woocommerce-message.oeltek-ajax-added-message a.button,
body.single-product .oeltek-mobile-product-pricebar + .woocommerce-message.oeltek-ajax-added-message a.wc-forward {
  float: none !important;
  display: inline !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

@keyframes oeltekDesktopCartNoticeHide {
  0% { opacity: 1; visibility: visible; }
  85% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* FINAL FIX: price block under product images 20% larger, final price only */
body.single-product .oeltek-mobile-product-pricebar strong,
body.single-product .oeltek-mobile-product-pricebar .woocommerce-Price-amount,
body.single-product .oeltek-mobile-product-pricebar bdi {
  color: #cc5f5a !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

body.single-product .oeltek-mobile-product-pricebar .woocommerce-Price-currencySymbol {
  font-size: 13px !important;
  color: inherit !important;
}

body.single-product .oeltek-mobile-product-pricebar del,
body.single-product .oeltek-mobile-product-pricebar del *,
body.single-product .oeltek-mobile-product-pricebar .screen-reader-text {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* -------------------------------
   Hide old product meta, tabs, related products
-------------------------------- */
body.single-product .product_meta,
body.single-product .summary .product_meta,
body.single-product .entry-summary .product_meta,
body.single-product .sku_wrapper,
body.single-product .posted_in,
body.single-product .tagged_as,
body.single-product .related.products,
body.single-product section.related,
body.single-product .upsells.products,
body.single-product section.upsells,
body.single-product .oeltek-related-clean-products{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  opacity:0 !important;
}

/* FINAL FIX: never show original WooCommerce tabs visually.
   JS can still read/move article content from hidden DOM. */
body.single-product .woocommerce-tabs,
body.single-product .woocommerce-Tabs-panel,
body.single-product #tab-description,
body.single-product #tab-additional_information,
body.single-product .woocommerce-Tabs-panel--description,
body.single-product .woocommerce-Tabs-panel--additional_information{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  opacity:0 !important;
}
