/* Aytech Makina - Ürün Listeleme CSS
   Sadece /tr/urunler ürün liste sayfalarında yüklenir.
*/

.section{
  width:min(1320px, calc(100% - 44px));
  margin:34px auto 56px;
}

.page-head{
  position:relative;
  margin-bottom:24px;
  padding:34px;
  border-radius:28px;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(227,6,19,.16), transparent 34%),
    linear-gradient(135deg,#07111f,#121d2f 62%,#1b2940);
  color:#fff;
  box-shadow:0 22px 60px rgba(8,17,31,.18);
}

.page-head::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(0deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:42px 42px;
  opacity:.34;
  pointer-events:none;
}

.page-head h1{
  position:relative;
  margin:0 0 10px;
  font-size:clamp(34px,4.4vw,58px);
  line-height:1.03;
  letter-spacing:-.045em;
}

.page-head p{
  position:relative;
  margin:0;
  max-width:760px;
  color:#dbe5f4;
  font-size:17px;
  line-height:1.7;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.product-card{
  position:relative;
  display:grid;
  grid-template-rows:230px auto 1fr;
  min-height:420px;
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid #e6ebf2;
  color:#101827;
  text-decoration:none;
  box-shadow:0 16px 42px rgba(15,23,42,.07);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card::after{
  content:"İncele →";
  align-self:end;
  justify-self:start;
  margin-top:18px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 15px;
  border-radius:12px;
  background:#e30613;
  color:#fff;
  font-weight:900;
}

.product-card:hover{
  transform:translateY(-4px);
  border-color:rgba(227,6,19,.35);
  box-shadow:0 24px 58px rgba(15,23,42,.13);
}

.product-card img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:14px;
  background:linear-gradient(180deg,#f8fafc,#fff);
  border:1px solid #edf1f6;
  border-radius:18px;
}

.product-card h2,
.product-card h3{
  margin:18px 0 9px;
  color:#09111f;
  font-size:22px;
  line-height:1.16;
  letter-spacing:-.025em;
}

.product-card p{
  margin:0;
  color:#64748b;
  font-size:15px;
  line-height:1.65;
}

@media(max-width:1100px){
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:680px){
  .section{
    width:calc(100% - 22px);
    margin:18px auto 36px;
  }

  .page-head{
    padding:22px;
    border-radius:22px;
  }

  .product-grid{
    grid-template-columns:1fr;
  }

  .product-card{
    min-height:auto;
    grid-template-rows:210px auto 1fr;
  }
}

/* Products page layout
   Keeps the heading and product list aligned on the same content width. */
body > .page-head,
body > .section{
    width:min(1180px, calc(100% - 40px));
    max-width:min(1180px, calc(100% - 40px));
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box;
}

body > .page-head{
    margin-top:28px;
    margin-bottom:24px;
}

body > .section{
    margin-top:0;
    margin-bottom:52px;
}body > .section .product-grid{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

@media(max-width:680px){
    body > .page-head,
    body > .section{
        width:calc(100% - 22px);
        max-width:calc(100% - 22px);
    }

    body > .page-head{
        margin-top:22px;
        margin-bottom:18px;
    }

    body > .section{
        margin-bottom:42px;
    }
}

