/* ============================================================
   MAYA KOZMETİK – Responsive & Mobile Menu CSS
   ============================================================ */

/* ===== MOBILE MENU ===== */
@media (max-width: 1024px) {
  .mainnav {
    display: block;
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    transition: left .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .mainnav.mobile-open { left: 0; }
  .mainnav__inner { overflow-x: unset; }
  .mainnav__list {
    flex-direction: column;
    padding: 1.5rem 0;
    white-space: normal;
  }
  .mainnav__list > li { width: 100%; }
  .mainnav__list > li > a {
    padding: .9rem 1.5rem;
    font-size: .95rem;
    border-bottom: 1px solid var(--gray-100);
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--gray-50);
    display: none;
    flex-direction: column;
    gap: 0;
  }
  .dropdown.open { display: flex; }
  .dropdown__col { padding: .75rem 1.5rem; }
  .dropdown__col ul a { padding: .4rem .5rem; }
  .nav-cta { margin: 1rem 1.5rem; display: inline-flex; }
}

/* ===== SEARCH OVERLAY (MOBILE) ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(107,33,168,.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay__inner { width: 100%; max-width: 600px; }
.search-overlay__close {
  position: absolute;
  top: 2rem; right: 2rem;
  color: rgba(255,255,255,.7);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
}
.search-overlay__close:hover { color: white; }
.search-overlay__form {
  display: flex;
  background: white;
  border-radius: 9999px;
  overflow: hidden;
}
.search-overlay__input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  outline: none;
  font-family: var(--font-body);
}
.search-overlay__btn {
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}
.search-overlay__label {
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-top: 1rem;
}

/* ===== BACK TO TOP ANIMATION ===== */
@keyframes slideUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ===== PRODUCT CARD SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--purple-600);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-800);
  animation: slideUp .3s ease both;
  max-width: 360px;
}
.toast i { color: var(--purple-600); font-size: 1.1rem; }
.toast.success { border-left-color: #16a34a; }
.toast.success i { color: #16a34a; }
.toast.error { border-left-color: #dc2626; }
.toast.error i { color: #dc2626; }

/* ===== CART DRAWER ===== */
.cart-drawer {
  position: fixed;
  top: 0; right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 99998;
  box-shadow: var(--shadow-xl);
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer__header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gray-900);
}
.cart-drawer__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-drawer__close:hover { background: var(--pink-100); color: var(--pink-700); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-drawer__empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--gray-400);
}
.cart-drawer__empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-100);
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.cart-drawer__footer .btn { width: 100%; justify-content: center; }
