/*
 Theme Name:   Blocksy Child
 Theme URI:    https://alomranm.com/
 Description:  Child theme for Blocksy
 Author:       Abdelmonaam
 Author URI:   +20 01553547714
 Template:     blocksy
 Version:      1.0.0
*/
/*
header 
 #M-header-container
   |_ .M-contact-Btn
     |_ .M-header-btn
     |_ .M-header-search 
     |_ .M-header-sailo
*/
#M-header-container .M-header-search button {
  margin-right: 10px;
}
#M-header-container .M-header-btn span.xpro-elementor-button-media {
  margin-inline: 10px;
}

#M-header-container .M-header-sailo ul li {
  width: 150px;
  height: 40px;
}
#M-header-container .M-header-sailo li a:hover {
  font-size: 1.4rem;
  font-weight: 700;
}
/*
Footer
 .M-fotter-socialMedia
 .M-footer-important-menue
*/

.M-fotter-socialMedia span a {
  background: transparent !important;
  color: #fff;
  border: 1px solid #fff;
  transition: 0.3s;
}

.M-fotter-socialMedia span a:hover {
  background-color: #c59435 !important;
  border-color: #c59435;
}

.M-footer-important-menue ul {
  display: flex !important;
  flex-direction: column;
}

.M-footer-important-menue div#ekit-megamenu-important-url {
  height: fit-content;
}

div#ekit-megamenu-categories ul#menu-categories {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
}

div#ekit-megamenu-categories ul#menu-categories > li {
  width: 100% !important;
}

.M-footer-grid {
  max-height: 600px;
}
.M-footer-paymethod {
  grid-column: 8;
  grid-row: 2;
}
/*
 Hero Banner
  #M-heroBanner
  |_ .xpro-hero-slider-slide-content-area 
*/

#M-heroBanner .xpro-hero-slider-slide-content-area {
  position: relative;
  background: transparent;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
}

#M-heroBanner div.xpro-hero-slider-slide-content-area::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 3px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

#M-heroBanner .xpro-hero-slider-slide-content-area * {
  text-align: center;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
}

#M-heroBanner .xpro-hero-slider-button-primary {
  display: flex;
  flex-direction: row-reverse;
}

#M-heroBanner .xpro-hero-slider-button-primary *,
#M-heroBanner .xpro-hero-slider-button-secondary * {
  margin: 0;
}

#M-heroBanner span.xpro-hero-slider-button-media {
  height: fit-content;
  line-height: normal;
}

#M-heroBanner span.xpro-hero-slider-button-media svg {
  width: 20px;
  height: 20px;
  fill: currentColor !important;
  margin-bottom: -5px;
}

.eael-product-wrap .add_to_cart_button {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  margin: 0 !important;
}
/* Who Us */
div#M-whoUs {
  max-height: 500px;
}

div#M-whoUs #M-whous-bages {
  margin-bottom: -87px;
  max-height: 160px;
  position: relative;
  top: 100px;
  left: -180px;
}

div#M-whoUs #M-whoUs-Content {
  top: 100px;
}
/* === Contact Form === */
#contact-form .custom-form-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  direction: rtl;
  font-family: sans-serif;
}

#contact-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

#contact-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#contact-form .form-group.full-width {
  margin-bottom: 15px;
}

#contact-form .form-group label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  text-align: right;
}

#contact-form input[type="text"],
#contact-form input[type="tel"],
#contact-form input[type="email"],
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
  box-sizing: border-box;
  text-align: right;
  color: #666;
}

#contact-form ::placeholder {
  color: #bbb;
  opacity: 1;
}

#contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 15px;
  padding-left: 40px;
}

#contact-form textarea {
  height: 100px;
  resize: vertical;
}

#contact-form .form-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

#contact-form .btn-register {
  width: 100%;
  background-color: #001f4d;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease;
}

#contact-form .btn-register:hover {
  background-color: #001333;
}

#contact-form .btn-call {
  display: block;
  width: 100%;
  background-color: #c5933a;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

#contact-form .btn-call:hover {
  background-color: #aa7d2f;
}

@media (max-width: 600px) {
  #contact-form .form-row {
    flex-direction: column;
    gap: 15px;
  }
}
