/* ============================================================
   SIBA STORE — shop-v3-enhancements.css
   Design System v2.0 Üzerine Ek Katman
   Mevcut shop.css/new_shop.css OVERRIDE ETMEDİ — üstüne eklendi
   Bootstrap 5.3 + Plus Jakarta Sans + Inter uyumlu
   ============================================================
   BÖLÜMLER:
   01. Skeleton Loading
   02. No-Image Placeholder
   03. Product Card Enhancements
   04. Category Badge Chips
   05. Search Dropdown & Autocomplete
   06. Scroll Progress Bar
   07. Product Gallery (Detail Page)
   08. Sticky Add-to-Cart Bar
   09. Loading Spinner
   10. Page Transitions
   11. Mobile Improvements
   ============================================================ */

/* ============================================================
   01. SKELETON LOADING — Ürün kartları yüklenirken shimmer
   Kullanım: <div class="skeleton skeleton--card"></div>
   JS: img yüklenince .skeleton class'ını kaldır
   ============================================================ */

@keyframes skeleton-shimmer {
  0%   { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--c-gray-100, #e2e8f0) 25%,
    #f1f5f9 37%,
    var(--c-gray-100, #e2e8f0) 63%
  );
  background-size: 936px 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--r-sm, 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: var(--c-gray-100, #e2e8f0);
  }
}

/* Skeleton varyantları */
.skeleton--card {
  width: 100%;
  border-radius: var(--r-md, 1rem);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(10,22,40,0.10));
  padding: 0;
}

.skeleton--image {
  width: 100%;
  padding-top: 70%;     /* görsel alan oranı */
  border-radius: var(--r-sm, 0.5rem) var(--r-sm, 0.5rem) 0 0;
}

.skeleton--text {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton--text-sm {
  height: 11px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 65%;
}

.skeleton--title {
  height: 18px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: 80%;
}

.skeleton--price {
  height: 22px;
  border-radius: 4px;
  width: 50%;
  margin-bottom: 14px;
}

.skeleton--btn {
  height: 40px;
  border-radius: 0.625rem;
  width: 100%;
}

.skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Kart içi skeleton layout */
.skeleton-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Dark arka plan için (header içi arama vb.) */
.skeleton--dark {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.12) 37%,
    rgba(255,255,255,0.06) 63%
  );
  background-size: 936px 100%;
}

/* ============================================================
   02. NO-IMAGE PLACEHOLDER — Kırık/eksik görsel yerine gradient
   Kullanım: <div class="product-no-image"></div>
   veya img onerror → show .product-no-image sibling
   ============================================================ */

.product-no-image {
  position: relative;
  width: 100%;
  padding-top: 70%;
  background: linear-gradient(
    145deg,
    var(--c-navy-800, #0f2040) 0%,
    var(--c-navy-700, #152b54) 40%,
    var(--c-navy-600, #1e3a6e) 100%
  );
  border-radius: var(--r-sm, 0.5rem) var(--r-sm, 0.5rem) 0 0;
  overflow: hidden;
}

/* İnce teal accent çizgi */
.product-no-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 60%,
      rgba(13, 148, 136, 0.18) 0%,
      transparent 70%
    );
  pointer-events: none;
}

/* Merkezdeki ikon — SVG data URI (boks ikon) */
.product-no-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* "Görsel Yok" yazısı (opsiyonel, data-label attribute) */
.product-no-image[data-label]::before {
  /* label için yer tutucu — JS ile .product-no-image__label eklenebilir */
}

.product-no-image__label {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* img onerror → hide img + show sibling .product-no-image */
img.product-img-error {
  display: none;
}

/* ============================================================
   03. PRODUCT CARD ENHANCEMENTS — Hover'da gradient border glow
   Mevcut .product-card class'ı üstüne ek katman
   ============================================================ */

/* Glow border — pseudo eleman tekniği */
.product-card {
  position: relative;
  isolation: isolate;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--r-md, 1rem) + 1.5px);
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 40%,
    rgba(13, 148, 136, 0) 100%
  );
  opacity: 0;
  transition:
    opacity var(--t-med, 250ms) cubic-bezier(0.4,0,0.2,1),
    background var(--t-med, 250ms);
  z-index: -1;
  pointer-events: none;
}

.product-card:hover::before {
  background: linear-gradient(
    135deg,
    var(--c-teal-glow, #2dd4bf) 0%,
    var(--c-teal, #0d9488) 50%,
    var(--c-gold, #f59e0b) 100%
  );
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .product-card::before {
    transition: none;
  }
}

/* Hover görüntü zoom — mevcut değilse ekle */
.product-card:hover .product-card__img,
.product-card:hover .card-img-top,
.product-card:hover .product-img {
  transform: scale(1.06);
}

/* Ürün badge — "Yeni" / "İndirim" etiketi */
.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.product-badge--new {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, var(--c-teal), var(--c-teal-light));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
}

.product-badge--discount {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 100px;
  white-space: nowrap;
}

/* Hızlı eylem butonu (hover'da görünür) */
.product-card__quick-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity var(--t-fast, 150ms),
    transform var(--t-fast, 150ms);
  pointer-events: none;
}

.product-card:hover .product-card__quick-actions {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .product-card__quick-actions {
    transition: none;
  }
}

.product-card__quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10,22,40,0.18);
  transition: all var(--t-fast, 150ms);
  color: var(--c-navy, #0a1628);
  text-decoration: none;
}

.product-card__quick-btn:hover {
  background: var(--c-teal, #0d9488);
  color: #fff;
  transform: scale(1.1);
}

/* ============================================================
   04. CATEGORY BADGE CHIPS — Kategori sayfası tag/chip stili
   Kullanım: <a class="category-chip">Klima</a>
             <a class="category-chip category-chip--active">Pompa</a>
   ============================================================ */

.category-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: 1.5px solid var(--c-teal, #0d9488);
  border-radius: 100px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-teal, #0d9488);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--t-fast, 150ms),
    color var(--t-fast, 150ms),
    border-color var(--t-fast, 150ms),
    box-shadow var(--t-fast, 150ms),
    transform var(--t-fast, 150ms);
  /* Touch target — min 44px yükseklik için line-height */
  min-height: 36px;
  line-height: 1;
  user-select: none;
}

.category-chip:hover {
  background: var(--c-teal, #0d9488);
  border-color: var(--c-teal, #0d9488);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,148,136,0.28);
  text-decoration: none;
}

.category-chip--active,
.category-chip.active {
  background: linear-gradient(135deg, var(--c-teal), var(--c-teal-light, #14b8a6));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}

.category-chip--active:hover,
.category-chip.active:hover {
  background: linear-gradient(135deg, var(--c-teal-light, #14b8a6), var(--c-teal-glow, #2dd4bf));
  color: #fff;
}

/* Navy temalı chip (header arka planı gibi koyu alanlar için) */
.category-chip--navy {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
}

.category-chip--navy:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* Gold/vurgulu chip */
.category-chip--gold {
  border-color: var(--c-gold, #f59e0b);
  color: var(--c-amber, #d97706);
}

.category-chip--gold:hover {
  background: var(--c-gold, #f59e0b);
  color: var(--c-navy, #0a1628);
}

/* Sayı rozeti */
.category-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  font-size: 0.675rem;
  font-weight: 700;
  background: rgba(13,148,136,0.15);
  color: inherit;
  line-height: 1;
}

.category-chip--active .category-chip__count,
.category-chip.active .category-chip__count {
  background: rgba(255,255,255,0.25);
}

@media (prefers-reduced-motion: reduce) {
  .category-chip {
    transition: none;
  }
}

/* ============================================================
   05. SEARCH DROPDOWN & AUTOCOMPLETE — Glass-dark stil
   Kullanım: <div class="search-results-dropdown">
               <div class="search-results-item">...</div>
             </div>
   ============================================================ */

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: var(--z-dropdown, 100);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(13,148,136,0.22);
  border-radius: var(--r-md, 1rem);
  box-shadow:
    0 16px 48px rgba(10,22,40,0.42),
    0 1px 0 rgba(255,255,255,0.06) inset;
  overflow: hidden;
  max-height: min(440px, 70vh);
  overflow-y: auto;
  /* başlangıçta gizli */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity var(--t-fast, 150ms),
    transform var(--t-fast, 150ms);
}

.search-results-dropdown.is-open,
.search-results-dropdown[aria-expanded="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .search-results-dropdown {
    transition: none;
  }
}

/* İnce teal scrollbar */
.search-results-dropdown::-webkit-scrollbar { width: 4px; }
.search-results-dropdown::-webkit-scrollbar-track { background: transparent; }
.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(13,148,136,0.5);
  border-radius: 100px;
}

/* Bölüm başlığı */
.search-results-header {
  padding: 0.75rem 1rem 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Tek sonuç satırı */
.search-results-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast, 150ms);
  min-height: 56px;
}

.search-results-item:hover,
.search-results-item.is-focused {
  background: rgba(13,148,136,0.12);
}

.search-results-item:active {
  background: rgba(13,148,136,0.20);
}

/* Küçük ürün görseli */
.search-results-item__thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm, 0.5rem);
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Ürün bilgisi */
.search-results-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.search-results-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.90);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* Eşleşen metin vurgu */
.search-results-item__name mark,
.search-results-item__name .highlight {
  background: transparent;
  color: var(--c-teal-glow, #2dd4bf);
  font-weight: 700;
  padding: 0;
}

.search-results-item__meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results-item__price {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-gold-light, #fbbf24);
  white-space: nowrap;
}

/* "Tümünü gör" alt footer */
.search-results-footer {
  padding: 0.625rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-results-footer a,
.search-results-footer button {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-teal-light, #14b8a6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--t-fast, 150ms);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  min-height: 44px;
}

.search-results-footer a:hover,
.search-results-footer button:hover {
  color: var(--c-teal-glow, #2dd4bf);
}

/* "Sonuç bulunamadı" durumu */
.search-results-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.search-results-empty svg {
  width: 36px;
  height: 36px;
  opacity: 0.4;
  color: var(--c-teal, #0d9488);
}

/* ============================================================
   06. SCROLL PROGRESS BAR — Sayfa üstünde ince teal çizgi
   Kullanım: <div class="scroll-progress" role="progressbar"
               aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
   JS: scrollProgress.style.setProperty('--progress', scrollPercent + '%');
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: calc(var(--z-sticky, 200) + 10);
  background: rgba(13,148,136,0.15);
  pointer-events: none;
}

.scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(
    90deg,
    var(--c-teal, #0d9488) 0%,
    var(--c-teal-glow, #2dd4bf) 60%,
    var(--c-gold-light, #fbbf24) 100%
  );
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(45,212,191,0.5);
  transition: width 80ms linear;
  will-change: width;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress::after {
    transition: none;
  }
}

/* ============================================================
   07. PRODUCT GALLERY (DETAIL PAGE) — Büyük, etkileyici galeri
   Kullanım:
     <div class="product-gallery">
       <div class="product-gallery-main">
         <img class="product-gallery-main__img" ...>
         <div class="product-gallery-main__zoom-btn">...</div>
       </div>
       <div class="product-gallery-thumbs">
         <button class="product-gallery-thumb active">...</button>
       </div>
     </div>
   ============================================================ */

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Ana görsel alan */
.product-gallery-main {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg, 1.5rem);
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--c-gray-50, #f1f5f9) 0%,
    #fff 100%
  );
  aspect-ratio: 4 / 3;
  box-shadow:
    0 8px 32px rgba(10,22,40,0.10),
    0 0 0 1px rgba(13,148,136,0.08);
  transition:
    box-shadow var(--t-med, 250ms),
    transform var(--t-med, 250ms);
  cursor: zoom-in;
}

.product-gallery-main:hover {
  box-shadow:
    0 16px 56px rgba(10,22,40,0.15),
    0 0 0 1.5px rgba(13,148,136,0.22),
    0 0 0 4px rgba(13,148,136,0.06);
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-main {
    transition: none;
  }
}

/* Ana görsel */
.product-gallery-main__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform var(--t-slow, 400ms) cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.product-gallery-main:hover .product-gallery-main__img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-main__img {
    transition: none;
  }
}

/* Büyüt butonu (sağ alt köşe) */
.product-gallery-main__zoom-btn {
  position: absolute;
  bottom: 0.875rem;
  right: 0.875rem;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm, 0.5rem);
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity var(--t-fast, 150ms),
    transform var(--t-fast, 150ms),
    background var(--t-fast, 150ms);
  cursor: pointer;
  border: none;
}

.product-gallery-main:hover .product-gallery-main__zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.product-gallery-main__zoom-btn:hover {
  background: var(--c-teal, #0d9488);
  color: #fff;
}

/* Thumbnail şerit */
.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-gallery-thumbs::-webkit-scrollbar { display: none; }

.product-gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm, 0.5rem);
  overflow: hidden;
  border: 2px solid var(--c-gray-100, #e2e8f0);
  background: var(--c-gray-50, #f1f5f9);
  cursor: pointer;
  transition:
    border-color var(--t-fast, 150ms),
    box-shadow var(--t-fast, 150ms),
    transform var(--t-fast, 150ms);
  scroll-snap-align: start;
  padding: 0;
}

.product-gallery-thumb:hover {
  border-color: var(--c-teal-light, #14b8a6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.22);
}

.product-gallery-thumb.active,
.product-gallery-thumb[aria-selected="true"] {
  border-color: var(--c-teal, #0d9488);
  box-shadow:
    0 0 0 3px rgba(13,148,136,0.20),
    0 4px 12px rgba(13,148,136,0.22);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (min-width: 768px) {
  .product-gallery {
    flex-direction: row;
    gap: 1rem;
  }

  .product-gallery-thumbs {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    width: 84px;
    order: -1;
    max-height: 420px;
    padding-bottom: 0;
    padding-right: 4px;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }

  .product-gallery-main {
    flex: 1;
    aspect-ratio: 1;
  }

  .product-gallery-thumb {
    scroll-snap-align: start;
  }
}

@media (min-width: 1024px) {
  .product-gallery-main {
    aspect-ratio: 1;
    max-height: 520px;
  }
}

/* ============================================================
   08. STICKY ADD-TO-CART BAR — Scroll edince altta sabit WhatsApp CTA
   Kullanım: <div class="sticky-cta" id="stickyCta">
               <div class="sticky-cta__info">...</div>
               <div class="sticky-cta__actions">...</div>
             </div>
   JS: sticky-cta.classList.add('is-visible') scroll sonrası
   ============================================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal, 300);
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(13,148,136,0.22);
  box-shadow:
    0 -8px 32px rgba(10,22,40,0.35),
    0 -1px 0 rgba(13,148,136,0.15);
  padding: 0.875rem 1rem;
  transform: translateY(100%);
  transition:
    transform var(--t-med, 250ms) cubic-bezier(0.4,0,0.2,1),
    opacity var(--t-med, 250ms);
  opacity: 0;
  pointer-events: none;
  /* Safe area (iPhone alt çubuk) */
  padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta {
    transition: none;
  }
}

/* İç düzen */
.sticky-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Ürün mini bilgisi */
.sticky-cta__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.sticky-cta__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.sticky-cta__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-gold-light, #fbbf24);
  line-height: 1.3;
}

/* Aksiyon alanı */
.sticky-cta__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* WhatsApp CTA butonu */
.sticky-cta__btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--c-wa, #25d366), var(--c-wa-dark, #128c4e));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.30);
  text-decoration: none;
  transition:
    transform var(--t-spring, 300ms),
    box-shadow var(--t-spring, 300ms);
  white-space: nowrap;
}

.sticky-cta__btn-wa:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  color: #fff;
  text-decoration: none;
}

.sticky-cta__btn-wa:active {
  transform: scale(0.97);
}

/* Kapat butonu */
.sticky-cta__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--t-fast, 150ms);
  flex-shrink: 0;
  padding: 0;
}

.sticky-cta__close:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}

@media (min-width: 640px) {
  .sticky-cta {
    padding: 1rem 1.5rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================================
   09. LOADING SPINNER — Genel kullanım, teal renk
   Kullanım: <div class="siba-spinner" aria-label="Yükleniyor..."></div>
             <div class="siba-spinner siba-spinner--lg"></div>
             <div class="siba-spinner siba-spinner--white"></div>
   ============================================================ */

@keyframes siba-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes siba-pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.7; }
  50%  { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

.siba-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(13,148,136,0.18);
  border-top-color: var(--c-teal, #0d9488);
  border-right-color: var(--c-teal-light, #14b8a6);
  animation: siba-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .siba-spinner {
    animation: none;
    border-color: var(--c-teal, #0d9488);
    opacity: 0.5;
  }
}

/* Boyut varyantları */
.siba-spinner--xs { width: 16px; height: 16px; border-width: 2px; }
.siba-spinner--sm { width: 20px; height: 20px; border-width: 2px; }
.siba-spinner--lg { width: 36px; height: 36px; border-width: 3px; }
.siba-spinner--xl { width: 52px; height: 52px; border-width: 4px; }

/* Renk varyantları */
.siba-spinner--white {
  border-color: rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.85);
  border-right-color: rgba(255,255,255,0.55);
}

.siba-spinner--gold {
  border-color: rgba(245,158,11,0.18);
  border-top-color: var(--c-gold, #f59e0b);
  border-right-color: var(--c-gold-light, #fbbf24);
}

/* Tam sayfa overlay spinner */
.siba-spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 300);
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast, 150ms);
}

.siba-spinner-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.siba-spinner-overlay .siba-spinner-overlay__label {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body, 'Inter', sans-serif);
}

/* Inline yükleniyor butonu durumu */
.btn .siba-spinner {
  pointer-events: none;
}

/* ============================================================
   10. PAGE TRANSITIONS — Sayfa geçişlerinde fade efekti
   Kullanım: body'ye .page-transition-out class'ı ekle çıkışta,
   yeni sayfada body.page-transition-in ile giriş
   ============================================================ */

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Sayfa içeriği animasyonu — giriş */
.page-content-wrap,
main[id="main-content"],
.main-content {
  animation: page-fade-in 0.35s cubic-bezier(0.4,0,0.2,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .page-content-wrap,
  main[id="main-content"],
  .main-content {
    animation: none;
  }
}

/* JS ile eklenecek çıkış sınıfı */
body.page-transition-out .page-content-wrap,
body.page-transition-out main[id="main-content"],
body.page-transition-out .main-content {
  animation: page-fade-out 0.2s cubic-bezier(0.4,0,0.2,1) both;
  pointer-events: none;
}

/* Yüklenen section'lar — staggered giriş */
.stagger-children > * {
  animation: page-fade-in 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

.stagger-children > *:nth-child(1)  { animation-delay: 0ms; }
.stagger-children > *:nth-child(2)  { animation-delay: 60ms; }
.stagger-children > *:nth-child(3)  { animation-delay: 120ms; }
.stagger-children > *:nth-child(4)  { animation-delay: 180ms; }
.stagger-children > *:nth-child(5)  { animation-delay: 240ms; }
.stagger-children > *:nth-child(6)  { animation-delay: 300ms; }
.stagger-children > *:nth-child(7)  { animation-delay: 360ms; }
.stagger-children > *:nth-child(8)  { animation-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .stagger-children > * {
    animation: none;
  }
}

/* View Transitions API (modern tarayıcılar) */
@supports (view-transition-name: none) {
  ::view-transition-old(root) {
    animation: page-fade-out 0.2s ease-out;
  }
  ::view-transition-new(root) {
    animation: page-fade-in 0.3s ease-in;
  }

  @media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation: none;
    }
  }
}

/* ============================================================
   11. MOBILE IMPROVEMENTS — Ürün kartları spacing, touch-friendly
   Mobile-first — min-width ile yukarı doğru genişliyor
   ============================================================ */

/* ---- 11a. Ürün Grid Spacing ---- */
.products-grid,
[class*="product-grid"],
.shop-products-grid {
  gap: 0.875rem;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 480px) {
  .products-grid,
  [class*="product-grid"],
  .shop-products-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .products-grid,
  [class*="product-grid"],
  .shop-products-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .products-grid,
  [class*="product-grid"],
  .shop-products-grid {
    gap: 1.5rem;
  }
}

/* ---- 11b. Touch-friendly Buton Boyutları ---- */
/* Min 44x44px touch target */
.product-card .btn,
.product-card .btn-siba-wa,
.product-card .btn-siba-primary,
.product-card .btn-siba-secondary {
  min-height: 44px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.875rem;
}

/* WhatsApp buton — en az 48px yükseklik mobilde */
@media (max-width: 767px) {
  .btn-siba-wa,
  a[href*="wa.me"],
  a[href*="api.whatsapp"] {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  .sticky-cta__btn-wa {
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* ---- 11c. Mobil Kart İyileştirmeleri ---- */
@media (max-width: 575px) {
  /* Yatay scroll yerine grid */
  .product-card {
    border-radius: 0.875rem;
  }

  /* Küçük ekranda card açıklama metni kırpılsın */
  .product-card__desc,
  .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Ürün adı — 2 satır ile sınırla */
  .product-card .product-name,
  .product-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.45;
    min-height: calc(0.9rem * 1.45 * 2);
  }

  /* Card padding azalt */
  .product-card .card-body {
    padding: 0.75rem;
  }

  /* Fiyat bloğu */
  .product-card .price-block,
  .product-card .product-price {
    font-size: 1rem;
  }
}

/* ---- 11d. Arama Çubuğu Mobil ---- */
@media (max-width: 767px) {
  .shop-search .form-control {
    font-size: 1rem; /* iOS zoom engelle — 16px altı = zoom */
  }

  /* Dropdown tam genişlik */
  .search-results-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--r-lg, 1.5rem) var(--r-lg, 1.5rem) 0 0;
    max-height: 65vh;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .search-results-dropdown.is-open,
  .search-results-dropdown[aria-expanded="true"] {
    transform: translateY(0);
  }

  /* Tutamaç çubuğu */
  .search-results-dropdown::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    margin: 0.75rem auto 0.25rem;
    flex-shrink: 0;
  }
}

/* ---- 11e. Mobil Navigasyon ---- */
@media (max-width: 767px) {
  .shop-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .shop-nav::-webkit-scrollbar { display: none; }

  .shop-nav .nav {
    flex-wrap: nowrap;
    padding: 0.375rem 0.5rem;
    gap: 0.25rem;
  }

  .shop-nav .nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* ---- 11f. Category chips mobil ---- */
@media (max-width: 575px) {
  .category-chips-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    gap: 0.375rem;
  }

  .category-chips-wrap::-webkit-scrollbar { display: none; }

  .category-chip {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* ---- 11g. Ürün Detay Mobil ---- */
@media (max-width: 767px) {
  .product-gallery-main {
    border-radius: var(--r-md, 1rem);
    aspect-ratio: 4 / 3;
  }

  .product-gallery-thumb {
    width: 60px;
    height: 60px;
  }

  /* Detay sayfası — sticky CTA için alt padding */
  .product-detail-wrap,
  [class*="product-detail"] {
    padding-bottom: 5rem;
  }
}

/* ---- 11h. Genel dokunma iyileştirmeleri ---- */
/* Tap highlight kaldır, yerine focus ring kullan */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Tüm interaktif elementlerde visible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-teal-light, #14b8a6);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Büyük liste itemları — mobilde daha geniş tap alanı */
@media (max-width: 767px) {
  .shop-nav .nav-link,
  .category-chip,
  .search-results-item {
    min-height: 44px;
  }
}

/* ---- 11i. Skeleton mobil grid uyumu ---- */
@media (max-width: 575px) {
  .skeleton--image {
    padding-top: 75%;
  }
}

/* ============================================================
   DARK MODE — prefers-color-scheme (opsiyonel, hazır altyapı)
   Mevcut tema zaten navy/dark tabanlı.
   Light body alanları için dark mode override:
   ============================================================ */

@media (prefers-color-scheme: dark) {
  .skeleton {
    background: linear-gradient(
      90deg,
      #1e293b 25%,
      #273549 37%,
      #1e293b 63%
    );
    background-size: 936px 100%;
  }

  .product-gallery-main {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  }

  .product-gallery-thumb {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
  }
}

/* ============================================================
   END — shop-v3-enhancements.css
   Tüm 11 madde eksiksiz yazıldı.
   Kullanım: <link rel="stylesheet" href="shop-v3-enhancements.css">
   Bu dosyayı shop.css / new_shop.css'ten SONRA yükle.
   ============================================================ */
