/* GRID */
.features-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px){
  .features-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CARD */
.feature-card{
  padding: 32px;
  border: 1px solid #f1f5f9;
  background: rgba(248,250,252,.5);
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}

/* HOVER */
.feature-card:hover{
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}

/* ICON */
.feature-icon{
  background: #fff;
  border: 1px solid #f1f5f9;
  padding: 16px;
  display: inline-flex;
  margin-bottom: 24px;
  color: #2563eb;
}

/* TITLE */
.feature-card h3{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

/* TEXT */
.feature-card p{
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 16px;
}

/* MARKA ANA RENGİ */
:root{
  --primary-color: #0ea5e9;
  --masthead-h: 55px;
}

/* BADGE */
.feature-badge{
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* HERO GRADIENT OVERLAY */
.hero-gradient{
  position: relative !important;
  overflow: hidden;
}

.hero-gradient .wp-block-cover__image-background,
.hero-gradient .wp-block-cover__video-background,
.hero-gradient img{
  position: relative;
  z-index: 0 !important;
}

.hero-gradient::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,23,42,1) 0%,
    rgba(15,23,42,0.92) 45%,
    rgba(15,23,42,0) 100%
  );
  z-index: 2 !important;
  pointer-events: none;
}

.hero-gradient > *{
  position: relative;
  z-index: 3 !important;
}

/* HEADER */
#masthead{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: transparent !important;
}

body.admin-bar #masthead{
  top: 32px !important;
}

@media (max-width: 782px){
  body.admin-bar #masthead{
    top: 46px !important;
  }
}

#masthead::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(10, 18, 33, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .25s ease, backdrop-filter .25s ease;
  z-index: -1;
}

body.is-scrolled #masthead::before{
  background: rgba(10, 18, 33, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Header içeriğin üstüne binmesin */
body:not(.home) #content {
  padding-top: var(--masthead-h) !important;
}

/* Mobil için */
@media (max-width: 768px) {
  :root{
    --masthead-h: 60px;
  }

  body:not(.home) #content {
    padding-top: var(--masthead-h) !important;
  }
}

/* bazen tema üstte boşluk verir */
html, body{
  margin-top: 0 !important;
}

/* PRODUCTS CATEGORY GRID */
.wp-catgrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:24px;
}

@media (min-width: 640px){
  .wp-catgrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px){
  .wp-catgrid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wp-cat{
  display:block;
  text-decoration:none;
  color:inherit;
}

.wp-cat__card{
  position:relative;
  height:256px;
  overflow:hidden;
  border-radius:4px;
  cursor:pointer;
}

.wp-cat__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .7s ease;
}

.wp-cat:hover .wp-cat__img{
  transform:scale(1.10);
}

.wp-cat__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(15,23,42,.90), rgba(15,23,42,0));
}

.wp-cat__content{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  padding:24px;
}

.wp-cat__title{
  margin:0 0 6px;
  color:#fff;
  font-weight:700;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.wp-cat__arrow{
  width:20px;
  height:20px;
  opacity:0;
  transform:translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
}

.wp-cat:hover .wp-cat__arrow{
  opacity:1;
  transform:translateX(0);
}

.wp-cat__desc{
  margin:0;
  color: rgba(203,213,225,.90);
  font-size:14px;
  line-height:1.5;
  opacity:.8;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* STATS */
.wp-stats{
  background:#0f172a;
  border-top:1px solid #1f2937;
  border-bottom:1px solid #1f2937;
  padding:64px 0;
  overflow:hidden;
}

.wp-stats__container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.wp-stats__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:32px;
  text-align:center;
}

@media (min-width:768px){
  .wp-stats__grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

.wp-stats__item{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.wp-stats__value{
  font-weight:900;
  color:#fff;
  margin-bottom:8px;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-0.02em;
}

@media (min-width:768px){
  .wp-stats__value{
    font-size:36px;
  }
}

.wp-stats__label{
  color:#94a3b8;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.12em;
}

/* ANIMATION */
.wp-anim{
  opacity:0;
  transform:translateY(28px);
}

.wp-anim.is-inview{
  animation:wpFadeUp .9s ease forwards;
}

.wp-stats__item:nth-child(1).is-inview{ animation-delay:.10s; }
.wp-stats__item:nth-child(2).is-inview{ animation-delay:.25s; }
.wp-stats__item:nth-child(3).is-inview{ animation-delay:.40s; }
.wp-stats__item:nth-child(4).is-inview{ animation-delay:.55s; }

@keyframes wpFadeUp{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .wp-anim{
    opacity:1;
    transform:none;
  }

  .wp-anim.is-inview{
    animation:none;
  }
}

/* CTA */
.wp-cta{
  position:relative;
  overflow:hidden;
  background:#f8fafc;
  padding:96px 0;
}

.wp-cta__bg{
  position:absolute;
  top:0;
  right:0;
  width:33.333%;
  height:100%;
  background:rgba(226,232,240,.5);
  transform:skewX(-12deg) translateX(80px);
  transform-origin:top;
  z-index:1;
}

.wp-cta__container{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.wp-cta__inner{
  max-width:896px;
  margin:0 auto;
  text-align:center;
}

.wp-cta__title{
  margin:0 0 24px;
  font-weight:800;
  color:#0f172a;
  font-size:40px;
  line-height:1.1;
}

.wp-cta__text{
  margin:0 0 40px;
  color:#475569;
  font-size:20px;
  line-height:1.6;
}

.wp-cta__link{
  display:inline-block;
  text-decoration:none;
}

.wp-cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:64px;
  padding:0 40px;
  font-size:18px;
  font-weight:700;
  color:#fff;
  border-radius:4px;
  background: var(--ast-global-color-1, #2997AA);
  border:1px solid rgba(0,0,0,0);
  box-shadow:0 18px 40px rgba(41,151,170,.20);
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wp-cta__icon{
  width:20px;
  height:20px;
}

.wp-cta__link:hover .wp-cta__btn{
  transform: translateY(-2px);
  box-shadow:0 22px 55px rgba(41,151,170,.28);
  filter: brightness(0.98);
}

@media (max-width:768px){
  .wp-cta{
    padding:72px 0;
  }

  .wp-cta__bg{
    width:55%;
    transform:skewX(-12deg) translateX(60px);
    opacity:.6;
  }

  .wp-cta__title{
    font-size:32px;
  }

  .wp-cta__text{
    font-size:18px;
  }
}

/* INDUSTRIES */
.wp-industries{
  background:#ffffff;
  padding:96px 0;
}

.wp-industries__container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.wp-industries__header{
  text-align:center;
  margin-bottom:64px;
}

.wp-industries__title{
  font-weight:800;
  font-size:clamp(28px, 3.2vw, 40px);
  line-height:1.15;
  margin:0 0 16px;
  color:#0f172a;
}

.wp-industries__line{
  width:80px;
  height:4px;
  margin:0 auto 24px;
  background:var(--ast-global-color-1, #2997AA);
}

.wp-industries__desc{
  max-width:720px;
  margin:0 auto;
  color:#64748b;
  font-size:16px;
  line-height:1.7;
}

.wp-industries__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
}

@media (min-width:768px){
  .wp-industries__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:1200px){
  .wp-industries__grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

.industry-card{
  position:relative;
  overflow:hidden;
  border-radius:2px;
  height:350px;
  display:flex;
  align-items:flex-end;
  padding:24px;
  border:1px solid #e2e8f0;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  transform:translateY(0);
  transition:transform .5s ease, box-shadow .5s ease;
  text-decoration:none !important;
  color:inherit;
  background:#fff;
}

.industry-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,.14);
}

.industry-card__media{
  position:absolute;
  inset:0;
}

.industry-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1);
  transform:scale(1);
  transition:transform .7s ease, filter .7s ease;
}

.industry-card:hover .industry-card__media img{
  filter:grayscale(0);
  transform:scale(1.05);
}

.industry-card__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(2,6,23,.95), rgba(2,6,23,.40), rgba(2,6,23,0));
}

.industry-card__content{
  position:relative;
  z-index:2;
  width:100%;
}

.industry-card__title{
  margin:0 0 8px;
  color:#ffffff !important;
  font-weight:800;
  font-size:20px;
  line-height:1.2;
}

.industry-card__text{
  margin:0;
  color:#cbd5e1;
  font-size:14px;
  line-height:1.6;
  opacity:0;
  max-height:0;
  overflow:hidden;
  transition:opacity .5s ease, max-height .5s ease;
}

.industry-card:hover .industry-card__text{
  opacity:1;
  max-height:120px;
}

.wp-industries__cta{
  margin-top:48px;
  text-align:center;
}

.wp-industries__button{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  background:#1B2A4C;
  border:1px solid #1B2A4C;
  color:#ffffff !important;
  border-radius:6px;
  font-weight:700;
  text-decoration:none !important;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}

.wp-industries__button:hover{
  background:#0163A0;
  border-color:#0163A0;
  color:#ffffff !important;
  transform:translateY(-1px);
}

.wp-industries__arrow{
  display:inline-block;
  transform:translateX(0);
  transition:transform .25s ease;
}

.wp-industries__button:hover .wp-industries__arrow{
  transform:translateX(3px);
}

/* ENTRY HEADER */
header.entry-header .entry-title{
  display:none;
}

.entry-header{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

.entry-title{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ast-single-post .entry-content,
.ast-page-builder-template .entry-content,
.site-content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ürün başlığını görünür yap */
.single-product .entry-title,
.single-product h1.entry-title{
  display: block !important;
  visibility: visible !important;
  color: #000000 !important;
  opacity: 1 !important;
}

/* Ürün sayfasında başlık alanını geri aç */
.single-product .entry-header{
  display: block !important;
  height: auto !important;
}

.ast-container {
  max-width: 1400px;
}

/* Header altındaki fazla boşluğu temizle */
body:not(.home) #content{
  padding-top: 45px !important;
}

/* İlk bloktan gelen Astra/Stackable üst boşluğunu kaldır */
body:not(.home) .entry-content > *:first-child{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==========================================
   Sticky Header: tüm sayfalarda üst üste binmeyi önler
   ========================================== */

/* Masthead’i yapışkan hale getir ve en üste sabitle */
#masthead {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
}

/* WordPress admin bar açıkken boşluğu ayarla */
body.admin-bar #masthead {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #masthead {
    top: 46px;
  }
}

/* Daha önce eklenen sabit header ayarlarını ve padding-top değerlerini kaldırın */
body:not(.home) #content,
body #content {
  padding-top: 0 !important;
}

/* Ürün sayfalarında header altındaki 100px spacer'i kaldır */
.single-product #content .wp-block-spacer:first-of-type {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ürün (single-product) sayfalarında içerik header’in altında başlamasın */
.single-product #content {
  padding-top: var(--masthead-h) !important;
}

/* Admin bar açıksa (oturum açılmışsa) ek boşluk ekleyin */
@media (min-width: 782px) {
  body.admin-bar.single-product #content {
    padding-top: calc(var(--masthead-h) + 32px) !important;
  }
}

/* =======================================================
   ÜRÜN SAYFALARI İÇİN DÜZENLEME
   ======================================================= */

/* Ürün sayfalarında header ve arkaplanı beyaz olsun */
.single-product #masthead,
.single-product #masthead::before {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Ürün sayfalarında içerik header’ın altında başlamasın */
.single-product #content {
  padding-top: var(--masthead-h) !important;
}

/* SADECE TEKLİF LİSTESİ / SEPET SAYFASI */
body.woocommerce-cart #content{
  padding-top: 150px !important;
}

body.woocommerce-cart .site-content{
  padding-top: 150px !important;
}

/* Bu sayfada header beyaz kalsın */
body.woocommerce-cart #masthead,
body.woocommerce-cart #masthead::before{
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}