/* VELMONT · componentes (gavetas, formulários, filtros, estados) · gerado de velmont/mockup/style.css (contrato visual aprovado) + complementos do tema */
/* ---- de base base.css ---- */
.vm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vm-btn--ghost { background: transparent; color: var(--vm-ink); border-color: var(--vm-line-2); }
.vm-btn--ghost:hover { border-color: var(--vm-ink-3); }
.vm-btn--block { width: 100%; }
.vm-btn--ghost[aria-busy="true"]::after { border-color: rgba(7,92,255,.3); border-top-color: var(--vm-blue); }
.vm-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: inherit; }
.vm-iconbtn:hover { background: rgba(0,0,0,.06); }
.vm-field { display: flex; flex-direction: column; gap: 6px; }
.vm-label { font-size: .8125rem; font-weight: 700; color: var(--vm-ink); }
.vm-input, .vm-select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--vm-line-2); border-radius: 8px; background: #fff; color: var(--vm-ink); font: 400 16px/1.2 var(--vm-font-body); transition: border-color .15s, box-shadow .15s; }
.vm-select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23202124' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.vm-input:focus, .vm-select:focus { outline: 0; border-color: var(--vm-blue); box-shadow: 0 0 0 3px var(--vm-blue-50); }
.vm-input[aria-invalid="true"] { border-color: var(--vm-error); box-shadow: 0 0 0 3px #FDECEA; }
.vm-input.is-success { border-color: var(--vm-green); }
.vm-msg { display: flex; align-items: center; gap: 6px; font-size: .8125rem; }
.vm-msg--error { color: var(--vm-error); }
.vm-msg--success { color: var(--vm-green-text); }
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 750px) {
  .vm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1100px) {
  .vm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .vm-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.vm-skel { background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%); background-size: 200% 100%; animation: vm-shim 1.2s infinite; border-radius: 6px; }
.vm-drawer { position: fixed; inset: 0; z-index: 200; margin: 0; padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; overflow: hidden; }
.vm-drawer::backdrop { background: rgba(16, 24, 40, .5); }
.vm-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(92vw, 400px); background: #fff; color: var(--vm-ink); display: flex; flex-direction: column; animation: vm-in-l .22s var(--vm-ease); }
.vm-drawer--right .vm-drawer__panel { left: auto; right: 0; animation-name: vm-in-r; }
.vm-drawer--bottom .vm-drawer__panel { top: auto; left: 0; right: 0; width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; animation-name: vm-in-b; }
@media (prefers-reduced-motion: reduce) {
  .vm-drawer__panel { animation: none; }
}
.vm-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--vm-line); }
.vm-drawer__head--blue { background: var(--vm-blue); color: #fff; border: 0; }
.vm-drawer__title { font: 700 1.05rem/1.2 var(--vm-font-display); }
.vm-drawer__body { flex: 1; overflow: auto; overscroll-behavior: contain; }
.vm-drawer__foot { border-top: 1px solid var(--vm-line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; background: #fff; }
.vm-rte { font-size: .9375rem; line-height: 1.7; color: var(--vm-ink); overflow-wrap: anywhere; }
.vm-rte > * + * { margin-top: .8em; }
.vm-rte h2, .vm-rte h3, .vm-rte h4 { font-family: var(--vm-font-display); font-weight: 700; font-size: 1.1rem; margin-top: 1.4em; }
.vm-rte ul { list-style: disc; padding-left: 1.3em; }
.vm-rte ol { list-style: decimal; padding-left: 1.3em; }
.vm-rte li + li { margin-top: .35em; }
.vm-rte a { color: var(--vm-blue); text-decoration: underline; }
.vm-rte table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.vm-rte th, .vm-rte td { border-bottom: 1px solid var(--vm-line); padding: 10px 8px; text-align: left; vertical-align: top; }
.vm-rte img { max-width: 100%; height: auto; border-radius: 8px; }
.vm-grid > * { min-width: 0; }
.vm-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* ---- de base layout.css ---- */
.vm-suggest__group + .vm-suggest__group { border-top: 1px solid var(--vm-line); margin-top: 6px; padding-top: 6px; }
.vm-suggest__label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vm-ink-3); padding: 6px 8px; }
.vm-suggest__item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 8px; font-size: .875rem; }
.vm-suggest__item:hover, .vm-suggest__item[aria-selected="true"] { background: var(--vm-blue-50); }
.vm-suggest__item img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--vm-line); }
.vm-suggest__price { margin-left: auto; font-weight: 700; color: var(--vm-red); white-space: nowrap; font-family: var(--vm-font-display); }
.vm-suggest__all { display: flex; justify-content: center; min-height: 44px; align-items: center; font-weight: 700; color: var(--vm-blue); }
.vm-mmenu__user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--vm-blue-700); color: #fff; font-weight: 600; }
.vm-mmenu__list > li { border-bottom: 1px solid var(--vm-line); }
.vm-mmenu__list a, .vm-mmenu__list summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 0 16px; font-weight: 600; cursor: pointer; list-style: none; }
.vm-mmenu__list summary::-webkit-details-marker { display: none; }
.vm-mmenu__list details[open] > summary { color: var(--vm-blue); }
.vm-mmenu__sub { background: var(--vm-bg); padding: 4px 0 8px; }
.vm-mmenu__sub a { min-height: 44px; font-weight: 400; padding-left: 28px; color: var(--vm-ink-2); }
.vm-mmenu__sub .vm-mmenu__all { color: var(--vm-blue); font-weight: 700; }
.vm-mmenu__aux a { font-weight: 400; color: var(--vm-ink-2); justify-content: flex-start; gap: 12px; }
.vm-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; background: #fff; color: var(--vm-ink); border-radius: 12px; box-shadow: 0 16px 40px rgba(16,24,40,.22); padding: 8px; max-height: min(70vh, 520px); overflow: auto; }
.vm-mmenu__btn { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px; border: 0; background: none; font: inherit; font-weight: 400; color: var(--vm-ink-2); cursor: pointer; text-align: left; }
/* ---- de base commerce.css ---- */
.vm-mcart__ok { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #E3F5EA; color: var(--vm-green-text); font-weight: 700; font-size: .875rem; }
.vm-mcart__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--vm-line); }
.vm-mcart__item img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--vm-line); border-radius: 8px; background: #fff; }
.vm-mcart__name { font-size: .875rem; line-height: 1.35; }
.vm-mcart__var { font-size: .75rem; color: var(--vm-ink-3); }
.vm-mcart__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.vm-mcart__price { font: 700 1rem var(--vm-font-display); }
.vm-mcart__sub { display: flex; justify-content: space-between; font-weight: 700; }
.vm-mcart__note { font-size: .75rem; color: var(--vm-ink-3); }
.vm-ckcep { margin: 4px 0 2px; gap: 4px; }
.vm-ckcep__label { font-weight: 700; font-size: .8125rem; color: var(--vm-ink); }
.vm-ckcep .vm-input { min-height: 44px; }
.vm-ckcep__hint { font-size: .75rem; color: var(--vm-ink-3); line-height: 1.35; }
.vm-ckcep__hint.vm-msg--error { color: var(--vm-error); }
.vm-ckcep-wrap { margin-block: 12px 4px; }
/* ---- de base plp.css ---- */
.vm-plp__head { display: grid; gap: 8px; padding-block: 6px 14px; }
.vm-plp__count { font-size: .8125rem; color: var(--vm-ink-2); }
.vm-plp__intro { font-size: .9rem; color: var(--vm-ink-2); max-width: 80ch; }
.vm-plp__layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 990px) {
  .vm-plp__layout--side { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
}
.vm-plp__side { display: none; }
@media (min-width: 990px) {
  .vm-plp__side { display: block; position: sticky; top: calc(var(--vm-header-h, 130px) + 12px); max-height: calc(100vh - var(--vm-header-h, 130px) - 24px); overflow: auto; }
}
.vm-plp__bar { position: sticky; top: var(--vm-header-h-m, 112px); z-index: 20; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 0; background: var(--vm-bg); }
@media (min-width: 990px) {
  .vm-plp__bar { position: static; justify-content: space-between; }
  .vm-plp__filterbtn { display: none !important; }
}
.vm-plp__bar .vm-select { flex: 1; }
@media (min-width: 990px) {
  .vm-plp__bar .vm-select { flex: none; width: 240px; }
}
.vm-plp__active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vm-filter__body { padding: 0 16px 14px; display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.vm-plp__side .vm-filter__body { padding: 0 4px 14px; }
.vm-check__count { margin-left: auto; font-size: .75rem; color: var(--vm-ink-3); }
.vm-plp__seo { margin-top: 28px; }
.vm-chip--on { background: var(--vm-blue-50); border-color: var(--vm-blue); color: var(--vm-blue-700); }
.vm-filter { border-bottom: 1px solid var(--vm-line); }
.vm-filter > summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; font-weight: 700; font-family: var(--vm-font-display); cursor: pointer; list-style: none; }
.vm-plp__side .vm-filter > summary { padding: 0 4px; }
.vm-filter > summary::-webkit-details-marker { display: none; }
.vm-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .875rem; cursor: pointer; }
.vm-check input { width: 20px; height: 20px; accent-color: var(--vm-blue); flex: none; }
.vm-check--off { opacity: .45; cursor: not-allowed; }
.vm-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vm-pag { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.vm-pag a, .vm-pag span { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--vm-line); font-weight: 700; }
.vm-pag a:hover { border-color: var(--vm-blue); color: var(--vm-blue); }
.vm-pag [aria-current="page"] { background: var(--vm-blue); color: #fff; border-color: var(--vm-blue); }
.vm-plp__main { min-width: 0; }
.vm-filters { display: grid; gap: 0; }
.vm-filters__actions { display: grid; gap: 8px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--vm-line); }
.vm-plp__side .vm-filters__actions { position: static; padding: 14px 4px 8px; border: 0; }
.vm-plp__side [data-vm-apply] { display: none; }
.vm-grid > li { list-style: none; }
/* ---- de base page.css ---- */
.vm-page__layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 990px) {
  .vm-page__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
}
.vm-page__nav { background: #fff; border-radius: var(--vm-r-lg); padding: 8px; }
.vm-page__nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: .875rem; font-weight: 600; color: var(--vm-ink-2); }
.vm-page__nav a:hover { background: var(--vm-bg); color: var(--vm-blue); }
.vm-page__nav a[aria-current="page"] { background: var(--vm-blue-50); color: var(--vm-blue-700); }
@media (max-width: 989px) {
  .vm-page__nav { display: none; }
}
.vm-page__select { margin-bottom: 4px; }
@media (min-width: 990px) {
  .vm-page__select { display: none; }
}
.vm-page__main { display: grid; gap: 16px; }
.vm-page__main { min-width: 0; }
.vm-page .vm-rte h2 { font-size: 1.2rem; }
/* ---- de base resp.css ---- */
.vm-drawer { height: 100dvh; max-height: 100dvh; }
.vm-drawer__panel { max-height: 100dvh; }
.vm-drawer--bottom .vm-drawer__panel { max-height: 92dvh; }
@media (orientation: landscape) and (max-height: 500px) {
  .vm-drawer--bottom .vm-drawer__panel { max-height: 100dvh; border-radius: 0; }
}
.vm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 359px) {
  .vm-grid { gap: 8px; }
}
@media (min-width: 601px) {
  .vm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 990px) {
  .vm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1440px) {
  .vm-grid, .vm-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (pointer: coarse) {
  .vm-page__nav a, .vm-check { min-height: 44px; }
}
/* ---- de base woo.css ---- */
.vm-sr:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: #fff; color: var(--vm-blue); z-index: 999; border-radius: 8px; font-weight: 700; }
.vm-rte a { color: var(--vm-blue); text-decoration: underline; }
.vm-rte img { border-radius: 8px; }
.vm-rte table { width: 100%; border-collapse: collapse; }
.vm-rte td, .vm-rte th { border: 1px solid var(--vm-line); padding: 8px; text-align: left; }
.vm-pag a, .vm-pag span { text-decoration: none; }
.vm-woo .woocommerce-message, .vm-woo .woocommerce-info, .vm-woo .woocommerce-error { list-style: none; margin: 12px 0; padding: 12px 16px; border-radius: 10px; background: #E3F5EA; color: var(--vm-green-text); font-weight: 600; font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.vm-woo .woocommerce-error { background: #FDECEC; color: var(--vm-error); }
.vm-woo .woocommerce-info { background: var(--vm-blue-50); color: var(--vm-blue-700); }
.vm-woo .woocommerce-message .button { color: var(--vm-blue); text-decoration: underline; font-weight: 700; background: none; border: 0; padding: 0; }


/* ---------- complementos de componentes ---------- */
@keyframes vm-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes vm-in-l { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes vm-in-r { from { transform: translateX(100%); } to { transform: none; } }
@keyframes vm-in-b { from { transform: translateY(100%); } to { transform: none; } }
.vm-skel { animation-name: vm-shim; }
.vm-drawer__panel { animation-name: vm-in-l; }
.vm-drawer--right .vm-drawer__panel { animation-name: vm-in-r; }
.vm-drawer--bottom .vm-drawer__panel { animation-name: vm-in-b; }
.vm-drawer:not([open]) { display: none; }
.vm-drawer::backdrop { background: rgba(0,0,0,.55); }
.vm-drawer__head--dark { background: var(--vm-black); color: #fff; border: 0; min-height: 68px; }
.vm-drawer__head--dark .vm-iconbtn { color: #fff; }
.vm-drawer__head--dark .vm-iconbtn:hover { background: rgba(255,255,255,.1); }
.vm-drawer__title { font-weight: 800; }
.vm-mmenu__user { background: var(--vm-red); }
.vm-mmenu__list { margin: 0; padding: 0; list-style: none; }
.vm-mmenu__list a { color: var(--vm-ink); }
.vm-mmenu__offer { color: var(--vm-red) !important; justify-content: flex-start !important; gap: 8px !important; }
.vm-mmenu__aux { margin-top: 10px; }
.vm-mmenu__aux .vm-ico { color: var(--vm-red); }
.vm-mmenu__list details > summary .vm-ico { transition: transform .2s; }
.vm-mmenu__list details[open] > summary .vm-ico { transform: rotate(180deg); }

/* estados: vazio, carregando, erro */
.vm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 18px; text-align: center; color: var(--vm-ink-2); font-size: 14px; }
.vm-empty > .vm-ico { color: var(--vm-line-2); margin-bottom: 4px; }
.vm-empty strong { color: var(--vm-ink); font-size: 15px; }
.vm-empty .vm-btn { margin-top: 8px; }
.vm-empty--big { padding: 44px 18px; }
.vm-empty--big .vm-search { width: min(100%, 560px); margin-top: 10px; }
.vm-empty__try { font-size: 13px; }
.vm-empty__try a, .vm-404__try a { color: var(--vm-red); font-weight: 600; text-decoration: underline; }
.vm-empty--inline { flex-direction: row; text-align: left; align-items: center; gap: 14px; max-width: 640px; padding: 18px; border: 1.5px dashed var(--vm-line-2); border-radius: var(--vm-r); }
.vm-empty--inline strong { display: block; }
.vm-search--page .vm-search__form { border: 1.5px solid var(--vm-line-2); height: 48px; }
.vm-mcart__skel { display: grid; gap: 12px; padding: 16px; }
.vm-mcart__skel span { display: block; height: 72px; }
.vm-mcart__item a { color: var(--vm-ink); }
.vm-mcart__name { font-weight: 600; }
.vm-mcart__qty { display: inline-flex; align-items: center; border: 1.5px solid var(--vm-line); border-radius: 6px; height: 32px; }
.vm-mcart__qty button { width: 30px; height: 100%; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vm-mcart__qty button:hover { color: var(--vm-red); }
.vm-mcart__qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: 13px; }
.vm-mcart__rm { border: 0; background: none; color: var(--vm-ink-3); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.vm-mcart__rm:hover { color: var(--vm-error); }
.vm-mcart__price { color: var(--vm-ink); font-weight: 800; }
.vm-mcart__sub strong { font-size: 18px; color: var(--vm-red); }
.vm-drawer__body[aria-busy="true"] { opacity: .55; pointer-events: none; transition: opacity .2s; }
.vm-suggest .vm-suggest__item { color: var(--vm-ink); }
.vm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-chips--center { justify-content: center; margin-top: 8px; }
a.vm-chip { display: inline-flex; align-items: center; gap: 6px; }
.vm-chip--on { background: #FDECEC; border-color: var(--vm-red); color: var(--vm-red-700); }
.vm-input--area { padding: 12px 14px; min-height: 120px; resize: vertical; }
.vm-input:focus, .vm-select:focus { border-color: var(--vm-ink); box-shadow: 0 0 0 3px rgba(255,210,0,.45); }
.vm-check input { accent-color: var(--vm-red); }
.vm-pag a:hover { border-color: var(--vm-red); color: var(--vm-red); }
.vm-pag [aria-current="page"] { background: var(--vm-red); border-color: var(--vm-red); }
.vm-rte a { color: var(--vm-red); }
.vm-msg--info { color: var(--vm-ink-2); }
