/* Home page — centered wide layout, live data */

.home-page-2026 {
  --home-accent: #2563eb;
  --home-accent-soft: #eff6ff;
  --home-border: #e2e8f0;
  --home-text-muted: #64748b;
  --home-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  --home-content-width: min(1680px, calc(100vw - 32px));
  position: relative;
  font-family: Inter, system-ui, sans-serif;
}

body.m-page-home .site-header .header-inner,
body.m-page-home .home-page-2026 > section > .container,
body.m-page-home .home-trust-bar > .container {
  width: var(--home-content-width);
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}

body.m-page-home .home-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

body.m-page-home .home-header-login:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Eyebrow & typography */
.home-page-2026 .home-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.home-page-2026 .home-hero {
  padding: 32px 0 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.07), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-page-2026 .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.home-page-2026 .home-hero-copy h1 {
  margin: 0 0 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.home-page-2026 .home-lead {
  margin: 0;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: #475569;
}

.home-page-2026 .home-lead-link {
  color: var(--home-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

.home-page-2026 .home-lead-link:hover {
  text-decoration-style: solid;
}

.home-page-2026 .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-page-2026 .home-btn-primary {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 9px !important;
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.home-page-2026 .home-btn-secondary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px !important;
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid var(--home-border) !important;
  box-shadow: none !important;
}

/* Stats row */
.home-page-2026 .home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.home-page-2026 .home-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 88px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--home-border);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.home-page-2026 .home-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--home-accent-soft);
  color: var(--home-accent);
  flex-shrink: 0;
}

.home-page-2026 .home-stat-body strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.home-page-2026 .home-stat-body span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--home-text-muted);
}

/* Search card — reference style */
.home-page-2026 .home-search-card {
  position: relative;
  min-height: 0;
  box-sizing: border-box;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 42%),
    #f8fbff;
  box-shadow: var(--home-shadow);
}

.home-page-2026 .home-search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.home-page-2026 .home-search-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.home-page-2026 .home-search-tab.is-active,
.home-page-2026 .home-search-tab[aria-selected="true"] {
  color: var(--home-accent);
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
}

.home-page-2026 .home-search-tab.is-active::after,
.home-page-2026 .home-search-tab[aria-selected="true"]::after {
  display: none;
}

.home-page-2026 .home-search-form {
  display: flex;
  flex-direction: column;
  gap: 10px !important;
}

.home-page-2026 .home-search-field {
  position: relative;
}

.home-page-2026 .home-search-field.smart-search,
.home-page-2026 .home-search-field.catalog-smart-search {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
}

.home-page-2026 .home-search-field.smart-search.catalog-smart-search::before,
.home-page-2026 .home-search-field::before {
  content: '' !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  font-size: 0 !important;
  z-index: 2;
  pointer-events: none;
  background: var(--home-accent) !important;
  opacity: 1 !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C8.01 14 6 11.99 6 9.5S8.01 5 10.5 5 15 7.01 15 9.5 12.99 14 10.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C8.01 14 6 11.99 6 9.5S8.01 5 10.5 5 15 7.01 15 9.5 12.99 14 10.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.home-page-2026 .home-search-field .input,
.home-page-2026 .home-search-field .smart-search-input {
  width: 100%;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 16px 0 44px !important;
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: normal !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.home-page-2026 .home-search-field .input:focus,
.home-page-2026 .home-search-field .smart-search-input:focus {
  border-color: var(--home-accent) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  transform: none !important;
}

.home-page-2026 .home-search-field .smart-search-results {
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  border-radius: 14px !important;
}

.home-page-2026 .home-popular-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.home-page-2026 .home-popular-label {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.home-page-2026 .home-popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.home-page-2026 .home-popular-chips .search-example-chip {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 0 !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}

.home-page-2026 .home-popular-chips .search-example-chip:hover {
  background: #dbeafe;
  transform: none;
}

.home-page-2026 .home-popular-refresh {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.home-page-2026 .home-popular-refresh:hover {
  color: var(--home-accent);
  border-color: #bfdbfe;
  background: var(--home-accent-soft);
}

.home-page-2026 .home-checklist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 0;
  display: grid;
  gap: 7px;
}

.home-page-2026 .home-checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.home-page-2026 .home-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dbeafe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232563eb' d='M6.2 11.2 3.4 8.4l-.9.9 3.7 3.7 7.8-7.8-.9-.9z'/%3E%3C/svg%3E") center/10px 10px no-repeat;
}

/* Section headers */
.home-page-2026 .home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-page-2026 .home-section-head h2 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.home-page-2026 .home-section-head--compact {
  margin-bottom: 16px;
}

.home-page-2026 .home-section-link,
.home-page-2026 .home-categories-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--home-border);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.home-page-2026 .home-categories-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.home-page-2026 .home-view-toggle {
  display: inline-flex;
  gap: 8px;
  border: 0;
  background: transparent;
}

.home-page-2026 .home-view-btn {
  width: 40px;
  height: 40px;
  min-height: 40px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid var(--home-border);
  border-radius: 9px;
  background: #fff !important;
  color: #64748b !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
}

.home-page-2026 .home-view-btn:hover {
  background: var(--home-accent-soft) !important;
  color: var(--home-accent) !important;
  transform: none !important;
  box-shadow: none !important;
}

.home-page-2026 .home-view-btn.is-active {
  border-color: var(--home-accent) !important;
  background: #fff !important;
  color: var(--home-accent) !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15) !important;
}

.home-page-2026 button.home-popular-refresh {
  min-height: 32px !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 0 !important;
}

/* Categories grid — horizontal cards like reference */
.home-page-2026 .home-categories-section {
  padding-top: 8px;
}

.home-page-2026 .home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-page-2026 .home-category-grid.is-list-view {
  grid-template-columns: 1fr;
}

.home-page-2026 .home-category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 100px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--home-border);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-page-2026 .home-category-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.home-page-2026 .home-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  overflow: hidden;
  background: #eef2f7;
  flex-shrink: 0;
}

.home-page-2026 .home-category-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page-2026 .home-category-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-page-2026 .home-category-body strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.home-page-2026 .home-category-body span {
  font-size: 14px;
  font-weight: 400;
  color: var(--home-text-muted);
}

.home-page-2026 .home-categories-section .home-section-head,
.home-page-2026 .home-category-grid {
  text-align: left;
}

/* Trust bar */
.home-page-2026 .home-trust-bar {
  padding: 0 0 24px;
  background: #f8fafc;
}

.home-page-2026 .home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.home-page-2026 .home-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-page-2026 .home-trust-item strong,
.home-page-2026 .home-trust-item span {
  display: block;
}

.home-page-2026 .home-trust-item strong {
  font-size: 15px;
  line-height: 1.3;
  color: #0f172a;
}

.home-page-2026 .home-trust-item span {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--home-text-muted);
}

.home-page-2026 .home-trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eff6ff;
  border: 0;
  flex-shrink: 0;
  position: relative;
}

.home-page-2026 .home-trust-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background: var(--home-accent);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.home-page-2026 .home-trust-icon--donor::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 11l1.2-3.6A2 2 0 0 1 8.1 6h7.8a2 2 0 0 1 1.9 1.4L19 11v7a1 1 0 0 1-1 1h-1a2 2 0 0 1-2-2H8a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1v-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 11l1.2-3.6A2 2 0 0 1 8.1 6h7.8a2 2 0 0 1 1.9 1.4L19 11v7a1 1 0 0 1-1 1h-1a2 2 0 0 1-2-2H8a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1v-7z'/%3E%3C/svg%3E");
}

.home-page-2026 .home-trust-icon--warranty::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1 14-3.5-3.5 1.4-1.4L11 12.2l4.6-4.6 1.4 1.4L11 16z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1 14-3.5-3.5 1.4-1.4L11 12.2l4.6-4.6 1.4 1.4L11 16z'/%3E%3C/svg%3E");
}

.home-page-2026 .home-trust-icon--return::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8z'/%3E%3C/svg%3E");
}

.home-page-2026 .home-trust-icon--support::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1a9 9 0 0 0-9 9v7a3 3 0 0 0 3 3h1v-8H5a7 7 0 1 1 14 0h-2v8h1a3 3 0 0 0 3-3v-7a9 9 0 0 0-9-9z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1a9 9 0 0 0-9 9v7a3 3 0 0 0 3 3h1v-8H5a7 7 0 1 1 14 0h-2v8h1a3 3 0 0 0 3-3v-7a9 9 0 0 0-9-9z'/%3E%3C/svg%3E");
}

@media (max-width: 1100px) {
  .home-page-2026 {
    --home-content-width: min(100%, calc(100vw - 32px));
  }

  .home-page-2026 .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-page-2026 .home-search-card {
    position: static;
  }

  .home-page-2026 .home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page-2026 .home-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page-2026 .home-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page-2026 .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page-2026 .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page-2026 .home-popular-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .home-page-2026 .home-stats-grid,
  .home-page-2026 .home-trust-grid {
    grid-template-columns: 1fr;
  }
}
