/*
Theme Name: Electro Child - POS Qatar
Theme URI: https://posqatar.com/
Description: Child theme for sitewide fixes (footer carousel, homepage, mega menu).
Author: POS Qatar
Template: electro
Version: 1.3.9
Text Domain: electro-child
*/

/* Hide WPBakery single-image headings on homepage */
.home .wpb_single_image .wpb_heading.wpb_singleimage_heading,
.page-id-2139 .wpb_single_image .wpb_heading.wpb_singleimage_heading,
.postid-2139 .wpb_single_image .wpb_heading.wpb_singleimage_heading {
  display: none !important;
}

/* Mega menu fix */
.secondary-nav > .dropdown.yamm-fw > .dropdown-menu,
.secondary-nav > .menu-item-has-children > .dropdown-menu:has(.yamm-content) {
  width: 100% !important;
  min-width: 720px !important;
  max-width: 1140px !important;
  left: 0 !important;
  right: auto !important;
  max-height: 70vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.secondary-nav > .menu-item-has-children > .dropdown-menu .yamm-content {
  width: 100% !important;
  box-sizing: border-box;
}

.secondary-nav > .menu-item-has-children > .dropdown-menu .yamm-content .vc_row {
  width: 100% !important;
  max-width: 100% !important;
}

/* Footer brand carousel — 5 logos on desktop */
.elementor-widget-image-carousel .swiper-slide {
  width: calc(100% / var(--e-image-carousel-slides-to-show, 5)) !important;
  box-sizing: border-box !important;
}

.elementor-element-104ebe88 .swiper-slide-inner,
.elementor-element-104ebe88 figure.swiper-slide-inner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.elementor-element-104ebe88 .swiper-slide-image {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 108px !important;
  object-fit: contain !important;
}

.elementor-element-500be42b.elementor-section-height-min-height,
.elementor-element-500be42b > .elementor-container {
  min-height: 0 !important;
  height: auto !important;
}

.elementor-element-500be42b {
  overflow: hidden;
}

/* Header search — square box (no rounded corners) desktop + mobile
   Do NOT set overflow:hidden on .input-group — it clips live-search (.tt-menu). */
#masthead .navbar-search .input-group,
#masthead .navbar-search .form-control,
#masthead .navbar-search .search-field,
#masthead .navbar-search .input-group-addon,
#masthead .navbar-search .btn,
#masthead .navbar-search select,
#masthead .site-search .woocommerce-product-search,
#masthead .site-search .form-control,
#masthead .site-search .search-field,
#masthead .site-search .btn,
#masthead .handheld-header .site-search .form-control,
#masthead .handheld-header .site-search .search-field,
#masthead .handheld-header .site-search .btn,
#masthead .mobile-header-v1 .site-search .form-control,
#masthead .mobile-header-v1 .site-search .search-field,
#masthead .mobile-header-v1 .site-search .btn,
#masthead #search,
#masthead #woocommerce-product-search-field-0,
#masthead #woocommerce-product-search-field-1,
#masthead .tt-hint,
#masthead .tt-input {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

/* Keep live-search dropdown visible above header */
#masthead .navbar-search .input-group,
#masthead .site-search .woocommerce-product-search,
#masthead .navbar-search .twitter-typeahead,
#masthead .site-search .twitter-typeahead,
#masthead .input-search-field {
  overflow: visible !important;
}

#masthead .tt-menu {
  z-index: 2000 !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

/* Mobile header search — ~20% shorter form / padding / button */
@media (max-width: 1199.98px) {
  #masthead .hidden-xl-up .site-search,
  #masthead .mobile-header-v1 .site-search,
  #masthead .handheld-header .site-search {
    padding-top: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 0 !important;
  }

  #masthead .hidden-xl-up .woocommerce-product-search,
  #masthead .mobile-header-v1 .woocommerce-product-search,
  #masthead .handheld-header .woocommerce-product-search {
    min-height: 0 !important;
    height: auto !important;
  }

  #masthead .hidden-xl-up .woocommerce-product-search .search-field,
  #masthead .hidden-xl-up .woocommerce-product-search .tt-input,
  #masthead .hidden-xl-up .woocommerce-product-search .tt-hint,
  #masthead .mobile-header-v1 .woocommerce-product-search .search-field,
  #masthead .mobile-header-v1 .woocommerce-product-search .tt-input,
  #masthead .mobile-header-v1 .woocommerce-product-search .tt-hint,
  #masthead #woocommerce-product-search-field-0,
  #masthead #woocommerce-product-search-field-1 {
    height: 37px !important;
    min-height: 37px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 14px !important;
    padding-right: 48px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  #masthead .hidden-xl-up .woocommerce-product-search button,
  #masthead .hidden-xl-up .woocommerce-product-search .btn,
  #masthead .mobile-header-v1 .woocommerce-product-search button,
  #masthead .mobile-header-v1 .woocommerce-product-search .btn,
  #masthead .handheld-header .woocommerce-product-search button {
    height: 37px !important;
    min-height: 37px !important;
    width: 45px !important;
    min-width: 45px !important;
    padding: 0 !important;
    font-size: 14px !important;
  }
}

/* YITH Request a Quote — square outline (overrides plugin CSS vars) */
:root,
body {
  --ywraq_layout_button_bg_color: #ffffff;
  --ywraq_layout_button_color: #111111;
  --ywraq_layout_button_border_color: #111111;
  --ywraq_layout_button_bg_color_hover: #111111;
  --ywraq_layout_button_color_hover: #ffffff;
  --ywraq_layout_button_border_color_hover: #111111;
}

.woocommerce a.add-request-quote-button.button,
.woocommerce .add-request-quote-button.button,
.woocommerce a.add-request-quote-button,
.yith-ywraq-add-to-quote a.add-request-quote-button.button,
.yith-ywraq-add-to-quote a.add-request-quote-button,
.yith-ywraq-add-button a.button,
.single-product .yith-ywraq-add-to-quote a.add-request-quote-button.button,
.widget_ywraq_list_quote a.button,
.ywraq-wrapper a.button {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  box-shadow: none !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  padding: 6px 12px !important;
  min-height: 30px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease !important;
}

.woocommerce a.add-request-quote-button.button:hover,
.woocommerce .add-request-quote-button.button:hover,
.woocommerce a.add-request-quote-button:hover,
.yith-ywraq-add-to-quote a.add-request-quote-button.button:hover,
.yith-ywraq-add-to-quote a.add-request-quote-button:hover,
.yith-ywraq-add-button a.button:hover,
.single-product .yith-ywraq-add-to-quote a.add-request-quote-button.button:hover {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  border: 2px solid #111 !important;
}

.woocommerce a.add-request-quote-button.button:focus,
.woocommerce .add-request-quote-button.button:focus {
  outline: 2px solid #111 !important;
  outline-offset: 2px !important;
}

/* Added-to-quote / browse list link */
.yith-ywraq-add-to-quote .yith_ywraq_add_item_browse_message a,
.yith-ywraq-add-to-quote a.yith_ywraq_add_item_response_message {
  border-radius: 0 !important;
  font-weight: 700 !important;
  color: #111 !important;
  text-decoration: underline !important;
}

/* Hide Qatari Riyal / currency symbol sitewide */
.woocommerce-Price-currencySymbol {
  display: none !important;
}

/* Hide header cart price (icon + count only) */
#masthead .header-icon__cart .cart-items-total-price,
#masthead .header-icon__cart .total-price,
.electro-navbar-primary .header-icon__cart .cart-items-total-price,
.handheld-header .header-icon__cart .cart-items-total-price,
.off-canvas-cart .cart-items-total-price {
  display: none !important;
}
