/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

@media (min-width: 700px) {
  /* Slider kapsayıcısındaki padding ve margin sıfırlanır */
  #metaslider-id-1989,
  #metaslider_container_1989,
  .metaslider,
  .entry-content > * {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Astra teması container paddinglerini kaldırmak için */
  .container,
  .container-wrap,
  .site-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  /* @@ürün detay sayfası @ */
  .woocommerce div.product {
    padding-left: 60px;
    padding-right: 60px;
	  padding-top: 60px;
	  background: #fff;
	  margin-top:-40px
}

  
  /* Alt menü kutularını genişlet */
  .main-navigation ul ul {
    min-width: 280px !important; /* kutu genişliği artırıldı */
    background: rgba(255,255,255,0.9) !important; /* daha opak arka plan */
    border: 1px solid #ddd !important;
    padding: 10px 2px 2px 2px !important;
    z-index: 9999 !important;
  }

  /* Alt menü öğeleri */
  .main-navigation ul ul li {
    white-space: nowrap !important; /* tek satırda kalsın */
  }

  /* Menü linkleri */
  .main-navigation ul li a {
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-decoration: none !important; /* varsayılan alt çizgiyi kaldır */
  }

  /* Hover efekti: altı çizili */
  .main-navigation ul li a:hover {
    text-decoration: underline !important;
  }

  /* @@@ */

  /* @@@ */

  .custom-checkout-checkboxes a {
    color: #279FB7;       /* Kurumsal koyu mavi */
    text-decoration: underline; /* Alt çizgi ile link olduğunu göster */
    font-weight: 800;     /* Biraz daha belirgin yapar */
  }
  .woocommerce-error {
    color: #279FB7 !important; 
  }

  /* @@@ */
  /* Ana kart */
  .wpcf7 {
    background: #ffffff !important;
    padding: 50px !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08) !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
  }

  /* Başlık */
  .wpcf7 h2 {
    font-size: 26px;
    font-weight: 700;
    color: #279FB7;
    margin-bottom: 10px;
  }

  /* Açıklama */
  .wpcf7 .form-desc {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Input ve textarea */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    width: 100% !important;
    padding: 16px 18px !important;
    margin-bottom: 18px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    transition: 0.3s !important;
  }

  /* Focus efekti */
  .wpcf7 input:focus,
  .wpcf7 textarea:focus {
    border-color: #279FB7 !important;
    box-shadow: 0 0 0 3px rgba(39,159,183,0.15) !important;
  }

  /* Textarea */
  .wpcf7 textarea {
    min-height: 160px !important;
    resize: none !important;
  }

  /* Buton */
  .wpcf7 input[type="submit"] {
    background: #279FB7 !important;
    color: #ffffff !important;
    padding: 16px 45px !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(39,159,183,0.35) !important;
    transition: 0.3s !important;
  }

  /* Hover */
  .wpcf7 input[type="submit"]:hover {
    background: #1d6a8c !important;
    transform: translateY(-3px);
  }

  /* @@Ürün AÇıklama alanı@@ */
  .rc-product-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .rc-product-description h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .rc-product-description h3 {
    margin-top: 25px;
    font-size: 18px;
    border-left: 4px solid #d4a017;
    padding-left: 10px;
  }

  .rc-product-description table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }

  .rc-product-description table td {
    border: 1px solid #eee;
    padding: 8px;
  }

  .rc-product-description table tr:nth-child(even) {
    background-color: #fafafa;
  }

  .rc-product-description ul {
    padding-left: 20px;
  }

  .rc-product-description hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #eee;
  }
  /* @@@ */
  /* Ürün kutularına gölge ve kenarlık ekle */
  .woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space between; /* içerikleri üst ve alt olarak ayırır */
    height: 99%;
    position: relative;
    background: #fff;              /* beyaz arka plan */
    border: 1px solid #e0e0e0;     /* hafif gri kenarlık */
    border-radius: 8px;            /* köşeleri yuvarlat */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* hafif gölge */
    padding: 12px;                 /* iç boşluk */
    transition: all 0.3s ease;     /* hover için yumuşak geçiş */
  }

  .ast-separate-container .ast-woocommerce-container {
    padding: 1.0em 2.0em;
  }

  /* Hover efekti */
  .woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);   /* hover’da hafif yukarı kalksın */
  }

  /* Ürün detay sayfasındaki ana görsel için kutu ve gölge */
  .woocommerce div.product div.images img {
    background: #fff;              /* beyaz arka plan */
    border: 1px solid #e0e0e0;     /* hafif gri kenarlık */
    border-radius: 12px;            /* köşeleri yuvarlat */
  }
  /* @@@ */
  /* Ürün liste sayfasındaki Sepete Ekle butonu */
  .woocommerce ul.products li.product .button {
    display: block;
    width: 90%;                 /* %100 genişlik */
    position: absolute;          /* kutunun içinde sabitler */
    bottom: 8px;                   /* en alta yaslar */
    left: 5%;
    background-color: #ff6600;   /* normal arka plan rengi */
    color: #fff;                 /* yazı rengi */
    border-radius: 10px;            /* köşeleri düz */
    padding: 12px 0;             /* dikey boşluk */
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;   /* hover için yumuşak geçiş */
  }

  /* Hover efekti */
  .woocommerce ul.products li.product .button:hover {
    background-color: #cc5200;   /* hafif renk değişimi */
    transform: scale(1.02);      /* çok hafif yakınlaşma efekti */
  }

  /* @@@ */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* en fazla 2 satır */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Ürün detayı sayfasındaki Sepete Ekle butonu */
  .woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #ff6600;   /* normal arka plan rengi */
    color: #fff;                 /* yazı rengi */
    border-radius: 6px;          /* köşeleri yuvarlat (isteğe bağlı) */
    padding: 12px 20px;
    font-weight: bold;
    transition: all 0.3s ease;   /* hover için yumuşak geçiş */
  }

  /* Hover efekti */
  .woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #cc5200;   /* hover arka plan rengi */
    transform: scale(1.05);      /* hafif yakınlaşma efekti */
  }
  /* @@@ */
  /* Fiyat filtresi alanı */
  .woocommerce .widget_price_filter .price_slider_amount {
    display: flex;
    flex-direction: column-reverse; /* butonu alta, fiyat bilgisini üste alır */
    align-items: center;
    gap: 8px;                       /* fiyat ile buton arasında boşluk */
  }

  /* Fiyat bilgisini düzenle */
  .woocommerce .widget_price_filter .price_label {
    font-size: 14px;          /* yazı boyutu */
    font-weight: bold;        /* kalın yap */
    color: #333;              /* metin rengi */
    text-align: center;
  }

  /* Filtrele butonu */
  .woocommerce .widget_price_filter .button {
    background-color: #ff6600;   /* normal arka plan rengi */
    color: #fff;                 /* yazı rengi */
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: bold;
    transition: all 0.3s ease;
  }

  /* Hover efekti */
  .woocommerce .widget_price_filter .button:hover {
    background-color: #cc5200;   /* hover rengi */
    transform: scale(1.05);      /* hafif yakınlaşma efekti */
  }
}

  /* @@@ */
  /* @@@ */
#metaslider-id-1989.metaslider.ms-theme-outline.ms-is-small {
    padding-bottom: 0 !important;
}
@media (max-width: 768px) {
  #metaslider-id-1978 {
    max-height: 130px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
}  
  /* @@@ */
  /* @@@ */
/* Ürün kutularına gölge ve kenarlık ekle */
  .woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space between; /* içerikleri üst ve alt olarak ayırır */
    height: 99%;
    position: relative;
    background: #fff;              /* beyaz arka plan */
    border: 1px solid #e0e0e0;     /* hafif gri kenarlık */
    border-radius: 8px;            /* köşeleri yuvarlat */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* hafif gölge */
    padding: 10px;                 /* iç boşluk */
    transition: all 0.3s ease;     /* hover için yumuşak geçiş */
  }



  /* Ürün detay sayfasındaki ana görsel için kutu ve gölge */
  .woocommerce div.product div.images img {
    background: #fff;              /* beyaz arka plan */
    border: 1px solid #e0e0e0;     /* hafif gri kenarlık */
    border-radius: 12px;            /* köşeleri yuvarlat */
    padding: 24px;
   
    
  }

.pswp__img {
    object-fit: contain;  
    background: #fff;
		padding:22px;
	 border:solid 1px black;
	border-radius:12px;
}
/* Ürün başlığı */
.woocommerce div.product .product_title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}
/* Fiyat */
.woocommerce div.product p.price {
    font-size: 22px;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 20px;
}
/* Ürün açıklaması */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
	
    margin-bottom: 25px;
}


  /* @@@ */
  /* Ürün liste sayfasındaki Sepete Ekle butonu */
  .woocommerce ul.products li.product .button {
    display: block;
    width: 90%;                 /* %100 genişlik */
    position: absolute;          /* kutunun içinde sabitler */
    bottom: 8px;                   /* en alta yaslar */
    left: 5%;
    background-color: #ff6600;   /* normal arka plan rengi */
    color: #fff;                 /* yazı rengi */
    border-radius: 10px;            /* köşeleri düz */
    padding: 12px 0;             /* dikey boşluk */
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;   /* hover için yumuşak geçiş */
  }

  /* Hover efekti */
  .woocommerce ul.products li.product .button:hover {
    background-color: #cc5200;   /* hafif renk değişimi */
    transform: scale(1.02);      /* çok hafif yakınlaşma efekti */
  }

  /* @@@ */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* en fazla 2 satır */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Ürün detayı sayfasındaki Sepete Ekle butonu */
  .woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #ff6600;   /* normal arka plan rengi */
    color: #fff;                 /* yazı rengi */
    border-radius: 6px;          /* köşeleri yuvarlat (isteğe bağlı) */
    padding: 12px 20px;
    font-weight: bold;
    transition: all 0.3s ease;   /* hover için yumuşak geçiş */
  }

  /* Hover efekti */
  .woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #cc5200;   /* hover arka plan rengi */
    transform: scale(1.05);      /* hafif yakınlaşma efekti */
  }

/* --- Mobilde sadece sidebar gizle, footer kalsın --- */
@media (max-width: 768px) {
  #secondary.widget-area {   /* sadece ürün sayfası sidebar */
    display: none !important;
  }
  .filter-btn {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
  }
}

/* --- Popup görünümü --- */
.filter-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.filter-popup-content {
  position: relative; /* close buton için referans */
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}

#filter-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.filter-popup-content .widget {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}


/* Ödeme Yöntemleri */

/* Ödeme yöntemleri kutusu */
.ast-single-product-payments {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    background: #fafafa;
}

/* Başlık */
.ast-single-product-payments legend {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Liste düzeni */
.ast-single-product-payments ul {
    display: flex;              /* yan yana dizilsin */
    flex-wrap: wrap;            /* taşarsa alta geçsin */
    gap: 25px;                  /* ikonlar arası boşluk */
    justify-content: center;    /* ortala */
    list-style: none;           /* noktaları kaldır */
    padding: 0;
    margin: 0;
}

/* Tek ikon kutusu */
.ast-single-product-payments li.ast-custom-payment {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PNG ve JPG ikonlar */
.ast-single-product-payments li.ast-custom-payment img {
    height: 24px;   /* hepsi aynı yükseklikte */
    width: auto;    /* orantılı genişlik */
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover efekti */
.ast-single-product-payments li.ast-custom-payment img:hover {
    transform: scale(1.1);
}

/* Offcanvas menü kapatma butonunun kenarlığını kaldır */
.menu-toggle-close,
.menu-toggle-close:focus,
.menu-toggle-close:hover {
    border: none !important;     /* kenarlığı kaldır */
    outline: none !important;    /* odaklandığında çıkan çerçeveyi kaldır */
    box-shadow: none !important; /* varsa gölgeyi kaldır */
    background: none !important; /* arka plan varsa kaldır */
}







