/* ==============================
   AMAZONA Woo Shell - FINAL
   ============================== */

/* 1) Ocultar header/footer nativos de Neve solo en shell Woo */
body.amz-woo-shell .hfg_header,
body.amz-woo-shell header.header,
body.amz-woo-shell .site-header,
body.amz-woo-shell .header,
body.amz-woo-shell .nv-navbar,
body.amz-woo-shell .nv-top-bar,
body.amz-woo-shell .nv-main-header,
body.amz-woo-shell footer.site-footer,
body.amz-woo-shell .site-footer {
  display: none !important;
}

/* 2) Base header */
body.amz-woo-shell .amz-shell-header {
  background-color: hsl(var(--brand)) !important;
  color: #fff !important;
}

/* 3) Layout general */
body.amz-woo-shell .amz-shell-header > .mx-auto.w-full.max-w-7xl {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body.amz-woo-shell .amz-shell-header > .mx-auto.w-full.max-w-7xl > .flex.min-h-14 {
  min-height: 56px !important;
  gap: 8px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  justify-content: space-between !important;
}

@media (min-width: 640px) {
  body.amz-woo-shell .amz-shell-header > .mx-auto.w-full.max-w-7xl {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body.amz-woo-shell .amz-shell-header > .mx-auto.w-full.max-w-7xl > .flex.min-h-14 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

@media (min-width: 1024px) {
  body.amz-woo-shell .amz-shell-header > .mx-auto.w-full.max-w-7xl {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

/* 4) Logo */
body.amz-woo-shell .amz-shell-header .amz-shell-logo {
  height: 32px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}

@media (min-width: 640px) {
  body.amz-woo-shell .amz-shell-header .amz-shell-logo {
    height: 48px !important;
  }
}

@media (min-width: 1024px) {
  body.amz-woo-shell .amz-shell-header .amz-shell-logo {
    height: 64px !important;
  }
}

/* 5) Buscador */
body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] {
  color: hsl(var(--muted-foreground)) !important;
  overflow: hidden !important;
}

body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] input[name="q"] {
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
  color: hsl(var(--foreground)) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}

body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] input[name="q"]::placeholder {
  color: hsl(var(--muted-foreground)) !important;
  opacity: 0.8 !important;
}

body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] button {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  color: hsl(var(--muted-foreground)) !important;
}

body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] button::before,
body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] button::after {
  content: none !important;
  display: none !important;
}

body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] svg {
  background: transparent !important;
}

body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] svg path,
body.amz-woo-shell .amz-shell-header form[aria-label="Buscar en la tienda"] svg circle {
  stroke: currentColor !important;
  fill: none !important;
}

/* Buscador desktop */
body.amz-woo-shell .amz-shell-header .amz-shell-search-desktop {
  flex: 1 1 auto !important;
  max-width: 48rem !important;
  margin-left: 24px !important;
  margin-right: 24px !important;
}

body.amz-woo-shell .amz-shell-header .amz-shell-search-desktop form {
  height: 40px !important;
  border-radius: 8px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  gap: 8px !important;
}

@media (min-width: 768px) {
  body.amz-woo-shell .amz-shell-header .amz-shell-search-desktop {
    margin-inline: auto !important;
    max-width: 48rem !important;
  }

  body.amz-woo-shell .amz-shell-header .amz-shell-search-desktop form {
    height: 40px !important;
  }
}

/* Trigger búsqueda mobile */
body.amz-woo-shell .amz-shell-header [data-amz-open-search] {
  background: #fff !important;
  color: hsl(var(--muted-foreground)) !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 10%) !important;
  font-family: var(--font-sans), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-mobile-search-label] {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: hsl(var(--muted-foreground)) !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-open-search] > span:first-child {
  width: 24px !important;
  height: 24px !important;
  color: hsl(var(--muted-foreground)) !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-open-search] > span:first-child svg {
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
  fill: none !important;
}

/* 6) Nav desktop */
body.amz-woo-shell .amz-shell-header .amz-shell-nav-wrap {
  color: unset !important;
  font: unset !important;
}

@media (min-width: 768px) {
  body.amz-woo-shell .amz-shell-header .amz-shell-nav-wrap {
    padding-top: 0 !important;
    padding-bottom: 12px !important;
  }

  body.amz-woo-shell .amz-shell-header .amz-shell-nav-wrap nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  body.amz-woo-shell .amz-shell-header .amz-shell-nav-wrap nav > a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: auto !important;
    color: #fff !important;
    font-family: var(--font-sans), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(1rem, 1.2vw, 1.125rem) !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
  }

  body.amz-woo-shell .amz-shell-header .amz-shell-nav-wrap nav > a:hover {
    color: hsl(var(--foreground)) !important;
  }
}

/* 7) Menú mobile */
body.amz-woo-shell #amz-shell-menu a {
  color: #fff !important;
}

/* 8) Acciones derecha */
body.amz-woo-shell .amz-shell-header a[aria-label="Ir a mi cuenta"],
body.amz-woo-shell .amz-shell-header a[aria-label="Ver carrito"],
body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu] {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu]::before,
body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu]::after {
  content: none !important;
  display: none !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu] svg.hidden {
  display: none !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu] svg:not(.hidden) {
  display: block !important;
}

body.amz-woo-shell .amz-shell-header a[aria-label="Ir a mi cuenta"] svg,
body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu] svg {
  width: 18px !important;
  height: 18px !important;
}

body.amz-woo-shell .amz-shell-header a[aria-label="Ver carrito"] svg {
  width: 20px !important;
  height: 20px !important;
}

body.amz-woo-shell .amz-shell-header a[aria-label="Ir a mi cuenta"] svg,
body.amz-woo-shell .amz-shell-header a[aria-label="Ver carrito"] svg,
body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu] svg {
  stroke: #fff !important;
  color: #fff !important;
  fill: none !important;
}

@media (hover: hover) {
  body.amz-woo-shell .amz-shell-header a[aria-label="Ir a mi cuenta"]:hover,
  body.amz-woo-shell .amz-shell-header a[aria-label="Ver carrito"]:hover,
  body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
}

body.amz-woo-shell .amz-shell-header a[aria-label="Ver carrito"] > span {
  background: hsl(var(--brand-accent)) !important;
  color: #fff !important;
}

/* HOTFIX: ocultar hamburguesa en desktop */
@media (min-width: 768px) {
  body.amz-woo-shell .amz-shell-header [data-amz-toggle-menu] {
    display: none !important;
  }
}

/* 9) Overlay búsqueda mobile */
body.amz-woo-shell .amz-shell-search {
  background: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
}

body.amz-woo-shell .amz-shell-search a,
body.amz-woo-shell .amz-shell-search button {
  color: hsl(var(--brand)) !important;
}

body.amz-woo-shell .amz-shell-search form[aria-label="Buscar en la tienda"] {
  color: hsl(var(--muted-foreground)) !important;
  border-radius: 8px !important;
}

body.amz-woo-shell .amz-shell-search form[aria-label="Buscar en la tienda"] input[name="q"] {
  color: hsl(var(--foreground)) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.amz-shell-search button,
.amz-shell-search [data-amz-close-search] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.amz-shell-search [data-amz-close-search] {
  color: hsl(var(--brand)) !important;
}

.amz-shell-search [data-amz-close-search] svg {
  stroke: currentColor !important;
  fill: none !important;
}

.amz-shell-search input[name="q"]::-webkit-search-cancel-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

body.amz-woo-shell .amz-shell-search [data-amz-close-search],
body.amz-woo-shell .amz-shell-search [data-amz-close-search]:hover,
body.amz-woo-shell .amz-shell-search [data-amz-close-search]:focus,
body.amz-woo-shell .amz-shell-search [data-amz-close-search]:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: hsl(var(--brand)) !important;
}

body.amz-woo-shell .amz-shell-search [data-amz-close-search]::before,
body.amz-woo-shell .amz-shell-search [data-amz-close-search]::after {
  content: none !important;
  display: none !important;
}

body.amz-woo-shell .amz-shell-search [data-amz-close-search] {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.amz-woo-shell .amz-shell-search [data-amz-close-search] svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.2 !important;
  stroke: currentColor !important;
  fill: none !important;
}

/* 10) Admin bar + sticky */
body.admin-bar.amz-woo-shell .amz-shell-header.sticky.top-0 {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar.amz-woo-shell .amz-shell-header.sticky.top-0 {
    top: 46px !important;
  }
}

@media (min-width: 768px) {
  body.amz-woo-shell .amz-shell-header .amz-shell-search-desktop input[name="q"] {
    width: 100% !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }
}

/* Fix mobile search sin romper md:hidden */
body.amz-woo-shell .amz-shell-header [data-amz-open-search],
body.amz-woo-shell .amz-shell-header [data-amz-open-search]:hover,
body.amz-woo-shell .amz-shell-header [data-amz-open-search]:focus,
body.amz-woo-shell .amz-shell-header [data-amz-open-search]:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  align-items: center !important;
  gap: 8px !important;
  height: 40px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: hsl(var(--muted-foreground)) !important;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 10%) !important;
  line-height: 1 !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-open-search]::before,
body.amz-woo-shell .amz-shell-header [data-amz-open-search]::after {
  content: none !important;
  display: none !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-open-search] > span:first-child {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
}

body.amz-woo-shell .amz-shell-header [data-amz-mobile-search-label] {
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

#aviso-tienda.amz-top-banner{
  background-color: var(--nv-site-bg);
  color: var(--nv-primary-accent);
  padding: 10px;
}

#aviso-tienda.amz-top-banner .text{
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
  letter-spacing: 1px;
}

#aviso-tienda.amz-top-banner .text .span{
  color: var(--nv-secondary-accent);
  font-weight: 700;
}

@media (max-width: 768px){
  #aviso-tienda.amz-top-banner .text{
    font-size: 0.7rem;
    letter-spacing: 0.1px;
  }
}