#smart-search-section {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.82), transparent 36%),
    linear-gradient(115deg, #fffaf3 0%, #f7ecdc 100%);
  border-top: 1px solid rgba(199, 165, 102, 0.42);
  border-bottom: 1px solid rgba(199, 165, 102, 0.42);
}

#smart-search-section .small-container {
  max-width: 1100px;
}

#smart-search-section h2 {
  margin: 0;
}

.smart-search-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.smart-search-form {
  margin-top: 20px;
}

.smart-search-field {
  display: flex;
  width: 100%;
  height: 52px;
  border: 1px solid #c7a566;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.smart-search-field:focus-within {
  border-color: #936f2c;
  box-shadow: 0 0 0 2px rgba(147, 111, 44, 0.13);
}

.smart-search-field input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #302519;
  font: inherit;
  font-size: 15px;
}

.smart-search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.smart-search-field button {
  position: relative;
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(199, 165, 102, 0.6);
  background: transparent;
  color: #302519;
  cursor: pointer;
}

.smart-search-field button:hover {
  background: rgba(199, 165, 102, 0.14);
}

.smart-search-field button:disabled {
  cursor: wait;
}

.smart-search-field button.is-loading svg {
  visibility: hidden;
}

.smart-search-field button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(48, 37, 25, 0.25);
  border-top-color: #302519;
  border-radius: 50%;
  animation: smart-search-spin 0.75s linear infinite;
}

@keyframes smart-search-spin {
  to {
    transform: rotate(360deg);
  }
}

.smart-search-hint,
.smart-search-privacy {
  margin: 9px 0 0;
  color: #796d60;
  font-size: 13px;
  line-height: 1.45;
}

.smart-search-privacy {
  margin-top: 3px;
  font-size: 11px;
  color: #97897b;
}

.smart-search-status {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 2px solid #c7a566;
  background: rgba(255, 255, 255, 0.58);
  color: #53483d;
  font-size: 14px;
  line-height: 1.5;
}

.smart-search-status.is-error {
  border-left-color: #a24b3d;
  color: #7d3025;
}

.smart-search-response {
  margin-top: 28px;
}

.smart-search-comment {
  max-width: 900px;
  margin: 0;
  color: #53483d;
  font-size: 15px;
  line-height: 1.6;
}

.smart-search-action {
  display: inline-flex;
  min-height: 42px;
  margin-top: 18px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #936f2c;
  background: #936f2c;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.smart-search-action:hover {
  border-color: #6f501d;
  background: #6f501d;
  color: #fff;
}

.smart-search-action[hidden] {
  display: none;
}

.smart-search-result-group {
  margin-top: 32px;
}

.smart-search-result-group h3 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

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

.smart-search-product-card,
.smart-search-article-card {
  color: #302519;
  text-decoration: none;
  border: 1px solid rgba(199, 165, 102, 0.66);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.smart-search-product-card:hover,
.smart-search-article-card:hover {
  border-color: #936f2c;
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-2px);
}

.smart-search-product-card {
  display: flex;
  min-width: 0;
  padding: 14px 10px 16px;
  flex-direction: column;
  text-align: center;
}

.smart-search-product-image {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
}

.smart-search-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.smart-search-card-category {
  display: block;
  margin-top: 10px;
  color: #936f2c;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

.smart-search-card-title {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.4;
}

.smart-search-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.smart-search-article-card {
  display: block;
  min-width: 0;
}

.smart-search-article-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eadfcf;
}

.smart-search-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smart-search-article-body {
  display: block;
  padding: 4px 14px 17px;
}

.smart-search-empty {
  margin: 0;
  color: #796d60;
}

.smart-search-disclaimer {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(199, 165, 102, 0.45);
  color: #8f8174;
  font-size: 11px;
  line-height: 1.55;
}

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

@media (max-width: 768px) {
  #smart-search-section {
    padding: 44px 0 48px;
  }

  .smart-search-articles-grid {
    grid-template-columns: 1fr;
  }

  .smart-search-article-card {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
  }

  .smart-search-article-image {
    height: 100%;
    min-height: 120px;
    aspect-ratio: auto;
  }
}

@media (max-width: 560px) {
  .smart-search-field {
    height: 50px;
  }

  .smart-search-field input {
    padding: 0 12px;
    font-size: 13px;
  }

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

  .smart-search-product-card {
    padding: 10px 8px 13px;
  }

  .smart-search-article-card {
    grid-template-columns: 112px 1fr;
  }

  .smart-search-article-body {
    padding: 2px 12px 14px;
  }
}
