/* style.css do child theme */
:root {
  --header-anim: var(--anim-base, 0.6s);
}

header#brx-header {
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
}

[data-flora-header] {
  color: var(--color-bg);
  font-family: var(--font-body);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: box-shadow var(--header-anim) ease,
    background var(--header-anim) ease;
  width: 100%;
  display: block;
  background: var(--color-dark);
}

.flora-header *,
.flora-header *::before,
.flora-header *::after,
[data-flora-header] *,
[data-flora-header] *::before,
[data-flora-header] *::after {
  transition-duration: var(--header-anim) !important;
}

.flora-header__top {
  background: var(--color-dark);
  padding: 26px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  height: 140px;
  align-items: center;
  transition: padding var(--header-anim) ease, height var(--header-anim) ease,
    box-shadow var(--header-anim) ease;
}

.flora-header__nav-bar {
  background: var(--color-primary);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  height: 45px;
  align-content: center;
  transition: transform var(--header-anim) ease, opacity var(--header-anim) ease;
  position: relative; /* Para o mega menu se posicionar relativo a ela */
}

.flora-header__container {
  max-width: 1260px;
  width: 90%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
}

.flora-header__logo {
  flex: 0 0 auto;
}

.flora-header__logo-link {
  display: flex;
  flex-direction: column;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 38px;
  line-height: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.flora-header__logo-img {
  display: block;
  max-height: 88px;
  width: auto;
}

.flora-header__logo-img--dark {
  display: none;
}

.flora-header__logo-sub {
  font-size: 22px;
  letter-spacing: 2px;
}

.flora-header__search {
  flex: 1 1 auto;
  position: relative;
}

.flora-header__search-form {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  height: 56px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.flora-header__search-form.is-focused {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.flora-header__search-input {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  outline: none;
  height: 100%;
  padding: 0 18px;
  font-size: 15px;
  color: var(--color-dark);
}

.flora-header__search-input::placeholder {
  color: var(--color-muted);
}

.flora-header__search-button {
  flex: 0 0 64px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--color-dark);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.flora-header__search-button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.flora-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.flora-header__action-link--desktop {
  display: inline-flex;
}

.flora-header__action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-bg);
  font-family: var(--font-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 0;
}

.flora-header__action-link:hover {
  color: var(--color-primary);
}

.flora-header__action-icon {
  font-size: 17px;
}

.flora-header__action-link--help {
  color: #aaff80;
}

.flora-header__action-link--app {
  color: #aaff80;
}

.flora-header__action-link--help:hover {
  color: #aaff80;
  opacity: 0.8;
}

.flora-header__action-dropdown i:last-child {
  font-size: 10px;
  margin-left: 2px;
}

.flora-header__action-link--cart {
  position: relative;
}

/* Account dropdown */
.flora-header__account {
  position: relative;
  display: inline-flex;
}

.flora-header__account:hover .flora-header__account-dropdown,
.flora-header__account:focus-within .flora-header__account-dropdown {
  display: flex;
}

.flora-header__account-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-neutral-300);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  z-index: 2000;
}

.flora-header__account-link {
  padding: 10px 14px;
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  display: block;
}

.flora-header__account-link:hover {
  background: var(--color-neutral-120);
  color: var(--color-dark);
}

.flora-header__cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: var(--color-dark);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
}

.flora-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flora-header__menu-toggle i {
  font-size: 18px;
}

.flora-header__menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

.flora-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 12px 0;
  flex: 1 1 auto;
  justify-content: space-between; /* distribui os links ao longo de toda a faixa */
  gap: 0; /* opcional, pode ajustar depois */
}

/* Estado compacto ao rolar - apenas oculta a barra de categorias */
.flora-header--compact .flora-header__nav-bar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.flora-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-dark-83);
  font-family: var(--font-heading);
  text-decoration: none;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
}

.flora-header__nav-link--blog-mobile {
  display: none;
}

.flora-header__nav-link--app-mobile {
  display: none;
}

.flora-header__nav-link:hover {
  color: var(--color-accent);
}

.flora-header__nav-link--dropdown i {
  font-size: 10px;
}

.flora-header__social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.flora-header__social-link {
  color: var(--color-dark);
  font-size: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.flora-header__social-link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  [data-flora-header] {
    position: sticky;
    top: 0;
  }

  .flora-header__top {
    padding: 24px 0 12px;
    height: auto;
    box-shadow: none;
  }

  .flora-header__container {
    max-width: 100%;
    width: 90%;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .flora-header__logo {
    text-align: center;
    width: 100%;
    order: 1;
  }

  .flora-header__logo-link {
    margin: 0 auto 4px;
    align-items: center;
  }

  .flora-header__logo-img {
    max-height: 88px;
  }

  .flora-header__actions {
    width: 100%;
    justify-content: center;
    gap: 14px;
    order: 2;
  }

  .flora-header__action-link {
    font-size: 12px;
    letter-spacing: 0.2px;
  }

  /* Aumenta ícones de login e carrinho no mobile */
  .flora-header__action-link .fa-circle-user,
  .flora-header__action-link .fa-cart-shopping {
    font-size: 18px;
  }

  .flora-header__action-link--cart .flora-header__cart-badge {
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
  }

  .flora-header__action-link--desktop {
    display: none;
  }

  .flora-header__menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .flora-header__search {
    width: 100%;
    order: 3;
  }

  .flora-header__search-form {
    height: 52px;
    border: 1px solid var(--color-neutral-300);
    box-shadow: none;
  }

  .flora-header__search-button {
    background: var(--color-primary);
    color: var(--color-dark);
    width: 54px;
  }

  .flora-header__search-button:hover {
    background: var(--color-primary);
  }

  .flora-header__nav-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    padding: 6px 0;
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9999;
  }

  .flora-header--menu-open .flora-header__nav-bar {
    display: block;
  }

  .flora-header__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Scrollbar do nav mobile */
  .flora-header__nav::-webkit-scrollbar {
    width: 4px;
  }

  .flora-header__nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }

  .flora-header__nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .flora-header__nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  .flora-header__nav-link {
    color: var(--color-bg);
    font-size: 14px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
  }

  .flora-header__nav-link:last-child {
    border-bottom: none;
  }

  .flora-header__nav-link--blog-mobile {
    display: block;
  }

  .flora-header__nav-link--app-mobile {
    display: block;
  }

  .flora-header__social {
    padding: 0 20px 12px;
    margin-left: 0;
  }

  .flora-header__social-link {
    color: var(--color-bg);
  }

  .flora-header--compact .flora-header__nav-bar {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    height: auto;
  }
}

/* Dropdown de subcategorias */
.flora-header__nav-item {
  position: relative;
  display: inline-flex;
}

.flora-header__nav-item--has-dropdown {
  position: static; /* Static para o megamenu usar a nav-bar como referência */
}

.flora-header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--color-dark);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.flora-header__dropdown::-webkit-scrollbar {
  width: 6px;
}

.flora-header__dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.flora-header__dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.flora-header__dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.flora-header__dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--color-dark);
}

.flora-header__nav-item--has-dropdown:hover .flora-header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.flora-header__dropdown-link {
  display: block;
  padding: 10px 20px;
  color: var(--color-bg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.flora-header__dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary);
}

.flora-header__dropdown-link--all {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

/* Mega Menu Styles */
.flora-header__megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  width: 100%;
  max-width: 1280px;
  background: rgba(0, 0, 0, 0.97);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  padding: 28px 32px 24px;
  max-height: 72vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.flora-header__megamenu::before {
  content: "";
  position: absolute;
  top: -90px; /* amplia a área para manter hover entre nav e menu */
  left: 0;
  right: 0;
  height: 70px;
  background: transparent;
}

.flora-header__nav-item--has-dropdown:hover .flora-header__megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.flora-header__nav-item--has-dropdown.is-hovering .flora-header__megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.flora-header__megamenu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 26px;
}

.flora-header__megamenu[data-megamenu-slug="sementes"]
  .flora-header__megamenu-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flora-header__megamenu[data-megamenu-slug="colecionaveis"]
  .flora-header__megamenu-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flora-header__megamenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
  text-align: center;
}

.flora-header__megamenu-item:hover {
  transform: translateY(-2px);
}

.flora-header__megamenu-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
}

.flora-header__megamenu-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flora-header__megamenu-image i {
  font-size: 22px;
  color: var(--color-bg);
  opacity: 0.9;
}

.flora-header__megamenu[data-megamenu-slug="colecionaveis"]
  .flora-header__megamenu-image {
  display: none;
}

.flora-header__megamenu-label {
  color: var(--color-bg);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
}

.flora-header__megamenu[data-megamenu-slug="colecionaveis"]
  .flora-header__megamenu-item {
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
}

.flora-header__megamenu[data-megamenu-slug="colecionaveis"]
  .flora-header__megamenu-label {
  text-align: left;
}

.flora-header__megamenu-item:hover .flora-header__megamenu-label {
  color: var(--color-primary);
}

/* remove CTA "ver todos" */
.flora-header__megamenu-all {
  display: none;
}

/* Mobile dropdown */
@media (max-width: 900px) {
  .flora-header__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .flora-header__nav-item--has-dropdown .flora-header__nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

.flora-header__dropdown {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.3s ease;
    margin-top: 8px;
  }

  .flora-header__dropdown::before {
    display: none;
  }

  .flora-header__nav-item--has-dropdown.is-open .flora-header__dropdown,
  .flora-header__nav-item--has-dropdown:hover .flora-header__dropdown {
    max-height: 300px;
    padding: 12px 0;
    transform: none;
    overflow-y: auto;
  }

  /* Em dispositivos touch, evita que o :hover mantenha o dropdown aberto */
  .flora-header__nav-item--has-dropdown:not(.is-open):hover
    .flora-header__dropdown {
    max-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .flora-header__nav-item--has-dropdown.is-open .flora-header__nav-link i {
    transform: rotate(180deg);
  }

  .flora-header__dropdown-link {
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
    display: block;
    width: 100%;
  }

  .flora-header__dropdown-link--all {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
    font-weight: 600;
  }

  /* Scrollbar do dropdown mobile */
  .flora-header__dropdown::-webkit-scrollbar {
    width: 4px;
  }

  .flora-header__dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }

  .flora-header__dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .flora-header__dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  /* Mega Menu Mobile */
  .flora-header__megamenu {
    position: static;
    transform: none;
    width: 100%;
    min-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin-top: 8px;
  }

  .flora-header__megamenu::before {
    display: none;
  }

  .flora-header__nav-item--has-dropdown.is-open .flora-header__megamenu,
  .flora-header__nav-item--has-dropdown:hover .flora-header__megamenu {
    max-height: 500px;
    padding: 16px;
    transform: none;
    overflow-y: auto;
  }

  /* Em dispositivos touch, evita que o :hover mantenha o megamenu aberto */
  .flora-header__nav-item--has-dropdown:not(.is-open):hover
    .flora-header__megamenu {
    max-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .flora-header__megamenu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Força 1 item por linha em qualquer megamenu no mobile */
  .flora-header__megamenu[data-megamenu-slug]
    .flora-header__megamenu-grid {
    grid-template-columns: 1fr !important;
  }

  .flora-header__megamenu-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
  }

  .flora-header__megamenu-image {
    width: 40px;
    height: 40px;
  }

  .flora-header__megamenu-label {
    font-size: 12px;
  }

  .flora-header__megamenu-all {
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) and (min-width: 769px) {
  .flora-header__megamenu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .flora-header__megamenu[data-megamenu-slug]
    .flora-header__megamenu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .flora-header__megamenu-item {
    padding: 10px;
  }

  .flora-header__megamenu-image {
    width: 48px;
    height: 48px;
  }
}

/* Search Results Dropdown */
.flora-header__search-clear {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.flora-header__search-clear:hover {
  color: var(--color-dark);
}

.flora-header__search-form.has-value .flora-header__search-clear {
  display: flex;
}

.flora-header__search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.flora-header__search-results::-webkit-scrollbar {
  width: 6px;
}

.flora-header__search-results::-webkit-scrollbar-track {
  background: var(--color-neutral-100, #f5f5f5);
  border-radius: 3px;
}

.flora-header__search-results::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300, #ccc);
  border-radius: 3px;
}

.flora-header__search-results::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-400, #999);
}

.flora-header__search-results.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.flora-header__search-results:empty {
  display: none;
}

.flora-header__search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-neutral-200, #eee);
  transition: background 0.15s ease;
}

.flora-header__search-result:last-child {
  border-bottom: none;
}

.flora-header__search-result:hover {
  background: var(--color-neutral-100, #f5f5f5);
}

.flora-header__search-result-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-neutral-100, #f5f5f5);
  flex-shrink: 0;
}

.flora-header__search-result-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-dark);
  font-size: 18px;
}

.flora-header__search-result-info {
  flex: 1;
  min-width: 0;
}

.flora-header__search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flora-header__search-result-type {
  font-size: 12px;
  color: var(--color-muted, #888);
  margin: 0;
}

.flora-header__search-loading {
  padding: 20px;
  text-align: center;
  color: var(--color-muted, #888);
  font-size: 14px;
}

.flora-header__search-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-muted, #888);
  font-size: 14px;
}

@media (max-width: 900px) {
  .flora-header__search-results {
    position: fixed;
    top: auto;
    left: 16px;
    right: 16px;
    max-height: 60vh;
  }

  .flora-header__search-clear {
    right: 54px;
  }
}

/* Cart Dropdown */
.flora-header__cart-wrapper {
  position: relative;
}

.flora-header__cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 320px;
  background: var(--color-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
  overflow: hidden;
}

.flora-header__cart-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 16px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--color-bg, #fff);
}

.flora-header__cart-wrapper:hover .flora-header__cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.flora-header__cart-items {
  max-height: 280px;
  overflow-y: auto;
  padding: 12px 0;
}

.flora-header__cart-items::-webkit-scrollbar {
  width: 5px;
}

.flora-header__cart-items::-webkit-scrollbar-track {
  background: var(--color-neutral-100, #f5f5f5);
}

.flora-header__cart-items::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300, #ccc);
  border-radius: 3px;
}

.flora-header__cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-neutral-200, #eee);
}

.flora-header__cart-item:last-child {
  border-bottom: none;
}

.flora-header__cart-item-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-neutral-100, #f5f5f5);
  flex-shrink: 0;
}

.flora-header__cart-item-info {
  flex: 1;
  min-width: 0;
}

.flora-header__cart-item-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.flora-header__cart-item-qty {
  display: block;
  font-size: 13px;
  color: var(--color-muted, #888);
}

.flora-header__cart-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-neutral-100, #f5f5f5);
  border-top: 1px solid var(--color-neutral-200, #eee);
}

.flora-header__cart-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted, #888);
}

.flora-header__cart-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.flora-header__cart-btn--view {
  background: var(--color-dark);
  color: var(--color-bg, #fff);
}

.flora-header__cart-btn--view:hover {
  background: var(--color-dark-83, #333);
  transform: translateY(-1px);
}

.flora-header__cart-btn--checkout {
  background: var(--color-primary);
  color: var(--color-dark);
}

.flora-header__cart-btn--checkout:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .flora-header__cart-dropdown {
    display: none;
  }

  /* Account dropdown centralizado no mobile */
  .flora-header__account {
    position: static;
  }

  .flora-header__account-dropdown {
    position: fixed;
    top: 180px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: 200px;
    max-width: calc(100vw - 32px);
  }
}
