

.search-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 12px 28px;
}

.search-page__header {
  margin-bottom: 12px;
}

.search-page__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.search-bar__input-wrap {
  flex: 1 1 auto;
}

.search-bar__input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #222;
  outline: none;
}

.search-bar__input:focus {
  border-color: #7c7c7c;
}

.search-bar__button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.search-meta {
  margin-bottom: 10px;
}

.search-meta__text {
  font-size: 13px;
  color: #666;
}

.search-list {
  border-top: 1px solid #e5e5e5;
}

.search-row {
  display: grid;
  grid-template-columns: 88px minmax(260px, 1fr) 120px 80px 130px;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.search-row__image-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-row__image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.search-row__image--empty {
  border-radius: 8px;
  background: #f3f3f3;
}

.search-row__info-col {
  min-width: 0;
}

.search-row__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
  margin-bottom: 6px;
}

.search-row__code {
  font-size: 13px;
  color: #6a6a6a;
  line-height: 1.2;
}

.search-row__price-col {
  text-align: right;
}

.search-row__price {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.search-row__qty-col {
  display: flex;
  justify-content: center;
}

.search-row__qty {
  width: 60px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}

.search-row__action-col {
  display: flex;
  justify-content: flex-end;
}

.search-row__add-btn,
.search-row__add-btn.Add_to_Cart,
.search-row__add-btn.Notify_Me {
  min-width: 120px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.85;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(1);
}

.search-row__add-btn.Add_to_Cart {
  background-color: var(--op-gold);
  color: var(--op-black);
}

.search-row__add-btn.Notify_Me,
.search-row__add-btn.notify {
  background-color: var(--op-border);
  color: var(--op-black);
}

.search-row__add-btn:hover {
  opacity: 1;
  transform: scale(1.03);
}

.search-empty {
  padding: 20px 0;
  color: #666;
  font-size: 14px;
}

@media (max-width: 900px) {
  .search-row {
    grid-template-columns: 72px minmax(180px, 1fr) 90px 72px 110px;
    gap: 10px;
  }

  .search-row__image {
    width: 60px;
    height: 60px;
  }

  .search-row__title {
    font-size: 16px;
  }

  .search-row__price {
    font-size: 16px;
  }

  .search-row__add-btn {
    min-width: 100px;
  }
}

@media (max-width: 640px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar__button {
    width: 100%;
  }

  .search-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "img info"
      "img price"
      "img qty"
      "img action";
    align-items: start;
    gap: 8px 12px;
    min-height: auto;
    padding: 12px 0;
  }

  .search-row__image-col {
    grid-area: img;
    justify-content: flex-start;
  }

  .search-row__info-col {
    grid-area: info;
  }

  .search-row__price-col {
    grid-area: price;
    text-align: left;
  }

  .search-row__qty-col {
    grid-area: qty;
    justify-content: flex-start;
  }

  .search-row__action-col {
    grid-area: action;
    justify-content: flex-start;
  }

  .search-row__image {
    width: 56px;
    height: 56px;
  }

  .search-row {
  width: calc(100% - 24px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.search-row > * {
  min-width: 0;
  box-sizing: border-box;
}

.search-page,
.search-list {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.search-list {
  overflow-x: hidden;
}

.search-row {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.search-row > * {
  min-width: 0;
  box-sizing: border-box;
}

}