/* ============================================================
   DRAWER MOBILE
   ============================================================ */
.ellevy-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
.ellevy-drawer[aria-hidden="false"] { pointer-events: all; }

.ellevy-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,27,94,.5);
  opacity: 0;
  transition: opacity .3s ease;
  backdrop-filter: blur(2px);
}
.ellevy-drawer[aria-hidden="false"] .ellevy-drawer__overlay { opacity: 1; }

.ellevy-drawer__panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: var(--off-white);
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.ellevy-drawer[aria-hidden="false"] .ellevy-drawer__panel { transform: translateX(0); }

.ellevy-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: .5px solid var(--cinza-borda);
}
.ellevy-drawer__close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--cinza-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background var(--trans);
}
.ellevy-drawer__close:hover { background: var(--lavanda); }

.ellevy-drawer__search {
  padding: 14px 16px;
  border-bottom: .5px solid var(--cinza-borda);
}
.ellevy-drawer__search form {
  display: flex;
  background: var(--lavanda);
  border-radius: 20px;
  padding: 8px 14px;
  gap: 8px;
}
.ellevy-drawer__search input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--fonte-body);
  font-size: 13px;
  color: var(--preto);
  outline: none;
}
.ellevy-drawer__search button {
  background: none;
  border: none;
  color: var(--cinza-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
}

.ellevy-drawer__nav {
  flex: 1;
  padding: 8px 0;
}
.ellevy-drawer__link {
  display: block;
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--cinza-text);
  border-bottom: .5px solid var(--cinza-borda);
  transition: all var(--trans);
  font-family: var(--fonte-body);
}
.ellevy-drawer__link:hover {
  background: var(--lavanda);
  color: var(--roxo-escuro);
  padding-left: 28px;
}

.ellevy-drawer__foot {
  border-top: .5px solid var(--cinza-borda);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ellevy-drawer__action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--lavanda);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--roxo-escuro);
  font-family: var(--fonte-body);
  transition: background var(--trans);
}
.ellevy-drawer__action:hover { background: var(--lavanda-mid); }
.ellevy-drawer__action i { font-size: 18px; color: var(--roxo); }

/* Body com drawer aberto */
body.ellevy-drawer-open { overflow: hidden; }

/* Menu toggle (hambúrguer) */
.ellevy-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--roxo-escuro);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background var(--trans);
}
.ellevy-menu-toggle:hover { background: var(--lavanda); }

/* Busca mobile */
.ellevy-search-mobile {
  padding: 10px 16px;
  border-bottom: .5px solid var(--cinza-borda);
  background: var(--off-white);
}
.ellevy-search-mobile form {
  display: flex;
  background: var(--lavanda);
  border-radius: 20px;
  padding: 10px 16px;
  gap: 8px;
}
.ellevy-search-mobile input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--fonte-body);
  font-size: 13px;
  outline: none;
}
.ellevy-search-mobile button {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--cinza-text);
  cursor: pointer;
}

/* Bottom nav estilos */
.ellevy-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: var(--cinza-text);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--fonte-body);
  padding: 4px 0;
  position: relative;
}
.ellevy-bottom-nav__item i { font-size: 20px; }
.ellevy-bottom-nav__item.active { color: var(--roxo); }
.ellevy-bottom-nav__item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--roxo);
  border-radius: 0 0 2px 2px;
}

/* ============================================================
   BUSCA MOBILE TOGGLE
   ============================================================ */
@media (max-width: 768px) {
  .ellevy-menu-toggle { display: flex; }
  .ellevy-search-mobile-toggle { display: flex !important; }
}

/* ============================================================
   WOOCOMMERCE — PÁGINAS ESPECÍFICAS
   ============================================================ */

/* Página de loja */
.woocommerce-shop .ellevy-shop-header,
.woocommerce-page .ellevy-shop-header {
  background: var(--lavanda);
  padding: 32px;
  border-bottom: .5px solid var(--cinza-borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.woocommerce-shop .ellevy-shop-header h1,
.woocommerce-page .ellevy-shop-header h1 {
  font-family: var(--fonte-display);
  font-size: 32px;
  color: var(--roxo-escuro);
}

/* Filtros de ordenação */
.woocommerce-ordering select {
  border: .5px solid var(--cinza-borda) !important;
  border-radius: var(--radius) !important;
  font-family: var(--fonte-body) !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  color: var(--cinza-text) !important;
}

/* Resultado de busca */
.woocommerce-result-count {
  font-family: var(--fonte-body) !important;
  font-size: 12px !important;
  color: var(--cinza-text) !important;
}

/* Single product — tabs */
.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 32px;
}

/* Produtos relacionados */
.related.products,
.upsells.products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}
.related.products h2,
.upsells.products h2 {
  font-family: var(--fonte-display) !important;
  font-size: 28px !important;
  color: var(--roxo-escuro) !important;
  margin-bottom: 24px !important;
}
.related.products ul.products,
.upsells.products ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .ellevy-header, .ellevy-nav, .ellevy-footer,
  .ellevy-wpp, .ellevy-bottom-nav, .ellevy-drawer { display: none !important; }
}
