/* ==========================================================================
   Vedmax Header
   ========================================================================== */
.vm-header { position: sticky; top: 0; z-index: 999; background: rgba(251,247,239,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(30,107,46,.08); transition: box-shadow .3s, background .3s; }
.admin-bar .vm-header { top: 32px; }
.vm-header.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 6px 24px rgba(19,74,31,.08); }
.vm-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.vm-logo { display: flex; align-items: center; gap: 8px; text-decoration: none !important; flex-shrink: 0; }
.vm-logo__img { max-height: 52px; width: auto; }
.vm-logo__mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #1E6B2E, #134a1f); font-size: 20px; }
.vm-logo__text { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 28px; color: #134a1f; letter-spacing: -.5px; }
.vm-logo__text span { color: #C8862A; }

.vm-nav { flex: 1; }
.vm-nav__head, .vm-nav__foot { display: none; }
.vm-menu { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.vm-menu li { position: relative; }
.vm-menu a { display: block; padding: 10px 16px; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 15px; color: #2b2b2b; text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
.vm-menu a:hover, .vm-menu .is-active > a, .vm-menu .current-menu-item > a { color: #1E6B2E; background: rgba(30,107,46,.08); }
.vm-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.vm-menu li:hover > .sub-menu, .vm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.vm-menu .sub-menu a { border-radius: 10px; }

.vm-header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.vm-icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #134a1f !important; cursor: pointer; padding: 0; transition: background .2s; }
.vm-icon-btn:hover { background: rgba(30,107,46,.1); }
.vm-cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #8B1E4F; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; transition: transform .3s; }
.vm-cart-count.is-empty { background: #C8862A; }
.vm-header__cta { margin-left: 8px; padding: 10px 22px !important; font-size: 14px !important; }
.vm-header__burger { display: none; }

.vm-search { border-top: 1px solid rgba(30,107,46,.08); background: #fff; padding: 14px 0; }
.vm-search__form { display: flex; gap: 10px; }
.vm-search__form input[type=search] { flex: 1; padding: 13px 20px; border: 1.5px solid #e4dccb; border-radius: 999px; font-size: 15px; background: #FBF7EF; }
.vm-search__form input[type=search]:focus { outline: none; border-color: #1E6B2E; }

/* Hide Astra's own header bits if any remain */
.vedmax .main-header-bar-wrap, .vedmax #ast-desktop-header, .vedmax #ast-mobile-header { display: none !important; }

/* Mobile */
@media (max-width: 921px) {
	.vm-header__inner { gap: 8px; min-height: 64px; }
	.vm-header__burger { display: grid; }
	.vm-logo { margin-right: auto; }
	.vm-logo__text { font-size: 24px; }
	.vm-header__cta { display: none; }
	.vm-nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 340px); z-index: 1001; background: #FBF7EF; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 10px 0 40px rgba(0,0,0,.15); }
	.vm-nav.is-open { transform: none; }
	.vm-nav__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eadfca; font-family: 'Playfair Display', serif; font-size: 20px; color: #134a1f; }
	.vm-menu { flex-direction: column; gap: 2px; padding: 12px; overflow-y: auto; flex: 1; }
	.vm-menu a { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
	.vm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
	.vm-nav__foot { display: block; padding: 16px 20px; font-size: 12px; color: #1E6B2E; border-top: 1px solid #eadfca; }
	.vm-nav-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.4); }
	body.vm-lock { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .vm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .vm-header { top: 0; } }

