/*==================================================
  E-TİCARET ÖZELLİKLERİ - PROFESYONEL TASARIM
==================================================*/

/* ============================================
   MEGA MENÜ
============================================ */
.zk-mega-menu-wrapper {
  position: relative;
}

.zk-mega-trigger {
  cursor: pointer;
}

.zk-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1200px;
  background: white;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border-radius: 0 0 20px 20px;
  padding: 40px 0;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 999;
}

.zk-mega-menu-wrapper:hover .zk-mega-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.zk-mega-category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: white;
  border: 2px solid var(--zk-gray-300);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.zk-mega-category:hover {
  border-color: var(--zk-primary);
  background: var(--zk-pastel-orange);
  transform: translateX(5px);
}

.zk-mega-category-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--zk-pastel-orange), var(--zk-pastel-pink));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.zk-mega-category-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--zk-dark);
  margin: 0 0 3px 0;
}

.zk-mega-category-info span {
  font-size: 12px;
  color: var(--zk-gray-500);
}

.zk-mega-promo {
  background: linear-gradient(135deg, var(--zk-primary), var(--zk-accent));
  border-radius: 20px;
  padding: 30px;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.zk-mega-promo-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.zk-mega-promo h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.zk-mega-promo p {
  opacity: 0.9;
  font-size: 14px;
  margin-bottom: 20px;
}

.zk-mega-promo-btn {
  background: white;
  color: var(--zk-primary);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.zk-mega-promo-btn:hover {
  transform: scale(1.05);
  color: var(--zk-primary);
}

/* ============================================
   İKON BUTONLARI
============================================ */
.zk-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--zk-pastel-orange);
  border: 2px solid transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zk-gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.zk-icon-btn:hover {
  background: var(--zk-primary);
  color: white;
  border-color: var(--zk-primary);
  transform: scale(1.1);
}

.zk-badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #E84393, #FD79A8);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ============================================
   MİNİ CART (SEPET)
============================================ */
.zk-mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.zk-mini-cart.active {
  transform: translateX(0);
}

.zk-mini-cart-header {
  padding: 25px 30px;
  border-bottom: 2px solid var(--zk-gray-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zk-mini-cart-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--zk-dark);
  margin: 0;
}

.zk-mini-cart-close {
  width: 36px;
  height: 36px;
  background: var(--zk-gray-100);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zk-mini-cart-close:hover {
  background: var(--zk-danger);
  color: white;
  transform: rotate(90deg);
}

.zk-mini-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
}

.zk-empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--zk-gray-500);
}

.zk-empty-cart svg {
  margin-bottom: 20px;
  opacity: 0.3;
}

.zk-empty-cart p {
  font-weight: 600;
  margin-bottom: 5px;
}

.zk-empty-cart small {
  font-size: 13px;
}

.zk-cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--zk-gray-300);
}

.zk-cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.zk-cart-item-info {
  flex: 1;
}

.zk-cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--zk-dark);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zk-cart-item-price {
  color: var(--zk-primary);
  font-weight: 700;
  font-size: 15px;
}

.zk-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.zk-cart-item-qty button {
  width: 28px;
  height: 28px;
  background: var(--zk-gray-100);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.zk-cart-item-qty button:hover {
  background: var(--zk-primary);
  color: white;
}

.zk-cart-item-remove {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--zk-danger);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
}

.zk-cart-item-remove:hover {
  text-decoration: underline;
}

.zk-mini-cart-footer {
  padding: 25px 30px;
  border-top: 2px solid var(--zk-gray-300);
  background: var(--zk-gray-100);
}

.zk-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.zk-cart-total strong {
  font-size: 1.5rem;
  color: var(--zk-primary);
}

/* Mini Cart Overlay */
.zk-mini-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.zk-mini-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   GÜVEN ROZET ŞERİDİ
============================================ */
.zk-trust-bar {
  background: linear-gradient(135deg, var(--zk-gray-100) 0%, white 100%);
  border-bottom: 1px solid var(--zk-gray-300);
  padding: 20px 0;
  margin-bottom: 30px;
}

.zk-trust-bar-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.zk-trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--zk-gray-700);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 150px;
  justify-content: center;
}

.zk-trust-bar-item svg {
  color: var(--zk-primary);
  flex-shrink: 0;
}

/* ============================================
   QUICK VIEW MODAL
============================================ */
.zk-quick-view {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.zk-quick-view.active {
  display: flex;
}

.zk-quick-view-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zk-quick-view-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.zk-quick-view-close:hover {
  background: var(--zk-danger);
  color: white;
  transform: rotate(90deg);
}

.zk-quick-view-body {
  padding: 40px;
}

/* ============================================
   PRODUCT ZOOM
============================================ */
.zk-product-zoom {
  position: relative;
  cursor: zoom-in;
}

.zk-product-zoom:hover::after {
  content: '🔍';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============================================
   PRODUCT FILTERS
============================================ */
.zk-filters {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--zk-shadow-sm);
  margin-bottom: 30px;
}

.zk-filter-group {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--zk-gray-300);
}

.zk-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.zk-filter-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zk-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zk-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
}

.zk-filter-item:hover {
  padding-left: 10px;
  color: var(--zk-primary);
}

.zk-filter-item input[type="checkbox"],
.zk-filter-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--zk-primary);
  cursor: pointer;
}

.zk-price-slider {
  margin: 20px 0;
}

.zk-price-values {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 600;
  color: var(--zk-primary);
}

/* ============================================
   PRODUCT SORTER
============================================ */
.zk-product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--zk-shadow-sm);
}

.zk-product-count {
  color: var(--zk-gray-600);
  font-size: 14px;
}

.zk-product-count strong {
  color: var(--zk-dark);
  font-size: 16px;
}

.zk-product-sorter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zk-product-sorter select {
  padding: 10px 40px 10px 16px;
  border: 2px solid var(--zk-gray-300);
  border-radius: 50px;
  background: white;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' fill='none' stroke='%23333' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  transition: all 0.3s ease;
}

.zk-product-sorter select:focus {
  border-color: var(--zk-primary);
  outline: none;
}

.zk-view-toggle {
  display: flex;
  gap: 5px;
}

.zk-view-btn {
  width: 40px;
  height: 40px;
  background: var(--zk-gray-100);
  border: 2px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zk-view-btn:hover,
.zk-view-btn.active {
  background: var(--zk-primary);
  color: white;
  border-color: var(--zk-primary);
}

/* ============================================
   LIVE CHAT WIDGET
============================================ */
.zk-live-chat {
  position: fixed;
  bottom: 100px;
  right: 25px;
  z-index: 9997;
}

.zk-chat-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(108,92,231,0.4);
  transition: all 0.3s ease;
  animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
  0%, 100% { 
    box-shadow: 0 4px 25px rgba(108,92,231,0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 4px 35px rgba(108,92,231,0.6);
    transform: scale(1.05);
  }
}

.zk-chat-btn:hover {
  transform: scale(1.1);
}

.zk-chat-bubble {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: white;
  padding: 15px 20px;
  border-radius: 20px 20px 5px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 200px;
  font-size: 14px;
  animation: bubbleBounce 0.5s ease;
}

@keyframes bubbleBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.zk-chat-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

/* ============================================
   COUNTDOWN TIMER
============================================ */
.zk-countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.zk-countdown-item {
  background: linear-gradient(135deg, var(--zk-primary), var(--zk-accent));
  color: white;
  border-radius: 12px;
  padding: 15px;
  min-width: 70px;
  text-align: center;
}

.zk-countdown-value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.zk-countdown-label {
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

/* ============================================
   BREADCRUMB GELİŞMİŞ
============================================ */
.zk-breadcrumb-enhanced {
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: var(--zk-shadow-sm);
}

.zk-breadcrumb-enhanced ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.zk-breadcrumb-enhanced li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.zk-breadcrumb-enhanced li:not(:last-child)::after {
  content: '›';
  color: var(--zk-gray-500);
  font-weight: 600;
}

.zk-breadcrumb-enhanced a {
  color: var(--zk-gray-600);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 12px;
  border-radius: 8px;
}

.zk-breadcrumb-enhanced a:hover {
  color: var(--zk-primary);
  background: var(--zk-pastel-orange);
}

.zk-breadcrumb-enhanced .active {
  color: var(--zk-primary);
  font-weight: 600;
}

/* ============================================
   STOCK INDICATOR
============================================ */
.zk-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.zk-stock-indicator.in-stock {
  background: var(--zk-pastel-mint);
  color: var(--zk-success);
}

.zk-stock-indicator.low-stock {
  background: var(--zk-pastel-yellow);
  color: #E65100;
}

.zk-stock-indicator.out-of-stock {
  background: var(--zk-pastel-pink);
  color: var(--zk-danger);
}

.zk-stock-bar {
  width: 100%;
  height: 8px;
  background: var(--zk-gray-300);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 10px;
}

.zk-stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--zk-success), #55EFC4);
  border-radius: 50px;
  transition: width 0.3s ease;
}

/* ============================================
   ÜRÜN KART BUTONLARI
============================================ */
.zk-product-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.zk-add-to-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.zk-product-buttons .zk-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.zk-add-to-cart svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.zk-wishlist-btn {
  transition: all 0.3s ease;
}

.zk-wishlist-btn.active {
  background: var(--zk-danger) !important;
  color: white !important;
}

.zk-wishlist-btn.active svg {
  fill: currentColor;
}

.zk-wishlist-btn:hover {
  background: var(--zk-danger);
  color: white;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 991px) {
  .zk-mega-menu {
    max-width: 95vw;
  }
  
  .zk-trust-bar-items {
    justify-content: center;
  }
  
  .zk-trust-bar-item {
    min-width: auto;
  }
  
  .zk-product-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .zk-mini-cart {
    width: 100%;
  }
  
  .zk-trust-bar-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .zk-trust-bar-item {
    justify-content: flex-start;
  }
  
  .zk-countdown {
    gap: 10px;
  }
  
  .zk-countdown-item {
    min-width: 60px;
    padding: 12px;
  }
  
  .zk-countdown-value {
    font-size: 1.5rem;
  }
}

/* ============================================
   LOADING STATES
============================================ */
.zk-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.zk-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */
.zk-scroll-top {
  position: fixed;
  bottom: 175px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid var(--zk-primary);
  border-radius: 50%;
  color: var(--zk-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9996;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.zk-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.zk-scroll-top:hover {
  background: var(--zk-primary);
  color: white;
  transform: translateY(-5px);
}

