/* Aytech Makina - Ürün Detay CSS
   Dosya: /public/assets/css/urun-detay.css
   Sadece /tr/urun/... ürün detay sayfalarında yüklenir.
   Ortak header/footer ortak.css içindedir.
*/

.product-detail{
  width:min(1420px, calc(100% - 44px));
  margin:30px auto 58px;
  display:grid;
  grid-template-columns:minmax(390px,.86fr) minmax(0,1.14fr);
  gap:30px;
  align-items:start;
}

/* Sol görsel alan */
.product-media{
  position:relative;
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%);
  border:1px solid #e5e9f0;
  border-radius:28px;
  padding:18px;
  box-shadow:0 22px 58px rgba(15,23,42,.09);
  overflow:hidden;
}

.product-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px),
    linear-gradient(0deg,rgba(15,23,42,.03) 1px,transparent 1px);
  background-size:34px 34px;
  opacity:.55;
  pointer-events:none;
}

.product-media .main-img{
  position:relative;
  z-index:1;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:contain;
  background:#fff;
  border-radius:22px;
  border:1px solid #edf0f5;
  padding:18px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}

.thumb-row{
  position:relative;
  z-index:1;
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}

.thumb-row img{
  width:100%;
  aspect-ratio:1 / .78;
  object-fit:contain;
  background:#fff;
  border:1px solid #e8edf4;
  border-radius:14px;
  padding:8px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.thumb-row img:hover{
  transform:translateY(-2px);
  border-color:rgba(227,6,19,.32);
  box-shadow:0 10px 24px rgba(15,23,42,.1);
}

/* Görsel altı PDF ve video alanı */
.product-media > .product-pdf-section,
.product-media > .product-video-section{
  position:relative;
  z-index:1;
}

.product-pdf-section{
  margin-top:16px;
}

.product-pdf-panel{
  overflow:hidden;
  border:1px solid #dfe5ed;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.065);
}

.product-pdf-panel summary{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:76px;
  padding:16px 54px 16px 18px;
  cursor:pointer;
  list-style:none;
  background:
    linear-gradient(135deg,#ffffff 0%,#f5f7fa 100%);
  color:#101827;
  transition:
    background .18s ease,
    border-color .18s ease;
}

.product-pdf-panel summary::-webkit-details-marker{
  display:none;
}

.product-pdf-panel summary::after{
  content:"";
  position:absolute;
  right:20px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid #101827;
  border-bottom:2px solid #101827;
  transform:
    translateY(-70%)
    rotate(45deg);
  transition:transform .18s ease;
}

.product-pdf-panel[open] summary{
  border-bottom:1px solid #e5e9f0;
  background:#f8fafc;
}

.product-pdf-panel[open] summary::after{
  transform:
    translateY(-30%)
    rotate(225deg);
}

.product-pdf-summary-copy{
  display:grid;
  gap:5px;
  min-width:0;
}

.product-pdf-summary-copy strong{
  color:#0f172a;
  font-size:16px;
  line-height:1.2;
  font-weight:900;
}

.product-pdf-summary-copy small{
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}

.product-pdf-summary-action{
  flex:0 0 auto;
  color:#e30613;
  font-size:13px;
  line-height:1;
  font-weight:900;
}

.product-pdf-body{
  padding:14px;
  background:#eef2f7;
}

.product-pdf-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}

.product-pdf-toolbar a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 15px;
  border-radius:11px;
  text-decoration:none;
  font-size:13px;
  line-height:1;
  font-weight:900;
}

.product-pdf-download{
  background:#e30613;
  color:#fff;
  box-shadow:0 10px 24px rgba(227,6,19,.2);
}

.product-pdf-new-tab{
  border:1px solid #d6dde7;
  background:#fff;
  color:#101827;
}

.product-pdf-object{
  display:block;
  width:100%;
  height:620px;
  overflow:hidden;
  border:1px solid #d8dee8;
  border-radius:13px;
  background:#fff;
}

.product-pdf-fallback{
  padding:24px;
  background:#fff;
  color:#475569;
  text-align:center;
}

.product-pdf-fallback p{
  margin:0 0 12px;
}

.product-pdf-fallback a{
  color:#e30613;
  font-weight:900;
}

.product-media > .product-video-section{
  margin-top:18px;
  padding-top:18px;
}

.product-media > .product-video-section h2{
  font-size:24px;
}

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

@media(max-width:760px){
  .product-pdf-panel summary{
    align-items:flex-start;
    min-height:0;
    padding:15px 46px 15px 15px;
  }

  .product-pdf-summary-action{
    display:none;
  }

  .product-pdf-toolbar a{
    flex:1 1 100%;
  }

  .product-pdf-object{
    height:500px;
  }
}

@media(max-width:480px){
  .product-pdf-object{
    height:410px;
  }
}

/* Sağ metin alan */
.product-copy{
  min-width:0;
  background:#fff;
  border:1px solid #e5e9f0;
  border-radius:28px;
  padding:32px;
  box-shadow:0 22px 58px rgba(15,23,42,.08);
}

.product-copy .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:13px;
  color:#e30613;
  font-size:13px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.product-copy .eyebrow::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:99px;
  background:#e30613;
  box-shadow:0 0 0 6px rgba(227,6,19,.1);
}

.product-copy h1{
  margin:0 0 15px;
  color:#08111f;
  font-size:clamp(34px,4.4vw,62px);
  line-height:1.01;
  letter-spacing:-.05em;
}

.product-copy .lead{
  margin:0 0 24px;
  max-width:900px;
  color:#3e4a5d;
  font-size:18px;
  line-height:1.76;
  font-weight:520;
}

/* HTML açıklama */
.product-description-html{
  margin-top:22px;
  color:#233044;
  font-size:16px;
  line-height:1.84;
  overflow-wrap:anywhere;
}

.product-description-html h2{
  position:relative;
  margin:38px 0 15px;
  padding-top:22px;
  border-top:1px solid #edf0f5;
  color:#09111f;
  font-size:29px;
  line-height:1.16;
  letter-spacing:-.03em;
}

.product-description-html h2:first-child{
  margin-top:0;
  padding-top:0;
  border-top:0;
}

.product-description-html h2::before{
  content:"";
  display:block;
  width:42px;
  height:4px;
  margin-bottom:13px;
  border-radius:999px;
  background:#e30613;
}

.product-description-html h2:first-child::before{
  display:none;
}

.product-description-html h3{
  margin:26px 0 12px;
  color:#111827;
  font-size:22px;
  line-height:1.25;
  letter-spacing:-.02em;
}

.product-description-html p{
  margin:0 0 16px;
  color:#374151;
}

.product-description-html strong,
.product-description-html b{
  color:#101827;
  font-weight:850;
}

.product-description-html ul,
.product-description-html ol{
  margin:18px 0 26px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  list-style:none;
}

.product-description-html li{
  position:relative;
  min-height:46px;
  padding:13px 14px 13px 42px;
  background:
    linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid #e8edf4;
  border-radius:15px;
  color:#233044;
  font-weight:650;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
}

.product-description-html li::before{
  content:"";
  position:absolute;
  left:16px;
  top:18px;
  width:9px;
  height:9px;
  border-radius:99px;
  background:#e30613;
  box-shadow:0 0 0 5px rgba(227,6,19,.1);
}

/* Buton alanı */
.hero-actions{
  margin-top:26px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.hero-actions:empty{
  display:none;
}

.hero-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  background:#101827;
  color:#fff;
  text-decoration:none;
  font-size:14px;
  line-height:1;
  font-weight:900;
  box-shadow:0 14px 30px rgba(15,23,42,.14);
}

.hero-actions a:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 36px rgba(15,23,42,.18);
}

.hero-actions a:first-child{
  background:#e30613;
  color:#fff;
  box-shadow:0 16px 34px rgba(227,6,19,.22);
}

/* İçerik uzun olduğunda okunurluk */
.product-description-html > *{
  max-width:980px;
}

/* Teknik bilgiler */
.product-technical-content{
  max-width:980px;
}

.product-technical-content table{
  width:100%;
  margin:0;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  overflow:hidden;
  border:1px solid #dfe5ed;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.product-technical-content th,
.product-technical-content td{
  padding:15px 17px;
  border-bottom:1px solid #e8edf3;
  color:#334155;
  font-size:15px;
  line-height:1.58;
  text-align:left;
  vertical-align:top;
  overflow-wrap:anywhere;
}

.product-technical-content th{
  width:31%;
  border-right:1px solid #e2e8f0;
  background:#f3f6fa;
  color:#0f172a;
  font-weight:850;
}

.product-technical-content tr:nth-child(even) td{
  background:#fafbfd;
}

.product-technical-content tr:last-child th,
.product-technical-content tr:last-child td{
  border-bottom:0;
}

.product-technical-content > p{
  margin:16px 0 0;
  padding:16px 18px;
  border:1px solid #dfe5ed;
  border-left:4px solid #172033;
  border-radius:14px;
  background:#f7f9fc;
  color:#475569;
  font-size:14px;
  line-height:1.7;
}

.product-technical-content > p strong{
  color:#111827;
}

@media(max-width:760px){
  .product-technical-content table,
  .product-technical-content tbody{
    display:block;
    width:100%;
  }

  .product-technical-content table{
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .product-technical-content tr{
    display:grid;
    grid-template-columns:minmax(125px,.8fr) minmax(0,1.55fr);
    margin-bottom:10px;
    overflow:hidden;
    border:1px solid #dfe5ed;
    border-radius:13px;
    background:#fff;
  }

  .product-technical-content th,
  .product-technical-content td{
    width:auto;
    min-width:0;
    padding:12px 13px;
    border:0;
    font-size:14px;
  }

  .product-technical-content th{
    border-right:1px solid #e2e8f0;
  }

  .product-technical-content tr:nth-child(even) td{
    background:#fff;
  }
}

@media(max-width:480px){
  .product-technical-content tr{
    grid-template-columns:1fr;
  }

  .product-technical-content th{
    border-right:0;
    border-bottom:1px solid #e2e8f0;
  }
}

/* Responsive */
@media(max-width:1180px){
  .product-detail{
    grid-template-columns:1fr;
    width:min(980px, calc(100% - 34px));
  }

  .product-media .main-img{
    max-height:520px;
  }
}

@media(max-width:760px){
  .product-detail{
    width:calc(100% - 22px);
    margin:18px auto 38px;
    gap:16px;
  }

  .product-media,
  .product-copy{
    border-radius:20px;
    padding:14px;
  }

  .product-copy{
    padding:20px;
  }

  .product-copy h1{
    font-size:35px;
  }

  .product-copy .lead{
    font-size:16px;
    line-height:1.66;
  }

  .product-description-html{
    font-size:15px;
    line-height:1.74;
  }

  .product-description-html h2{
    font-size:24px;
    margin-top:30px;
  }

  .product-description-html ul,
  .product-description-html ol{
    grid-template-columns:1fr;
  }

  .thumb-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:460px){
  .product-copy h1{
    font-size:31px;
  }

  .product-media .main-img{
    padding:10px;
  }

  .thumb-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hero-actions a{
    width:100%;
  }
}

/* Video / SSS alanları */

.product-technical-html,
.product-video-section,
.product-faq-section{
  margin-top:34px;
  padding-top:24px;
  border-top:1px solid #edf0f5;
}

.product-technical-html h2,
.product-video-section h2,
.product-faq-section h2{
  margin:0 0 16px;
  color:#09111f;
  font-size:28px;
  line-height:1.16;
  letter-spacing:-.03em;
}

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

.product-video-card{
  background:#fff;
  border:1px solid #e7ecf4;
  border-radius:18px;
  padding:14px;
  box-shadow:0 12px 30px rgba(15,23,42,.065);
}

.product-video-card iframe{
  width:100%;
  aspect-ratio:16/9;
  border:0;
  border-radius:14px;
  background:#0f172a;
}

.product-video-card h3{
  margin:14px 0 7px;
  color:#101827;
  font-size:18px;
  line-height:1.25;
}

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

.product-faq-item{
  margin-bottom:10px;
  overflow:hidden;
  border:1px solid #dfe5ed;
  border-radius:15px;
  background:#fff;
  box-shadow:0 7px 20px rgba(15,23,42,.04);
}

.product-faq-item summary{
  position:relative;
  display:flex;
  align-items:center;
  min-height:58px;
  padding:15px 54px 15px 18px;
  cursor:pointer;
  list-style:none;
  color:#101827;
  font-weight:850;
  line-height:1.45;
  transition:background-color .18s ease,color .18s ease;
}

.product-faq-item summary::-webkit-details-marker{
  display:none;
}

.product-faq-item summary::after{
  content:"";
  position:absolute;
  top:50%;
  right:21px;
  width:9px;
  height:9px;
  border-right:2px solid #475569;
  border-bottom:2px solid #475569;
  transform:translateY(-70%) rotate(45deg);
  transition:transform .18s ease,border-color .18s ease;
}

.product-faq-item summary:hover{
  background:#f7f9fc;
}

.product-faq-item[open]{
  border-color:#cfd7e3;
}

.product-faq-item[open] summary{
  background:#f3f6fa;
  border-bottom:1px solid #e2e8f0;
}

.product-faq-item[open] summary::after{
  border-color:#111827;
  transform:translateY(-30%) rotate(225deg);
}

.product-faq-item p{
  margin:0;
  padding:17px 18px 19px;
  background:#fff;
  color:#475569;
  line-height:1.72;
}

@media(max-width:760px){
  .product-video-grid{
    grid-template-columns:1fr;
  }

  .product-technical-html h2,
  .product-video-section h2,
  .product-faq-section h2{
    font-size:24px;
  }

  .product-faq-item summary{
    min-height:54px;
    padding:14px 48px 14px 15px;
  }

  .product-faq-item summary::after{
    right:18px;
  }

  .product-faq-item p{
    padding:15px;
  }
}

/* Ürün açıklaması iç SEO bağlantıları */
.product-description-html a{
  color:#e30613;
  font-weight:750;
  text-decoration-line:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
  text-decoration-color:rgba(227,6,19,.55);
  transition:
    color .18s ease,
    text-decoration-color .18s ease,
    text-decoration-thickness .18s ease;
}

.product-description-html a:visited{
  color:#e30613;
}

.product-description-html a:hover{
  color:#a9000a;
  text-decoration-color:#a9000a;
  text-decoration-thickness:2px;
}

.product-description-html a:focus-visible{
  outline:2px solid rgba(227,6,19,.28);
  outline-offset:3px;
  border-radius:3px;
}
