:root {
  --search-bg: #f4eee7;
  --search-surface: #fff9f1;
  --search-panel: #ece3d9;
  --search-text: #1e1e1e;
  --search-mid: #5f5b57;
  --search-light: #8e8580;
  --search-border: #d4c8bc;
  --search-gold: #76533f;
  --search-accent: #1f3a5f;
  --search-success: #2e6b4d;
  --search-shadow: 0 8px 28px rgba(65, 48, 35, 0.08);
  --search-shadow-lg: 0 24px 60px rgba(65, 48, 35, 0.1);
  --search-container: 1480px;
}

body {
  background: var(--search-bg) !important;
  color: var(--search-text);
}

body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 231, 0.92) !important;
  color: var(--search-text) !important;
  border-bottom: 1px solid rgba(212, 200, 188, 0.82);
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(150%);
}

body > header a,
body > header nav a,
body > header span {
  color: var(--search-text) !important;
}

body > header + .bg-blue-800 {
  display: none;
}

body > header > .container {
  max-width: var(--search-container) !important;
}

@media (min-width: 1024px) {
  body > header > .container {
    padding-left: max(16px, calc((100vw - var(--search-container)) / 2)) !important;
    padding-right: max(16px, calc((100vw - var(--search-container)) / 2)) !important;
  }
}

.header-search-wrap {
  border: 1px solid rgba(31, 58, 95, 0.28);
  border-radius: 16px !important;
  background: rgba(255, 249, 241, 0.9) !important;
  padding: 6px 8px 6px 16px;
}

.header-search-btn {
  color: var(--search-accent) !important;
}

header .header-search-clear {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--search-light);
}

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

header .header-search-clear:hover {
  color: var(--search-text);
  background: rgba(31, 30, 30, 0.06);
}

header .header-search-clear svg {
  width: 1.75rem;
  height: 1.75rem;
}

header .header-search-input {
  height: 2.75rem !important;
  padding: 0.82rem 0.75rem 0.38rem !important;
  font-size: 1.0625rem !important;
  line-height: 1.2 !important;
}

.search-v2 {
  min-height: 70vh;
  background: var(--search-bg);
  color: var(--search-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.search-v2 svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-inner {
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
}

.results-wrap {
  padding: 24px 16px 64px;
}

.results-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.results-toolbar-main {
  display: grid;
  gap: 5px;
}

.search-meta {
  margin: 0;
  color: var(--search-mid);
  font-size: 14px;
  font-weight: 400;
}

.search-meta strong {
  color: var(--search-text);
  font-weight: 600;
}

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

.search-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(212, 200, 188, 0.82);
  border-radius: 18px;
  background: var(--search-surface);
  box-shadow: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.search-product-card:hover {
  border-color: rgba(31, 58, 95, 0.38);
  box-shadow: var(--search-shadow);
  transform: translateY(-1px);
}

.search-product-card-img {
  aspect-ratio: 1 / 1;
  margin: 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--search-surface);
}

.search-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 14px;
}

.search-product-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.search-product-card-brand {
  color: var(--search-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-product-card-name {
  min-height: 40px;
  color: var(--search-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-product-card-price {
  margin-top: auto;
  padding-top: 8px;
  color: var(--search-text);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.search-empty-state {
  min-height: 360px;
  margin-top: 18px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(212, 200, 188, 0.82);
  border-radius: 24px;
  background: rgba(255, 249, 241, 0.78);
}

.search-empty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--search-light);
  border-radius: 20px;
  background: #fff;
}

.search-empty-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.search-empty-title {
  margin-bottom: 8px;
  color: var(--search-text);
  font-size: 20px;
  font-weight: 600;
}

.search-empty-copy {
  max-width: 360px;
  color: var(--search-mid);
  font-size: 14px;
  line-height: 1.6;
}

.search-empty-copy a {
  color: var(--search-accent);
  font-weight: 600;
}

.search-pagination {
  margin-top: 24px;
}

.search-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-page-link,
.search-page-current {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.search-page-link {
  color: var(--search-text);
  border: 1px solid rgba(212, 200, 188, 0.82);
  background: var(--search-surface);
}

.search-page-link:hover {
  border-color: rgba(31, 58, 95, 0.38);
}

.search-page-current {
  color: var(--search-surface);
  background: var(--search-accent);
}

body > footer {
  background: #121212 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

body > footer h3,
body > footer .text-white {
  color: #d9c7af !important;
}

body > footer a,
body > footer p,
body > footer span,
body > footer div {
  color: rgba(255, 255, 255, 0.72) !important;
}

body > footer .bg-white {
  background: rgba(255, 255, 255, 0.9) !important;
}

body > footer .footer-payment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
}

body > footer .footer-payment-visa {
  color: #1f3a8a !important;
}

body > footer .footer-payment-mastercard {
  color: #b91c1c !important;
}

body > footer .footer-payment-payflex {
  background: #eee7f6 !important;
  color: #2d2a6e !important;
}

body > footer .footer-payment-ozow {
  color: #282830 !important;
}

@media (min-width: 720px) {
  .search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .results-wrap {
    padding-top: 28px;
    padding-bottom: 72px;
  }

  .search-results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 719px) {
  .results-inner {
    width: min(100% - 28px, 1480px);
  }

  .results-wrap {
    padding: 18px 0 48px;
  }

  .results-toolbar {
    display: grid;
    align-items: start;
    gap: 10px;
  }

  .search-product-card-name {
    min-height: 38px;
  }
}
