/* ==========================================================================
   HAPPYPIP MEGA MENU — Desktop Only
   ========================================================================== */

/* ── Container ── */
.hp-mega {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hp-mega.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* ── Inner panel ── */
.hp-mega__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 0;
    padding: 0;
    background: var(--green-deep);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid rgba(250, 246, 239, 0.08);
    border-top: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(250, 246, 239, 0.04);
    transform: translateY(-8px);
    transition: transform 0.25s ease;
    overflow: hidden;
    position: relative;
}

.hp-mega__inner--4col {
    grid-template-columns: repeat(4, 1fr);
}

.hp-mega.is-open .hp-mega__inner {
    transform: translateY(0);
}

/* ── Sunset accent bar (top) ── */
.hp-mega__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #F4C08A, #ECA96E, #E89858);
    box-shadow: 0 2px 12px rgba(236, 169, 110, 0.4);
    z-index: 2;
}

/* ── Category Column ── */
.hp-mega__col--category {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    position: relative;
    border-right: 1px solid rgba(250, 246, 239, 0.06);
}

.hp-mega__col--category:last-child {
    border-right: none;
}

/* ── Top accent bar per category ── */
.hp-mega__cat-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.6;
    z-index: 1;
}

/* ── Category header (dot + name) ── */
.hp-mega__cat-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 6px;
}

.hp-mega__dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.hp-mega__cat-name {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ── Badge / tagline ── */
.hp-mega__cat-badge {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-style: italic;
    color: rgba(250, 246, 239, 0.45);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

/* ── Price ── */
.hp-mega__cat-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: var(--space-md);
}

.hp-mega__cat-price-num {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.hp-mega__cat-price-unit {
    font-family: var(--font-heading);
    font-size: var(--text-sub);
    font-weight: 500;
    color: rgba(250, 246, 239, 0.5);
}

/* ── Traits list ── */
.hp-mega__cat-traits {
    list-style: none;
    margin: 0 0 auto;
    padding: 0 0 var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-mega__cat-traits li {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 500;
    color: rgba(250, 246, 239, 0.6);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.hp-mega__cat-traits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sunset-mid);
    font-size: 10px;
    font-weight: 700;
}

/* ── CTA button ── */
.hp-mega__cat-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 700;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    text-decoration: none !important;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.hp-mega__cat-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: #fff !important;
}

.hp-mega__cat-cta:visited {
    color: #fff !important;
}

/* ── Hover highlight on column ── */
.hp-mega__col--category:hover {
    background: rgba(250, 246, 239, 0.03);
}

.hp-mega__col--category:hover .hp-mega__cat-accent {
    opacity: 1;
}

/* ── Astra overrides ── */
.hp-mega a,
.hp-mega a:hover,
.hp-mega a:focus,
.hp-mega a:visited {
    text-decoration: none;
}

/* Kill Astra's default submenu when mega is active */
.menu-item.hp-mega-trigger > .sub-menu {
    display: none !important;
}

/* ── Hide on mobile ── */
@media (max-width: 1024px) {
    .hp-mega {
        display: none !important;
    }
}

/* ── Responsive: smaller desktops ── */
@media (max-width: 1200px) {
    .hp-mega__inner {
        max-width: 100%;
        margin: 0 var(--space-lg);
    }

    .hp-mega__col--category {
        padding: var(--space-lg) var(--space-md) var(--space-md);
    }

    .hp-mega__cat-name {
        font-size: 18px;
    }

    .hp-mega__cat-price-num {
        font-size: var(--text-h3);
    }
}
