/* Products Page Styles */

/* Page Hero Section */
.page-hero {
  background: linear-gradient(135deg, #f6f8fb 0%, #e8f4f8 100%);
  /* Arkaplan fotoğrafı eklemek için bu satırı kullanın:
     background-image: url('../images/hero-background.jpg'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px;
  text-align: left;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(10, 13, 20, 0.7) 0%, 
    rgba(10, 13, 20, 0.4) 50%,
    rgba(10, 13, 20, 0.2) 100%
  );
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero-content {
  max-width: 1400px;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: #ffffff;
  margin: 50px 100px 10px;

}

/* Products Section */
.products-section {
  padding: 80px 0px 120px;
  background: #f6f8fb;
}

/* Product Filters */
.product-filters {
  margin-bottom: 100px;
  border-bottom: 1px solid #e2e8f0;
}

.filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  position: relative;
  padding: 16px 24px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.filter-tab:hover {
  color: #0c8060;
}

.filter-tab.active {
  color: #0c8060;
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #0c8060;
  border-radius: 2px 2px 0 0;
}

.products-section .container {
  width: min(1600px, 95vw) !important;
  max-width: none !important;
  padding: 0 70px !important;
  margin: 0 auto !important;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: all 0.5s ease;
}

/* Product Card - Outer Container */
.product-card { 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  background: transparent; 
  padding: 0; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  text-decoration: none;
  color: inherit;
}

.product-card.hidden {
  display: none;
}

.product-card.filtering {
  opacity: 0.3;
  transform: scale(0.98);
}

/* Add subtle visual separation without affecting layout */
.product-card::after {
  display: none;
}

.product-card:nth-child(3n)::after {
  display: none;
}

/* Product Card - Inner Container */
.product-card-inner { 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
  position: relative; 
  padding: 0;
}

/* Product Content - Ayrıntı Divi */
/* Legacy product-content (overridden below) */
.product-content { font-family: inherit; color:#0a0d14; }

/* Product Image */
.product-image { position:relative; aspect-ratio: 16 / 9; height:auto; overflow:hidden; background:#eef2f5; }
.product-image::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.0) 40%, rgba(0,0,0,.38)); opacity:.55; }
.product-image img{ width:100%; height:100%; object-fit:cover; object-position:center; transition: transform 0.3s ease; }

/* Hover effect for images */
.product-card:hover .product-image img {
  transform: scale(1.08);
}

/* Product Content (new layout) */
.product-content { padding: 24px 0 24px 0; position:relative; display:flex; flex-direction:column; flex:1; }

.product-header { display:flex; align-items:center; gap:8px; margin:0 0 18px; margin-left:0; }

.product-title { font-size:18px; font-weight:400; color:#0a0d14; margin:0; letter-spacing:0; }

.product-subtitle { font-size:14px; font-weight:600; text-transform:uppercase; letter-spacing:.14em; color:#0c8060; margin:0 0 14px; opacity:.9; }

.product-description { font-size:14.58px; color:#2f2f2f; margin:8px 150px 8px 0; line-height:1.5; font-weight:200; }

.product-models { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 18px; }
.model-code { font-size:11px; font-weight:500; letter-spacing:.1em; color:#0a6a51; background: rgba(12,128,96,.06); padding:5px 9px; border-radius: 999px; border:1px solid rgba(12,128,96,.12); }

.product-tagline { font-size:14px; font-weight:200; color:#0a0d14; margin:0 0 8px; font-style:normal; opacity:.75; }

.product-link { position:static; width:auto; height:auto; background:none; border:none; padding:4px 4px 4px 10px; line-height:1; display:inline-flex; align-items:center; justify-content:center; color:#0c8060; text-decoration:none; transition: transform .3s ease, color .3s ease; margin-left:auto; pointer-events: none; }
.product-link i { font-size:16px; transition: transform .3s ease; }
.product-card:hover .product-link { transform: translateX(3px); color:#095c46; }
.product-card:hover .product-link i { transform: translateX(2px); }

/* Responsive Design */
@media (max-width: 1280px){ 
  .product-title { font-size: clamp(24px, 3.6vw, 30px); }
  .page-hero { min-height: 350px; padding: 100px 0 60px; }
  .products-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px 20px;
  }
}
@media (max-width: 960px){
  .page-hero { min-height: 300px; padding: 80px 0 50px; }
  .page-hero-content { margin-bottom: 30px; }
  .products-section { padding: 70px 0px 100px; }
  .products-section .container { 
    width: min(1400px, 96vw) !important; 
    padding: 0 15px !important; 
  }
  .filter-tab { padding: 14px 20px; font-size: 13px; }
  .products-grid { 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px 15px;
  }
  .product-card { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .product-card-inner { padding: 20px 0; }
  .product-content { padding: clamp(20px, 3vw, 24px) 0; }
  .product-image { aspect-ratio: 16 / 11; }
  .product-link { top:14px; right:14px; }
}
@media (max-width: 780px){
  .page-hero { 
    min-height: 250px; 
    padding: 70px 0 40px; 
  }
  .page-hero h1 { 
    font-size: clamp(28px, 8vw, 42px); 
    margin-bottom: 16px;
  }
  .page-hero p { 
    font-size: clamp(14px, 4vw, 18px); 
  }
  .page-hero-content { 
    margin-bottom: 20px; 
    max-width: 90%;
  }
  .products-section { padding: 54px 0px 70px; }
  .products-section { padding: 54px 0px 70px; }
  .products-section .container { 
    width: min(1200px, 97vw) !important; 
    padding: 0 10px !important; 
  }
  .filter-tab { padding: 12px 16px; font-size: 12px; }
  .product-title { font-size: clamp(22px, 6vw, 28px); }
  .product-subtitle { font-size:12px; letter-spacing:.18em; }
  .product-description { font-size:14px; margin-right: 40px; margin-bottom: 8px; }
  .product-image { aspect-ratio: 16 / 12; }
  .product-link { width:38px; height:38px; }
  .products-grid { 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 10px;
  }
}
@media (max-width: 520px){
  .products-section .container { 
    width: min(1000px, 98vw) !important; 
    padding: 0 5px !important; 
  }
  .product-content { padding: 20px 0 24px; }
  .product-description { margin-right: 20px; margin-bottom: 8px; }
  .product-image { aspect-ratio: 16 / 13; }
  .model-code { font-size:10px; }
  .product-tagline { font-size:13px; }
  .products-grid { 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 8px;
  }
}

/* Active category in navigation */
.categories a.active {
  color: #0c8060;
  font-weight: 600;
}

.categories a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0c8060;
  border-radius: 1px;
}

/* Product Detail Page Styles */
.benefits-section-page {
  padding: 0 0 0 0;
  background: white;
}

.benefits-container {
  display: flex;
  gap: 30px;
  margin-top: 0;
  margin-bottom: 100px;
}

.benefits-section {
  flex: 1;
}

.benefits-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0c8060;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.benefits-list {
  list-style: none;
  padding: 0 0 50px 0;
  margin: 0;
}

.benefits-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #333;
}

.benefits-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -0.15em;
  color: #0c8060;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
}

/* Product Detail Page Image Fix */
.product-detail-page .product-image {
  aspect-ratio: unset;
  height: auto;
}