/*
Theme Name: Davici Child
Theme URI: http://www.wpbingosite.com/davici
Author: wpbingo
Description: This is a child theme for Davici
Version: 1.0
Author URI: http://wpbingosite.com
Template: davici
Text Domain: davici-child
*/
/*************** ADD YOUR CUSTOM CSS HERE  ***************/
.contents-detail .bwp-single-product.sticky > .row {
    width: 100%;
}

.product-subtotal, .woocommerce-Price-amount .amount {
	display: none !important;
}

.shop_table .shop_table_responsive {
	display: none !important;
}

.product-total , .cart-subtotal , .order-total , .product-price{
	display: none !important;	
}

.cart_totals .calculated_shipping h2 {
    display: none !important;	
}

.woocommerce-order-details {
	display: none !important;		
}

.woocommerce-order-received .woocommerce-thankyou-order-details li:last-child {
	display: none !important;		
}

.price {
	display: none !important;		
}

.woocommerce-cart-form > .product-price{
	display: none !important;			
}

table.shop_table.cart > thead > tr > th > .product-price {
	display: none !important;
}

.product-price > .woocommerce-Price-amount{
	display: none !important;			
}

.woocommerce-Price-amount  {
	display: none !important;			
}

.total-cart {
	display: none !important;
}

.page-id-9005 .bwp-header,
.page-id-9005 .header-v4,
.page-id-9005 .bwp-header .container,
.page-id-9005 .bwp-header .row {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.gform_button {
	background-color: #bcaa5c !important;
    border-color: #bcaa5c !important;
    color: #fff !important; 
}


body .gform_wrapper {
    --gf-local-font-family: 'Epilogue', sans-serif !important;
    font-family: 'Epilogue', sans-serif !important;
}
body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper input,
body .gform_wrapper textarea,
body .gform_wrapper select,
body .gform_wrapper label {
    font-family: 'Epilogue', sans-serif !important;
}

.gform_title {
	display: none !important;
}

.slick-arrow.fa {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;   /* یا هر سایزی که دایره‌ات داره */
    height: 40px;  /* یا هر سایزی که دایره‌ات داره */
    border-radius: 50%;
    padding: 0;
}

.slick-arrow.fa::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px; /* سایز دلخواه فلش */
    text-align: center;
}

@media (max-width: 767px) {
  .slick-arrow.fa {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;   /* یا هر سایزی که دایره‌ات داره */
    height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }

  .slick-arrow.fa::before {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 20px !important;
    text-align: center !important;
  }
}

.wc-timeline-cart {
    display: none !important;
}

.wc-timeline-cart-upsell {
	display: none !important;
}

/* تنظیم heading های منو فقط در موبایل */
@media (max-width: 767px) {
  .elementor-heading-title.elementor-size-default {
    font-size: 16px !important; /* سایز کوچیک‌تر */
    font-weight: 500;           /* وزن ملایم‌تر */
    line-height: 1.4;           /* خوانایی بهتر */
  }
}

/* Footer specific section (id: 875a845) — force 2 columns & align headers perfectly */
@media (max-width: 991px) { /* 767 اگر خواستی بعداً کوچیکش کن؛ فعلاً برای اطمینان 991 گذاشتیم */
  /* گرید دو ستونه + فاصله کناری */
  .elementor-element-875a845 > .elementor-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 24px !important;
    row-gap: 16px !important;
    align-items: start !important;   /* تراز از بالا */
    padding-inline: 16px;
    box-sizing: border-box;
  }

  /* ستون‌ها: هرگونه هل‌دهنده را خنثی کن و از بالا بچسبان */
  .elementor-element-875a845 .elementor-column {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-self: start !important;    /* مهم: ستون از بالا شروع شود */
    justify-self: start !important;
  }

  /* اولین ویجت هر ستون (معمولاً تیتر) هیچ فاصله‌ای از بالا نداشته باشد */
  .elementor-element-875a845 .elementor-widget-wrap > .elementor-widget:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* تیترها و ظرف‌شان */
  .elementor-element-875a845 .footer-title.elementor-widget,
  .elementor-element-875a845 .footer-title .elementor-widget-container,
  .elementor-element-875a845 .footer-title .elementor-heading-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.2;
  }

  /* اگر المنتور با متغیر فاصله می‌دهد، صفرش کن */
  .elementor-element-875a845 .elementor-widget-wrap {
    --widgets-spacing: 0px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 !important;
  }
  .elementor-element-875a845 .elementor-widget:not(:last-child) {
    margin-bottom: 8px !important;
  }

  /* لیست لینک‌ها */
  .elementor-element-875a845 .list-link ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  /* اگر بعضی ستون‌ها کلاس فاصله دارند (مثل m-t-50) */
  .elementor-element-875a845 .m-t-50 { margin-top: 0 !important; padding-top: 0 !important; }

  /* اگر underline تیتر با pseudo-element فاصله می‌اندازد، اثرش را خنثی کن (اختیاری) */
  .elementor-element-875a845 .footer-title .elementor-heading-title::before {
    margin: 0 !important;
    top: auto !important;
  }
}

add_action('wp_head', function(){
  echo '<style>
    .fancybox__container { z-index: 2147483647 !important; } /* همیشه بالاتر از هدر ثابت */
  </style>';
});
/* Force show Fancybox nav + thumbs in case theme hides them */
.fancybox__container .fancybox__nav { display: flex !important; }
.fancybox__container .fancybox__button--arrow_left,
.fancybox__container .fancybox__button--arrow_right { display: flex !important; }
.fancybox__container .fancybox__thumbs { display: block !important; }
.fancybox__container { z-index: 2147483647 !important; } /* بالاتر از هدر */

/* مخفی کردن متن زیر عکس در Fancybox */
.fancybox__caption { display: none !important; }
