/*====================
  Animations
====================*/
@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes openModal {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes closeModal {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes revealTooltip {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rotate {
  to {
    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;
  }
}

/*====================
  General Styles
====================*/
body.open-modal {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}
main#content {
    position: relative;
    overflow-x: hidden;
}
/*====================
  Modal Styles
====================*/
#modal-product {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
    background-color: rgb(121 184 67 / 90%);
    pointer-events: none;
    transform: translateY(-100%);
    backdrop-filter: blur(3px);
	padding-top: 20px;
}

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

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

#modal-product .modal-product-content-inner {
    padding: 20px 16px;
    width: 100%;
}

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

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

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

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

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

/*====================
  Modal Content
====================*/
.modal-product-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 90vw;
    max-width: 400px;
    border-radius: 20px;
    gap: 0;
    background: #f0f0f0;
    box-shadow: 0 0 64px -22px rgb(0 0 0 / 50%);
    border: 1px dashed #79b843;
}

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

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

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

.modal-product-content .sticker {
  position: absolute;
}

.modal-product-content .first-sticker {
  max-width: 50%;
  right: 20%;
  bottom: -50px;
}

.modal-product-content .second-sticker {
  width: 60%;
  bottom: 3%;
}

.modal-product-content-inner h2 {
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
    color: #111;
    font-family: 'AmsiPro';
}

.modal-product-content-inner p {
    font-size: 12px;
    line-height: 16px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}
.modal-product-content-inner ul.plist {
    margin-top: 6px;
}
.modal-product-content-inner ul.plist li {
    font-size: 12px;
    list-style-type: circle;
    margin-left: 13px;
    margin-bottom: 1px;
}

.modal-product-content-inner .fiyat {
  display: inline-block;
  font-size: 24px;
  color: #111;
}

#modal-product ul.alerjenler {
    justify-content: start;
    margin-top: 6px;
    gap: 2px;
}

.modal-product-content .modal_ust {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}

.modal-product-content .modal_ust .ust {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 4px;
}

/*====================
  Tooltip Styles
====================*/
#tooltip {
    background: #181818;
    color: #fff;
    padding: 5px 12px 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    z-index: 2;
    animation: revealTooltip 500ms forwards;
    font-family: 'AmsiPro', sans-serif;
    font-weight: 400!important;
    line-height: 14px;
}

/*====================
  Spinner Styles
====================*/
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  width: 50px;
  height: 50px;
  animation: rotate 2s linear infinite;
  z-index: 2;
}

.spinner .path {
  stroke: #7B0000;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

.loading {
  display: block;
  width: 50px;
  height: 50px;
}

/*====================
  Typography / Fiyat
====================*/
ul.fiyatlar, .fiyat {
    font-size: 18px;
    font-family: 'AMSIPRO';
    font-weight: 500;
    color: #000000;
    text-align: center;
}
ul.fiyatlar li span.tl,
.fiyat span.tl {
  font-size: 70%;
}

/*====================
  Alerjen & Tabs
====================*/
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;
}

.loop-urun ul.alerjenler li {
    width: 20px;
    height: 20px;
}

.loop-urun ul.alerjenler {
    gap: 2px;
    margin-bottom: 0;
    justify-content: start;
    margin-top: 4px;
}

.elementor-tab-title {
  background: linear-gradient(120deg, #e12026, #fdcc06);
}

/*====================
  Utilities
====================*/
.modal-link {
  width: 100%;
  cursor: pointer;
}

.product-image img {
  width: 100%;
  display: block;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.p-name h1 img {
    width: 15px;
    margin-right: 3px !important;
}

.modal-product-content-inner h2 img {
    width: 24px;
    margin-right: 6px;
}