/* LUXE BERLIN - GLOBAL DESIGN SYSTEM */
:root {
  --gold: #c5a059;
  --gold-hover: #b38f4d;
  --midnight: #1c2541;
  --dark-midnight: #0b132b;
  --white: #ffffff;
  --platinum: #f8f9fa;
  --success: #27ae60;
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-main: #111111;
  --text-muted: #6c757d;
  --card-bg: #ffffff;
  --border-color: #eeeeee;
  --gold-opacity: rgba(197, 160, 89, 0.2);
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* DARK MODE RENK TANIMLARI */
body.dark-mode {
  --bg-primary: #0b0e14;
  --bg-secondary: #161b22;
  --text-main: #ffffff;
  --text-muted: #b0b3b8;
  --card-bg: #1c2541;
  --border-color: #30363d;
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
li,
label,
div {
  transition: color 0.4s ease;
}
body.dark-mode .text-muted {
  color: var(--text-muted) !important;
}
body.dark-mode .text-dark {
  color: var(--text-main) !important;
}
body.dark-mode .bg-light {
  background-color: var(--bg-secondary) !important;
}

/* NAVBAR */
.navbar {
  background-color: var(--midnight) !important;
  border-bottom: 2px solid var(--gold);
  padding: 0.8rem 0;
}
.navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 2px;
  color: white !important;
}
.navbar-brand span {
  color: var(--gold);
}
.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-left: 15px;
}
.nav-link:hover {
  color: var(--gold) !important;
}

/* HERO SECTION */
.hero-section {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?q=80&w=2070")
      center/cover;
  animation: heroZoom 10s infinite alternate;
}
@keyframes heroZoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 110%;
  }
}

/* ARAMA ÇUBUĞU */
.search-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.search-input-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.luxe-search-input {
  width: 100%;
  padding: 15px 25px 15px 60px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  background-color: var(--bg-secondary);
  color: var(--text-main);
  box-shadow: var(--soft-shadow);
  transition: all 0.4s ease;
  outline: none;
  box-sizing: border-box;
}
.luxe-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.15);
  transform: translateY(-2px);
}
.search-icon-fixed {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 5;
}

/* ÜRÜN KARTLARI - INTERAKTIF GÜNCELLEME */
.product-card {
  border: none;
  border-radius: 12px;
  /* Daha akıcı geçiş için Bezier eğrisi eklendi */
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  background: var(--card-bg);
  overflow: hidden;
  height: 100%;
  position: relative;
  box-shadow: var(--soft-shadow);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Overlay "Details Ansehen" Katmanı */
.product-card::after {
  content: "DETAILS ANSEHEN";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%);
  background: rgba(28, 37, 65, 0.9); /* Navy Overlay */
  color: var(--gold);
  padding: 10px 22px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  border-radius: 4px;
  z-index: 5;
}

.product-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  padding: 6px 14px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

.product-img-box {
  height: 350px;
  overflow: hidden;
  background: var(--bg-primary);
  position: relative;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Yumuşak zoom geçişi */
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-img-box img {
  transform: scale(1.1); /* Zoom etkisi */
}

.price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
}

/* TESTIMONIALS */
.gold-divider {
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin-top: 15px;
}
.testimonial-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 25px;
  box-shadow: var(--soft-shadow);
  height: 100%;
  border: 1px solid var(--border-color);
  transition: 0.3s;
  position: relative;
}
.testimonial-card:hover {
  border-color: var(--gold);
}
.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.05rem;
}
.testimonial-date {
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(197, 160, 89, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.btn-outline-dark {
  border: 2px solid var(--midnight);
  color: var(--midnight);
  transition: 0.3s;
  background: transparent;
}
.btn-outline-dark:hover {
  background-color: var(--midnight);
  color: white;
  transform: translateY(-2px);
}

/* MODAL TASARIMI */
.modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  background-color: var(--card-bg);
  color: var(--text-main);
}
.modal-split-body {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  width: 100%;
}
@media (min-width: 768px) {
  .modal-split-body {
    flex-direction: row;
  }
}
.modal-img-side {
  flex: 1;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-width: 300px;
}
body.dark-mode .modal-img-side {
  background: #111;
}
.modal-img-side img {
  max-height: 450px;
  width: 100%;
  object-fit: contain;
}
.modal-info-side {
  flex: 1.1;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* MİKTAR KONTROLÜ */
.qty-control-luxe {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  width: fit-content;
  padding: 5px 15px;
  background: var(--bg-primary);
}
body.dark-mode .qty-control-luxe {
  background: var(--bg-secondary);
  border-color: var(--gold);
}
.qty-input {
  width: 60px;
  text-align: center;
  border: none;
  font-weight: 700;
  background: transparent;
  color: var(--text-main);
  font-size: 1.1rem;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* YÜZEN SEPET */
.floating-cart-pill {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #1c2541;
  color: white;
  padding: 12px 12px 12px 25px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  border: 1px solid #c5a059;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 320px;
}
.floating-cart-pill.active {
  transform: translateX(-50%) translateY(0);
}
.float-price-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.float-price-info small {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #c5a059;
  letter-spacing: 1px;
  font-weight: 700;
}
.float-price-info span {
  font-size: 1.2rem;
  font-weight: 700;
}
.float-checkout-btn {
  background: #c5a059;
  color: #1c2541;
  border: none;
  padding: 12px 25px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-checkout-btn:hover {
  background: white;
  transform: scale(1.05);
  color: #1c2541;
}

.btn-luxe {
  background: var(--midnight);
  color: white;
  border: none;
  padding: 16px;
  font-weight: 700;
  width: 100%;
  text-transform: uppercase;
  border-radius: 50px;
  transition: 0.3s;
}
body.dark-mode .btn-luxe {
  border: 1px solid var(--gold);
}
.btn-luxe:hover:not(:disabled) {
  background: var(--gold);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 50px;
  transition: 0.3s;
}
.btn-gold:hover {
  background: var(--midnight);
  color: white;
}

/* FOOTER */
.luxe-footer {
  background-color: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 130px 0 !important;
}
.footer-link {
  color: var(--text-muted);
  transition: 0.3s;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: 0.3s;
}
.footer-link:hover {
  color: var(--gold) !important;
}
.footer-link:hover::after {
  width: 100%;
}

.luxe-whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--midnight);
  color: white !important;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  z-index: 999;
  border: 1px solid var(--gold);
  transition: 0.4s;
}
.luxe-whatsapp-float:hover {
  background-color: var(--gold);
  transform: translateY(-5px);
}

/* --- LUXE TOAST BİLDİRİM SİSTEMİ --- */
#luxe-toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  pointer-events: none;
}
.luxe-toast {
  background: var(--midnight);
  color: white;
  padding: 18px 25px;
  border-radius: 15px;
  margin-bottom: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 320px;
  animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: auto;
}
@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.luxe-toast.fade-out {
  animation: toastFadeOut 0.5s ease forwards;
}
@keyframes toastFadeOut {
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}
.luxe-toast i {
  color: var(--gold);
  font-size: 1.4rem;
}
.luxe-toast .toast-title {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.luxe-toast .toast-msg {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- LUXE PRELOADER STYLES --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0b0e17;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition:
    opacity 1s cubic-bezier(0.65, 0, 0.35, 1),
    visibility 1s;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: #ffffff;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: luxeFadePulse 2.5s ease-in-out infinite;
}

.preloader-logo span {
  color: var(--gold);
}

.preloader-bar {
  width: 150px;
  height: 1px;
  background: rgba(197, 160, 89, 0.1);
  margin: 0 auto 15px;
  position: relative;
  overflow: hidden;
}

.preloader-bar::after {
  content: "";
  display: block;
  width: 60px;
  height: 100%;
  background: var(--gold);
  position: absolute;
  left: -60px;
  animation: loadingSlide 2s infinite ease-in-out;
}

.preloader-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes loadingSlide {
  0% {
    left: -60px;
  }
  100% {
    left: 100%;
  }
}

@keyframes luxeFadePulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}
