/* MachKart Smart Search 2.7 — MachKart website styling */
.machkart-search-wrapper{position:relative;width:100%;margin:0 auto;font-family:inherit;color:#172b24}
.machkart-search-form{display:flex;align-items:center;width:100%;box-sizing:border-box;background:#fff;border:1px solid #dbe6df;border-radius:14px;padding:7px 8px;box-shadow:0 8px 24px rgba(20,70,45,.08);transition:border-color .2s ease,box-shadow .2s ease}
.machkart-search-form:focus-within{border-color:#2a8a59;box-shadow:0 10px 30px rgba(20,70,45,.13)}
.machkart-location-field{position:relative;display:flex;align-items:center;flex:0 0 205px;min-width:165px;padding:0 12px;color:#1d7650}
.machkart-location-field .location-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;margin-right:8px;flex:0 0 20px}
.machkart-location-field .location-icon svg{width:18px;height:18px;display:block}
.machkart-location-field input,.machkart-input-container input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:14px;color:#263b33;font-family:inherit}
.machkart-location-field input::placeholder,.machkart-input-container input::placeholder{color:#7c8983}
.machkart-location-suggestions{position:absolute;top:calc(100% + 10px);left:0;width:100%;min-width:245px;background:#fff;border:1px solid #dfe8e2;border-radius:12px;box-shadow:0 16px 35px rgba(22,61,43,.14);overflow:hidden;z-index:10001;padding:5px}
.machkart-location-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:0;border-radius:8px;background:#fff;text-align:left;cursor:pointer;font-family:inherit}
.machkart-location-option:hover{background:#f1f8f4}
.machkart-location-option span{font-size:13px;color:#253b31;font-weight:600}.machkart-location-option small{font-size:11px;color:#8a9891}
.machkart-divider{width:1px;height:30px;background:#e5ece8;margin:0 7px}
.machkart-input-container{display:flex;align-items:center;flex:1;min-width:0;position:relative;padding:0 12px}
.machkart-search-icons{display:flex;align-items:center;gap:5px;margin-left:8px}
.machkart-search-icons button{border:0;background:#f4f8f5;cursor:pointer;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;color:#4c675b;transition:all .18s ease}
.machkart-search-icons button:hover{background:#e7f3eb;color:#19784e;transform:translateY(-1px)}
.machkart-search-icons button svg{width:17px;height:17px;display:block}
#machkart-cam-btn{background:#fff6e8;color:#d78917}
#machkart-cam-btn:hover{background:#ffeed0;color:#bd7110}
#machkart-submit-btn{flex:0 0 auto;background:#167a4b;color:#fff;border:1px solid #167a4b;border-radius:10px;padding:11px 20px;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 4px 10px rgba(22,122,75,.18);transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
#machkart-submit-btn:hover{background:#0f633c;border-color:#0f633c;transform:translateY(-1px);box-shadow:0 7px 16px rgba(22,122,75,.22)}
#machkart-submit-btn .search-icon{display:flex;width:16px;height:16px}.machkart-submit-btn .search-icon svg,#machkart-submit-btn .search-icon svg{width:16px;height:16px;display:block}
.machkart-dropdown-results{position:absolute;top:calc(100% + 12px);left:0;right:0;background:#fff;border:1px solid #dfe8e2;border-radius:16px;box-shadow:0 18px 45px rgba(19,58,41,.16);z-index:9999;max-height:75vh;overflow-y:auto;padding:22px}
.machkart-dropdown-results::-webkit-scrollbar{width:7px}.machkart-dropdown-results::-webkit-scrollbar-thumb{background:#c9d8d0;border-radius:20px}
.machkart-results-section{margin-bottom:26px}.machkart-results-section:last-child{margin-bottom:0}
.machkart-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #e8eee9;position:relative}
.machkart-section-heading:after{content:"";position:absolute;left:0;bottom:-1px;width:55px;height:2px;background:#f0a42b;border-radius:2px}
.machkart-section-heading h4{margin:0;font-size:17px;color:#17392c;text-transform:none;border:0;padding:0;font-weight:750}.machkart-section-heading span{font-size:12px;color:#7d8a84}
.machkart-product-grid,.machkart-company-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.machkart-product-card{min-width:0;background:#fff;border:1px solid #e1e9e4;border-radius:13px;overflow:hidden;box-shadow:0 3px 13px rgba(22,61,43,.055);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.machkart-product-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(22,61,43,.12);border-color:#cbded3}
.machkart-product-image{display:flex;align-items:center;justify-content:center;width:100%;min-height:170px;background:#f8faf9;overflow:hidden;text-decoration:none;border-bottom:1px solid #eef2ef;padding:10px;box-sizing:border-box}.machkart-product-image img{width:100%;height:auto!important;max-height:none;object-fit:contain;display:block;padding:0;flex:0 0 auto}.machkart-product-image-placeholder{font-size:12px;color:#9aa59f}
.machkart-product-card-body{padding:14px}.machkart-product-card h5{margin:0 0 8px;font-size:15px;line-height:1.35;font-weight:700}.machkart-product-card h5 a{color:#17392c;text-decoration:none}.machkart-product-card h5 a:hover{color:#167a4b}
.machkart-product-company{display:flex;align-items:center;gap:6px;min-height:20px;margin-bottom:12px;color:#68766f;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.machkart-company-icon{color:#f0a42b;font-size:12px}
.machkart-product-actions{display:flex;gap:7px}.machkart-product-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 9px;border-radius:7px;text-decoration:none;font-size:11px;font-weight:700;box-sizing:border-box;transition:all .18s ease}.machkart-read-more{flex:1;background:#fff;color:#167a4b;border:1px solid #cfe0d6}.machkart-read-more:hover{background:#f1f8f4;border-color:#167a4b}.machkart-quick-inquiry{flex:1;background:#167a4b;color:#fff;border:1px solid #167a4b}.machkart-quick-inquiry:hover{background:#0f633c;color:#fff}
.machkart-company-card{min-width:0;background:#fff;border:1px solid #e1e9e4;border-radius:13px;overflow:hidden;box-shadow:0 3px 13px rgba(22,61,43,.055);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.machkart-company-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(22,61,43,.11);border-color:#cbded3}
.machkart-company-logo{height:110px;background:#fafcfb;display:flex;align-items:center;justify-content:center;text-decoration:none;border-bottom:1px solid #edf2ee;overflow:hidden}.machkart-company-logo img{width:100%;height:100%;object-fit:contain;padding:13px;display:block}.machkart-company-logo span{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf7f1;color:#167a4b;font-weight:700;font-size:22px}
.machkart-company-info{padding:14px}.machkart-company-info h5{margin:0 0 7px;font-size:15px;line-height:1.3}.machkart-company-info h5 a{color:#17392c;text-decoration:none}.machkart-company-info h5 a:hover{color:#167a4b}.machkart-company-category{font-size:12px;color:#68766f;margin-bottom:7px}.machkart-company-address{font-size:11px;line-height:1.45;color:#7b8781;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:31px}.machkart-company-button{display:inline-flex;margin-top:10px;padding:7px 10px;border-radius:7px;background:#f1f8f4;color:#167a4b;text-decoration:none;font-size:11px;font-weight:700}.machkart-company-button:hover{background:#e3f2e9}
.machkart-simple-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.machkart-simple-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #e1e9e4;border-radius:9px;color:#34483f;text-decoration:none;font-size:12px;background:#fff;min-width:0}.machkart-simple-card:hover{border-color:#167a4b;color:#167a4b;background:#f7fbf8}.machkart-spare-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.machkart-spare-copy strong{font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.machkart-spare-copy small{font-size:11px;color:#7a8781;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.machkart-spare-arrow{color:#167a4b;font-size:17px;font-weight:700;flex:0 0 auto}
.machkart-no-results,.no-result{margin:0;padding:10px 0;color:#74817b;font-size:13px}
@media(max-width:1100px){.machkart-product-grid,.machkart-company-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.machkart-simple-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.machkart-product-grid,.machkart-company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.machkart-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.machkart-dropdown-results{padding:15px}.machkart-product-image{min-height:140px}}
@media(max-width:767px){.machkart-search-form{border-radius:14px;flex-wrap:wrap;padding:8px}.machkart-location-field{flex:1 1 100%;min-width:0;padding:6px 8px}.machkart-divider{display:none}.machkart-input-container{flex:1 1 calc(100% - 94px);padding:6px 8px}.machkart-search-icons{gap:4px;margin-left:5px}#machkart-submit-btn{padding:10px 14px}.machkart-location-suggestions{width:calc(100% - 16px);left:8px}}
@media(max-width:520px){.machkart-product-grid,.machkart-company-grid,.machkart-simple-grid{grid-template-columns:1fr}.machkart-product-actions{flex-direction:column}.machkart-dropdown-results{max-height:80vh}.machkart-product-image{min-height:180px}}


/* MachKart Smart Search 2.9 — responsive hardening */
.machkart-search-wrapper,.machkart-search-wrapper *{box-sizing:border-box}
.machkart-search-form{min-width:0}
.machkart-search-form input{min-width:0;line-height:1.35}
.machkart-dropdown-results{width:100%;max-width:100%;overflow-x:hidden}
.machkart-product-grid,.machkart-company-grid,.machkart-simple-grid{width:100%;min-width:0}
.machkart-product-card,.machkart-company-card,.machkart-simple-card{min-width:0;max-width:100%}
@media (max-width: 900px){
  .machkart-search-form{gap:0;padding:6px}
  .machkart-location-field{flex-basis:185px;min-width:145px;padding-left:9px;padding-right:9px}
  .machkart-input-container{padding-left:9px;padding-right:7px}
  #machkart-submit-btn{padding-left:16px;padding-right:16px}
  .machkart-dropdown-results{top:calc(100% + 8px);padding:16px;border-radius:14px}
}
@media (max-width: 767px){
  .machkart-search-wrapper{width:100%;max-width:100%;overflow:visible}
  .machkart-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"location location" "query button";gap:6px;padding:7px;border-radius:14px}
  .machkart-location-field{grid-area:location;width:100%;min-width:0;padding:7px 9px;background:#f8fbf9;border:1px solid #edf2ee;border-radius:9px}
  .machkart-location-field .location-icon{margin-right:7px}
  .machkart-divider{display:none}
  .machkart-input-container{grid-area:query;width:100%;min-width:0;padding:7px 8px;background:#fff}
  .machkart-search-icons{margin-left:4px;gap:3px}
  .machkart-search-icons button{width:32px;height:32px}
  #machkart-submit-btn{grid-area:button;min-width:86px;height:42px;padding:0 14px;border-radius:9px;font-size:13px}
  .machkart-location-suggestions{left:0;width:100%;min-width:0;top:calc(100% + 6px)}
  .machkart-dropdown-results{position:absolute;left:0;right:0;width:100%;max-height:72vh;padding:13px;border-radius:14px}
  .machkart-section-heading{margin-bottom:11px;padding-bottom:8px}
  .machkart-section-heading h4{font-size:15px}
  .machkart-section-heading span{font-size:11px}
  .machkart-product-grid,.machkart-company-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .machkart-simple-grid{grid-template-columns:1fr;gap:8px}
  .machkart-product-image{min-height:145px;padding:8px}
  .machkart-product-card-body{padding:11px}
  .machkart-product-card h5,.machkart-company-info h5{font-size:14px}
  .machkart-product-actions{gap:6px}
  .machkart-product-actions a{min-height:32px;padding:6px 7px;font-size:10px}
}
@media (max-width: 430px){
  .machkart-search-form{grid-template-columns:minmax(0,1fr) 84px}
  .machkart-input-container{padding-left:5px;padding-right:4px}
  .machkart-input-container input{font-size:13px}
  .machkart-search-icons button{width:29px;height:29px}
  .machkart-search-icons button svg{width:15px;height:15px}
  #machkart-submit-btn{min-width:84px;padding:0 9px;font-size:12px;gap:5px}
  #machkart-submit-btn .search-icon,#machkart-submit-btn .search-icon svg{width:14px;height:14px}
  .machkart-dropdown-results{padding:10px;max-height:76vh}
  .machkart-product-grid,.machkart-company-grid{grid-template-columns:1fr;gap:9px}
  .machkart-product-image{min-height:175px}
  .machkart-product-actions{flex-direction:row}
  .machkart-product-actions a{font-size:10px}
}
@media (max-width: 340px){
  .machkart-search-form{grid-template-columns:minmax(0,1fr) 76px}
  .machkart-search-icons{display:none}
  #machkart-submit-btn{min-width:76px;padding:0 7px}
  .machkart-product-actions{flex-direction:column}
}


/* v2.12 — Elementor image reset + uncropped company/product media */
.elementor .machkart-search-results-container img,
.machkart-search-results-container img {
  max-width: 100% !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
  border: none !important;
  box-shadow: none !important;
}

.machkart-product-image img {
  display: block !important;
  width: auto !important;

  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
}
.machkart-company-logo {
  height: auto !important;
  min-height: 110px;
  max-height: none !important;
  padding: 10px;
  overflow: hidden;
}
.machkart-company-logo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 110px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}
.machkart-view-more-products-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.machkart-view-more-products {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 9px;
  background: #167a4b;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 750;
  border: 1px solid #167a4b;
  box-shadow: 0 5px 15px rgba(22,122,75,.13);
  transition: .18s ease;
}
.machkart-view-more-products:hover {
  background: #0f633c;
  border-color: #0f633c;
  color: #fff !important;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .machkart-product-image { min-height: 145px; }
  .machkart-company-logo { min-height: 100px; }
  .machkart-company-logo img { max-height: 100px !important; }
  .machkart-view-more-products { width: 100%; min-height: 40px; padding: 9px 16px; }
}
@media (max-width: 430px) {
  .machkart-product-image { min-height: 165px; }
  .machkart-company-logo { min-height: 95px; }
  .machkart-company-logo img { max-height: 95px !important; }
}

/* v2.12 — company logo/icon size hardening */
.machkart-company-logo {
  width: 100% !important;
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  padding: 10px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.machkart-company-logo > img,
.machkart-company-logo img {
  display: block !important;
  width: auto !important;

  max-width: 88% !important;
  max-height: 88px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
.machkart-company-logo > span,
.machkart-company-logo span {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  flex: 0 0 46px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
@media (max-width: 767px) {
  .machkart-company-logo {
    height: 105px !important;
    min-height: 105px !important;
    max-height: 105px !important;
  }
  .machkart-company-logo img { max-height: 78px !important; }
}
@media (max-width: 430px) {
  .machkart-company-logo {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
  }
  .machkart-company-logo img { max-height: 70px !important; }
}

/* v2.12 — compact result images: smaller, clean and never cropped */
.machkart-product-image {
  height: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
  padding: 8px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.machkart-product-image img,
.machkart-product-image > img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 106px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.machkart-company-logo {
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
  padding: 7px !important;
  overflow: hidden !important;
}
.machkart-company-logo img,
.machkart-company-logo > img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 70px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
.machkart-company-logo span,
.machkart-company-logo > span {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  font-size: 16px !important;
}

@media (max-width: 800px) {
  .machkart-product-image {
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
  }
  .machkart-product-image img,
  .machkart-product-image > img {
    max-height: 96px !important;
  }
  .machkart-company-logo {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
  }
  .machkart-company-logo img,
  .machkart-company-logo > img {
    max-height: 64px !important;
  }
}

@media (max-width: 520px) {
  .machkart-product-image {
    height: 118px !important;
    min-height: 118px !important;
    max-height: 118px !important;
  }
  .machkart-product-image img,
  .machkart-product-image > img {
    max-height: 102px !important;
  }
  .machkart-company-logo {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
  }
  .machkart-company-logo img,
  .machkart-company-logo > img {
    max-height: 62px !important;
  }
}

@media (max-width: 360px) {
  .machkart-product-image {
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
  }
  .machkart-product-image img,
  .machkart-product-image > img {
    max-height: 92px !important;
  }
  .machkart-company-logo {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
  }
  .machkart-company-logo img,
  .machkart-company-logo > img {
    max-height: 56px !important;
  }
}
