.vm-overlay-open { overflow: hidden; }
.vm-search-overlay,
.vm-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 15, 20, .58);
  backdrop-filter: blur(4px);
}
.vm-search-overlay[hidden],
.vm-cart-drawer[hidden] { display: none; }
.vm-search-panel {
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  margin: 24px auto;
  overflow: auto;
  background: #f8f7f4;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}
.vm-search-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 24px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #f8f7f4;
  border-bottom: 1px solid #deddd8;
}
.vm-search-head svg { width: 22px; }
.vm-search-input {
  width: 100%;
  height: 48px;
  padding: 0;
  color: #0b0f14;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 19px;
}
.vm-search-close,
.vm-cart-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #0b0f14;
  background: #ecebe7;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.vm-search-results { padding: 18px; }
.vm-search-product-list { display: grid; gap: 8px; }
.vm-search-product {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  color: #0b0f14;
  border-radius: 10px;
}
.vm-search-product:hover { background: #eeede8; color: #0b0f14; }
.vm-search-product img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  background: #fff;
  border-radius: 8px;
}
.vm-search-product span { display: grid; }
.vm-search-product small { color: #6b706f; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.vm-search-product strong { font-size: 14px; }
.vm-search-product em { color: #168a63; font-size: 13px; font-style: normal; font-weight: 750; }
.vm-search-categories,
.vm-recent-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.vm-search-categories p,
.vm-recent-searches p { flex-basis: 100%; margin: 0 0 4px; color: #6b706f; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.vm-search-categories a,
.vm-recent-searches button {
  padding: 8px 12px;
  color: #202622;
  background: #eeede8;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.vm-search-all { display: block; margin-top: 14px; padding: 12px; color: #fff; background: #168a63; border-radius: 8px; text-align: center; font-weight: 750; }
.vm-search-empty { padding: 42px 18px; color: #666; text-align: center; }
.vm-search-empty strong { display: block; color: #0b0f14; font-size: 20px; }
.vm-search-loading { display: grid; gap: 10px; }
.vm-search-loading span { height: 78px; border-radius: 10px; background: linear-gradient(90deg, #ecebe7, #f8f7f4, #ecebe7); background-size: 200% 100%; animation: vm-shimmer 1.25s infinite; }
@keyframes vm-shimmer { to { background-position: -200% 0; } }

.vm-cart-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: #f8f7f4;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .2);
}
.vm-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #deddd8;
}
.vm-cart-head h2 { margin: 0; font-size: 20px; }
.vm-cart-body { flex: 1; overflow: auto; padding: 20px; }
.vm-cart-body .woocommerce-mini-cart { margin: 0; }
.vm-cart-body .woocommerce-mini-cart-item { padding-right: 28px!important; }

.vm-newsletter-row { display: flex; gap: 8px; }
.vm-newsletter-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  color: #0b0f14;
  background: #fff;
  border: 1px solid #d5d3cd;
  border-radius: 8px;
}
.vm-newsletter-row button,
.vm-contact-form .button {
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: #168a63;
  border: 0;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}
.vm-form-status { min-height: 22px; margin: 7px 0 0; font-size: 12px; }
.vm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vm-contact-form label { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 650; }
.vm-contact-form input,
.vm-contact-form textarea { width: 100%; padding: 12px; border: 1px solid #d5d3cd; border-radius: 8px; }
.vm-honeypot { position: absolute!important; left: -10000px; }

.vm-wishlist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.vm-wishlist-card { overflow: hidden; border: 1px solid #deddd8; border-radius: 12px; background: #fff; }
.vm-wishlist-card a { display: block; padding: 12px; color: #0b0f14; }
.vm-wishlist-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.vm-wishlist-card h3 { min-height: 46px; margin: 10px 0 4px; font-size: 14px; }
.vm-wishlist-card strong { color: #168a63; }
.vm-wishlist-card button { width: 100%; padding: 10px; color: #8a2633; background: #fff4f4; border: 0; cursor: pointer; }
.vm-empty-state { padding: 70px 20px; text-align: center; }

.vm-toast-region { position: fixed; z-index: 20000; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.vm-toast { max-width: 340px; padding: 13px 16px; color: #fff; background: #0b0f14; border-left: 4px solid #168a63; border-radius: 8px; box-shadow: 0 14px 35px rgba(0,0,0,.2); opacity: 0; transform: translateY(10px); transition: .2s ease; }
.vm-toast-error { border-left-color: #c75656; }
.vm-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .vm-search-panel { width: 100%; max-height: 100%; min-height: 100%; margin: 0; border-radius: 0; }
  .vm-search-product { grid-template-columns: 60px 1fr; }
  .vm-search-product img { width: 60px; height: 60px; }
  .vm-form-grid { grid-template-columns: 1fr; gap: 0; }
  .vm-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-toast,
  .vm-search-loading span { animation: none; transition: none; }
}
