:root{
  --primary:#ff7f50; --dark:#1c1c1c; --light:#f7f7f8; --white:#fff; --text:#262626; --gray:#8a8a8a;
  --radius:14px; --shadow:0 10px 28px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Poppins,system-ui,-apple-system,Arial,sans-serif;background:var(--light);color:var(--text)}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}
h1,h2,h3{font-family:Lora,Georgia,serif}

a{color:var(--primary);text-decoration:none}
a:focus-visible, button:focus-visible{outline:3px solid rgba(255,127,80,.45); outline-offset:2px; border-radius:10px}
.logo{font-weight:800;font-size:1.6rem}
.logo-accent{color:var(--primary)}
.main-nav a{margin-left:1.25rem;color:var(--text);font-weight:600;opacity:.8}
.main-nav a.active,.main-nav a:hover{opacity:1;color:var(--primary)}
.header-inner{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}

/* Cards */
.card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem}

/* HERO */
.hero{padding:4rem 0;background:linear-gradient(135deg,#ffa07a 0%, #ff6347 100%);color:#fff}
.hero-pro .hero-text h1{font-size:3rem;margin:.3rem 0}
.hero-grid{display:flex;align-items:center;gap:2rem;flex-wrap:wrap}
.hero-text{flex:1 1 520px}
.hero-image{flex:1 1 380px;text-align:center}
.hero-image img{max-width:100%;border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-badges{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.75rem}
.hero-badges span{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.35);padding:.35rem .65rem;border-radius:999px;font-size:.85rem}

/* CTA */
.cta-button{display:inline-block;margin-top:1rem;background:#fff;color:#ff6347;padding:.9rem 1.4rem;border-radius:999px;font-weight:700}
.cta-button:hover{background:#ffe1d8}

/* FILTERS */
.filters{margin-top:-2rem;position:relative;z-index:2}
.filters-row{display:flex;gap:1rem;flex-wrap:wrap;margin:.5rem 0}
.filters input,.filters select{padding:.8rem 1rem;border:1px solid #ddd;border-radius:12px;background:#fff;flex:1;min-width:180px}
.range{flex:2;min-width:280px}
.range .range-values{display:flex;justify-content:space-between;font-size:.9rem;color:#444;margin-top:.35rem}
.chips{display:flex;gap:.5rem;flex-wrap:wrap}
.chip{border:1px solid #ddd;background:#fff;border-radius:999px;padding:.45rem .8rem;font-weight:600;cursor:pointer}
.chip.active,.chip:hover{border-color:var(--primary);color:var(--primary)}

/* GRID */
.section-title{margin:2.5rem 0 1rem;text-align:center;font-size:2.1rem}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}
.product-card{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:1rem;text-align:center;transition:transform .15s,box-shadow .15s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 14px 36px rgba(0,0,0,.12)}
.product-card .thumb-wrap{background:#fff;border:1px solid #eee;border-radius:12px;display:flex;align-items:center;justify-content:center;height:180px;margin-bottom:.75rem}
.product-card img{width:100%;height:100%;object-fit:contain}
.product-card h3{font-size:1.05rem;margin:.25rem 0 .15rem}
.meta-line{margin:.1rem 0 .4rem; color:#666; font-size:.9rem}
.price-inline{font-weight:800;color:#111}
.price-inline .pc{opacity:.7;margin-right:2px}

/* PAGINATION */
.pagination{display:flex;gap:.75rem;align-items:center;justify-content:center;margin:1.5rem 0}
.btn{padding:.6rem 1rem;border-radius:10px;border:1px solid #ddd;background:#fff;cursor:pointer}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* FOOTER */
.site-footer { background: var(--dark); color: #eee; padding: 3rem 1.2rem; margin-top: 3rem; }
.footer-columns { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.footer-columns > div { flex: 1 1 220px; }
.footer-columns h4 { color: #fff; margin-bottom: 0.8rem; font-size: 1.1rem; }
.footer-columns p, .footer-columns li { color: #ccc; font-size: 0.95rem; line-height: 1.6; }
.footer-columns ul { list-style: none; padding: 0; margin: 0; }
.footer-columns a { color: #ff7f50; font-weight: 500; transition: color 0.2s ease; }
.footer-columns a:hover { color: #ffd7c2; }
.footer-bottom { text-align: center; margin-top: 2rem; font-size: 0.85rem; opacity: 0.7; }

/* 404 */
.notfound-container{display:flex;justify-content:center;align-items:center;min-height:70vh;text-align:center;flex-direction:column}
.notfound-content h1{font-size:5rem;color:var(--primary);margin:.25rem 0}

/* PRODUCT DETAIL */
.product-detail{display:grid;grid-template-columns:minmax(320px,520px) 1fr;gap:2rem;margin-top:2rem;align-items:start;position:relative}
.gallery{display:flex;flex-direction:column;gap:.75rem}
.gallery .main-img{width:100%;border-radius:16px;box-shadow:var(--shadow);object-fit:contain;max-height:520px;background:#fff}
.thumbs{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem}
.thumbs img{width:100%;height:70px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:10px;cursor:pointer}
.product-info h1{font-size:1.9rem;margin:.25rem 0;color:var(--primary)}
.muted{color:#555}
.features{padding-left:1.1rem;margin:1rem 0}
.features li{margin:.25rem 0}
.price-row{display:flex;align-items:end;gap:1rem;margin:1rem 0}
.price-badge{display:inline-flex;align-items:baseline;background:#111;color:#fff;border-radius:16px;padding:.4rem .8rem;font-weight:800;box-shadow:var(--shadow)}
.price-badge .price-currency{opacity:.8;margin-right:2px}
.price-note{font-size:.85rem;color:#666}
.cta-stack{display:flex;flex-direction:column;gap:.4rem}
.buy-button{display:inline-block;background:var(--primary);color:#fff;padding:.9rem 1.4rem;border-radius:999px;font-weight:800}
.buy-button:hover{background:#e8693c}
.trust{display:flex;gap:1rem;flex-wrap:wrap;margin-top:.5rem;color:#444}

/* BREADCRUMB */
.breadcrumb{display:flex;gap:.5rem;align-items:center;margin-top:1rem;color:#555;background:#fff;padding:.6rem .9rem;border-radius:12px;box-shadow: var(--shadow)}
.breadcrumb a{color:#555}

/* Product page background */
.product-page{
  background:
    radial-gradient(circle at 20% 0%, rgba(255,127,80,.10), transparent 40%),
    radial-gradient(circle at 100% 30%, rgba(255,127,80,.08), transparent 45%),
    linear-gradient(180deg, #fafafa 0%, #f5f6f8 100%);
}

/* Shell spacing */
.product-shell{ margin-top:.4rem; }

/* Sticky buy */
.sticky-buy{ position: sticky; top: 1rem; z-index: 2; display: flex; flex-direction: column; gap:.6rem; background:#fff; border-radius:16px; box-shadow:var(--shadow); padding: .9rem 1rem; margin-bottom: 1rem; }
.buy-button.wide{ width:100%; text-align:center; }

.price-badge.big{ transform: translateZ(0); font-size:1.1rem; padding:.5rem .9rem; }
.price-val{ letter-spacing: .3px; }

/* Meta grid (kategori/marka/desc) */
.meta-grid{ display:grid; grid-template-columns:1fr 1fr; gap: .9rem; margin-top: .9rem; }
.meta-item{ background:#fff; border:1px solid #eee; border-radius:12px; padding:.8rem 1rem; }
.meta-item.full{ grid-column:1/-1 }
.meta-label{ display:block; font-size:.8rem; color:#777 }
.meta-value{ font-weight:700 }

/* Tag pills */
.tag-pills{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.6rem }
.tag-pill{ display:inline-block; padding:.35rem .7rem; border-radius:999px; background:#fff; border:1px solid #eee; font-weight:600; color:#444; }

/* Related */
.related{ margin-top: 1.5rem; }
.related-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.6rem }
.related-head h2{ margin:0; font-size:1.3rem }
.see-all{ font-weight:700 }
/* === Fix: Related / compact grid title overflow & layout === */
.product-grid.compact{
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-grid.compact .product-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .9rem;
  height: 100%;
}

.product-grid.compact .product-card a{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  text-decoration: none; /* link alt çizgisi olmasın */
}

.product-grid.compact .product-card img{
  width: 100%;
  height: 140px;           /* 150 yerine biraz daha güvenli */
  object-fit: contain;
}

.product-grid.compact .product-card h3{
  color: #111;             /* turuncu link rengini başlıkta iptal et */
  font-size: .95rem;
  line-height: 1.3;
  margin: .45rem 0 .25rem;
  display: -webkit-box;    /* 2 satıra sabitle, taşanı kırp */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.3em * 2);
  word-break: break-word;  /* çok uzun kelimeler */
  hyphens: auto;
}

.product-grid.compact .product-card .meta-line{
  display: none;           /* ilgili ürünlerde meta satırını gizle (isteğe bağlı) */
}

.product-grid.compact .product-card .price-inline{
  margin-top: auto;        /* fiyatı kartın altına itip hizayı sabitle */
}
.product-card h3{ color:#111; }      /* ana gridde de başlık rengi sabit kalsın */
.product-card a{ text-decoration:none; }


.faq-item{border:1px solid #eee;background:#fff;border-radius:12px;padding:.75rem 1rem;margin:.5rem 0}
.faq-item summary{cursor:pointer;font-weight:700}
.faq-answer{color:#444;margin-top:.5rem;line-height:1.6}

/* Responsive */
@media (max-width:768px){
  .about-section, .contact-section{ padding-top:1rem; }
  .contact-form{ padding:.9rem; }
}
@media (max-width:980px){
  .product-detail{grid-template-columns:1fr}
  .thumbs{grid-template-columns:repeat(5,1fr)}
}