/* ═══════════════════════════════════════════════════════════════════════════
   ARTEA — Custom Header & Footer 2026
   El header custom se muestra solo en desktop (≥1025px).
   El footer custom reemplaza el de Woodmart en todos los viewports.
═══════════════════════════════════════════════════════════════════════════ */

/* ── HIDE WOODMART HEADER/FOOTER ──────────────────────────────────────────── */
@media (min-width: 1025px) {
  .whb-header { display: none !important; }
}

/* Ocultar footer de Woodmart siempre */
.wd-footer,
.wd-prefooter,
.wd-sub-footer,
.wd-bottom-bar {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  CUSTOM SITE HEADER                                                         */
/* ─────────────────────────────────────────────────────────────────────────── */

/* Ocultar en mobile — Woodmart toma el control */
.adn-site-header { display: none; }

@media (min-width: 1025px) {
  .adn-site-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  /* compensar admin bar de WordPress */
  .admin-bar .adn-site-header { top: 32px; }
}

/* ── TOP BAR ─────────────────────────────────────────────────────────────── */
.adn-top-bar {
  background: #111111;
  color: rgba(255,255,255,0.82);
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.adn-top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.adn-top-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.adn-top-item svg { flex-shrink: 0; }
.adn-top-item a {
  color: rgba(255,255,255,0.82);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.adn-top-item a:hover { color: #EB8F36; }

/* ── MAIN HEADER ROW ─────────────────────────────────────────────────────── */
.adn-header-main {
  background: #ffffff;
  border-bottom: 1px solid rgba(17,17,17,0.10);
}
.adn-header-main-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.adn-header-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.adn-header-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* Search bar */
.adn-header-search {
  flex: 1;
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(17,17,17,0.18);
  height: 44px;
  transition: border-color 0.2s;
}
.adn-header-search:focus-within {
  border-color: #111111;
}
.adn-header-search input[type="text"] {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 0 16px !important;
  font-family: 'Quicksand', sans-serif !important;
  font-size: 14px !important;
  color: #1A1714 !important;
  background: transparent !important;
  border-radius: 0 !important;
  height: 100% !important;
  box-shadow: none !important;
  min-width: 0;
}
.adn-header-search input::placeholder { color: #aaa; }
.adn-header-search button {
  background: transparent !important;
  border: none !important;
  border-left: 1.5px solid rgba(17,17,17,0.12) !important;
  padding: 0 16px !important;
  cursor: pointer;
  color: #1A1714;
  display: flex;
  align-items: center;
  border-radius: 0 !important;
  flex-shrink: 0;
  transition: color 0.2s;
}
.adn-header-search button:hover { color: #EB8F36; }

/* Actions: Ingresar | Favoritos | Carrito */
.adn-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.adn-hdr-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #1A1714;
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.adn-hdr-action:hover { color: #EB8F36; }
.adn-hdr-action svg { flex-shrink: 0; }

/* Cart badge */
.adn-hdr-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adn-cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: #EB8F36;
  color: #ffffff;
  font-family: 'Quicksand', sans-serif;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.adn-cart-badge:not(.has-items) { display: none; }

/* ── NAV ROW ─────────────────────────────────────────────────────────────── */
.adn-header-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}
.adn-header-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav list */
.adn-nav-list {
  display: flex;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.adn-nav-list > li { position: relative; }
.adn-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 15px 18px;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1A1714;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.adn-nav-list > li > a:hover,
.adn-nav-list > li.current-menu-item > a,
.adn-nav-list > li.current-menu-ancestor > a {
  color: #EB8F36;
  border-bottom-color: #EB8F36;
}

/* Submenú desplegable */
.adn-nav-list > li > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-top: 2px solid #EB8F36;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 1000;
}
.adn-nav-list > li:hover > .sub-menu { display: block; }
.adn-nav-list .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1A1714;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.adn-nav-list .sub-menu li a:hover {
  color: #EB8F36;
  background: rgba(235,143,54,0.05);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  CUSTOM SITE FOOTER                                                         */
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── NEWSLETTER STRIP ────────────────────────────────────────────────────── */
.adn-footer-newsletter {
  background: #1a1714;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0;
}
.adn-footer-newsletter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.adn-footer-nl-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Quicksand', sans-serif;
  color: #ffffff;
}
.adn-footer-nl-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.adn-footer-nl-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.adn-nl-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  max-width: 440px;
  min-width: 280px;
}
.adn-nl-form input[type="email"] {
  flex: 1;
  padding: 11px 16px;
  border: none;
  outline: none;
  background: #ffffff;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  color: #1A1714;
  border-radius: 0;
}
.adn-nl-form input::placeholder { color: #999; }
.adn-nl-form button {
  padding: 11px 22px;
  background: #EB8F36;
  color: #ffffff;
  border: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.adn-nl-form button:hover { background: #d4812e; }

/* ── MAIN FOOTER ─────────────────────────────────────────────────────────── */
.adn-footer-main {
  background: #111111;
  padding: 56px 0 40px;
}
.adn-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}

/* Brand column */
.adn-footer-brand {}
.adn-footer-logo-link { display: block; margin-bottom: 16px; }
.adn-footer-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.adn-footer-desc {
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  line-height: 1.7;
  margin: 0 0 20px !important;
}
.adn-footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.adn-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.adn-footer-social a:hover {
  color: #EB8F36;
  border-color: #EB8F36;
}

/* Nav columns */
.adn-footer-col {}
.adn-footer-col-title {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 0 18px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.adn-footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adn-footer-col ul li a {
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  transition: color 0.2s;
}
.adn-footer-col ul li a:hover { color: #EB8F36; }

/* Contact list */
.adn-footer-contact-list { gap: 12px !important; }
.adn-footer-contact-list li {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,0.60);
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
}
.adn-footer-contact-list li svg { flex-shrink: 0; margin-top: 1px; color: rgba(255,255,255,0.40); }
.adn-footer-contact-list li a {
  color: rgba(255,255,255,0.60);
  text-decoration: none;
}
.adn-footer-contact-list li a:hover { color: #EB8F36; }

/* ── COPYRIGHT BAR ───────────────────────────────────────────────────────── */
.adn-footer-bottom {
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 14px 0;
}
.adn-footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.40);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .adn-footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
    gap: 28px;
  }
}
@media (max-width: 1024px) {
  .adn-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .adn-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .adn-footer-inner { grid-template-columns: 1fr; }
  .adn-footer-newsletter-inner { flex-direction: column; align-items: stretch; }
  .adn-nl-form { max-width: 100%; }
  .adn-footer-bottom-inner { flex-direction: column; text-align: center; }
}
