#top .av_header_glassy.av_header_transparency #header_main {
  border-color: rgba(0, 0, 0, 0.1);
}

#top .av_header_glassy.av_header_transparency .header_bg {
  background-color: black;
}
@media (min-width: 769px) {
  #avia-menu .menu-item-has-children > a:before {
    content: "\e877";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    font-family: "entypo-fontello";
  }

  #avia-menu .sub-menu .menu-item-has-children > a:before {
    top: 50%;
    transform: translateY(-50%);
    right: 0.5rem;
  }
}

#scroll-top-link {
  border-radius: 50%;
  font-size: 24px;
  bottom: 50px;
  right: 50px;
  width: 40px;
  height: 40px;
  line-height: 39px;
  border-color: transparent;
  background-color: #e1e1e1;
  color: #a1a1a1;
}

/*HOMEPAGE*/
.home #header {
  /* position: absolute; */
  z-index: 33;
}
.home #wrap_all {
  /* background: transparent; */
}
.home .header_color .header_bg {
  /* background-color: rgba(255, 255, 255, 0.5); */
  border: none;
}
.home #header_main {
  border: none;
}
.home #layer_slider_1 {
  border: none;
}
.home-multlock-accordion {
  border-radius: 8px;
}
.home-references-carousel .av-horizontal-gallery-wrap {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.home-partners-carousel .avia-content-slider-inner {
  border-radius: 8px;
}
.home-product-slider div .products .product {
  width: 300px;
}

.responsive #top #wrap_all .home-full-container-holder .container {
  width: 100%;
  max-width: none !important;
  padding: 0;
}
@media (min-width: 769px) {
  .av-logo-container .logo {
    margin-top: 16px;
  }
  .home-products-section:not(.on-gray-section)
    .flex_column:not(:first-child)
    img {
    max-height: 300px;
    width: auto;
  }
}

/*HOME home-products-section on-gray-section */
.home-products-section.on-gray-section .flex_column {
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 1rem 0;
}
.home-products-section .flex_column:hover img {
  transform: scale(1.02) translateY(10px);
}

/* REFRENCES PAGE TOUCHES*/
.refrences-page-masonry .av-inner-masonry {
  border-radius: 8px;
}

/*PRODUCT CATEGORIES*/
#top .products .product-category {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 2px 1px 5px 0px rgba(0, 0, 0, 0.1);
}
#top .products.subcategories {
  margin-bottom: 1rem;
  clear: both;
  overflow: hidden;
}
#top .products.subcategories .product-category {
  box-shadow: none;
  padding: 0.1rem 1rem;
  width: auto;
  margin-bottom: 1rem;
  min-width: 24.25%;
  max-width: 24.25%;
  flex: 1 0 auto;
}

#top .products.subcategories .product-category a {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 90px;
}
#top .products.subcategories .product-category a img {
  margin-right: 6px;
  max-width: 70px;
}
#top .products.subcategories .product-category a h2 {
  font-size: 1.15em;
}

#top h2.woocommerce-loop-product__title {
  font-weight: 600 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* max 2 satır */
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 2.4em; /* 2 satır yüksekliği garanti */
  line-height: 1.2;
  padding: 0;
  margin: 10px;
}
#top .inner_product_header .product-excerpt {
  color: #717171;
  font-weight: 400;
  padding: 5px;
  font-size: 14px;
  line-height: 18px;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* max 3 satır */
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 54px; /* sabit alan */
}
#top .inner_product_header .product-last-category {
  font-size: 12px;
  color: #3d4659;
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.9);
}
/*SHOP PAGE*/

.container_wrap.template-shop {
  background-color: #ebebeb;
}
.products-page-hero {
  min-height: 350px;
}
#top .related.products h2 {
  margin-bottom: 2rem;
}
#top .related.products .inner_product,
#top .up-sells.products .inner_product {
  background-color: #ebebeb;
  border-radius: 8px;
}
#top .inner_product .thumbnail_container {
  background-color: white;
  border-radius: 8px;
  aspect-ratio: 1 / 1; /* kare */
  width: 100%;
  overflow: hidden;
}
#top .inner_product .thumbnail_container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* taşma yok, boşluk olabilir */
}
#top .related.products .inner_product_header .pwb-brands-in-loop {
  background-color: transparent;
}
#top .related.products .inner_product_header .product-last-category,
#top .up-sells.products .inner_product_header .product-last-category {
  background-color: transparent;
}

#top.single-product .product_meta {
  margin: 30px 0;
}

#top.single-product .template-shop {
  overflow: hidden;
}

#top div div.product .woocommerce-tabs ul.tabs li a {
  border: none;
  color: #3d4659;
}
#top.single-product .woocommerce-tabs .tabs .active {
  background-color: transparent;
}

#top div div.product .woocommerce-tabs ul.tabs li.active a {
  border: none;
}

@media (min-width: 769px) {
  #top .products.subcategories {
    display: flex;
  }

  #top .products.subcategories .product-categories {
    min-width: auto;
  }
  .woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
  }

  .woocommerce ul.products li.product,
  .woocommerce ul.products li.product a {
    display: flex;
    flex-direction: column;
    align-items: strech;
    justify-content: space-between;
  }

  .woocommerce ul.products li.product a {
    /* flex: 1; */
  }

  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    /* flex: 1; */
  }
  #top .inner_product .thumbnail_container {
    flex: none;
    display: flex;
    align-items: center;
    background-color: white;
  }
}

/*BRANDS PAGE*/
.pwb-brand-banner {
  max-width: 150px;
}
.pwb-brand-banner img {
  border-radius: 1rem;
  min-width: 150px;
}

#top .products.subcategories.onbrandpage .product-category {
  margin-right: 0.65% !important;
}
#top .products.subcategories.onbrandpage .product-category.first,
#top .products.subcategories.onbrandpage .product-category.last {
  clear: unset !important;
}

/*SINGLE PRODUCT*/
.pwb-single-product-brands img {
  border-radius: 16px;
  max-width: 3.25rem;
}

#top .inner_product_header .pwb-brands-in-loop {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 2rem;
}

/*ALLPAGES*/
.req-hero .av_slideshow_full li img {
  max-height: 435px;
  width: 100%;
}

#top input.wpcf7-not-valid,
#top textarea.wpcf7-not-valid {
  border-color: red;
}

@media only screen and (max-width: 767px) {
  #top .av_header_glassy.av_header_transparency .header_bg {
    background-color: transparent;
  }
  .responsive #scroll-top-link {
    display: block;
    right: 1.5rem;
  }
  .products-page-hero {
    min-height: auto;
  }
  .home-references-carousel .av-horizontal-gallery-wrap {
    border-radius: 0;
  }
  .responsive #top #wrap_all .flex_column {
    margin-bottom: 0;
  }
  .responsive #top #wrap_all .home-full-container-holder,
  .responsive #top #wrap_all .home-full-container-holder img {
    margin-bottom: 40px;
  }

  .responsive
    #top
    #wrap_all
    .home-full-container-holder
    .mobile-padding-standard {
    padding-left: 0 !important;
    width: 85%;
    margin: 0 auto !important;
  }

  .responsive #top #wrap_all .home-products-section .flex_column {
    margin-top: 40px;
  }
  .home-products-section .av-special-heading {
    text-align: center;
  }
  .home-products-section img {
    max-height: 200px;
    width: auto;
    margin: 0 auto;
  }

  .responsive
    #top
    .home-full-container-holder.reverse-img-mobile
    .flex_column_table {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
  }

  .no-padding-mobile {
    padding: 0 !important;
  }
  .mask-over-dark,
  .mask-over-light {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }
  .mask-over-light {
    background-color: rgba(255, 255, 255, 0.1);
  }
  #top .products.subcategories .product-category {
    max-width: 100%;
  }

  .ls-bottom-nav-wrapper {
    z-index: 32;
  }
}

.special_amp {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit !important;
}

.av-google-badge-message {
  display: none !important;
}

#top .av-product-class-minimal .inner_product_header {
  flex: 1;
}

/* =========================
   WRAPPER
========================= */

.xn-contact-buttons,
.xn-contact-buttons-loop {
  display: flex;
  gap: 6px;
  width: 100%;
  align-self: flex-end;
}

/* =========================
   BASE BUTTON
========================= */

#top .xn-contact-buttons a,
#top .xn-contact-buttons-loop a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row !important;

  gap: 6px; /* icon + text arası */
  padding: 8px 12px;

  border-radius: 999px; /* 🔥 full rounded (pill) */
  font-size: 14px;
  font-weight: 600;

  color: #fff !important;
  text-decoration: none;

  position: relative;
  overflow: hidden;

  /* subtle inner border efekti */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);

  transition:
    background-color 0.25s ease,
    transform 0.2s ease;

  border-radius: 24px;
}

/* =========================
   ICON (SOLDA)
========================= */

.xn-contact-phone::before,
.xn-contact-phone-loop::before,
.xn-contact-whatsapp::before,
.xn-contact-whatsapp-loop::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
}

/* PHONE ICON */
.xn-contact-phone::before,
.xn-contact-phone-loop::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'><path d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1 C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>");
}

/* WHATSAPP ICON */
.xn-contact-whatsapp::before,
.xn-contact-whatsapp-loop::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'><path d='M20.52 3.48A11.94 11.94 0 0012.05 0C5.49 0 .12 5.37.12 11.93 c0 2.1.55 4.16 1.6 5.98L0 24l6.27-1.64a11.9 11.9 0 005.78 1.47h.01 c6.56 0 11.93-5.37 11.93-11.93 0-3.19-1.24-6.19-3.47-8.42z'/></svg>");
}

/* =========================
   COLORS
========================= */

.xn-contact-phone,
.xn-contact-phone-loop {
  background-color: #00316c;
}

.xn-contact-whatsapp,
.xn-contact-whatsapp-loop {
  background-color: #25d366;
}

/* =========================
   HOVER (SADECE BACKGROUND)
========================= */

.xn-contact-phone:hover,
.xn-contact-phone-loop:hover {
  background-color: #0069d9; /* biraz koyu */
  color: #fff !important;
}

.xn-contact-whatsapp:hover,
.xn-contact-whatsapp-loop:hover {
  background-color: #1ebe1a;
  color: #fff !important;
}

/* küçük lift efekti (opsiyonel ama şık) */
.xn-contact-buttons a:hover,
.xn-contact-buttons-loop a:hover {
  transform: translateY(-2px);
}

/* =========================
   CATEGORY BRAND IMAGES
========================= */

/**
 * Category Brand Display - Main Wrapper
 * Used when brands are displayed as a standalone section
 */
.xn-category-brands {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/**
 * Individual Brand Item
 */
.xn-category-brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/**
 * Brand Image - Inline Display (next to title)
 * This is the responsive container for brand logos/icons
 * Admin can control sizing via CSS custom properties or max-width
 */
.xn-category-brand-inline {
  display: flex;
  align-items: center;
  vertical-align: middle;
  padding-left: 3px;
}

/**
 * Brand Thumbnail Image (cat_brand class)
 * 
 * This class is applied to the img tag and allows full CSS control
 * - css_width: controlled by page layout (responsive)
 * - max-height: prevents oversized images
 * - object-fit: maintains aspect ratio without distortion
 */
.cat_brand,
.cat_brand_inline {
  max-height: 60px;
  height: auto;
  max-width: 120px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  width: 60px;
}

.cat_brand:hover,
.cat_brand_inline:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/**
 * Responsive sizing for smaller screens
 */
@media (max-width: 768px) {
  .xn-category-brands {
    gap: 8px;
    margin-bottom: 15px;
  }

  .cat_brand,
  .cat_brand_inline {
    max-height: 45px;
    max-width: 90px;
  }

  .xn-category-brand-inline {
    margin-right: 8px;
  }
}

/**
 * Extra small screens
 */
@media (max-width: 480px) {
  .cat_brand,
  .cat_brand_inline {
    max-height: 40px;
    max-width: 80px;
  }

  .xn-category-brands {
    gap: 6px;
  }

  .xn-category-brand-inline {
    margin-right: 6px;
  }
}

/* =========================
   MOBİL FOOTER BAR
   (Telefon, Arama, WhatsApp Butonları)
========================= */

/**
 * Mobile Footer Bar Container
 * - Sadece mobilde görünür (max-width: 768px)
 * - Sayfanın en altında fixed pozisyonda
 * - Tema renklerine uygun styling
 */
.xn-mobile-footer-bar {
  display: none;
}

@media (max-width: 768px) {
  .xn-mobile-footer-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: auto;
    padding: 0.5rem 0;

    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95),
      rgba(0, 0, 0, 0.85)
    );
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);

    gap: 0.5rem;
    z-index: 9999;

    justify-content: space-around;
    align-items: center;

    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Body padding to prevent content overlap */
  body {
    padding-bottom: 60px;
  }

  /* Mobile Footer Bar Buttons */
  .xn-mobile-btn {
    flex: 1;
    max-width: 50%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.75rem;

    padding: 0.75rem 1rem;

    border-radius: 8px;
    border: none;

    font-size: 12px;
    font-weight: 600;

    color: #fff !important;
    text-decoration: none;

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  /* Button Icons */
  .xn-mobile-btn .xn-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
  }

  /* Material Icon adjustments */
  .xn-mobile-btn .xn-icon .material-icons {
    font-size: 32px;
  }

  /* WhatsApp SVG adjustments */
  .xn-mobile-btn .xn-icon-whatsapp svg {
    width: 32px;
    height: 32px;
    display: block;
  }

  /* Button Text */
  .xn-mobile-btn .xn-text {
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    display: block;
    flex: 1;
  }

  /* Phone Button - Tema Mavi */
  .xn-mobile-phone-btn {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  }

  .xn-mobile-phone-btn:hover,
  .xn-mobile-phone-btn:active {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
  }

  /* WhatsApp Button - WhatsApp Yeşil */
  .xn-mobile-whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #1eaa56 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  }

  .xn-mobile-whatsapp-btn:hover,
  .xn-mobile-whatsapp-btn:active {
    background: linear-gradient(135deg, #1eaa56 0%, #168a46 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
  }

  /* Active/Pressed State */
  .xn-mobile-btn:active {
    transform: translateY(0);
  }
}

/* Extra small screens adjustment */
@media (max-width: 480px) {
  .xn-mobile-btn {
    max-width: none;
    padding: 0.65rem 0.75rem;
  }

  .xn-mobile-btn .xn-icon {
    font-size: 28px;
  }

  .xn-mobile-btn .xn-icon .material-icons {
    font-size: 28px;
  }

  .xn-mobile-btn .xn-icon-whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .xn-mobile-btn .xn-text {
    font-size: 13px;
  }

  .xn-mobile-footer-bar {
    padding: 0.4rem 0.3rem;
  }

  body {
    padding-bottom: 55px;
  }
}
