* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
}

.search-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-header-inner {
  max-width: 1250px;
  margin: auto;
  min-height: 82px;
  padding: 12px 20px;

  display: flex;
  align-items: center;
  gap: 28px;
}

.search-logo img {
  width: 155px;
  height: auto;
  display: block;
}

.search-main-box {
  flex: 1;
  max-width: 700px;

  display: flex;
  height: 46px;
}

.search-main-box input {
  flex: 1;
  border: 1px solid #d7dbe0;
  border-right: none;
  border-radius: 7px 0 0 7px;

  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.search-main-box input:focus {
  border-color: #e53935;
}

.search-main-box button {
  width: 58px;
  border: none;
  border-radius: 0 7px 7px 0;

  background: #e53935;
  color: white;

  font-size: 19px;
  cursor: pointer;
}

.search-cart {
  position: relative;
  text-decoration: none;
  color: #222;
  font-size: 25px;
}

.cart-count {
  position: absolute;
  top: -9px;
  right: -11px;

  min-width: 19px;
  height: 19px;

  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e53935;
  color: white;

  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}


.search-header-inner {
  max-width: 1250px;
  margin: auto;
  padding: 30px 20px 60px;
}

.search-top {
  margin-bottom: 25px;
}

.search-top h1 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-top p {
  color: #70757d;
  font-size: 14px;
}

.search-message {
  padding: 30px;
  background: white;
  border-radius: 8px;
  text-align: center;
  color: #777;
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 700px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}

.product-card:hover {
  /* hover from product-card-hover.css */
}

.product-image {
  width: 100%;
  height: 190px;

  background: #f7f7f7;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  color: #999;
  font-size: 13px;
}


.product-info {
  padding: 13px;
}

.product-name {
  font-size: 14px;
  line-height: 1.4;

  min-height: 40px;

  margin-bottom: 8px;

  color: #252525;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  margin-bottom: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-price .current-price {
  color: #0a7a3e;
  font-weight: 800;
}

.product-price.has-sale .current-price {
  color: #0a7a3e;
}

.product-price .old-price {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;

  font-size: 12px;
}

.stars {
  color: #f5a623;
  letter-spacing: 1px;
}

.review-count {
  color: #777;
}


.add-cart-button {
  width: 100%;
  margin-top: 12px;

  border: 1px solid #e53935;
  background: white;
  color: #e53935;

  height: 38px;

  border-radius: 5px;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.add-cart-button:hover {
  background: #e53935;
  color: white;
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;

  margin-top: 35px;
}

.page-button {
  min-width: 38px;
  height: 38px;

  border: 1px solid #ddd;
  background: white;

  border-radius: 5px;

  cursor: pointer;
}

.page-button.active {
  background: #e53935;
  color: white;
  border-color: #e53935;
}

.page-button:hover {
  border-color: #e53935;
}


@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-header-inner {
    gap: 15px;
  }
}

@media (max-width: 600px) {

  .search-header-inner {
    flex-wrap: wrap;
  }

  .search-logo img {
    width: 125px;
  }

  .search-main-box {
    order: 3;
    flex-basis: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-image {
    height: 155px;
  }

  .search-container {
    padding: 20px 10px 40px;
  }
}
@media (max-width: 600px) {
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .product-image,
  .product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
}
.cart-logo-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.search-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 34px;
  min-height: 34px;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-logo-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.cart-page-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.search-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 34px;
  min-height: 34px;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-page-logo,
img[src="SVG.jpg"] {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}
@media (max-width: 768px) {
  .search-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .search-header-inner {
    min-height: 0;
    padding: 8px 12px;
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .search-logo img {
    height: 28px;
    width: auto;
    display: block;
  }

  .search-main-box {
    order: 3;
    flex: 1 1 100%;
    display: flex;
    min-width: 0;
  }

  .search-main-box input {
    width: 100%;
    min-width: 0;
  }

  .search-header-inner a {
    font-size: 13px;
    white-space: nowrap;
  }
}
html,
body {
  background: #f3efe6 !important;
}

.search-header,
.search-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}
.search-results-grid,
#searchResultsGrid,
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
/* Keep shared header icons small even if customer.css fails */
.header .mbikooye-pill-icon {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block;
}
.header .logo-img {
  height: 36px !important;
  width: auto !important;
}
.header .cart-logo-icon {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
}
.header .header-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 16px;
}
/* ===== Neat, uniform product cards (search) ===== */
.products-grid {
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.product-card .product-image,
.product-image {
  width: 100%;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  background: #f3f4f6;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px !important;
  min-height: 2.7em !important;
  max-height: 2.7em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  word-break: break-word;
}

.product-price {
  font-size: 15px !important;
  font-weight: 800;
  margin: 0 0 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-rating {
  margin-top: auto;
  font-size: 11px;
}

.product-rating .stars {
  letter-spacing: 0;
  font-size: 11px;
}

@media (max-width: 699px) {
  .product-image {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
  }
  .product-name {
    font-size: 12px !important;
  }
  .product-price {
    font-size: 14px !important;
  }
}
.product-price {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  margin-bottom: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-price .current-price {
  color: #0a7a3e;
  font-weight: 800;
}

.product-price .old-price {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
}
