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

body.open-modal header {
  animation: fadeDown 0.5s ease forwards;
  opacity: 0;
  transform: translateY(-20px);
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

div#modal-product.animateClose {
    animation: closeModal 500ms 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: 24px;
    color: #242322;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

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: center;
    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;
}



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: #fff;
    backdrop-filter: blur(5px) grayscale(1);
    pointer-events: none;
    transform: translateY(-100%);
}

#modal-product .close {
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 30px;
    top: 30px;
}

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

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

.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: center;
}


.modal-product-content .modal-product-content-inner h2 {
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    color: #8ecdb3;
    margin-bottom: 12px;
    font-family: "citrus-gothic-rough", sans-serif;
}

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

.modal-product-content .modal-product-content-inner .fiyat {
    color: #784821;
    font-size: 30px;
    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: 130px 20px 100px 20px;
    border: 1px solid #8dccb2;
    border-radius: 32px;
}


.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;
}

body.open-modal footer, body.open-modal header {
    z-index: 99999999999999999;
}

body.open-modal header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
}

body.open-modal footer .upto svg {
    transform: rotate(-90deg);
    left: -1px;
    top: 1px;
}
