/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* MJ Motor search results polish, scoped to the search page. */
body#search {
  background: #f6f7f9;
}

body#search #wrapper {
  background: #f6f7f9;
  padding-bottom: 42px;
}

body#search .page-title {
  background: #ffffff;
  border-bottom: 1px solid #e6e8ec;
  margin-bottom: 26px;
}

body#search .page-title .container {
  padding-top: 26px;
  padding-bottom: 22px;
}

body#search .page-title .h1 {
  color: #111827;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

body#search .axps-breadcrumb {
  color: #6b7280;
  font-size: 13px;
}

body#search .axps-breadcrumb a {
  color: #4b5563;
}

body#search #js-product-list-top {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 16px;
}

body#search .nav-products-list-top-left,
body#search .nav-products-list-top-right {
  align-items: center;
  display: flex;
  gap: 10px;
}

body#search .nav-products-list-top-right {
  justify-content: flex-end;
}

body#search .wc-result-count {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin: 0 8px 0 0;
}

body#search .gr-list-gird {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

body#search .shop-view {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

body#search .shop-view svg {
  fill: #6b7280;
  height: 17px;
  width: 17px;
}

body#search .shop-view.active-view {
  background: #111827;
}

body#search .shop-view.active-view svg {
  fill: #ffffff;
}

body#search .gr-per-page .dropdown-toggle,
body#search .wc-ordering-dropdown .dropdown-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
}

body#search .dropdown-menu {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

body#search .dropdown-menu a {
  color: #374151;
  font-size: 13px;
  padding: 9px 14px;
}

body#search .dropdown-menu a:hover,
body#search .dropdown-menu a.current {
  background: #f3f7ef;
  color: #2f6f1e;
}

.product-sku.product-info-catalog {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
}

.product-sku.product-info-catalog .label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.product-sku.product-info-catalog span {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #111827;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
}

body#search #box-product-grid .archive-wrapper-items {
  row-gap: 24px;
}

body#search #box-product-grid .item-inner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  height: 100%;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body#search #box-product-grid .item-inner:hover {
  border-color: #c9d8bc;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.11);
  transform: translateY(-2px);
}

body#search #box-product-grid .element-top {
  background: #f8fafc;
  border-bottom: 1px solid #eef0f3;
}

body#search #box-product-grid .img-placeholder {
  background: #f8fafc;
}

body#search #box-product-grid .img-placeholder img {
  object-fit: contain;
}

body#search #box-product-grid .element-bottom {
  padding: 14px 14px 16px;
}

body#search #box-product-grid .ax-product-cats {
  margin-bottom: 7px;
}

body#search #box-product-grid .ax-product-cats a {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body#search #box-product-grid .product_name {
  min-height: 44px;
}

body#search #box-product-grid .product_name a {
  color: #111827;
  display: -webkit-box;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body#search #box-product-grid .product_name a:hover {
  color: #2f6f1e;
}

body#search #box-product-grid .product-price-and-shipping {
  margin-top: 10px;
}

body#search #box-product-grid .price {
  color: #0f766e;
  font-size: 17px;
  font-weight: 800;
}

body#search #box-product-grid .regular-price {
  color: #9ca3af;
  font-size: 12px;
}

body#search #box-product-grid .wrapper-buttons-action .btn-action.add-to-cart {
  background: #111827;
  border-radius: 6px;
  color: #ffffff;
}

body#search #box-product-grid .wrapper-buttons-action .btn-action.add-to-cart:hover {
  background: #2f6f1e;
}

body#search #js-product-list-bottom {
  margin-top: 30px;
}

body#search .pagination .page-numbers {
  border-radius: 6px;
}

@media (max-width: 767px) {
  body#search .page-title .container {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body#search .page-title .h1 {
    font-size: 23px;
  }

  body#search #js-product-list-top,
  body#search .nav-products-list-top-left,
  body#search .nav-products-list-top-right {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  body#search .nav-products-list-top-right {
    gap: 8px;
  }

  body#search .wc-result-count {
    margin-right: 0;
  }

  body#search .gr-per-page .dropdown-toggle,
  body#search .wc-ordering-dropdown .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
  }

  body#search #box-product-grid .element-bottom {
    padding: 12px;
  }
}
