/* =========================
   Base / Theme
========================= */

:root{
  --bg: #0b1220;          /* koyu zemin (metal hissi) */
  --text: #1b1f24;        /* normal metin */
  --muted: #5b6572;       /* ikincil metin */
  --brand: #e01010;       /* CTA kırmızı */
  --brand-hover: #c90c0c;
  --light: #ffffff;
  --border: #e6e8ec;
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
}

main{ display:block; }

/* Media defaults */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Header
========================= */

.header{
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: linear-gradient(135deg, var(--bg), #111827);
  color: var(--light);
}

.logo{
  max-width: 140px;
  margin: 0 auto 1rem auto;
}

.header h1{
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.header p{
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.85);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.header-actions{
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   Buttons
========================= */

.cta-button{
  display: inline-block;
  background: var(--light);
  color: var(--brand);
  padding: 0.8rem 1.25rem;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: transform .08s ease, background .15s ease;
}

.cta-button:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.92);
}

/* =========================
   Layout Containers
========================= */

.urun,
.banner,
.iletisim,
.teknik,
#catalog{
  width: min(1100px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Product Section
========================= */

.urun{
  display: flex;
  flex-wrap: wrap;
  padding: 2rem 0;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.urun img{
  max-width: 360px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.urun-detay{
  max-width: 520px;
}

.urun-detay h2{
  font-size: 1.5rem;
  line-height: 1.2;
}

.urun-detay ul{
  margin-top: 0.75rem;
  padding-left: 1.1rem;
}

.urun-detay li{
  margin: 0.35rem 0;
}

.micro{
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Optional: price class (kullanıyorsan kalsın) */
.fiyat{
  font-size: 1.25rem;
  margin-top: 1rem;
  font-weight: 900;
  color: var(--brand);
}

/* =========================
   Banner
========================= */

.banner{
  background: #f6f7f9;
  text-align: center;
  padding: 1.25rem;
  font-size: 1.05rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.75rem;
}

.banner p + p{
  margin-top: 0.4rem;
}

/* =========================
   Technical Section
========================= */

.teknik{
  padding: 0 0 1.75rem 0;
}

.teknik h2{
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.teknik h3{
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.teknik p{
  color: #2a2f36;
}

/* =========================
   Contact Section
========================= */

.iletisim{
  padding: 2rem 0;
  background: #ffffff;
}

.iletisim h2{
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.iletisim a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.iletisim a:hover{
  text-decoration: underline;
}

/* Form (genel) */
form{
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: #fafafa;
}

label{
  font-weight: 700;
  font-size: 0.95rem;
}

input, textarea, select{
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  margin-top: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  background: #fff;
}

textarea{
  min-height: 120px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus{
  border-color: rgba(224,16,16,0.55);
  box-shadow: 0 0 0 4px rgba(224,16,16,0.10);
}

/* Submit button (genel) */
button{
  background: var(--brand);
  color: white;
  padding: 0.8rem 1.3rem;
  border: none;
  margin-top: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .08s ease, background .15s ease;
}

button:hover{
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* =========================
   Footer
========================= */

footer{
  text-align: center;
  background: #0b1220;
  color: rgba(255,255,255,0.9);
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* =========================
   Product Catalog (IZOLE)
   - Sadece #catalog ve #catalogGrid içini etkiler
========================= */

#catalog{
  margin: 32px auto;
  padding: 0; /* container padding'i katalog iç bloklarda */
}

#catalog .catalog-head{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
  padding: 0 16px;
}

#catalog .catalog-title{
  font-size: 22px;
  line-height: 1.2;
}

#catalog .catalog-controls{
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr auto;
  gap: 10px;
  align-items: center;
}

#catalog .catalog-input,
#catalog .catalog-select{
  width: 100%;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}

#catalog .catalog-count{
  font-size: 14px;
  opacity: 0.85;
  white-space: nowrap;
}

#catalog .catalog-empty{
  padding: 18px;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 14px;
  opacity: 0.8;
  margin: 0 16px;
}

/* Grid: geniş ekranda 4-5 kart, mobilde 1 */
#catalogGrid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 16px;
}

@media (max-width: 1200px){
  #catalogGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  #catalog .catalog-controls{ grid-template-columns: 1fr 1fr; }
  #catalogGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  #catalog .catalog-controls{ grid-template-columns: 1fr; }
  #catalogGrid{ grid-template-columns: 1fr; }
}

#catalogGrid .product-card{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#catalogGrid .product-media{
  width: 100%;
  aspect-ratio: 2 / 3;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

#catalogGrid .product-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object_position: center;
  display: block;
}

#catalogGrid .product-img.placeholder{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
}

#catalogGrid .product-body{
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#catalogGrid .product-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

#catalogGrid .product-title{
  font-weight: 700;
  font-size: 16px;
}

#catalogGrid .product-price{
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

#catalogGrid .product-meta{
  display: grid;
  gap: 6px;
  font-size: 13px;
}

#catalogGrid .meta-row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed rgba(0,0,0,0.14);
  padding-top: 6px;
}

#catalogGrid .meta-row:first-child{
  border-top: none;
  padding-top: 0;
}

#catalogGrid .product-desc{
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

/* =========================
   Mobile Tweaks
========================= */

@media (max-width: 600px){
  .header{ padding: 2rem 1rem; }
  .urun{ padding: 1.5rem 0; }
  form{ padding: 0.9rem; }
}
