/* ============================================
   Pixie PK — Search Results Page
   File: search.css
   Place in: /wp-content/themes/blocksy-child/
   ============================================ */

/* ── Search Page Container ── */
.pxk-search-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Hero ── */
.pxk-search-hero {
  text-align: center;
  padding: 48px 20px 40px;
  background: linear-gradient(135deg, #1A1A2E 0%, #2d1247 100%);
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.pxk-search-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(232,23,122,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.pxk-search-hero__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); text-transform: uppercase;
  margin-bottom: 12px; display: block;
}
.pxk-search-hero h1 {
  font-size: clamp(22px, 4vw, 32px); font-weight: 800;
  color: #fff; margin: 0 0 6px;
}
.pxk-search-hero h1 em {
  font-style: normal; color: #E8177A;
}
.pxk-search-hero__count {
  font-size: 14px; color: rgba(255,255,255,0.5);
  margin-bottom: 28px; display: block;
}

/* ── Search Form inside Hero ── */
.pxk-search-hero__form {
  display: flex; align-items: center;
  max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.pxk-search-hero__form input[type="search"] {
  flex: 1; border: none; outline: none;
  padding: 14px 20px;
  font-size: 15px; color: #111;
  background: transparent;
  min-width: 0;
}
.pxk-search-hero__form input[type="search"]::placeholder { color: #bbb; }
.pxk-search-hero__form button {
  background: #E8177A; color: #fff;
  border: none; padding: 0 24px;
  height: 52px; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.pxk-search-hero__form button:hover { background: #C01265; }
.pxk-search-hero__form button svg { flex-shrink: 0; }

/* ── Popular Tags ── */
.pxk-search-hero__tags {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.pxk-search-hero__tags span { font-size: 12px; color: rgba(255,255,255,0.35); }
.pxk-search-hero__tags a {
  font-size: 12px; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px; padding: 4px 12px;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.pxk-search-hero__tags a:hover { background: #E8177A; color: #fff; border-color: #E8177A; }

/* ── Section Headings ── */
.pxk-search-section { margin-bottom: 48px; }
.pxk-search-section__head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.pxk-search-section__head h2 {
  font-size: 18px; font-weight: 800; color: #111; margin: 0;
}
.pxk-search-section__head span {
  font-size: 13px; color: #aaa; font-weight: 500;
}

/* ── Product Grid ── */
.pxk-search-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ── Product Card ── */
.pxk-search-product {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.pxk-search-product:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}
.pxk-search-product__img {
  width: 100%; aspect-ratio: 1;
  background: #f8f8f8; overflow: hidden;
}
.pxk-search-product__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.pxk-search-product:hover .pxk-search-product__img img { transform: scale(1.05); }
.pxk-search-product__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pxk-search-product__name {
  font-size: 13px; font-weight: 600; color: #111;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pxk-search-product__price {
  font-size: 15px; font-weight: 800; color: #E8177A; margin-top: auto;
}
.pxk-search-product__price del { font-size: 12px; color: #bbb; font-weight: 400; margin-right: 4px; }
.pxk-search-product__badge {
  position: absolute; top: 10px; left: 10px;
  background: #E8177A; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 50px; text-transform: uppercase;
}
.pxk-search-product__add {
  margin: 0 14px 14px;
  display: block; text-align: center;
  background: #1A1A2E; color: #fff;
  border-radius: 8px; padding: 9px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.pxk-search-product__add:hover { background: #E8177A; }

/* ── No Results ── */
.pxk-search-empty {
  text-align: center; padding: 60px 20px;
}
.pxk-search-empty__icon { font-size: 48px; margin-bottom: 16px; }
.pxk-search-empty h3 { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 8px; }
.pxk-search-empty p { font-size: 14px; color: #888; margin: 0 0 24px; }
.pxk-search-empty__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.pxk-search-empty__tags a {
  background: #f5f5f5; color: #333; border-radius: 50px;
  padding: 6px 16px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.pxk-search-empty__tags a:hover { background: #E8177A; color: #fff; }

/* ── Pagination ── */
.pxk-search-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 32px;
}
.pxk-search-pagination a, .pxk-search-pagination span {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.pxk-search-pagination a { background: #f5f5f5; color: #333; }
.pxk-search-pagination a:hover { background: #E8177A; color: #fff; }
.pxk-search-pagination span { background: #E8177A; color: #fff; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .pxk-search-hero { padding: 32px 20px 28px; }
  .pxk-search-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}