@keyframes revealTooltip{
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes openModal {
    0% {
		opacity: 0;
        transform: translateY(-100%);
    }
    100% {
		opacity: 1;
        transform: translateY(0%);;
    }
}
@keyframes closeModal {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
}

div#modal-product.animateOpen {
    animation: openModal 450ms forwards ease-in-out;
    pointer-events: unset;
	opacity: 1;
}

div#modal-product.animateClose {
    animation: closeModal 250ms forwards ease-in-out;
}

/* tab fix */
.elementor-tab-title {
    background: linear-gradient(120deg, #e12026, #fdcc06);
}
.modal-link {
	width: 100%;
}
/* fiyat */
ul.fiyatlar, .fiyat {
    font-size: 14px;
    color: #000000;
    font-weight: 900;
    text-align: center;
    border: 1px solid #000;
    border-radius: 50%;
    padding: 6px 0px;
}

ul.fiyatlar li span.tl, .fiyat span.tl {
    font-size: 70%;
}

/* alerjen fix */
ul.alerjenler {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: start;
    gap: 4px;
	margin-bottom: 12px;
}
ul.alerjenler li {
    width: 28px;
    height: 28px;
}

div#tooltip {
    background: #181818;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    z-index: 2;
    animation-name: revealTooltip;
    animation-duration: 500ms;
    animation-play-state: running;
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
}


/* modal */ 
.modal-link {
    cursor: pointer;
}

.product-image {
    display: block;
    height: auto;
	position: relative;
}

.modal-product-content .product-image img {
    display: block;
}

.spinner {
  animation: rotate 2s linear infinite;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  width: 50px;
  height: 50px;
}
.spinner .path {
    stroke: rgba(255, 255, 255, 1);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
  }
.loading {
	display: block;
	height: 50px;
	width: 50px;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* loop item fix */
.product-image img {
    width: 100%;
    position: relative;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
	border-radius: 10px;
}


div#modal-product {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .50);
    backdrop-filter: blur(5px) grayscale(1);
    pointer-events: none;
}

#modal-product .close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.5); /* Yarı şeffaf */
    backdrop-filter: blur(8px); /* Cam efekti */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; /* Tam yuvarlak */
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

#modal-product .close:hover {
    background: #ff5353;
    color: white;
    transform: rotate(90deg); /* Hoverda şık bir dönüş */
    border-color: transparent;
}

#modal-product .close svg {
    width: 22px;
}

#modal-product .close path {
    fill: #000000;
}

.modal-product-content .product-image img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
}

.modal-product-content .modal-product-content-inner {
    padding: 1em 3em 2em 3em;
    text-align: left;
	width: 100%;
}

.modal-product-content .modal-product-content-inner h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    font-family: 'Archivo', sans-serif;
}

.modal-product-content .modal-product-content-inner p {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 12px;
    color: #000;
    font-family: 'Archivo', sans-serif;
    font-weight: 100;
}

.modal-product-content .modal-product-content-inner .fiyat {
    color: #000;
    font-size: 24px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 5px 12px;
}

.modal-product-content {
    overflow: scroll;
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
    margin: 30px 20px 100px 20px;
    max-width: 550px;
    background: #fff;
    border-radius: 10px;
}


.modal-product-content .product-image .sticker {
    aspect-ratio: unset;
    position: absolute;
    width: 180px;
    filter: drop-shadow(0px -6px 16px rgba(0, 0, 0, .15));
    right: 40%;
    transform: translateX(50%);
    bottom: 0;
    z-index: 2;
}

#modal-product .logo {
    position: relative;
    width: 60px;
    text-align: center;
}

#modal-product .serit {
    bottom: 0;
    width: 100%;
    left: 0;
    max-width: 100vw;
    aspect-ratio: unset!important;
}



