/* ==========================================================================
   HOME — versão refinada / visual mais profissional.
   Foco: leitura fácil, ritmo visual limpo e cards mais elegantes.
   ========================================================================== */

.page-home .main-content {
  background:
    radial-gradient(circle at top left, rgba(35,95,191,.05), transparent 28%),
    radial-gradient(circle at top right, rgba(20,45,80,.03), transparent 24%),
    var(--bg);
  padding-bottom: 48px;
}

.page-home .identity-strip {
  height: 34px;
  background: rgba(255,255,255,.92);
  color: var(--blue-deep);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.page-home .identity-strip strong {
  color: #8190a3;
}

.page-home .main-content > :not(.identity-strip) {
  max-width: 1420px;
  margin-left: auto;
  margin-right: auto;
}

.hm-menu {
  display: none;
}

.hm-home-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0 6px;
}

.hm-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  color: #71819a;
  box-shadow: 0 10px 28px rgba(17, 50, 104, .05);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.hm-search:hover {
  border-color: #c7d2df;
}

.hm-search:focus-within {
  border-color: #9db6da;
  box-shadow: 0 12px 30px rgba(17, 50, 104, .09);
  background: #fff;
}

.hm-search svg {
  width: 18px;
  flex: 0 0 auto;
}

.hm-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.hm-search input::placeholder {
  color: #8793a6;
}

.hm-search-inline {
  width: min(820px, 100%);
  height: 56px;
  padding: 0 18px;
}

.hm-kicker,
.hm-section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hm-chip-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 2px 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d5dde8 transparent;
}

.hm-chip-row::-webkit-scrollbar {
  height: 6px;
}

.hm-chip-row::-webkit-scrollbar-thumb {
  background: #d5dde8;
  border-radius: 999px;
}

.hm-chip {
  flex: 0 0 auto;
  min-width: 130px;
  padding: 11px 14px;
  border: 1px solid #dde4ed;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.hm-chip:hover {
  transform: translateY(-1px);
  border-color: #c0cede;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 54, 121, .06);
}

.hm-chip span {
  display: block;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
}

.hm-chip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.hm-section {
  margin-top: 28px;
}

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

.hm-section-head h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.hm-section-head p:not(.hm-section-kicker) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hm-video-grid,
.hm-product-grid {
  display: grid;
  gap: 20px;
}

.hm-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
}

.hm-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.hm-video-card,
.hm-product-card {
  min-width: 0;
  background: transparent;
  transition: transform .18s ease;
}

.hm-video-card:hover,
.hm-product-card:hover {
  transform: translateY(-2px);
}

.hm-video-card[hidden],
.hm-product-card[hidden] {
  display: none !important;
}

.hm-video-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #285fbe, #14386d);
  box-shadow: 0 12px 30px rgba(17, 50, 104, .08);
}

.hm-video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,20,42,.18) 0%, rgba(8,20,42,0) 35%, rgba(8,20,42,.28) 100%);
  pointer-events: none;
}

.hm-video-media img,
.hm-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  background: #0d1d3d;
}

.hm-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hm-video-placeholder span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 900;
}

.hm-video-placeholder small {
  margin-top: 10px;
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 700;
}

.hm-video-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hm-video-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 27, 57, .88);
  color: #fff;
  font-size: 15px;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

.hm-video-topline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hm-video-product-pill,
.hm-video-new,
.hm-video-duration {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.hm-video-product-pill {
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(10, 27, 57, .82);
  color: #fff;
}

.hm-video-new {
  background: #e24a46;
  color: #fff;
}

.hm-video-duration {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(10, 27, 57, .82);
  color: #fff;
}

.hm-video-body {
  padding: 14px 4px 2px;
}

.hm-video-body h3 {
  margin: 0;
  color: #152542;
  font-size: 16px;
  line-height: 1.34;
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.hm-video-meta span {
  padding: 6px 9px;
  border: 1px solid #e6ecf3;
  border-radius: 999px;
  background: #f8fafc;
  color: #627186;
  font-size: 10px;
  font-weight: 700;
}

.hm-video-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.hm-action {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.hm-action svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.hm-action-muted {
  border-color: #dce3eb;
  background: #f8fafc;
  color: #536176;
}

.hm-action-muted:hover {
  border-color: #c7d1dc;
  background: #f1f5f9;
  color: var(--blue-deep);
}

.hm-action-primary {
  border-color: #d5dfec;
  background: #eef4fb;
  color: var(--blue-dark);
}

.hm-action-primary:hover {
  border-color: #bfcfe3;
  background: #e3edf9;
  color: var(--blue-deep);
}

.hm-product-card {
  min-width: 0;
  background: transparent;
  transition: transform .18s ease;
}

.hm-video-card:hover,
.hm-product-card:hover {
  transform: translateY(-2px);
}

.hm-video-card[hidden],
.hm-product-card[hidden] {
  display: none !important;
}

.hm-video-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #285fbe, #14386d);
  box-shadow: 0 12px 30px rgba(17, 50, 104, .08);
}

.hm-video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,20,42,.18) 0%, rgba(8,20,42,0) 35%, rgba(8,20,42,.28) 100%);
  pointer-events: none;
}

.hm-video-media img,
.hm-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  background: #0d1d3d;
}

.hm-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hm-video-placeholder span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 900;
}

.hm-video-placeholder small {
  margin-top: 10px;
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 700;
}

.hm-video-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hm-video-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 27, 57, .88);
  color: #fff;
  font-size: 15px;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

.hm-video-topline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hm-video-product-pill,
.hm-video-new,
.hm-video-duration {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.hm-video-product-pill {
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(10, 27, 57, .82);
  color: #fff;
}

.hm-video-new {
  background: #e24a46;
  color: #fff;
}

.hm-video-duration {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(10, 27, 57, .82);
  color: #fff;
}

.hm-video-body {
  padding: 14px 4px 2px;
}

.hm-video-body h3 {
  margin: 0;
  color: #152542;
  font-size: 16px;
  line-height: 1.34;
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.hm-video-meta span {
  padding: 6px 9px;
  border: 1px solid #e6ecf3;
  border-radius: 999px;
  background: #f8fafc;
  color: #627186;
  font-size: 10px;
  font-weight: 700;
}

.hm-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.hm-action {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
  color: #4f5d72;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.hm-action:hover,
.hm-action-muted:hover {
  border-color: #c7d2df;
  background: #f8fafc;
  color: var(--blue-deep);
}

.hm-action-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.hm-action-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.hm-product-card {
  display: block;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 50, 104, .06);
}

.hm-product-media {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcff 0%, #eef4fb 100%);
  border-bottom: 1px solid #edf1f6;
}

.hm-product-media::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: rgba(35,95,191,.08);
}

.hm-product-count {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid #e6ecf3;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 900;
}

.hm-avatar {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background: #eef2f8;
  color: #43536b;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(17, 50, 104, .08);
}

.hm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.hm-avatar[data-tone="0"] { background: #eaf1fb; color: #24548f; border-color: #dbe6f4; }
.hm-avatar[data-tone="1"] { background: #eaf5f1; color: #226b52; border-color: #d9ebe3; }
.hm-avatar[data-tone="2"] { background: #fdf1e7; color: #9a5322; border-color: #f3e0cf; }
.hm-avatar[data-tone="3"] { background: #f0eefa; color: #4b3f8f; border-color: #e2ddf2; }
.hm-avatar[data-tone="4"] { background: #eef4f7; color: #2c5a6b; border-color: #dde9ee; }
.hm-avatar[data-tone="5"] { background: #fbeeef; color: #8f3a45; border-color: #f2dcde; }

.hm-product-body {
  display: block;
  padding: 16px 17px 17px;
}

.hm-product-body strong {
  display: block;
  color: #162743;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.hm-product-body span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hm-product-body b {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-size: 11px;
}

.hm-empty,
.hm-no-results,
.hm-empty-search {
  padding: 24px 18px;
  border: 1px dashed #cbd7e6;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.hm-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-deep);
}

.hm-empty {
  grid-column: 1 / -1;
}

.hm-no-results,
.hm-empty-search {
  display: none;
  margin-top: 14px;
}

.hm-foot {
  margin: 28px 0 0;
  color: #8693a4;
  font-size: 11px;
}

@media (max-width: 980px) {
  .hm-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hm-menu {
    display: grid;
    place-items: center;
  }

  .hm-home-top {
    padding: 16px 0 4px;
  }

  .hm-search-inline {
    height: 50px;
  }

  .hm-video-grid,
  .hm-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hm-section {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .page-home .main-content {
    padding-bottom: 34px;
  }

  .page-home .main-content > :not(.identity-strip) {
    max-width: none;
  }

  .hm-chip-row {
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .hm-video-actions {
    display: flex;
    gap: 7px;
  }

  .hm-action {
    min-height: 36px;
  }

  .hm-product-media {
    height: 164px;
  }

  .hm-product-body {
    padding: 14px 15px 16px;
  }
}
