/* =============================================================
   Hola Embroidery — Static Mega Menu CSS
   File: public/themes/shop/hola/css/mega-menu.css
   ============================================================= */

/* ── Nav bar ─────────────────────────────────────────────────── */
.hola-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Each nav item wrapper ───────────────────────────────────── */
.hola-nav-item {
    position: static;
    display: flex;
    align-items: center;
    height: 78px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.15s;
}

.hola-nav-item:hover,
.hola-nav-item:focus-within {
    border-bottom-color: #059669;
}

/* ── Nav link label ──────────────────────────────────────────── */
.hola-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
    height: 100%;
}

.hola-nav-link:hover,
.hola-nav-item:hover .hola-nav-link {
    color: #059669;
}

.hola-nav-link--active {
    color: #059669;
}

.hola-nav-link--sale {
    color: #e11d48;
}

.hola-nav-link--sale:hover {
    color: #be123c;
}

/* Chevron icon */
.hola-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.hola-nav-item:hover .hola-chevron {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════
   MEGA PANEL — the main show/hide block
   ═══════════════════════════════════════════════════════════════ */

.hola-mega-panel {
    /* Absolute positioned relative to the nearest positioned ancestor (the header wrapper) */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 200;

    background: #ffffff;
    border-top: 1px solid #e4e4e7;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Visible when parent nav item is hovered */
.hola-nav-item:hover .hola-mega-panel,
.hola-nav-item:focus-within .hola-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Inner layout matching the screenshot */
.mega-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    min-height: 400px;
}

/* ── Left Sidebar ────────────────────────────────────────────── */
.mega-sidebar {
    width: 250px;
    border-right: 1px solid #eaeaea;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s;
}

.mega-sidebar-item:hover {
    background: #f9f9f9;
}

.mega-sidebar-item.active {
    background: #f4f0e6;
    font-weight: 600;
}

/* Icon block in sidebar */
.mega-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.emoji-bg-teal {
    background: #e0f8f5;
}

.emoji-bg-pink {
    background: #fbe6ec;
}

.emoji-bg-blue {
    background: #edf2ff;
}

.emoji-bg-yellow {
    background: #fdf2d0;
}

.emoji-bg-blue2 {
    background: #e6f0fa;
}

/* ── Right Content ────────────────────────────────────────────── */
.mega-content {
    flex: 1;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
}

.mega-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mega-content-title {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.08em;
    margin: 0;
}

.mega-view-all {
    font-size: 13px;
    color: #059669;
    text-decoration: none;
    font-weight: 500;
}

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

/* Cards Grid (Top) */
.mega-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mega-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.mega-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d1d1;
}

.mega-card-img {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

.bg-light-green {
    background: #e6f7f3;
}

.bg-light-purple {
    background: #f1effe;
}

.bg-light-orange {
    background: #fef0e3;
}

.bg-light-pink {
    background: #fbecec;
}

.mega-card-body {
    padding: 14px;
    background: #fff;
}

.mega-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.mega-card-sub {
    font-size: 13px;
    color: #666;
}

/* Collections List (Bottom) */
.mt-8 {
    margin-top: 32px;
}

.mega-collections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-collection-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f4f0e6;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.mega-collection-item:hover {
    background: #eee8d8;
}

.mega-col-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bg-light-cyan {
    background: #e5fcf6;
}

.mega-col-text {
    display: flex;
    flex-direction: column;
}

.mega-col-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.mega-col-sub {
    font-size: 14px;
    color: #555;
}

/* ── Responsive Tablet/Small Desktop ───────────────────────── */
@media (max-width: 1280px) {
    .mega-layout {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mega-sidebar {
        width: 220px;
        padding-right: 16px;
    }

    .mega-content {
        padding-left: 24px;
    }

    .mega-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .mega-sidebar {
        width: 190px;
    }

    .mega-sidebar-item {
        font-size: 13px;
        padding: 8px 12px;
        gap: 12px;
    }

    .mega-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .mega-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}