/* =========================================================
   Victorie – Mega Menu
   ========================================================= */

/* The <li> that triggers the mega menu must NOT be relative
   so the panel can escape and span the full header width   */
.has-mega-menu {
    position: static !important;
}

/* ── Panel ─────────────────────────────────────────────── */
.vmm-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 9000;
    background: #fff;
    border-top: 2px solid var(--v-primary, #500814);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14);

    /* hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    /* closing transition has a short delay so the panel stays
       open when the cursor briefly leaves the trigger         */
    transition: opacity .22s .12s ease, transform .22s .12s ease;
}

/* Opening: no delay, instant response */
.has-mega-menu:hover .vmm-panel,
.has-mega-menu.vmm-is-open .vmm-panel {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    transition: opacity .18s 0s ease, transform .18s 0s ease;
}

/* ── Inner layout ──────────────────────────────────────── */
.vmm-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 36px;
}

/* ── Categories grid ───────────────────────────────────── */
.vmm-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex: 1 1 0;
    min-width: 0;
}

.vmm-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--v-text, #1a1a1a);
    flex: 0 0 calc(20% - 13px);
    min-width: 100px;
    max-width: 160px;
    transition: transform .18s ease;
}

.vmm-cat:hover {
    transform: translateY(-3px);
    color: var(--v-primary, #500814);
    text-decoration: none;
}

/* Category image wrapper */
.vmm-cat-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
    background: #f7eff0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmm-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.vmm-cat:hover .vmm-cat-img img {
    transform: scale(1.04);
}

.vmm-cat-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5d8de 0%, #f7eff0 100%);
}

/* "View All" tile */
.vmm-cat--all .vmm-cat-img--all {
    background: #f7eff0;
    border: 2px dashed #d8aab0;
    color: var(--v-primary, #500814);
}

.vmm-cat--all .vmm-cat-img--all svg {
    width: 40px;
    height: 40px;
    opacity: .6;
}

.vmm-cat-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
}

/* ── Products column ───────────────────────────────────── */
.vmm-products-col {
    flex: 0 0 260px;
    border-left: 1px solid #eee;
    padding-left: 28px;
}

.vmm-products-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--v-primary, #500814);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e0e3;
}

.vmm-products {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vmm-product {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--v-text, #1a1a1a);
    transition: color .15s;
}

.vmm-product:hover {
    color: var(--v-primary, #500814);
    text-decoration: none;
}

.vmm-product-img {
    flex: 0 0 56px;
    width: 56px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
    background: #f7eff0;
}

.vmm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vmm-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vmm-product-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vmm-product-price {
    font-size: 12px;
    color: var(--v-primary, #500814);
    font-weight: 600;
}

.vmm-view-all {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--v-primary, #500814);
    text-decoration: none;
    letter-spacing: .04em;
}

.vmm-view-all:hover {
    text-decoration: underline;
}

/* ── Header must be positioned for the panel to anchor ── */
.victorie-nav {
    position: relative;
}

/* ── Hide on mobile ────────────────────────────────────── */
@media (max-width: 991px) {
    .vmm-panel {
        display: none !important;
    }
}
