/* =========================================================
   OVERRIDES.CSS
   FINAL OVERRIDES

   Image fit fixes
   Instagram toast final styling
   KVKK modal final styling
========================================================= */

/* FINAL IMAGE FIT */

#catalog .featured-catalog img,
#catalog .catalog-card img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg,#f7f4ef,#ffffff);
  transform: none;
}

#catalog .featured-catalog:hover img,
#catalog .catalog-card:hover img {
  transform: scale(1.01);
}

/* FINAL INSTAGRAM TOAST */

.instagram-toast {
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;

  width: 300px !important;
  max-width: calc(100vw - 36px) !important;

  min-height: auto !important;

  padding: 12px 14px !important;
  border-radius: 18px !important;

  gap: 11px !important;
  align-items: center !important;

  background: rgba(255,255,255,.94) !important;

  border: 1px solid rgba(229,232,236,.85) !important;

  box-shadow: 0 14px 38px rgba(10,2,28,.10) !important;

  backdrop-filter: blur(14px) !important;
}

.instagram-toast .insta-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  flex: 0 0 48px !important;

  border-radius: 15px !important;

  font-size: 34px !important;

  background: rgba(255,45,85,.08) !important;
  color: #ff2d55 !important;
}

.instagram-toast strong {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
}

.instagram-toast p {
  font-size: 12px !important;
  line-height: 1.3 !important;

  margin-top: 3px !important;

  color: var(--muted) !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  max-width: 185px !important;
}

.instagram-toast .insta-close {
  top: 9px !important;
  right: 9px !important;

  width: 22px !important;
  height: 22px !important;

  font-size: 18px !important;

  color: var(--ink) !important;

  background: transparent !important;
  border-radius: 50% !important;
}

/* FINAL KVKK */

.cookie-banner {
  position: fixed !important;

  left: 50% !important;
  right: auto !important;

  bottom: 18px !important;

  z-index: 370 !important;

  width: min(620px, calc(100vw - 36px)) !important;

  margin: 0 !important;

  transform: translateX(-50%) !important;

  display: none;

  align-items: center !important;
  justify-content: space-between !important;

  gap: 16px !important;

  padding: 16px 18px !important;

  border-radius: 22px !important;

  color: var(--ink) !important;

  background: rgba(255,255,255,.94) !important;

  border: 1px solid rgba(229,232,236,.88) !important;

  box-shadow: 0 18px 48px rgba(10,2,28,.12) !important;

  backdrop-filter: blur(16px) !important;
}

.cookie-banner.show {
  display: flex !important;
}

.cookie-banner p {
  margin: 0 !important;

  color: #493f5f !important;

  font-size: 13px !important;
  line-height: 1.55 !important;
}

.cookie-banner strong {
  color: var(--ink) !important;
}

.cookie-banner a {
  color: var(--purple) !important;

  font-weight: 800 !important;

  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.cookie-banner button {
  width: 42px !important;
  height: 42px !important;

  flex: 0 0 auto !important;

  display: grid !important;
  place-items: center !important;

  border-radius: 50% !important;

  color: #fff !important;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--purple)
  ) !important;

  box-shadow: 0 12px 24px rgba(121,74,250,.18) !important;

  font-weight: 900 !important;

  transition: .24s var(--ease) !important;
}

.cookie-banner button:hover {
  transform: translateY(-2px) !important;
}

/* FINAL MODAL */

.modal {
  position: fixed !important;
  inset: 0 !important;

  z-index: 390 !important;

  display: grid !important;
  place-items: center !important;

  padding: 18px !important;

  background: rgba(10,2,28,.58) !important;

  opacity: 0;
  visibility: hidden;

  transition: .25s var(--ease) !important;
}

.modal.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-content {
  position: relative !important;

  width: min(920px, 100%) !important;
  max-height: 86vh !important;

  overflow-y: auto !important;

  padding: clamp(24px, 4vw, 42px) !important;

  border-radius: 32px !important;

  background:
    radial-gradient(circle at 0 0, rgba(255,107,107,.08), transparent 290px),
    radial-gradient(circle at 100% 0, rgba(121,74,250,.09), transparent 330px),
    #fff !important;

  border: 1px solid rgba(229,232,236,.9) !important;

  box-shadow: var(--shadow-lg) !important;
}

.modal-close {
  position: sticky !important;
  top: 0 !important;

  float: right !important;

  width: 42px !important;
  height: 42px !important;

  display: grid !important;
  place-items: center !important;

  border-radius: 50% !important;

  background: var(--ink) !important;
  color: #fff !important;

  font-size: 22px !important;

  z-index: 2 !important;
}
.modal-content h2 {
  color: var(--ink) !important;
  font-size: clamp(28px, 3.4vw, 44px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.05em !important;
  margin-bottom: 18px !important;
}

.modal-content h3 {
  margin-top: 24px !important;
  margin-bottom: 10px !important;
  color: var(--ink) !important;
  font-size: 20px !important;
  letter-spacing: -.02em !important;
}

.modal-content p,
.modal-content li {
  color: #50465f !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  margin: 8px 0 !important;
}

.modal-content ul {
  list-style: none !important;
  display: grid !important;
  gap: 8px !important;
  margin: 10px 0 4px !important;
  padding: 0 !important;
}

.modal-content li {
  position: relative !important;
  padding-left: 22px !important;
}

.modal-content li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: var(--purple) !important;
  font-weight: 900 !important;
}

.modal-content b,
.modal-content strong {
  color: var(--ink) !important;
}



@media (max-width: 768px) {
  .instagram-toast {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    width: 280px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 11px 13px !important;
    border-radius: 16px !important;
    gap: 10px !important;
  }

  .instagram-toast .insta-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex-basis: 44px !important;
    border-radius: 14px !important;
    font-size: 31px !important;
  }

  .instagram-toast strong {
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  .instagram-toast p {
    font-size: 11.5px !important;
    max-width: 165px !important;
  }

  .instagram-toast .insta-close {
    top: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 17px !important;
  }

  .cookie-banner {
    left: 50% !important;
    right: auto !important;
    bottom: 10px !important;
    width: min(350px, calc(100vw - 20px)) !important;
    transform: translateX(-50%) !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    gap: 10px !important;
  }

  .cookie-banner p {
    font-size: 10.5px !important;
    line-height: 1.42 !important;
  }

  .cookie-banner button {
    width: 36px !important;
    height: 36px !important;
  }

  .modal-content {
    border-radius: 24px !important;
    padding: 22px !important;
  }

  .modal-content h2 {
    font-size: 28px !important;
  }

  .modal-content h3 {
    font-size: 18px !important;
  }

  .modal-content p,
  .modal-content li {
    font-size: 13px !important;
  }


}

.launch-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 2, 28, .62);
    backdrop-filter: blur(14px);
}

    .launch-popup.active {
        display: flex;
    }

.launch-popup-card {
    position: relative;
    width: min(520px, 100%);
    padding: 42px 28px 30px;
    border-radius: 36px;
    text-align: center;
    background: radial-gradient(circle at 10% 0, rgba(255,107,107,.18), transparent 260px), radial-gradient(circle at 100% 0, rgba(121,74,250,.20), transparent 300px), rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 30px 100px rgba(10,2,28,.32);
    animation: launchPop .45s ease both;
}


.launch-popup-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--ink);
    font-size: 22px;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,.16);
}


.popup-certificate-banner {
    width: 100%;
    display: block;
    border-radius: 24px;
    margin-top: 14px;
}
.launch-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 22px;
    display: block;
    filter: drop-shadow(0 0 24px rgba(121,74,250,.28)) drop-shadow(0 12px 34px rgba(255,107,107,.18));
    animation: logoFloat 3.8s ease-in-out infinite;
}

.launch-popup-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--purple);
    background: rgba(121,74,250,.11);
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 16px;
}

.launch-popup-card h2 {
    color: var(--ink);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.055em;
    font-weight: 900;
}

.launch-popup-card p {
    margin: 16px auto 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
    max-width: 390px;
}

.launch-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}




.launch-popup-card small {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
}

@keyframes launchPop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .launch-popup-card {
        padding: 32px 22px 26px;
        border-radius: 28px;
    }

    .launch-logo {
        width: 100px;
    }

    .launch-actions {
        flex-direction: column;
    }

        .launch-actions .btn {
            width: 100%;
        }
}
