/* Genel Ürünler Sayfası Stilleri */
.urunler-section {
  padding: 8rem 0;
  background-color: var(--white);
  color: var(--primary-color);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.urunler-baslik {
  text-align: center;
  font-size: 4.2rem;
  color: var(--primary-color);
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 2rem;
  animation: fadeInDown 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.urunler-baslik::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gold-color);
  border-radius: 2px;
}

/* Kategori filtreleme */
.urun-filtre {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.filtre-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  background: var(--white);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.6rem;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.filtre-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.filtre-btn.aktif-filtre {
  background: var(--primary-color);
  color: var(--white);
  font-weight: bold;
}

/* Ürün Grid Alanı */
.urun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ürün Kartı Stilleri */
.urun-kart {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease forwards;
  border: 1px solid #e5e5e5;
  position: relative;
}

.urun-kart:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.urun-gorsel {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.urun-gorsel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.urun-kart:hover .urun-gorsel img {
  transform: scale(1.1);
}

.urun-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 49, 53, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.urun-icons {
  display: flex;
  gap: 1rem;
}

.icon-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: var(--gold-color);
  color: var(--white);
}

.urun-bilgi {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.urun-isim {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.urun-kategori {
  color: var(--gold-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.urun-aciklama {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.6;
}

/* Boş ürün mesajı */
.bos-urun-mesaji {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bos-urun-mesaji i {
  font-size: 5rem;
  color: var(--gold-color);
  margin-bottom: 2rem;
  display: block;
}

.bos-urun-mesaji p {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

/* Yükleniyor animasyonu */
.yukleniyor-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
  text-align: center;
}

.yukleniyor-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(31, 49, 53, 0.1);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

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

.yukleniyor-container p {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin: 0;
}

/* Hata mesajı */
.hata-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
  text-align: center;
  background: rgba(231, 76, 60, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.hata-ikon {
  font-size: 4rem;
  color: #e74c3c;
  margin-bottom: 2rem;
}

.hata-container p {
  font-size: 1.8rem;
  color: #e74c3c;
  margin-bottom: 2rem;
}

.tekrar-dene-btn {
  padding: 1.2rem 2.4rem;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tekrar-dene-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
  .urun-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .urunler-baslik {
    font-size: 3.2rem;
  }

  .urun-filtre {
    gap: 0.5rem;
  }

  .filtre-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
  }

  .urun-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 1rem;
  }

  .urun-isim {
    font-size: 1.8rem;
  }

  .urun-aciklama {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .urunler-baslik {
    font-size: 2.8rem;
  }

  .urun-filtre {
    gap: 0.3rem;
  }

  .filtre-btn {
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
  }

  .urun-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }
}
body {
  padding-top: 7rem; /* Navbar yüksekliği kadar padding */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.categories-page {
  padding: 1rem 0 4rem;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  padding: 5rem 2rem 4rem;
  margin: 3rem auto 4rem;
  max-width: 1200px;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    #2c5364 100%
  );
  color: white;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-header::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideInUp 1s ease-out;
}

.page-header h1 i {
  color: var(--gold-color);
  margin-right: 1.5rem;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.page-header p {
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.95;
  animation: slideInUp 1s ease-out 0.3s both;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.page-header-decoration {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.page-header-decoration::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 50%;
}

.page-header-decoration.right {
  left: auto;
  right: 10%;
  animation-direction: reverse;
  animation-duration: 15s;
}

.page-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

.page-stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 100px;
  transition: transform 0.3s ease;
}

.page-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.page-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-color);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.page-stat-label {
  font-size: 1.4rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes rotate {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Kategori kartları */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  margin-bottom: 6rem;
}

.category-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid #e5e5e5;
}

.category-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.category-image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(31, 49, 53, 0.8),
    rgba(51, 80, 86, 0.6)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-overlay-text {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

.category-content {
  padding: 3rem;
  text-align: center;
  background: white;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-description {
  font-size: 1.6rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.category-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 1.3rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-button {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(31, 49, 53, 0.3);
}

.category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 49, 53, 0.4);
}

.category-button i {
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.category-card:hover .category-button i {
  transform: translateX(5px);
}

/* Özel kategori renkleri */
.category-card.otomotiv {
  border-top: 5px solid #3498db;
}

.category-card.otomotiv .category-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.category-card.mobilya {
  border-top: 5px solid #8e44ad;
}

.category-card.mobilya .category-button {
  background: linear-gradient(135deg, #8e44ad, #71368a);
}

.category-card.marin {
  border-top: 5px solid #2980b9;
}

.category-card.marin .category-button {
  background: linear-gradient(135deg, #2980b9, #1f4e79);
}

.category-card.insaat {
  border-top: 5px solid #e74c3c;
}

.category-card.insaat .category-button {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.category-card.kaydirak {
  border-top: 5px solid #27ae60;
}

.category-card.kaydirak .category-button {
  background: linear-gradient(135deg, #27ae60, #1e8449);
}

.category-card.detaylin {
  border-top: 5px solid #f39c12;
}

.category-card.detaylin .category-button {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.category-card.is-makinalari {
  border-top: 5px solid #34495e;
}

.category-card.is-makinalari .category-button {
  background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Ürünler Bölümü */
.products-section {
  display: none;
  padding: 4rem 0;
  background: transparent;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: transparent;
  border-radius: 15px;
  box-shadow: none;
}

.back-button {
  background: #6c757d;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.category-title-display {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.filters-container {
  background: transparent;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  box-shadow: none;
}

.filters-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 1rem;
  border: 2px solid #e5e5e5;
  background: rgba(248, 249, 250, 0.7);
  cursor: pointer;
  border-radius: 6px;
  color: #666;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.products-grid.list-view {
  grid-template-columns: 1fr;
}

.product-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e5e5;
}

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

.product-image {
  height: 200px;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

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

.product-placeholder {
  color: #999;
  font-size: 4rem;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-category {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.product-description {
  color: #777;
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  flex: 1;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 0.8rem;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #e9ecef;
  color: var(--primary-color);
}

/* Liste görünümü için özel stiller */
.products-grid.list-view .product-card {
  display: flex;
  align-items: center;
}

.products-grid.list-view .product-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}

.products-grid.list-view .product-info {
  flex: 1;
}

/* Responsive tasarım */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 4rem 1rem 3rem;
    margin: 2rem 1rem 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }

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

  .page-header p {
    font-size: 1.6rem;
  }

  .page-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .page-stat {
    flex: 1;
    min-width: 90px;
    padding: 1rem;
  }

  .page-stat-number {
    font-size: 2rem;
  }

  .page-header-decoration {
    width: 50px;
    height: 50px;
    left: 5%;
  }

  .page-header-decoration.right {
    right: 5%;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .category-card {
    margin: 0 1rem;
  }

  .category-title {
    font-size: 2.4rem;
  }

  .category-stats {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .filters-row {
    flex-direction: column;
    align-items: center;
  }

  .products-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .products-grid.list-view .product-card {
    flex-direction: column;
  }

  .products-grid.list-view .product-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 3rem 1rem 2.5rem;
    margin: 1.5rem 0.5rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

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

  .page-header p {
    font-size: 1.4rem;
  }

  .page-stats {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
  }

  .page-stat {
    padding: 0.8rem;
  }

  .page-stat-number {
    font-size: 1.8rem;
  }

  .page-stat-label {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .page-header-decoration {
    display: none; /* Mobilde gizle */
  }

  .category-content {
    padding: 2rem;
    min-height: auto;
  }

  .category-title {
    font-size: 2rem;
  }

  .category-description {
    font-size: 1.4rem;
  }
}

/* Animasyonlar */
.category-card {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease forwards;
}

.category-card:nth-child(1) {
  animation-delay: 0.2s;
}

.category-card:nth-child(2) {
  animation-delay: 0.4s;
}

.category-card:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.loading-state {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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