/* Magaza Ana Sayfa Stilleri */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0 40px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.cart-summary-header {
  position: absolute;
  top: 20px;
  right: 20px;
}

.cart-summary-header .btn {
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cart-summary-header .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Filters Section */
.filters-section {
  background: #f8f9fa;
  padding: 30px 0;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input-group {
  position: relative;
  display: flex;
}

.search-input-group .form-control {
  border-radius: 25px 0 0 25px;
  border-right: none;
  padding-left: 20px;
  height: 45px;
}

.search-btn {
  background: #007bff;
  border: 1px solid #007bff;
  border-radius: 0 25px 25px 0;
  color: white;
  padding: 8px 20px;
  height: 45px;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #0056b3;
  border-color: #0056b3;
}

/* Products Grid */
.products-grid {
  margin-bottom: 40px;
}

.product-card-wrapper {
  height: 100%;
  margin-bottom: 30px;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-discount {
  background: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-premium {
  background: #ffc107;
  color: #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-featured {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-out-of-stock {
  background: #6c757d;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-low-stock {
  background: #fd7e14;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-digital {
  background: #17a2b8;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.favorite-btn:hover {
  background: white;
  transform: scale(1.1);
}

.favorite-btn.favorited {
  color: #dc3545;
}

.favorite-btn .heart-icon {
  width: 20px;
  height: 20px;
}

.favorite-btn .heart-icon.active {
  color: #dc3545;
}

.product-image-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.placeholder-image {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  font-size: 3rem;
}

.product-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  color: #6c757d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.product-card-brand {
  color: #007bff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-card-title {
  margin-bottom: 10px;
}

.product-card-title a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a:hover {
  color: #007bff;
}

.product-card-description {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.age-range {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6c757d;
  font-size: 12px;
  margin-bottom: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.stars {
  color: #ffc107;
}

.rating-text {
  color: #6c757d;
  font-size: 12px;
}

.product-price {
  margin-bottom: 15px;
}

.original-price {
  color: #6c757d;
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 8px;
}

.discounted-price {
  color: #dc3545;
  font-size: 18px;
  font-weight: 700;
}

.current-price {
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.product-card-footer {
  padding: 0 20px 20px;
  margin-top: auto;
}

.footer-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
  color: #6c757d;
}

.stock-status.in-stock {
  color: #28a745;
  font-weight: 600;
}

.stock-status.out-of-stock {
  color: #dc3545;
  font-weight: 600;
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.footer-actions .btn {
  flex: 1;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 15px;
  transition: all 0.3s ease;
}

.footer-actions .btn:hover {
  transform: translateY(-2px);
}

/* Pagination */
.pagination-container {
  margin-top: 40px;
}

.pagination {
  justify-content: center;
}

.page-link {
  border-radius: 8px;
  margin: 0 2px;
  border: 1px solid #dee2e6;
  color: #007bff;
  padding: 8px 12px;
}

.page-link:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

/* Empty State */
.empty-state-icon {
  font-size: 4rem;
  color: #6c757d;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 0 30px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .cart-summary-header {
    position: static;
    text-align: center;
    margin-top: 20px;
  }

  .filters-section {
    padding: 20px 0;
  }

  .search-input-group {
    margin-bottom: 15px;
  }

  .product-card-image-container {
    height: 200px;
  }

  .footer-actions {
    flex-direction: column;
  }

  .footer-actions .btn {
    margin-bottom: 5px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 250px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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


/* Genel Sayfa Yapısı */
body.magaza {
    background-color: #f8f9fa;
}

/* Sayfa Başlığı ve Sepet Özeti */
.page-header {
    background: #007bff;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-summary-header {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

/* Filtreler Bölümü */
.filter-card {
    border-radius: 0.75rem;
}

/* Ürün Kartları */
.product-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-card-image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-card-image-container img,
.product-card-image-container .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
}

.product-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.product-card-badges .badge {
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-body {
    padding: 1rem;
}

.product-card-category {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
}

.product-card-title a {
    color: #212529;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.2s;
}

.product-card-title a:hover {
    color: #007bff;
}

.product-card-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    max-height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .original-price {
    font-size: 0.9rem;
    color: #6c757d;
}

.product-price .discounted-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
}

.product-card-footer {
    padding: 0.75rem;
}

/* Durum Rozetleri */
.stock-status {
    font-weight: 600;
}

.stock-status.in-stock {
    color: #28a745;
}

.stock-status.out-of-stock {
    color: #dc3545;
}

/* Boş Sayfa Durumu */
.empty-state-icon {
    font-size: 8rem;
    color: #dee2e6;
}

/* Bildirimler */
.notification-toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}