.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  width: min(680px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #e3e9e5;
  border-radius: 10px;
  background: #fff;
  color: #212121;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

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

.search-cols {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}

.search-col h6 {
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e9eeeb;
  color: #294438;
  font-size: 0.95rem;
  font-weight: 700;
}

.search-sugg {
  display: block;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #617067;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.search-sugg b { color: #263d30; }
.search-sugg:hover { color: #104b35; }

.search-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 7px;
  background: #f5f8f6;
  color: #293f32;
  text-decoration: none;
}

.search-product:hover {
  color: #104b35;
  background: #eaf3ee;
  text-decoration: none;
}

.search-product img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.search-product div { display: flex; min-width: 0; flex-direction: column; }
.search-product span { font-size: 0.9rem; line-height: 1.25; }
.search-product b { font-size: 0.9rem; }

.search-foot {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e9eeeb;
  text-align: center;
}

.search-all {
  border: 0;
  background: transparent;
  color: #176345;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.search-empty { margin: 0; padding: 6px 0 10px; color: #738078; font-size: 0.9rem; }

.search-sugg:focus-visible,
.search-all:focus-visible,
.search-product:focus-visible { outline: 3px solid #86bda1; outline-offset: 2px; }

.alfa-card-home {
  position: relative;
  overflow: visible;
}

.alfa-card-home .card-img-wrap { overflow: hidden; }

.card-row .card-title a,
.card-row .card-title a:hover {
  color: inherit;
  text-decoration: none;
}

.card-row .card-title a::after {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  content: "";
}

.card-row .card-title a:focus-visible { outline: none; }

.card-row .card-title a:focus-visible::after {
  outline: 3px solid #86bda1;
  outline-offset: 3px;
}

.card-actions {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .search-panel {
    position: fixed;
    top: 120px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .search-cols { grid-template-columns: 1fr; gap: 14px; }
}

.alfa-card-home-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.alfa-card-home {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: visible;
  color: #161111;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.alfa-card-home .card-img-wrap {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  padding: 14px;
  background: var(--shop-tile, #f4f5f5);
  border: 0;
  border-radius: 8px;
}
.alfa-card-home .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card-discount {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  color: #090909;
  background: var(--shop-green, #f0f0f0);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}
.card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 11px 1px 0;
}
.card-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  position: static;
}
.card-row .card-title {
  min-width: 0;
  margin: 0;
  color: #161111;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1.35;
}
.card-row .card-title a { color: inherit; text-decoration: none; }
.card-row .card-title a::after { position: absolute; inset: 0; border-radius: 8px; content: ""; }
.card-price-block { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 1px; white-space: nowrap; }
.card-price { color: #161111; font-size: 0.84rem; font-weight: 800; line-height: 1.3; }
.card-price-ask { font-size: 0.75rem; }
.card-old-price { color: #888e8a; font-size: 0.7rem; font-weight: 400; }
.card-off-text { color: var(--shop-green, #f6f9f8); font-size: 0.68rem; font-weight: 700; }
.card-sub {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--shop-muted, #777d79);
  font-size: 0.72rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.card-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.card-specs span { padding: 2px 6px; color: #59615c; background: #f4f5f5; border-radius: 3px; font-size: 0.64rem; }
.card-search-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.card-actions { position: relative; z-index: 2; display: block; margin-top: auto; padding-top: 9px; }
.card-actions .btn, .card-view-link {
  display: inline-flex;
  min-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--shop-green, #0f3d2e);
  background: #fff;
  border: 1px solid var(--shop-green, #0f3d2e);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}
.card-actions .btn { color: var(--shop-green, #0f3d2e); background: #fff; border-color: var(--shop-green, #0f3d2e); }
.card-actions .btn:hover, .card-actions .btn:active, .card-actions .btn.added { color: #fff; background: var(--shop-green, #0f3d2e); }
