/* ==========================================================================
   MAĞAZA İZGARA, BREADCRUMBS & SİPARİŞ FORMU STİLLERİ (SHOP.CSS)
   ========================================================================== */

/* ==========================================================================
   1. MİNİMALİST BREADCRUMBS (İZ HARİTASI - EDİTORYAL STİL)
   ========================================================================== */
.ms-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.5rem auto 1.5rem;
  max-width: 1200px;
  padding: 0 1.5rem;
  color: var(--text-secondary, #64748b);
}

.ms-breadcrumbs a {
  color: var(--text-secondary, #64748b);
  text-decoration: none;
  transition: color 0.25s ease;
}

.ms-breadcrumbs a:hover {
  color: var(--text-primary, #0f172a);
}

.ms-breadcrumbs .ms-bc-sep {
  color: var(--border-color, #cbd5e1);
  font-size: 0.65rem;
  font-weight: 400;
  user-select: none;
}

.ms-breadcrumbs .ms-bc-current {
  color: var(--text-primary, #0f172a);
  font-weight: 700;
}

/* ==========================================================================
   2. MAĞAZA VE KATEGORİ BAŞLIK (HEADER) ALANI
   ========================================================================== */
.shop-header {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.shop-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.shop-header p {
  color: var(--text-secondary, #64748b);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Kategori & Etiket Filtre Kapsülleri */
.tag-cat-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.tag-filter-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-secondary, #64748b);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
}

.tag-filter-btn:hover,
.tag-filter-btn.active {
  background-color: var(--text-primary, #0f172a);
  color: #ffffff;
  border-color: var(--text-primary, #0f172a);
}

/* ==========================================================================
   3. ÜRÜN IZGARASI VE KARTLAR (4:5 EDİTORYAL ORAN)
   ========================================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.08);
  border-color: var(--text-primary, #0f172a);
}

.product-card:focus-visible {
  outline: 2px solid var(--text-primary, #0f172a);
  outline-offset: 3px;
}

/* 4:5 Görsel Oranı Kilitli Kapsayıcı */
.product-card .card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--bg-input, #f8fafc);
}

.product-card .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

/* Ürün Rozeti (ASTM F-136 Titanyum / İndirim) */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--text-primary, #0f172a);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  pointer-events: none;
}

/* Ürün Bilgi Alanı */
.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-material {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.product-card:hover .product-title {
  color: var(--accent-hover, #0284c7);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-color, #e2e8f0);
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.product-price .old-price {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  text-decoration: line-through;
  margin-right: 0.4rem;
  font-weight: 400;
}

/* ==========================================================================
   4. SİPARİŞ FORMU MODAL STİLLERİ
   ========================================================================== */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.checkout-box {
  background: var(--card-bg, #ffffff);
  border-radius: var(--radius, 8px);
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.checkout-modal.is-active .checkout-box {
  transform: translateY(0);
}

.checkout-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  transition: color 0.2s ease;
  padding: 0.25rem;
}

.checkout-close:hover {
  color: var(--text-primary, #0f172a);
}

/* Modal Form Elemanları */
.checkout-box form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.checkout-box label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-box input,
.checkout-box textarea,
.checkout-box select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius, 6px);
  background: var(--bg-input, #f8fafc);
  color: var(--text-primary, #0f172a);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.checkout-box input:focus,
.checkout-box textarea:focus,
.checkout-box select:focus {
  border-color: var(--text-primary, #0f172a);
}

.checkout-box button[type="submit"] {
  background-color: var(--text-primary, #0f172a);
  color: #ffffff;
  border: none;
  padding: 1rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.checkout-box button[type="submit"]:hover {
  background-color: var(--accent-hover, #0284c7);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. MOBİL UYUMLULUK (2 SÜTUNLU IZGARA DÜZENİ)
   ========================================================================== */
@media (max-width: 768px) {
  .ms-breadcrumbs {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
    font-size: 0.68rem;
  }

  .shop-header {
    padding: 1.5rem 1rem 1.25rem;
  }

  /* Mobilde Yan Yana 2 Sütunlu Kompakt Izgara */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1rem 3rem;
  }

  /* Rozet Küçültme */
  .product-badge {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }

  /* Kart İçerik Alanı & Tipografi Düzeltmeleri */
  .product-info {
    padding: 0.75rem;
  }

  .product-material {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
  }

  .product-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price-row {
    padding-top: 0.5rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-price .old-price {
    font-size: 0.75rem;
    margin-right: 0.25rem;
  }

  /* Mobil Modal Görünümü */
  .checkout-box {
    padding: 1.5rem;
    margin: 1rem;
  }
}