/* ============== RECENTLY VIEWED - REFERENCE COPY ============== */

.ins-preview-wrapper {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: none !important;
  visibility: hidden !important;
}

.ins-preview-wrapper[style*="display: block"]:not(.begreat-hide-over-slider),
.ins-preview-wrapper.show:not(.begreat-hide-over-slider) {
  display: block !important;
  visibility: visible !important;
}

/* Keep wrapper on left side even when detailed view is active */
.ins-preview-wrapper.detailed-active {
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.ins-preview-wrapper.ins-pos-middle-left {
  left: 0;
}

/* Slider alanındayken Recently Viewed gizle, slider bitiminde göster - ÇOK GÜÇLÜ KURAL */
.ins-preview-wrapper.begreat-hide-over-slider,
.ins-preview-wrapper.show.begreat-hide-over-slider,
.ins-preview-wrapper[style*="display: block"].begreat-hide-over-slider,
.ins-preview-wrapper.begreat-hide-over-slider.show {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ins-content-wrapper {
  position: relative;
}

.ins-notification-content {
  position: relative;
}

.ins-versus-main-wrapper {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
}

.ins-versus-left {
  flex-direction: row;
}

/* ============== MINI VIEW ============== */
.ins-mini-view-container {
  background: #fff !important;
  border-right: 2px solid #111 !important;
  border-bottom: 2px solid #111 !important;
  border-top: none !important;
  border-left: none !important;
  border-radius: 0 0 12px 0 !important;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15) !important;
  position: relative !important;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  align-self: flex-start !important;
}

.ins-mini-view-container.active {
  display: flex !important;
}

/* Hide mini view when detailed view is active */
.ins-preview-wrapper.detailed-active .ins-mini-view-container {
  display: none !important;
  visibility: hidden !important;
}

.ins-element-content {
  position: relative;
}

.ins-mini-view-image-wrapper {
  padding: 12px 12px 8px;
  text-align: center;
  background: #fff;
}

.ins-mini-view-image-wrapper img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
  filter: brightness(0);
}

.ins-mini-view-title-wrapper {
  padding: 8px 12px;
  text-align: center;
  background: #fff;
}

.ins-mini-view-title-inner {
  color: #111;
  font-weight: 600;
  line-height: 1.3;
}

.ins-mini-view-products-wrapper {
  position: relative;
  padding: 8px;
  max-height: 240px; /* 3 items * 80px */
  overflow: hidden;
  background: #fff;
}

.ins-mini-view-products-inner {
  overflow-y: hidden;
  max-height: 240px;
  scroll-behavior: smooth;
  height: 100%;
}

.ins-mini-view-products-inner::-webkit-scrollbar {
  width: 4px;
}

.ins-mini-view-products-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.ins-mini-view-products-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.ins-mini-view-products-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ins-mini-view-products-inner li {
  padding: 0 8px;
}

.ins-mini-view-products-inner .product-container {
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.ins-mini-view-products-inner .product-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.ins-mini-view-products-inner .product-container img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.ins-mini-view-arrow {
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.ins-mini-view-top-arrow {
  background: rgba(255, 255, 255, 0.9);
}

.ins-mini-view-top-arrow {
  top: 0;
}

.ins-mini-view-bottom-arrow {
  bottom: 0;
}

.ins-mini-view-arrow.ins-versus-passive-arrow {
  opacity: 0.5;
}

.ins-mini-view-arrow.visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  animation: arrow-bounce-right 2s ease-in-out infinite;
}

.ins-mini-view-arrow.visible:hover {
  animation: arrow-bounce-right 1s ease-in-out infinite;
  transform: translateX(4px) scale(1.1);
}

.ins-mini-view-arrow::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  transition: transform 0.3s ease;
}

.ins-mini-view-top-arrow::before {
  border-bottom: 8px solid #999;
}

.ins-mini-view-bottom-arrow {
  background: transparent !important;
}

.ins-mini-view-bottom-arrow::before {
  border-top: 8px solid #111;
  animation: arrow-scale-pulse 2s ease-in-out infinite;
}

.ins-mini-view-top-arrow.visible::before {
  animation: arrow-scale-pulse 2s ease-in-out infinite 0.5s;
}

.ins-mini-view-bottom-arrow.visible::before {
  animation: arrow-scale-pulse 2s ease-in-out infinite;
}

@keyframes arrow-bounce-right {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  25% {
    transform: translateX(2px) scale(1.05);
  }
  50% {
    transform: translateX(4px) scale(1.1);
  }
  75% {
    transform: translateX(2px) scale(1.05);
  }
}

@keyframes arrow-scale-pulse {
  0%, 100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translateX(2px) scale(1.2);
    opacity: 0.9;
  }
  50% {
    transform: translateX(4px) scale(1.3);
    opacity: 0.8;
  }
  75% {
    transform: translateX(2px) scale(1.2);
    opacity: 0.9;
  }
}

.ins-versus-close-button-session {
  padding: 8px;
  text-align: center;
  cursor: pointer;
}

.ins-versus-mini-view-close-button {
  color: #111;
  font-size: 20px;
  line-height: 1;
  transition: opacity 0.2s;
}

.ins-versus-mini-view-close-button:hover {
  opacity: 0.7;
}

.ins-versus-extend-button {
  padding: 4px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: 2px solid #111;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto;
  transition: all 0.3s ease;
  position: relative;
  animation: extend-button-pulse 2s ease-in-out infinite;
}

.ins-versus-extend-button:hover {
  background: #111;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.1);
  animation: extend-button-pulse 1s ease-in-out infinite;
}

.ins-versus-extend-button:active {
  transform: scale(0.95);
}

.ins-versus-extend-button::after {
  content: '››';
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
  animation: extend-icon-bounce 2s ease-in-out infinite;
}

.ins-versus-extend-button:hover::after {
  color: #fff;
  animation: extend-icon-bounce 1s ease-in-out infinite;
}

@keyframes extend-button-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
  }
}

@keyframes extend-icon-bounce {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  25% {
    transform: translateX(1px) scale(1.1);
  }
  50% {
    transform: translateX(2px) scale(1.2);
  }
  75% {
    transform: translateX(1px) scale(1.1);
  }
}

/* ============== DETAILED VIEW ============== */
.ins-detailed-view-container {
  background: #fff !important;
  width: 380px !important;
  height: auto !important;
  max-height: none !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid #111 !important;
  border-left: none !important;
  border-radius: 0 12px 12px 0 !important;
  margin-left: -1px !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
  align-self: flex-start !important;
}

.ins-detailed-view-container.active {
  display: flex !important;
  height: 370px !important;
  width: 540px !important;
  min-width: 540px !important;
  max-width: 540px !important;
  min-height: 370px !important;
  max-height: 370px !important;
}


/* Detailed view stays on left side, 540x370 size - ORIGINAL RULE */
.ins-preview-wrapper.detailed-active .ins-detailed-view-container {
  width: 540px !important;
  min-width: 540px !important;
  max-width: 540px !important;
  height: 370px !important;
  min-height: 370px !important;
  max-height: 370px !important;
  border: 2px solid #111 !important;
  border-left: none !important;
  border-radius: 0 12px 12px 0 !important;
  margin-left: -1px !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Ensure content fits and buttons are visible */
.ins-preview-wrapper.detailed-active .ins-detailed-view-content {
  height: calc(370px - 40px) !important;
  overflow: hidden !important;
  flex: 1;
  position: relative;
}


.detailed-view-animation {
  animation: slideInLeft 0.3s ease;
}

.detailed-view-opening {
  animation: slideInFromRight 0.3s ease;
}

.detailed-view-closing {
  animation: slideOutToRight 0.4s ease-in-out;
  transform-origin: left center;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0) scaleX(1);
    transform-origin: left center;
    opacity: 1;
  }
  to {
    transform: translateX(0) scaleX(0);
    transform-origin: left center;
    opacity: 0;
  }
}

.ins-detailed-view-header {
  background: #fff !important;
  color: #111 !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-bottom: 2px solid #111 !important;
  flex-shrink: 0;
  min-height: 40px;
}

.ins-detailed-view-title-wrapper {
  flex: 1 !important;
  color: #111 !important;
}

.ins-detailed-view-title-wrapper .editable {
  color: #111 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  background: transparent !important;
  padding: 0 !important;
}

.ins-detailed-view-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ins-versus-minimize-button-wrapper,
.ins-versus-close-button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #111 !important;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ins-versus-minimize-button-wrapper:hover,
.ins-versus-close-button:hover {
  background: rgba(0, 0, 0, 0.2) !important;
}

.ins-element-custom-minimize-button,
.ins-versus-close-button span {
  color: #111 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
}

.ins-versus-minimize-button-wrapper,
.ins-versus-close-button {
  background: rgba(0, 0, 0, 0.05) !important;
}

.ins-versus-minimize-button-wrapper:hover,
.ins-versus-close-button:hover {
  background: rgba(0, 0, 0, 0.15) !important;
}

.ins-detailed-view-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 0;
  height: calc(370px - 40px); /* Total height minus smaller header */
  padding-top: 0 !important;
}

/* Ensure arrows are always visible in detailed view */
.ins-preview-wrapper.detailed-active .ins-detailed-view-content {
  position: relative;
}

.ins-preview-wrapper.detailed-active .detailed-view-slider-left-arrow,
.ins-preview-wrapper.detailed-active .detailed-view-slider-right-arrow {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ins-versus-detailed-view-slider-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.ins-versus-detailed-view-slider-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
  align-items: stretch;
  width: 540px !important;
  min-width: 540px !important;
  max-width: 540px !important;
  overflow: hidden !important;
}

/* Force width when detailed view is active */
.ins-preview-wrapper.detailed-active .ins-versus-detailed-view-slider-container {
  width: 540px !important;
  min-width: 540px !important;
  max-width: 540px !important;
}

.ins-preview-wrapper.detailed-active .ins-versus-detailed-view-slider-container ul {
  width: 540px !important;
  min-width: 540px !important;
  max-width: 540px !important;
}

.ins-versus-detailed-view-slider-container li {
  min-width: calc(540px / 3);
  width: calc(540px / 3);
  flex: 0 0 calc(540px / 3);
  max-width: calc(540px / 3);
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  overflow: hidden;
}

/* Products remain in slider format (one at a time) */

.detailed-product {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.detailed-product-inner-wrapper {
  position: relative;
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
}

/* Ensure add to cart button is visible */
.detailed-product-inner-wrapper .ins-versus-add-to-cart,
.detailed-product-inner-wrapper .ins-versus-add-to-cart-button,
.detailed-product-inner-wrapper .ins-versus-add-to-cart button,
.detailed-product-inner-wrapper .ins-versus-add-to-cart-button button,
.detailed-product-inner-wrapper .add-to-cart-text,
.detailed-product-inner-wrapper .ins-product-add-to-cart {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
}

.ins-versus-product-image {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  margin-bottom: 6px;
  border: none;
  flex-shrink: 0;
}

.ins-versus-product-details {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
  gap: 4px;
  justify-content: space-between;
}

.ins-versus-product-name {
  margin-bottom: 8px;
}

.ins-product-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #111 !important;
  line-height: 1.3 !important;
  margin-bottom: 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.ins-versus-product-name a,
.ins-versus-product-name .ins-element-link,
.ins-versus-product-name a.ins-element-link {
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
}

.ins-versus-product-name a:hover,
.ins-versus-product-name .ins-element-link:hover,
.ins-versus-product-name a.ins-element-link:hover {
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
}

.ins-versus-product-price {
  margin-bottom: 4px;
}

.ins-product-price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #d32f2f !important;
  text-decoration: none !important;
  margin-bottom: 4px !important;
}

.ins-versus-product-price a,
.ins-versus-product-price .ins-element-link,
.ins-versus-product-price a.ins-element-link {
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
}

.ins-versus-product-price a:hover,
.ins-versus-product-price .ins-element-link:hover,
.ins-versus-product-price a.ins-element-link:hover {
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
}

.ins-versus-product-old-price {
  margin-bottom: 4px;
}

.ins-product-discount {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.ins-versus-add-to-cart {
  margin-top: auto !important;
  flex-shrink: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  padding-top: 8px !important;
}

.ins-versus-add-to-cart-button {
  width: 100% !important;
  padding: 10px 12px !important;
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
  display: block !important;
  line-height: 1.3 !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 36px !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.ins-versus-add-to-cart-button * {
  color: inherit !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ins-versus-add-to-cart-button:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.ins-versus-add-to-cart-button .add-to-cart-text,
.ins-versus-add-to-cart-button .ins-product-add-to-cart,
.ins-versus-add-to-cart-button span {
  color: inherit !important;
  text-decoration: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* Force visibility for all add to cart elements */
.detailed-product .ins-versus-add-to-cart,
.detailed-product .ins-versus-add-to-cart-button,
.detailed-product .ins-versus-add-to-cart a,
.detailed-product .ins-versus-add-to-cart-button a,
.detailed-product .add-to-cart-link,
.detailed-product .add-to-cart-text {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.detailed-product-inner-wrapper .ins-versus-add-to-cart,
.detailed-product-inner-wrapper .ins-versus-add-to-cart-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
}

.ins-versus-add-to-cart-button:hover {
  background: #111 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.ins-versus-add-to-cart-button a,
.ins-versus-add-to-cart-button .ins-element-link,
.ins-versus-add-to-cart-button a.ins-element-link,
.ins-versus-add-to-cart-button .add-to-cart-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
  border: none !important;
  outline: none !important;
}

.ins-versus-add-to-cart-button a:hover,
.ins-versus-add-to-cart-button .ins-element-link:hover,
.ins-versus-add-to-cart-button a.ins-element-link:hover,
.ins-versus-add-to-cart-button .add-to-cart-link:hover {
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
}

.ins-versus-add-to-cart-button .add-to-cart-text,
.ins-versus-add-to-cart-button .ins-product-add-to-cart,
.ins-versus-add-to-cart-button span {
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
}

.ins-versus-add-to-cart-button.added {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.ins-versus-product-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s;
  z-index: 10;
}

.ins-versus-product-close-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.detailed-view-arrows {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #111;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.detailed-view-arrows:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(4px) scale(1.1);
}

.detailed-view-arrows.visible {
  animation: arrow-circle-bounce 2s ease-in-out infinite;
}

.detailed-view-arrows.visible:hover {
  animation: arrow-circle-bounce 1s ease-in-out infinite;
}

.detailed-view-slider-right-arrow.visible {
  animation: arrow-circle-bounce 2s ease-in-out infinite 0.3s;
}

.detailed-view-slider-left-arrow.visible {
  animation: arrow-circle-bounce 2s ease-in-out infinite 0.6s;
}

@keyframes arrow-circle-bounce {
  0%, 100% {
    transform: translateX(0) scale(1);
    box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.2);
  }
  25% {
    transform: translateX(2px) scale(1.05);
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.15);
  }
  50% {
    transform: translateX(4px) scale(1.1);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.1);
  }
  75% {
    transform: translateX(2px) scale(1.05);
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.15);
  }
}

.detailed-view-arrows.ins-versus-passive-arrow {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Slider arrows remain visible */


.detailed-view-slider-left-arrow {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.detailed-view-slider-right-arrow {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.detailed-view-slider-left-arrow:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

.detailed-view-slider-right-arrow:hover {
  background: #111 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Hide arrows completely */
.ins-detailed-view-content .detailed-view-slider-left-arrow,
.ins-detailed-view-content .detailed-view-slider-right-arrow,
.ins-preview-wrapper.detailed-active .detailed-view-slider-left-arrow,
.ins-preview-wrapper.detailed-active .detailed-view-slider-right-arrow {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.detailed-view-slider-left-arrow.visible,
.detailed-view-slider-right-arrow.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.detailed-view-slider-left-arrow.ins-versus-passive-arrow {
  opacity: 0.4 !important;
  cursor: not-allowed;
}

.detailed-view-slider-right-arrow.ins-versus-passive-arrow {
  opacity: 0.4 !important;
  cursor: not-allowed;
}

.detailed-view-slider-left-arrow:hover:not(.ins-versus-passive-arrow),
.detailed-view-slider-right-arrow:hover:not(.ins-versus-passive-arrow) {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.detailed-view-slider-left-arrow span {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  visibility: visible !important;
}

.detailed-view-slider-left-arrow span::before {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-40%, -50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 8px solid transparent !important;
  border-bottom: 8px solid transparent !important;
  border-right: 10px solid #999 !important;
  visibility: visible !important;
}

.detailed-view-slider-left-arrow.visible span::before {
  animation: arrow-icon-scale 2s ease-in-out infinite 0.6s;
}

.detailed-view-slider-right-arrow span {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  visibility: visible !important;
}

.detailed-view-slider-right-arrow span::before {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-60%, -50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 8px solid transparent !important;
  border-bottom: 8px solid transparent !important;
  border-left: 10px solid #111 !important;
  visibility: visible !important;
  animation: arrow-icon-scale 2s ease-in-out infinite 0.3s;
}

.detailed-view-slider-right-arrow.visible span::before {
  animation: arrow-icon-scale 2s ease-in-out infinite 0.3s;
}

@keyframes arrow-icon-scale {
  0%, 100% {
    transform: translate(-60%, -50%) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(-55%, -50%) scale(1.2);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.8;
  }
  75% {
    transform: translate(-55%, -50%) scale(1.2);
    opacity: 0.9;
  }
}

/* Recently Viewed visibility: beGreat Options ile kontrol (mobil / masaüstü) */
@media (max-width: 1024px) {
  body.begreat-recently-viewed-hide-mobile .ins-preview-wrapper,
  body.begreat-recently-viewed-hide-mobile .ins-preview-wrapper.show,
  body.begreat-recently-viewed-hide-mobile .ins-preview-wrapper[style*="display: block"],
  body.begreat-recently-viewed-hide-mobile .ins-preview-wrapper.begreat-hide-over-slider,
  body.begreat-recently-viewed-hide-mobile .ins-preview-wrapper.show.begreat-hide-over-slider {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
@media (min-width: 1025px) {
  body.begreat-recently-viewed-hide-desktop .ins-preview-wrapper,
  body.begreat-recently-viewed-hide-desktop .ins-preview-wrapper.show,
  body.begreat-recently-viewed-hide-desktop .ins-preview-wrapper[style*="display: block"],
  body.begreat-recently-viewed-hide-desktop .ins-preview-wrapper.begreat-hide-over-slider,
  body.begreat-recently-viewed-hide-desktop .ins-preview-wrapper.show.begreat-hide-over-slider {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
