/* Çerez bildirimi stil */
.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 90%;
    max-width: 500px;
    font-size: 14px;
    z-index:999999999999;
}

.cookie-container a {
    color: #ffcc00;
    text-decoration: underline;
}

.cookie-container button {
    background: #ffcc00;
    color: #333;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    width: 200px;
}

.cookie-container button:hover {
    background: #e6b800;
}

.hidden {
    display: none;
}


.category-card {
    height: 80px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    border: 1px solid #494949; /* Varsayılan çerçeve rengi */
}
.category-card:hover {
    background-color: #64757d;
    color: white;
  
}





.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 300px; /* Sabit yükseklik */
}

/* @media (max-width: 575px) {
    .product-card {
        width: 48%; 
        display: inline-block;
    }
} */

.product-image {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1); /* Resmi büyütme efekti */
}

.product-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
   
}



.product-card:hover .product-info {
    height: auto;
    white-space: normal;
}

/*kat- altkat*/
.blog-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-categories ul li {
    position: relative;
}
.blog-categories ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}
.blog-categories ul li .submenu {
    display: none;
    padding-left: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}
.blog-categories ul li .submenu li a {
    padding: 8px 10px;
    display: block;
}
/* Açık menüyü gösterme */
.blog-categories ul li.active .submenu {
    display: block;
}
/* Masaüstünde hover ile açılma */
@media (min-width: 768px) {
    .blog-categories ul li:hover .submenu {
        display: block;
    }
}

@media (max-width: 767px) {
    .blog-categories ul li .submenu {
        position: static;
        display: none;
        padding-left: 20px;
        border: none;
    }
    .blog-categories ul li .submenu li a {
        padding: 5px 10px;
    }
}
/**/

.product-container {
    position: relative;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
}

.product-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.product-slider img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ✔ Butonları tam yuvarlak yapalım */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

/* ✔ Butonlar hover olduğunda biraz belirginleşsin */
.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ✔ Butonların konumlarını sabitleyelim */
.prev-btn { left: 10px; }
.next-btn { right: 10px; }


       /* Liste Stili */
       .pdf-list {
        list-style: none;
        padding: 0;
    }
    .pdf-list li {
        display: flex;
        align-items: center;
        padding: 8px 0;
        font-size: 16px;
    }
    .pdf-list li i {
        color: #d9534f; /* Kırmızı PDF ikonu */
        margin-right: 10px;
        font-size: 20px;
    }
    .pdf-list li a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
    }
    .pdf-list li a:hover {
        color: #d9534f;
    }




    /*wp buton*/
    /* WhatsApp butonu ve açıklama kutusu için container */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
  }
  
  /* WhatsApp butonu stil */
  .whatsapp-button {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  /* Açıklama kutusu stil */
  .whatsapp-tooltip {
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-left: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
  }
  
  /* Buton hover efekti */
  .whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
  }
  /*--------------------------------------------------------------------------------------------------------------------*/

/* 3. Seviye Alt Menü Pozisyon Düzeltmesi */
.sub-menu .sub-menu {
    display: none;
    position: absolute;
    left: 100%;  /* Ana menünün sağına hizala */
    top: -1px;   /* Üst kısımla aynı hizada başlasın */
    width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    z-index: 1000;
    margin-left: 0; /* Varsayılan margin'i sıfırla */
  }
  
  /* Hover durumunda pozisyon ayarı */
  .sub-menu li:hover > .sub-menu {
    display: block;
    transform: translateX(0); /* Ekstra güvenlik */
  }
  
  /* Ok ikonunu güncelleme */
  .sub-menu li.has-child > a:after {
    content: "›";
    float: right;
    margin-left: 10px;
    font-size: 1.2em;
  }
  
  /* Ana menü konteyner ayarı */
  .main-menu > li {
    position: relative;
  }
  
  .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
  }

  .main-menu > li > .sub-menu {
    top: 100%;
    left: 0;
  }
  
  .sub-menu li {
    position: relative; /* Alt menüler için gerekli */
  }

  /* Ana düzeltme */
.sub-menu .sub-menu {
    position: absolute;
    left: 100% !important;  /* %100 sağa kaydır */
    top: 0 !important;      /* Üst ile aynı hizada */
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Ok işareti düzeltmesi */
  .has-child > a:after {
    content: "→";
    float: right;
    margin-left: 10px;
  }

  .sub-menu {
    transition: opacity 0.3s, transform 0.2s;
    opacity: 0;
    transform: translateY(10px);
  }
  .has-child:hover > .sub-menu {
    opacity: 1;
    transform: translateY(0);
  }

  @media (max-width: 991px) {
    .sub-menu .sub-menu {
      position: static;
      width: auto;
      padding-left: 20px;
      border: none;
      margin-left: 0;
      left: 15px !important; /* Mobilde içeriden başlasın */
      width: calc(100% - 30px); /* Taşmaları önle */
    }
  }

