/* Product Pages (scoped) */

/* Basic layout */
body.product-page {
  overflow-x: hidden !important;
  overflow-y: auto;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

/* Hero Banner */
.product-page .product-hero {
  background: linear-gradient(135deg, #0a1d3b 0%, #1a3a5c 100%);
  padding: 40px 20px 60px;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.product-page .product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffd400" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom / cover;
  opacity: 0.3;
}
.product-page .product-hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.product-page .product-hero h1 { color: #fff; font-size: 48px; margin: 0 0 15px 0; font-weight: 800; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.product-page .product-hero h1 i { color: #ffd400; margin-right: 15px; }
.product-page .product-hero p { color: #e0e0e0; font-size: 20px; margin: 0 0 30px 0; }
.product-page .hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.product-page .stat-item { text-align: center; }
.product-page .stat-number { font-size: 36px; font-weight: 800; color: #ffd400; display: block; }
.product-page .stat-label { font-size: 14px; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }

/* Filter Bar */
.product-page .filter-section { background: #fff; padding: 20px; margin: -30px auto 40px; max-width: 1920px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); position: relative; z-index: 10; }
.product-page .filter-bar { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.product-page .filter-group { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.product-page .filter-btn { padding: 12px 24px; border: 2px solid #e0e0e0; background: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; color: #333; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.product-page .filter-btn:hover { border-color: #ffd400; background: #fffef0; color: #0a1d3b; }
.product-page .filter-btn.active { border-color: #ffd400; background: #ffd400; color: #0a1d3b; }
.product-page .filter-btn i { margin-right: 6px; }

/* Products Section */
.product-page .products-section { max-width: 1920px; margin: 0 auto 60px; padding: 0 40px; }
.product-page .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.product-page .section-title { font-size: 28px; font-weight: 700; color: #0a1d3b; margin: 0; }
.product-page .view-toggle { display: none !important; }
.product-page .view-btn { padding: 8px 16px; border: none; background: transparent; cursor: pointer; border-radius: 6px; transition: all 0.3s; color: #666; }
.product-page .view-btn.active { background: #ffd400; color: #0a1d3b; }

/* GRID: 2/4 columns (mobilde 2, desktop 4) */
.product-page .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
@media (min-width: 768px) { .product-page .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .product-page .products-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; } }

/* CARD: ensure no conflict with homepage .product-card */
.product-page .products-grid .product-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: initial !important;
  align-self: stretch;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  min-height: 560px;
  height: 100%;
  padding-bottom: 10px;
}
.product-page .products-grid .product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); border-color: #ffd400; }

/* Badge */
.product-page .product-badge { position: absolute; top: 15px; left: 15px; background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); color: #fff; padding: 6px 14px; border-radius: 25px; font-size: 10px; font-weight: 700; z-index: 5; text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 3px 10px rgba(76,175,80,.3); }
.product-page .product-badge.sale { background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%); box-shadow: 0 3px 10px rgba(255,68,68,.3); }

/* Image */
.product-page .product-image { width: 100%; aspect-ratio: 4/5; background: #f8f9fa; display: flex; flex: 0 0 72%; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid #f0f0f0; padding: 10px; }
.product-page .product-image i { font-size: 56px; color: #d0d0d0; transition: all 0.3s ease; }
.product-page .product-card:hover .product-image i { transform: scale(1.1); color: #ffd400; }
.product-page .product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.product-page .product-card:hover .product-image img { transform: scale(1.05); }

/* Info */
.product-page .product-info { padding: 8px 14px 14px; flex: 0 0 28%; display: flex; flex-direction: column; gap: 6px; justify-content: flex-start; }

/* Category + Colors Row */
.product-page .product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.product-page .product-category { color: #ffd400; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; margin: 0; font-weight: 700; background: rgba(255, 212, 0, 0.1); padding: 4px 8px; border-radius: 4px; display: inline-block; width: fit-content; }
.product-page .product-title { font-size: 13px; font-weight: 700; color: #1a1a1a; margin: 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-page .product-desc { font-size: 11px; color: #6c757d; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Features */
.product-page .product-features { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 0 0; padding-top: 0; border-top: none; }
.product-page .feature-tag { background: #f0f2f5; padding: 3px 8px; border-radius: 4px; font-size: 9px; color: #555; font-weight: 600; }

/* Color Options */
.product-page .product-colors {
  display: flex;
  gap: 6px;
  align-items: center;
}

.product-page .color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-page .color-dot:hover {
  transform: scale(1.2);
  border-color: #ffd400;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.product-page .color-dot-more {
  background: #f0f2f5 !important;
  color: #666 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  border-color: #d0d0d0 !important;
}

.product-page .color-dot-more:hover {
  background: #ffd400 !important;
  color: #0a1d3b !important;
  border-color: #ffd400 !important;
}

/* Footer (price + CTA) */
.product-page .product-footer { display: flex; justify-content: flex-start; align-items: center; padding: 12px 14px; background: #fafbfc; border-top: 1px solid #e9ecef; gap: 12px; }
.product-page .view-product-btn { background: linear-gradient(135deg, #ffd400 0%, #ffb400 100%); border: none; padding: 8px 14px; border-radius: 8px; font-weight: 700; color: #0a1d3b; cursor: pointer; transition: all 0.2s ease; font-size: 12px; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.product-page .view-product-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,212,0,.15); }
.product-page .product-price { display: none; } /* Fiyat gizlendi */
.product-page .price-label { display: none; } /* Fiyat etiketi gizlendi */
.product-page .add-to-cart-btn { background: linear-gradient(135deg, #ffd400 0%, #ffb400 100%); border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; color: #0a1d3b; cursor: pointer; transition: all 0.3s ease; font-size: 12px; box-shadow: 0 3px 10px rgba(255,212,0,.3); text-transform: uppercase; letter-spacing: .5px; flex: 1; max-width: 160px; display: flex; align-items: center; justify-content: center; text-align: center; }
.product-page .add-to-cart-btn:hover { background: linear-gradient(135deg, #ffb400 0%, #ff9500 100%); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,212,0,.4); }
.product-page .add-to-cart-btn i { margin-right: 6px; }

/* CTA Section */
.product-page .cta-section { background: linear-gradient(135deg, #ffd400 0%, #ffed4e 100%); padding: 60px 20px; text-align: center; margin-top: 60px; }
.product-page .cta-content { max-width: 800px; margin: 0 auto; }
.product-page .cta-section h2 { font-size: 36px; color: #0a1d3b; margin: 0 0 15px 0; font-weight: 800; }
.product-page .cta-section p { font-size: 18px; color: #333; margin: 0 0 30px 0; }
.product-page .cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.product-page .cta-btn { padding: 16px 40px; border-radius: 10px; font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.product-page .cta-btn-primary { background: #0a1d3b; color: #fff; border: 2px solid #0a1d3b; }
.product-page .cta-btn-primary:hover { background: #fff; color: #0a1d3b; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.product-page .cta-btn-secondary { background: #fff; color: #0a1d3b; border: 2px solid #fff; }
.product-page .cta-btn-secondary:hover { background: transparent; color: #fff; border-color: #fff; transform: translateY(-3px); }

/* Responsive */
@media (max-width: 768px) {
  .product-page .product-hero { 
    padding: 25px 15px 35px;
  }
  .product-page .product-hero h1 { 
    font-size: 24px; 
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .product-page .product-hero h1 i {
    display: block;
    margin: 0 0 8px 0;
    font-size: 28px;
  }
  .product-page .product-hero p { 
    font-size: 14px; 
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  .product-page .hero-stats { 
    gap: 10px;
    justify-content: center;
  }
  .product-page .stat-item {
    background: rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 10px;
    min-width: 70px;
  }
  .product-page .stat-number { 
    font-size: 20px; 
  }
  .product-page .stat-label {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  
  /* Filter bar - Mobilde ortalı */
  .product-page .filter-section {
    padding: 15px;
    margin: -20px 15px 30px;
  }
  .product-page .filter-bar { 
    flex-direction: row;
    justify-content: center;
  }
  .product-page .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  .product-page .filter-btn {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    min-height: 44px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .product-page .filter-btn i {
    margin-right: 0;
    margin-bottom: 0;
    font-size: 14px;
  }
  
  .product-page .section-header { flex-direction: column; gap: 15px; align-items: flex-start; }
  .product-page .products-section { padding: 0 15px; }
  
  /* Mobilde kompakt kart tasarımı */
  .product-page .products-grid .product-card {
    border-radius: 12px;
    min-height: 380px;
    padding-bottom: 0;
    min-width: 0;
  }

  .product-page .product-image {
    aspect-ratio: 4/5;
    padding: 8px;
    flex: 0 0 60%;
    background: #f8f9fa;
  }
  
  .product-page .product-image i {
    font-size: 32px;
  }
  
  .product-page .product-info {
    padding: 6px 8px 10px;
    gap: 3px;
    flex: 0 0 42%;
    justify-content: flex-start;
  }
  
  .product-page .product-category {
    font-size: 7px;
    padding: 2px 5px;
  }
  
  .product-page .product-title {
    font-size: 10px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .product-page .product-desc {
    font-size: 9px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
  
  .product-page .product-features {
    margin: 2px 0 0 0;
    padding-top: 0;
  }
  
  .product-page .feature-tag {
    font-size: 7px;
    padding: 2px 5px;
  }
  
  .product-page .product-badge {
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    font-size: 8px;
  }
  
  /* Renk noktaları mobilde küçük */
  .product-page .color-dot {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
  }
  
  .product-page .color-dot-more {
    font-size: 7px;
  }
  
  /* Mobilde CTA - küçük ve kibar */
  .product-page .product-footer {
    padding: 6px 8px;
    margin-top: auto;
  }
  .product-page .add-to-cart-btn {
    width: 100%;
    max-width: none;
    padding: 8px 10px;
    font-size: 10px;
    border-radius: 6px;
    gap: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  .product-page .add-to-cart-btn i {
    margin-right: 4px;
    font-size: 11px;
  }
}

/* Daha küçük ekranlar */
@media (max-width: 480px) {
  .product-page .product-hero { 
    padding: 20px 12px 30px;
  }
  .product-page .product-hero h1 { 
    font-size: 20px; 
  }
  .product-page .product-hero h1 i {
    font-size: 24px;
  }
  .product-page .product-hero p { 
    font-size: 13px; 
  }
  .product-page .hero-stats { 
    gap: 8px;
  }
  .product-page .stat-item {
    padding: 10px 12px;
    min-width: 60px;
  }
  .product-page .stat-number { 
    font-size: 18px; 
  }
  .product-page .stat-label {
    font-size: 9px;
  }
}